diff options
author | Balint Seeber <balint@ettus.com> | 2014-02-13 15:26:54 -0800 |
---|---|---|
committer | Balint Seeber <balint@ettus.com> | 2014-02-14 15:40:30 -0800 |
commit | 383128e2c9c3539e1bc8de7d13a894f50fc9719a (patch) | |
tree | 9b2a5c5603e2c781bcae6e3edbd4d8408cae951a /host/lib/usrp/b200/b200_impl.hpp | |
parent | 7fef199d194c9a63b3312845979fa353f90f4d23 (diff) | |
download | uhd-383128e2c9c3539e1bc8de7d13a894f50fc9719a.tar.gz uhd-383128e2c9c3539e1bc8de7d13a894f50fc9719a.tar.bz2 uhd-383128e2c9c3539e1bc8de7d13a894f50fc9719a.zip |
b200: throw exception when master clock rate (tick rate) is requested to be > max for certain # of channels (i.e. restrict to 30.72MHz for MIMO)
Also includes sscanf type fix in b200_impl and longer timeout for AD9361 read
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.hpp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/host/lib/usrp/b200/b200_impl.hpp b/host/lib/usrp/b200/b200_impl.hpp index c88d14ad5..fb65cb806 100644 --- a/host/lib/usrp/b200/b200_impl.hpp +++ b/host/lib/usrp/b200/b200_impl.hpp @@ -91,6 +91,7 @@ public: uhd::rx_streamer::sptr get_rx_stream(const uhd::stream_args_t &args); uhd::tx_streamer::sptr get_tx_stream(const uhd::stream_args_t &args); bool recv_async_msg(uhd::async_metadata_t &, double); + void check_streamer_args(const uhd::stream_args_t &args, double tick_rate, const char* direction = NULL); private: //controllers @@ -174,13 +175,15 @@ private: void update_enables(void); void update_atrs(void); - void update_tick_rate(const double); - void update_rx_samp_rate(const size_t, const double); - void update_tx_samp_rate(const size_t, const double); - double _tick_rate; double get_tick_rate(void){return _tick_rate;} double set_tick_rate(const double rate); + void update_tick_rate(const double); + void enforce_tick_rate_limits(size_t chan_count, double tick_rate, const char* direction = NULL); + void check_tick_rate_with_current_streamers(double rate); + + void update_rx_samp_rate(const size_t, const double); + void update_tx_samp_rate(const size_t, const double); }; #endif /* INCLUDED_B200_IMPL_HPP */ |