diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-14 22:32:54 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-14 22:32:54 +0000 |
commit | ec451d811c335af672d7a8ffbcfd3d0a1a645b2b (patch) | |
tree | 06b84003704fcd3e930ccb27c0e9fa432d653ce4 /host/lib/usrp/usrp_e/io_impl.cpp | |
parent | 617488fd6a4f6a2efa0c966a07d6ac1b6201c3aa (diff) | |
download | uhd-ec451d811c335af672d7a8ffbcfd3d0a1a645b2b.tar.gz uhd-ec451d811c335af672d7a8ffbcfd3d0a1a645b2b.tar.bz2 uhd-ec451d811c335af672d7a8ffbcfd3d0a1a645b2b.zip |
file option for rx timed samples, misc fixes
Diffstat (limited to 'host/lib/usrp/usrp_e/io_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp_e/io_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e/io_impl.cpp b/host/lib/usrp/usrp_e/io_impl.cpp index a94275b78..e1c1fe80b 100644 --- a/host/lib/usrp/usrp_e/io_impl.cpp +++ b/host/lib/usrp/usrp_e/io_impl.cpp @@ -107,7 +107,7 @@ struct usrp_e_impl::io_impl{ void usrp_e_impl::io_init(void){ //setup rx data path - _iface->poke32(UE_REG_CTRL_RX_NSAMPS_PER_PKT, 300); //FIXME magic number + _iface->poke32(UE_REG_CTRL_RX_NSAMPS_PER_PKT, get_max_recv_samps_per_packet()); _iface->poke32(UE_REG_CTRL_RX_NCHANNELS, 1); _iface->poke32(UE_REG_CTRL_RX_CLEAR_OVERRUN, 1); //reset _iface->poke32(UE_REG_CTRL_RX_VRT_HEADER, 0 @@ -168,7 +168,7 @@ size_t usrp_e_impl::send( MASTER_CLOCK_RATE, uhd::transport::vrt::pack_le, boost::bind(&data_transport::get_send_buff, &_io_impl->transport), - (MAX_BUFF_SIZE - sizeof(usrp_transfer_frame))/send_otw_type.get_sample_size(), + get_max_send_samps_per_packet(), vrt_header_offset_words32 ); } |