summaryrefslogtreecommitdiff
path: root/gr-vrt/src/vrt_quadradio_source_32fc.cc
diff options
context:
space:
mode:
authorJosh Blum2009-09-22 11:17:29 -0700
committerJosh Blum2009-09-22 11:17:29 -0700
commit77ad7e778d668a2bddc9bf431088b586707bd279 (patch)
treead79affadb05db90688fcd949749b4d68bebd371 /gr-vrt/src/vrt_quadradio_source_32fc.cc
parent7d8dd5e122e0201d96410eec6549b903881f8b3a (diff)
downloadgnuradio-77ad7e778d668a2bddc9bf431088b586707bd279.tar.gz
gnuradio-77ad7e778d668a2bddc9bf431088b586707bd279.tar.bz2
gnuradio-77ad7e778d668a2bddc9bf431088b586707bd279.zip
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.cc20
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..03d75c78d 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