aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/actions.hpp22
-rw-r--r--host/include/uhd/rfnoc/defaults.hpp3
2 files changed, 23 insertions, 2 deletions
diff --git a/host/include/uhd/rfnoc/actions.hpp b/host/include/uhd/rfnoc/actions.hpp
index b713bbed3..7326cfd6d 100644
--- a/host/include/uhd/rfnoc/actions.hpp
+++ b/host/include/uhd/rfnoc/actions.hpp
@@ -78,7 +78,27 @@ private:
rx_event_action_info();
};
+struct UHD_API tx_event_action_info : public action_info
+{
+public:
+ using sptr = std::shared_ptr<tx_event_action_info>;
+
+ //! The event code that describes the event
+ uhd::async_metadata_t::event_code_t event_code;
+
+ //! Has time specification?
+ bool has_tsf;
+
+ //! When the async event occurred
+ uint64_t tsf;
+
+ //! Factory function
+ static sptr make(uhd::async_metadata_t::event_code_t event_code);
+
+protected:
+ tx_event_action_info(uhd::async_metadata_t::event_code_t event_code);
+};
+
}} /* namespace uhd::rfnoc */
#endif /* INCLUDED_LIBUHD_RFNOC_ACTIONS_HPP */
-
diff --git a/host/include/uhd/rfnoc/defaults.hpp b/host/include/uhd/rfnoc/defaults.hpp
index 008847091..efc774467 100644
--- a/host/include/uhd/rfnoc/defaults.hpp
+++ b/host/include/uhd/rfnoc/defaults.hpp
@@ -32,11 +32,12 @@ static const io_type_t IO_TYPE_SC16 = "sc16";
static const std::string ACTION_KEY_STREAM_CMD("stream_cmd");
static const std::string ACTION_KEY_RX_EVENT("rx_event");
static const std::string ACTION_KEY_RX_RESTART_REQ("restart_request");
+static const std::string ACTION_KEY_TX_EVENT("tx_event");
//! If the block name can't be automatically detected, this name is used
static const std::string DEFAULT_BLOCK_NAME = "Block";
//! This NOC-ID is used to look up the default block
-static const uint32_t DEFAULT_NOC_ID = 0xFFFFFFFF;
+static const uint32_t DEFAULT_NOC_ID = 0xFFFFFFFF;
static const double DEFAULT_TICK_RATE = 1.0;
// Whenever we need a default spp value use this, unless there are some
// block/device-specific constraints. It will keep the frame size below 1500.