diff options
author | Josh Blum <josh@joshknows.com> | 2011-12-05 13:04:23 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-12-05 13:04:23 -0800 |
commit | 40c637bfb723be607800f67a3115aa1eee31f9d7 (patch) | |
tree | 212c41e164bb53f3468042f8fbf4569ce6009683 /host/include | |
parent | 07c9d41014e7e8003b2e642c0e6b7c3ac5ad6cfb (diff) | |
download | uhd-40c637bfb723be607800f67a3115aa1eee31f9d7.tar.gz uhd-40c637bfb723be607800f67a3115aa1eee31f9d7.tar.bz2 uhd-40c637bfb723be607800f67a3115aa1eee31f9d7.zip |
uhd: work with stream clearing
dont clear when using the compat device API
tx clear also resets expected seqnum
tx clear on usrp2 resets flow control monitor
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/device_deprecated.ipp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/uhd/device_deprecated.ipp b/host/include/uhd/device_deprecated.ipp index 698a8a508..0ee1cd706 100644 --- a/host/include/uhd/device_deprecated.ipp +++ b/host/include/uhd/device_deprecated.ipp @@ -85,6 +85,7 @@ size_t send( stream_args_t args; args.cpu_format = (_send_tid == io_type_t::COMPLEX_FLOAT32)? "fc32" : "sc16"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; for (size_t ch = 0; ch < buffs.size(); ch++) args.channels.push_back(ch); //linear mapping _tx_streamer = get_tx_stream(args); @@ -140,6 +141,7 @@ size_t recv( stream_args_t args; args.cpu_format = (_recv_tid == io_type_t::COMPLEX_FLOAT32)? "fc32" : "sc16"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; for (size_t ch = 0; ch < buffs.size(); ch++) args.channels.push_back(ch); //linear mapping _rx_streamer = get_rx_stream(args); @@ -159,6 +161,7 @@ size_t get_max_send_samps_per_packet(void){ stream_args_t args; args.cpu_format = "fc32"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; _tx_streamer = get_tx_stream(args); _send_tid = io_type_t::COMPLEX_FLOAT32; } @@ -174,6 +177,7 @@ size_t get_max_recv_samps_per_packet(void){ stream_args_t args; args.cpu_format = "fc32"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; _rx_streamer = get_rx_stream(args); _recv_tid = io_type_t::COMPLEX_FLOAT32; } |