aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-08-03 09:10:48 -0700
committerMartin Braun <martin.braun@ettus.com>2018-09-14 22:15:56 -0700
commit29f896182a6b9d2b6831dfcc0b22711f05fde0c2 (patch)
treeebc0e0bbbf54d54cf6bc37b3067229073b2c1e4d /host/lib/rfnoc
parente16e046d436e10bf1b3f268371e62c23bc5bfa98 (diff)
downloaduhd-29f896182a6b9d2b6831dfcc0b22711f05fde0c2.tar.gz
uhd-29f896182a6b9d2b6831dfcc0b22711f05fde0c2.tar.bz2
uhd-29f896182a6b9d2b6831dfcc0b22711f05fde0c2.zip
radio_ctrl: add disable time stamp
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r--host/lib/rfnoc/radio_ctrl_impl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp
index 2479d889a..66040f67c 100644
--- a/host/lib/rfnoc/radio_ctrl_impl.cpp
+++ b/host/lib/rfnoc/radio_ctrl_impl.cpp
@@ -343,6 +343,14 @@ double radio_ctrl_impl::get_tx_lo_freq(
return get_tx_frequency(chan);
}
+void radio_ctrl_impl::enable_rx_timestamps(const bool enable, const size_t chan)
+{
+ const uint32_t output_format = 0
+ | (enable ? 0x01 : 0x00)
+ ;
+ sr_write(regs::RX_CTRL_OUTPUT_FORMAT, output_format, chan);
+}
+
/***********************************************************************
* RX Streamer-related methods (from source_block_ctrl_base)
**********************************************************************/