From 5724548f5ce1efae1f8a5de218fafcb26fcc97fa Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 16 Jul 2019 16:40:24 -0700 Subject: rfnoc: actions: Add rx_event action type --- host/include/uhd/rfnoc/actions.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/actions.hpp b/host/include/uhd/rfnoc/actions.hpp index 611cb787c..bc681360b 100644 --- a/host/include/uhd/rfnoc/actions.hpp +++ b/host/include/uhd/rfnoc/actions.hpp @@ -8,11 +8,11 @@ #define INCLUDED_LIBUHD_RFNOC_ACTIONS_HPP #include -#include +#include #include +#include #include #include -#include namespace uhd { namespace rfnoc { @@ -58,6 +58,21 @@ private: stream_cmd_action_info(const uhd::stream_cmd_t::stream_mode_t stream_mode); }; +struct UHD_API rx_event_action_info : public action_info +{ +public: + using sptr = std::shared_ptr; + + //! The error code that describes the event + uhd::rx_metadata_t::error_code_t error_code = uhd::rx_metadata_t::ERROR_CODE_NONE; + + //! Factory function + static sptr make(); + +private: + rx_event_action_info(); +}; + }} /* namespace uhd::rfnoc */ #endif /* INCLUDED_LIBUHD_RFNOC_ACTIONS_HPP */ -- cgit v1.2.3