Josh Blum
0cd5375b5c
uhd: replaced frame params for the zero copy interfaces with a device address
...
the device address gives a key, value pair of infinite optional capabilities
added a cast option to the device address to cast string to type T
added call to the zero_copy_if to get send and recv frame sizes
changed the usrp2 impl to calculate recv/send spp from the data transport
2010-10-05 10:30:28 -07:00
Josh Blum
98ba0cc067
uhd: extract named prop returns a named prop (not a tuple)
...
simplifies the code after the property set/get declaration
2010-08-15 10:51:25 -07:00
Josh Blum
805d4a0cff
uhd: made split string utility function
2010-08-12 10:08:17 -07:00
Josh Blum
f6c3178c7c
usrp2: added fpga compat number, renamed firmware proto version to compat
2010-08-09 18:29:13 -07:00
Josh Blum
ef9a395414
usrp2: add a timeout to udp control and make it large for usrp2 control transactions
2010-07-19 10:57:39 -07:00
Josh Blum
da9d47011e
usrp2: added notes on multiple device network setup, improved warnings for buff size stuff
2010-07-08 13:01:49 -07:00
Josh Blum
c72bc56ba6
usrp2: moved common defined for udp mtu and implemented change.
...
The uhp mtu is now defined in uhd_simple.hpp.
The fw common code does not need to know this information.
Fixed a calculation bug in the usrp2 impl code for max samples.
2010-07-07 23:48:09 -07:00
Josh Blum
6469d2419f
uhd: filling in mimo usrp implementation, renamed get_name to get_pp_string for simple and mimo usrp
2010-07-05 13:45:16 -07:00
Josh Blum
3b1473d5a3
usrp2: removed usrp2.hpp header, its not needed, just use the discovery/factory system
...
uhd: added usrp_mimo skeleton code/header
2010-07-05 13:45:16 -07:00
Josh Blum
158bf440d2
usrp2: moved calculations for max packet size and otw types into shared object between device and mboards
2010-07-05 13:45:14 -07:00
Josh Blum
905f5b3b24
usrp2: split mboard impl into its own class, usrp2 device can instantiate N mboard impls for mimo setup (works with 1 for now)
2010-07-05 13:45:13 -07:00
Josh Blum
e2bde1a9a3
usrp2: enlarged the i2c transaction size, rev-ed the firmware protocol number, added constants for packet sizes
2010-06-17 18:19:39 -07:00
Josh Blum
25005946ad
usrp2: added a type to the address args to filter based on type usrp2
2010-06-15 17:54:29 -07:00
Josh Blum
f2b560d5f8
Prepend usrp2 onto the helper classes in usrp2 impl to avoid symbol conflicts.
2010-06-04 12:16:09 -07:00
Josh Blum
dbc65d9283
recv discovery packets with max size buffer (we dont know what to expect)
2010-06-04 12:00:23 -07:00
Josh Blum
a4494bc2c9
use smart pointer for io impl, simplify send buffer callback
2010-06-02 15:21:56 -07:00
Josh Blum
212159ca3b
Implemented pirate thread, moved io impl details into io impl cpp file. Fixed bug in bounded buffer push with pop on full.
2010-06-01 17:51:26 -07:00
Josh Blum
17c494b79a
Added tx timed samples example.
...
Added called to device to get max samples per packet.
Removed device props that gave max samples per packet.
2010-05-18 14:26:43 -07:00
Josh Blum
d20595a3fe
calculate max samples per packet using otw type
2010-05-17 09:52:43 -07:00
Josh Blum
81f211c94f
Moved usrp2 eeprom addr read/write to host control over i2c/eeprom interface calls.
...
No longer part of the dude/bro protocol.
Simplified the mac and ip addr read write code in mboard impl.
Modified the mac addr type to take byte_vector_t from serial.hpp types.
2010-05-11 16:35:01 -07:00
Josh Blum
7c7b0d0a0d
Added a place for serdes control on the host.
...
Fix bug in codec control.
Comment out some clock control in fw code.
2010-05-10 16:37:12 -07:00
Josh Blum
bf7ef6aeb5
Moved adc and dac control into codec control source file.
...
The codec control powers down the chips on destruction.
2010-05-10 15:14:48 -07:00
Josh Blum
dd83730636
made buffer size args part of constructor
2010-04-30 12:22:23 -07:00
Josh Blum
04dae4bf6b
setting size of buffers from device args
2010-04-27 15:20:53 -07:00
Josh Blum
b920557788
work on controlling the socket buffer sizes from the front end api
2010-04-27 09:42:36 -07:00
Josh Blum
6f1bdcb586
Renamed the prop set/get error macros so they make sense for not-implemented properties.
2010-04-26 15:20:18 -07:00
Josh Blum
90ed2e3a80
prefixed the ASSERT_THROW macro with UHD for the sake of namespace
2010-04-26 14:42:32 -07:00
Josh Blum
61ec6711bb
Work on exceptions.
...
Added props exception macro to make the set/get prop switch statements easier.
Made use of boost throw exception macro for throw-site information in throw assert.
2010-04-25 22:05:50 -07:00
Josh Blum
e5248746f6
Added protocol version number to usrp2 common header and data struct.
2010-04-21 17:49:00 -07:00
Josh Blum
51a9c2d42d
Created a usrp2 interface class with the control, spi, peek/poke functionality.
...
Its used in all the implementation level code
2010-04-13 17:48:48 -07:00
Josh Blum
40c231937e
moved spi transact to usrp2 impl, and removed spi read
2010-04-12 16:10:29 -07:00
Josh Blum
97496ace66
simplified the usage of dboard, dsp, and mboard proxies.
...
removed the dict structure for each, we are just going to have one.
2010-04-05 16:36:51 -07:00
Josh Blum
12aa8ad74c
added 16 bit peek and poke, 16 bit register defs for gpios and atrs
2010-04-05 12:18:17 -07:00
Josh Blum
91ef18021c
moved props into usrp and multiple hpp files
2010-04-01 15:08:52 -07:00
Josh Blum
38248b816c
Refactor ATR part of dboard interface (and some constants).
...
Added peek and poke to the dude/bro protocol.
Started moving more control code through peek and poke.
Added usrp_regs.hpp to be like memory map for slave perifs.
2010-03-31 17:43:20 -07:00
Josh Blum
281307833c
use find to discover devices
2010-03-30 15:11:23 -07:00
Josh Blum
52df9afd67
Split utils.hpp into subdir with multiple files.
...
static for static block and static instance (singleton)
assert for assertion and throwing related stuff
algorithm for my addons to std::algorithm (has)
and a new one, safe main, for having a main catch-all
2010-03-27 01:02:58 -07:00
Josh Blum
ae02148f12
get interface addresses on windows
2010-03-26 17:52:57 -08:00
Josh Blum
08f6b21ce7
added interface address discovery
2010-03-26 11:45:56 -07:00
Josh Blum
694dc3c7bc
merged usrp2 stuff from u1e branch (without merging the u1e stuff)
2010-03-22 17:52:08 -07:00
Josh Blum
26ada5ee70
added install path for dll, fixed idiotic msvc error where making a vector with proxies crashes the app, seems to be ok with the sptr fix, in other good news, discover usrps works in my vm for the usrp2
2010-03-19 18:08:20 -08:00
Josh Blum
fc40ff2f13
Replaced uses of wax:cast with the templated as method (like in boost program options).
2010-03-15 17:43:10 -07:00
Josh Blum
7590f187d0
Device sub classes can register themselves. Simplifies device.cpp internals.
...
Added static instance macro for lazy instantiation of static variables.
2010-03-15 12:15:33 -07:00
Josh Blum
bb86022d5a
Moved timeouts into the udp transports.
...
Simplified the fast path checking in the fw, but it turns out this was not the issue.
Fixed some bad bit operations with the 16sc words (dont forget sign extension).
Added some more documentation to the headers....
2010-03-04 18:34:28 -08:00
Josh Blum
bb8417526c
Making use of vrt lib in the usrp2 io_impl.
...
Added a packet size param to the vrt pack and unpack.
2010-03-03 01:19:00 -08:00
Josh Blum
4efafcc2e2
Expanded the UDP api:
...
We can make simple udp transports for discovery and control.
We can support a udp zero copy transport (currently just asio).
Reworked the io_impl for usrp2 to work with the zero copy api.
So far, all of this untested other than compiling.
A cut-down vrt library is in the works to simplify the io impl.
2010-03-02 22:07:17 -08:00
Josh Blum
4510672953
Send the number of samples per datagram over the control.
...
Worked on the io impl for usrp2 (added loop unrolls and 32 bit buffers).
Added some vrt rx constants to the fw common used by host and fw.
Removed the MTU prop and added a general device prop for num samples.
2010-03-01 16:13:30 -08:00
Josh Blum
5715b2c493
Created empty usrp1e cpp file for the case when headers are not found.
...
Worked on the device make and discovery to fix certain problems.
Added node param to discover usrps for usrp1e, made addr optional.
2010-02-25 18:32:32 -08:00
Josh Blum
3571f65a11
use a single addr param for the usrp2
2010-02-25 12:48:51 -08:00
Josh Blum
8050fda48d
Added IF data io handing within the usrp2 impl.
...
It packs and unpacks vrt headers/metadata.
NOT YET TESTED IN ANY WAY...
2010-02-23 16:27:49 -08:00