diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-25 18:36:16 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-25 18:36:16 -0700 |
commit | af586ae149fe6f7aa12d4d6766e4216f3f00d1c0 (patch) | |
tree | 4edc587df783b521c0d900d8785ab05296c6efe3 /host/lib/usrp/usrp2/io_impl.cpp | |
parent | 7d195aa792037f0b5bce5085fb2db3512b479575 (diff) | |
download | uhd-af586ae149fe6f7aa12d4d6766e4216f3f00d1c0.tar.gz uhd-af586ae149fe6f7aa12d4d6766e4216f3f00d1c0.tar.bz2 uhd-af586ae149fe6f7aa12d4d6766e4216f3f00d1c0.zip |
Overhaullllllled the way we do streaming. There is an odd bug where
a zero length command (now, no chain) used to stop the streaming.
Now it seems to do the reverse... must investigate.
Made all clock configuration into enums. The strings were painful
and there cant be that many variations that enums cant cover them.
The enums will make more sense to developers than mystery strings.
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index df0736863..280f124d2 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -41,8 +41,12 @@ void usrp2_impl::io_init(void){ _rx_copy_buff = asio::buffer("", 0); //send a small data packet so the usrp2 knows the udp source port - boost::uint32_t zero_data = 0; - _data_transport->send(asio::buffer(&zero_data, sizeof(zero_data))); + //and the maximum number of lines (32 bit words) per packet + boost::uint32_t data[2] = { + htonl(USRP2_INVALID_VRT_HEADER), + htonl(_max_rx_samples_per_packet) + }; + _data_transport->send(asio::buffer(&data, sizeof(data))); } #define unrolled_loop(__inst, __len){ \ |