diff options
author | Johnathan Corgan | 2009-10-21 14:20:15 -0700 |
---|---|---|
committer | Johnathan Corgan | 2009-10-21 14:20:15 -0700 |
commit | 8e003a402af2993f978620741fdf195ac9bf7834 (patch) | |
tree | 17bc885b8e32b3b29f78d9ae0817c88c581d87f2 /gr-vrt/src/vrt_quadradio_source_32fc.cc | |
parent | 3f60c94858810b605c2f8a343375c57c78a660dc (diff) | |
parent | 2875cf23fcb5d38866a42327cafa2b43abe2fbf4 (diff) | |
download | gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.tar.gz gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.tar.bz2 gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.zip |
Merge branch 'vrt' of http://gnuradio.org/git/jblum
Merge fix: added GRUEL_INCLUDES to vrt Makefile
Merge fix: added missing include in gr-vrt
* 'vrt' of http://gnuradio.org/git/jblum:
query the model number from the host
fix so all handlers get called on event
simplfied the code while i was looking at it
added access methods for gps stuff
added access methods and parsing for caldiv if context
use existing utility method
reading the lo back and storing it
use the new htonll and vrt types to send cal and lo freqs
checking for if context packets and setting up the payload pointer and size
Reading 64 bit freq out of chunk of context packet.
copied over vrt context and type headers, updated bits.h as well
Dump IF-Context packets in hex.
use gruel/inet.h instead of arap/inet.h
fix white space
made rxdspno a parameter for: start/stop streaming, and quadradio32fc
Diffstat (limited to 'gr-vrt/src/vrt_quadradio_source_32fc.cc')
-rw-r--r-- | gr-vrt/src/vrt_quadradio_source_32fc.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.cc b/gr-vrt/src/vrt_quadradio_source_32fc.cc index 0aac86991..cd779bdf5 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.cc +++ b/gr-vrt/src/vrt_quadradio_source_32fc.cc @@ -29,25 +29,29 @@ vrt_quadradio_source_32fc_sptr vrt_make_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize, - size_t samples_per_pkt) + size_t samples_per_pkt, + int rxdspno) { return gnuradio::get_initial_sptr(new vrt_quadradio_source_32fc(ip, rx_bufsize, - samples_per_pkt)); + samples_per_pkt, + rxdspno)); } vrt_quadradio_source_32fc::vrt_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize, - size_t samples_per_pkt) + size_t samples_per_pkt, + int rxdspno) : vrt_source_32fc("quadradio_source_32fc"), - d_samples_per_pkt(samples_per_pkt == 0 ? 800 : samples_per_pkt), - d_qr(vrt::quadradio::sptr(new vrt::quadradio(ip, rx_bufsize))) + d_samples_per_pkt(samples_per_pkt == 0 ? (rxdspno == 0 ? 800 : 200) : samples_per_pkt), + d_qr(vrt::quadradio::sptr(new vrt::quadradio(ip, rx_bufsize))), + d_rxdspno(rxdspno) { } vrt_quadradio_source_32fc::~vrt_quadradio_source_32fc() { - d_qr->stop_streaming(); + d_qr->stop_streaming(d_rxdspno); } vrt::rx::sptr @@ -64,13 +68,13 @@ vrt_quadradio_source_32fc::start() vrt_rx()->rx_packets(&nop, true); d_checker.resync(); - return d_qr->start_streaming(d_samples_per_pkt); + return d_qr->start_streaming(d_rxdspno, d_samples_per_pkt); } bool vrt_quadradio_source_32fc::stop() { - return d_qr->stop_streaming(); + return d_qr->stop_streaming(d_rxdspno); } bool |