diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-07 10:27:30 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-07 10:27:30 -0700 |
commit | be6a6b291400dde7b2b3b935e2eedd8d892e54f8 (patch) | |
tree | 2f7a77b718f78c13121cc6ab314938ae2dcc2ef9 /host/lib/usrp/usrp_e/usrp_e_impl.hpp | |
parent | 86b021e48031f2bc6e99c7c5d2d626ea149dec70 (diff) | |
download | uhd-be6a6b291400dde7b2b3b935e2eedd8d892e54f8.tar.gz uhd-be6a6b291400dde7b2b3b935e2eedd8d892e54f8.tar.bz2 uhd-be6a6b291400dde7b2b3b935e2eedd8d892e54f8.zip |
usrp-e: use frame size to calculate the max samples per packet
Diffstat (limited to 'host/lib/usrp/usrp_e/usrp_e_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp_e/usrp_e_impl.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e/usrp_e_impl.hpp b/host/lib/usrp/usrp_e/usrp_e_impl.hpp index 49912050e..95d80fed5 100644 --- a/host/lib/usrp/usrp_e/usrp_e_impl.hpp +++ b/host/lib/usrp/usrp_e/usrp_e_impl.hpp @@ -22,6 +22,7 @@ #include <uhd/utils/pimpl.hpp> #include <uhd/usrp/subdev_spec.hpp> #include <uhd/usrp/dboard_eeprom.hpp> +#include <uhd/types/otw_type.hpp> #include <uhd/types/clock_config.hpp> #include <uhd/types/stream_cmd.hpp> #include <uhd/usrp/dboard_manager.hpp> @@ -85,8 +86,8 @@ public: size_t send(const std::vector<const void *> &, size_t, const uhd::tx_metadata_t &, const uhd::io_type_t &, send_mode_t, double); size_t recv(const std::vector<void *> &, size_t, uhd::rx_metadata_t &, const uhd::io_type_t &, recv_mode_t, double); bool recv_async_msg(uhd::async_metadata_t &, double); - size_t get_max_send_samps_per_packet(void) const{return 503;} - size_t get_max_recv_samps_per_packet(void) const{return 503;} + size_t get_max_send_samps_per_packet(void) const; + size_t get_max_recv_samps_per_packet(void) const; private: //interface to ioctls and file descriptor @@ -97,6 +98,7 @@ private: //handle io stuff UHD_PIMPL_DECL(io_impl) _io_impl; + uhd::otw_type_t _send_otw_type, _recv_otw_type; void io_init(void); void issue_stream_cmd(const uhd::stream_cmd_t &stream_cmd); void handle_overrun(size_t); |