diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-09-11 17:41:21 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:46 -0800 |
commit | 67dbaa41f21fb8610444fd8a61b14af78a4ce48c (patch) | |
tree | 060eb3cc2cdabdb63a5b394f5239ec761a2816e6 /host/lib/rfnoc | |
parent | 96dd8f437ec88f3c60e7273d0880347239a91426 (diff) | |
download | uhd-67dbaa41f21fb8610444fd8a61b14af78a4ce48c.tar.gz uhd-67dbaa41f21fb8610444fd8a61b14af78a4ce48c.tar.bz2 uhd-67dbaa41f21fb8610444fd8a61b14af78a4ce48c.zip |
rfnoc: radio: Add API call to disable timestamps
By calling radio_control::enable_rx_timestamps(false, chan), the radio
will not add timestamps to outgoing packets.
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/radio_control_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp index 758f9be6c..4d03708bf 100644 --- a/host/lib/rfnoc/radio_control_impl.cpp +++ b/host/lib/rfnoc/radio_control_impl.cpp @@ -832,6 +832,11 @@ void radio_control_impl::issue_stream_cmd( regs().poke32(get_addr(regmap::REG_RX_CMD, chan), cmd_word); } +void radio_control_impl::enable_rx_timestamps(const bool enable, const size_t chan) +{ + regs().poke32(get_addr(regmap::REG_RX_HAS_TIME, chan), enable ? 0x1 : 0x0); +} + /****************************************************************************** * Private methods *****************************************************************************/ |