diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-11 16:31:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-11 16:31:51 -0700 |
commit | 453b450aa2f40f1ab3689855654fd2167f554ccc (patch) | |
tree | 7a5fd3d4b46734cd708e7881fd375f77528b6806 /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | 37f1f1451f65aace9ca978ac3edcaa31d16e8c0d (diff) | |
download | uhd-453b450aa2f40f1ab3689855654fd2167f554ccc.tar.gz uhd-453b450aa2f40f1ab3689855654fd2167f554ccc.tar.bz2 uhd-453b450aa2f40f1ab3689855654fd2167f554ccc.zip |
usrp2: implemented flow control monitor
set registers in mboard impl to enable asyn fc packets
modified microblaze code to handle dummy data packet offset
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index 6d35e925d..2077b0a50 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -84,7 +84,8 @@ public: usrp2_mboard_impl( size_t index, uhd::transport::udp_simple::sptr, - size_t recv_frame_size + size_t recv_samps_per_packet, + size_t send_bytes_per_packet ); ~usrp2_mboard_impl(void); @@ -95,7 +96,7 @@ public: private: size_t _index; int _rev_hi, _rev_lo; - const size_t _recv_frame_size; + const size_t _recv_samps_per_packet; //properties for this mboard void get(const wax::obj &, wax::obj &); @@ -171,6 +172,8 @@ private: */ class usrp2_impl : public uhd::device{ public: + static const size_t sram_bytes = size_t(1 << 20); + /*! * Create a new usrp2 impl base. * \param ctrl_transports the udp transports for control |