From 67dbaa41f21fb8610444fd8a61b14af78a4ce48c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 11 Sep 2019 17:41:21 -0700 Subject: 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. --- host/lib/rfnoc/radio_control_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/rfnoc/radio_control_impl.cpp') 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 *****************************************************************************/ -- cgit v1.2.3