diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-18 14:26:43 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-18 14:26:43 -0700 |
commit | 17c494b79a99d947a150cdbc582ba331aeb57786 (patch) | |
tree | ee1f4533f5baeffa1b0af3853b8fdfe19c3a69d8 /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | eaa1508dcf6ff32496838f593ba4eb9eb1aee2ff (diff) | |
download | uhd-17c494b79a99d947a150cdbc582ba331aeb57786.tar.gz uhd-17c494b79a99d947a150cdbc582ba331aeb57786.tar.bz2 uhd-17c494b79a99d947a150cdbc582ba331aeb57786.zip |
Added tx timed samples example.
Added called to device to get max samples per packet.
Removed device props that gave max samples per packet.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index ad674f594..afea9683c 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -104,12 +104,18 @@ public: ~usrp2_impl(void); //the io interface + size_t get_max_send_samps_per_packet(void) const{ + return _max_tx_bytes_per_packet/_tx_otw_type.get_sample_size(); + } size_t send( const boost::asio::const_buffer &, const uhd::tx_metadata_t &, const uhd::io_type_t &, uhd::device::send_mode_t ); + size_t get_max_recv_samps_per_packet(void) const{ + return _max_rx_bytes_per_packet/_rx_otw_type.get_sample_size(); + } size_t recv( const boost::asio::mutable_buffer &, uhd::rx_metadata_t &, @@ -146,12 +152,6 @@ private: _mtu - _hdrs - uhd::transport::vrt::max_header_words32*sizeof(boost::uint32_t) ; - size_t max_rx_samps_per_packet(void){ - return _max_rx_bytes_per_packet/_rx_otw_type.get_sample_size(); - } - size_t max_tx_samps_per_packet(void){ - return _max_tx_bytes_per_packet/_tx_otw_type.get_sample_size(); - } vrt_packet_handler::recv_state _packet_handler_recv_state; vrt_packet_handler::send_state _packet_handler_send_state; |