aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* usrp: use a spawn thread to ensure that a pirate is spawned before ↵Josh Blum2010-11-161-0/+9
| | | | continuing (fixes lockup issue)
* usrp2: handle real overflow packets in host, reload continuous stream cmd, ↵Josh Blum2010-10-211-1/+7
| | | | remove firmware handling
* usrp2: make the booty smaller than the number of recv framesJosh Blum2010-10-161-1/+1
| | | | | | | | | | | | | | | | This may fix some of our woes when the host cannot keep up. That is, with a smaller booty, the managed buffers will get freed up and the call to get buffer will never block waiting for a buffer to become free. This has several side effects: 1) Overflows are more likely to occur in the pirate thread. Pirate-based overflows will overwrite old packets, whereas socket-based overflows will discard newer incoming packets. 2) The pirate thread will continue to pull in async packets rather than loosing them in a socket-based overflow.
* usrp2: moved samples per packet calculation into io_implJosh Blum2010-10-071-0/+19
|
* uhd: replaced frame params for the zero copy interfaces with a device addressJosh Blum2010-10-051-2/+2
| | | | | | | | | | 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
* usrp2: removed extra print-outs in initJosh Blum2010-10-041-4/+0
|
* uhd: implemented a double timeout (in seconds) for send and recv chainsJosh Blum2010-10-011-16/+16
| | | | | | | | converted all size_t timeout_ms to double timeout bounded and alignment buffer now take double timeout added timeout to device::send and zero_copy_if::get_send_buff
* uhd: implemented recv timeout for zero copy interfaceJosh Blum2010-09-301-2/+3
|
* uhd: fix warning by adding brackets for while(cond){};Josh Blum2010-09-271-1/+1
|
* usrp1: reworked the io_impl for usrp1 to use the vrt packet handlerJosh Blum2010-09-221-1/+1
| | | | | | | | used dummy packers and unpackets that have a header size of zero created wrapper around the data transport to handle non-512 multiple sends honor the eob flag on send to flush the send buffer
* usrp2: flush the error flow messages, issue the stop before register ↵Josh Blum2010-08-311-2/+2
| | | | configure to align count
* usrp2: stop streaming and drain buffer (if left running)Josh Blum2010-07-301-4/+6
|
* Merge branch 'tx_report'Josh Blum2010-07-261-3/+38
|\ | | | | | | | | Conflicts: host/lib/usrp/usrp2/io_impl.cpp
| * usrp2: added async event types, and common code for handling context wordsJosh Blum2010-07-211-4/+1
| |
| * uhd: added async recv message call to device apiJosh Blum2010-07-201-5/+35
| | | | | | | | | | | | implemented in usrp2 io impl added async metadata type
| * Merge branch 'master' into tx_reportJosh Blum2010-07-201-10/+8
| |\
| * | usrp2: added registers and handling for tx async reportsJosh Blum2010-07-191-0/+6
| | |
* | | usrp2: moved timeout into bound callback in io_implJosh Blum2010-07-221-5/+3
| |/ |/|
* | uhd: bring timeout parameter to the device::recv call, implement in usrp2Josh Blum2010-07-201-10/+8
|/
* usrp2: removed SX packet count stuff from vrt packet handler, moved to usrp2 ↵Josh Blum2010-07-091-5/+9
| | | | io impl and replaced with Os
* uhd: ssize_t for phony zero copy return types, null sptr for timeout/error ↵Josh Blum2010-07-091-1/+1
| | | | with get managed buffers
* usrp2: use the actual pointer in bind so the sptr is not copiedJosh Blum2010-07-071-2/+2
|
* usrp2: some cleanup and tweaks in io implJosh Blum2010-07-051-41/+76
|
* usrp2: moved calculations for max packet size and otw types into shared ↵Josh Blum2010-07-051-25/+10
| | | | object between device and mboards
* usrp2: split mboard impl into its own class, usrp2 device can instantiate N ↵Josh Blum2010-07-051-57/+56
| | | | mboard impls for mimo setup (works with 1 for now)
* uhd: work vectorizing the vrt packet handler, reworked vrt packet stuff, ↵Josh Blum2010-07-051-9/+23
| | | | needs testing
* uhd: work on thread priority schedulingJosh Blum2010-06-161-0/+2
|
* Replaced the vrt pack and unpack with a pack and unpack for big endian and a ↵Josh Blum2010-06-071-0/+2
| | | | | | pack and unpack for little endian. The vrt handler code was templatized to take the relevant packer/unpacker as an argument.
* usrp2 regs naming conventionJosh Blum2010-06-041-6/+6
|
* Created macros for dealing with pimpls and implemented in code.Josh Blum2010-06-021-1/+1
|
* use smart pointer for io impl, simplify send buffer callbackJosh Blum2010-06-021-10/+2
|
* disable boost thread interrupt when doing pop with timed wait, fixed error ↵Josh Blum2010-06-021-2/+4
| | | | on exit
* Implemented pirate thread, moved io impl details into io impl cpp file. ↵Josh Blum2010-06-011-7/+66
| | | | Fixed bug in bounded buffer push with pop on full.
* Moved the packet handler state stuff into a separate header (so we dont pull ↵Josh Blum2010-06-011-2/+12
| | | | | | in all the includes). Use callback for getting buffers rather than zc interface pointer so its more modular.
* Tweak with the udp and zero-copy transport. Eventually, the caller will hang ↵Josh Blum2010-05-271-1/+1
| | | | onto a ring of managed buffers.
* Added tx timed samples example.Josh Blum2010-05-181-3/+3
| | | | | Added called to device to get max samples per packet. Removed device props that gave max samples per packet.
* Added send and recv modes to the device class and packet handler implementation.Josh Blum2010-05-181-4/+6
|
* Created inline send vrt packer function that also handles fragmentation.Josh Blum2010-05-171-40/+8
|
* work on generic packet handler (got rx working)Josh Blum2010-05-171-89/+6
|
* calculate max samples per packet using otw typeJosh Blum2010-05-171-8/+15
|
* Merge branch 'shrinkfw' into usrp2Josh Blum2010-05-101-6/+16
|\
| * Added reload flag to the stream cmd.Josh Blum2010-04-281-6/+16
| | | | | | | | | | This reloads the last command to handle continuous streaming in hardware. Moved rx control register setup and stream command issuing to the host.
* | fix for first seqno on rx, init the variableJosh Blum2010-05-071-0/+3
|/
* Created a usrp2 interface class with the control, spi, peek/poke functionality.Josh Blum2010-04-131-0/+1
| | | | Its used in all the implementation level code
* merged unit type and gpio bank for dboard interface into one type, expanded ↵Josh Blum2010-04-121-1/+0
| | | | dboard clock config api
* Merge branch 'rfx' of git@ettus.sourcerepo.com:ettus/uhd into ioJosh Blum2010-04-121-2/+5
|\ | | | | | | | | Conflicts: host/lib/usrp/usrp2/io_impl.cpp
| * converted timespec to use nanoseconds for fractional partJosh Blum2010-04-081-4/+7
| |
* | store the mtu and hdr len stuff only in the usrp2 implJosh Blum2010-04-121-4/+5
| |
* | Added data type conversion routines to transport api.Josh Blum2010-04-121-107/+21
| |
* | Created zero copy interface/framework, made use of it in usrp2 udp transport ↵Josh Blum2010-04-121-9/+12
|/ | | | stuff.