aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-09-11 17:41:21 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:46 -0800
commit67dbaa41f21fb8610444fd8a61b14af78a4ce48c (patch)
tree060eb3cc2cdabdb63a5b394f5239ec761a2816e6 /host/lib/include/uhdlib
parent96dd8f437ec88f3c60e7273d0880347239a91426 (diff)
downloaduhd-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/include/uhdlib')
-rw-r--r--host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
index b3ef2db0b..72ed39824 100644
--- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
+++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
@@ -39,6 +39,8 @@ public:
*************************************************************************/
void issue_stream_cmd(const uhd::stream_cmd_t& stream_cmd, const size_t port);
+ void enable_rx_timestamps(const bool enable, const size_t chan);
+
/**************************************************************************
* Rate-Related API Calls
*************************************************************************/
@@ -211,7 +213,8 @@ public:
static const uint32_t REG_RX_ERR_REM_PORT = 0x30; // Remote port ID for error reporting
static const uint32_t REG_RX_ERR_REM_EPID = 0x34; // Remote EPID (endpoint ID) for error reporting
static const uint32_t REG_RX_ERR_ADDR = 0x38; // Offset to which to write error code (ADDR+0) and time (ADDR+8)
- static const uint32_t REG_RX_DATA = 0x3C;
+ static const uint32_t REG_RX_DATA = 0x3C;
+ static const uint32_t REG_RX_HAS_TIME = 0x70; // Set to one if radio output packets should have timestamps
// TX Control Registers
static const uint32_t REG_TX_IDLE_VALUE = 0x40; // Value to output when transmitter is idle