diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-14 17:34:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-17 18:19:39 -0700 |
commit | e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a (patch) | |
tree | ddcba8005b04454f6efcac9c8312cdc6b450eef0 /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | 1db016bc6503cdca76025f131773e550bd895d48 (diff) | |
download | uhd-e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a.tar.gz uhd-e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a.tar.bz2 uhd-e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a.zip |
usrp2: enlarged the i2c transaction size, rev-ed the firmware protocol number, added constants for packet sizes
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index ccc09003e..2126b9565 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -141,15 +141,13 @@ private: /******************************************************************* * Deal with the rx and tx packet sizes ******************************************************************/ - static const size_t _mtu = 1500; //FIXME we have no idea - static const size_t _hdrs = (2 + 14 + 20 + 8); //size of headers (pad, eth, ip, udp) static const size_t _max_rx_bytes_per_packet = - _mtu - _hdrs - + USRP2_UDP_BYTES - USRP2_HOST_RX_VRT_HEADER_WORDS32*sizeof(boost::uint32_t) - USRP2_HOST_RX_VRT_TRAILER_WORDS32*sizeof(boost::uint32_t) ; static const size_t _max_tx_bytes_per_packet = - _mtu - _hdrs - + USRP2_UDP_BYTES - uhd::transport::vrt::max_header_words32*sizeof(boost::uint32_t) ; |