diff options
author | Josh Blum | 2010-03-10 14:48:50 -0800 |
---|---|---|
committer | Josh Blum | 2010-03-10 14:48:50 -0800 |
commit | 19d3c0cab37123f8bfd19fdfc576f44b6069300f (patch) | |
tree | 1413206ca21b1d354fe09de1562663d2fb7d30da /gr-uhd/lib/uhd_simple_source.h | |
parent | 6c79d5158ace300038937688bb11309736926214 (diff) | |
download | gnuradio-19d3c0cab37123f8bfd19fdfc576f44b6069300f.tar.gz gnuradio-19d3c0cab37123f8bfd19fdfc576f44b6069300f.tar.bz2 gnuradio-19d3c0cab37123f8bfd19fdfc576f44b6069300f.zip |
Added samp rate param and using the simple device from uhd
Diffstat (limited to 'gr-uhd/lib/uhd_simple_source.h')
-rw-r--r-- | gr-uhd/lib/uhd_simple_source.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gr-uhd/lib/uhd_simple_source.h b/gr-uhd/lib/uhd_simple_source.h index 5d2dafe49..0ddf9d563 100644 --- a/gr-uhd/lib/uhd_simple_source.h +++ b/gr-uhd/lib/uhd_simple_source.h @@ -24,7 +24,7 @@ #define INCLUDED_UHD_SIMPLE_SOURCE_H #include <gr_sync_block.h> -#include <uhd/device.hpp> +#include <uhd/simple_device.hpp> class uhd_simple_source; @@ -33,9 +33,12 @@ uhd_make_simple_source(const std::string &args, const std::string &type); class uhd_simple_source : public gr_sync_block{ public: - uhd_simple_source(const uhd::device_addr_t &addr, const std::string &type); + uhd_simple_source(const std::string &args, const std::string &type); ~uhd_simple_source(void); + void set_samp_rate(double rate); + double get_samp_rate(void); + int work( int noutput_items, gr_vector_const_void_star &input_items, @@ -43,12 +46,10 @@ public: ); protected: - void set_streaming(bool enb); - bool _is_streaming; //shadow for the streaming status - - uhd::device::sptr _dev; + uhd::simple_device::sptr _dev; std::string _type; size_t _sizeof_samp; + bool _is_streaming; }; #endif /* INCLUDED_UHD_SIMPLE_SOURCE_H */ |