diff options
author | Josh Blum <josh@joshknows.com> | 2011-05-14 19:57:03 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-05-14 19:57:03 -0700 |
commit | f991d3dc751e110425d4a0eed722f6de0fef4261 (patch) | |
tree | d147596eba8d16294d4131dec2f66ca5c653f37a /host/lib/usrp/usrp1/usrp1_ctrl.hpp | |
parent | 29a0c916dfdc2f960761c1bebcccc53478abd30c (diff) | |
download | uhd-f991d3dc751e110425d4a0eed722f6de0fef4261.tar.gz uhd-f991d3dc751e110425d4a0eed722f6de0fef4261.tar.bz2 uhd-f991d3dc751e110425d4a0eed722f6de0fef4261.zip |
usrp1: apply conditional disables/enables to rx and tx
Scapped the old gnuradio code for information about VRQ_FPGA_SET_XX_ENABLE.
It turns out that we should disabled + restore state when changing muxes or rates.
The USRP seems to stream properly when receiving single and dual channel.
Prior to this commit, tx was accicentally always disabled from a few commits ago.
Diffstat (limited to 'host/lib/usrp/usrp1/usrp1_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/usrp1/usrp1_ctrl.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_ctrl.hpp b/host/lib/usrp/usrp1/usrp1_ctrl.hpp index 970ca2951..a6e4ffba7 100644 --- a/host/lib/usrp/usrp1/usrp1_ctrl.hpp +++ b/host/lib/usrp/usrp1/usrp1_ctrl.hpp @@ -108,6 +108,11 @@ public: unsigned char *buf, boost::uint16_t len) = 0; + //! enable/disable the rx path + virtual void usrp_rx_enable(bool on) = 0; + + //! enable/disable the tx path + virtual void usrp_tx_enable(bool on) = 0; }; #endif /* INCLUDED_USRP_CTRL_HPP */ |