aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-18 14:26:43 -0700
committerJosh Blum <josh@joshknows.com>2010-05-18 14:26:43 -0700
commit17c494b79a99d947a150cdbc582ba331aeb57786 (patch)
treeee1f4533f5baeffa1b0af3853b8fdfe19c3a69d8 /host/lib/usrp/usrp2/io_impl.cpp
parenteaa1508dcf6ff32496838f593ba4eb9eb1aee2ff (diff)
downloaduhd-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/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 485cc2bd9..b6ab919e7 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -48,8 +48,8 @@ void usrp2_impl::io_init(void){
send_buff->done(sizeof(data));
//setup RX DSP regs
- std::cout << "RX samples per packet: " << max_rx_samps_per_packet() << std::endl;
- _iface->poke32(FR_RX_CTRL_NSAMPS_PER_PKT, max_rx_samps_per_packet());
+ std::cout << "RX samples per packet: " << get_max_recv_samps_per_packet() << std::endl;
+ _iface->poke32(FR_RX_CTRL_NSAMPS_PER_PKT, get_max_recv_samps_per_packet());
_iface->poke32(FR_RX_CTRL_NCHANNELS, 1);
_iface->poke32(FR_RX_CTRL_CLEAR_OVERRUN, 1); //reset
_iface->poke32(FR_RX_CTRL_VRT_HEADER, 0
@@ -77,7 +77,7 @@ size_t usrp2_impl::send(
io_type, _tx_otw_type, //input and output types to convert
get_master_clock_freq(), //master clock tick rate
_data_transport, //zero copy interface
- max_tx_samps_per_packet()
+ get_max_send_samps_per_packet()
);
}