aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-07-16 16:40:24 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:31 -0800
commit5724548f5ce1efae1f8a5de218fafcb26fcc97fa (patch)
tree874669cac8c752f36841b2772599a241b8efa63e /host/lib
parent080f406977cdd91ab8d7998cf79fc2be6339f8c7 (diff)
downloaduhd-5724548f5ce1efae1f8a5de218fafcb26fcc97fa.tar.gz
uhd-5724548f5ce1efae1f8a5de218fafcb26fcc97fa.tar.bz2
uhd-5724548f5ce1efae1f8a5de218fafcb26fcc97fa.zip
rfnoc: actions: Add rx_event action type
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/rfnoc/actions.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/host/lib/rfnoc/actions.cpp b/host/lib/rfnoc/actions.cpp
index 428a1fcb2..c441c52b3 100644
--- a/host/lib/rfnoc/actions.cpp
+++ b/host/lib/rfnoc/actions.cpp
@@ -5,6 +5,7 @@
//
#include <uhd/rfnoc/actions.hpp>
+#include <uhd/rfnoc/defaults.hpp>
#include <atomic>
using namespace uhd::rfnoc;
@@ -30,6 +31,7 @@ action_info::sptr action_info::make(const std::string& key)
return sptr(new action_info(key));
}
+/*** Stream Command Action Info **********************************************/
stream_cmd_action_info::stream_cmd_action_info(
const uhd::stream_cmd_t::stream_mode_t stream_mode)
: action_info(ACTION_KEY_STREAM_CMD), stream_cmd(stream_mode)
@@ -40,6 +42,19 @@ stream_cmd_action_info::stream_cmd_action_info(
stream_cmd_action_info::sptr stream_cmd_action_info::make(
const uhd::stream_cmd_t::stream_mode_t stream_mode)
{
- //return std::make_shared<action_info>(ACTION_KEY_STREAM_CMD);
return sptr(new stream_cmd_action_info(stream_mode));
}
+
+/*** RX Metadata Action Info *************************************************/
+rx_event_action_info::rx_event_action_info() : action_info(ACTION_KEY_RX_EVENT)
+{
+ // nop
+}
+
+rx_event_action_info::sptr rx_event_action_info::make()
+{
+ struct rx_event_action_info_make_shared : public rx_event_action_info
+ {
+ };
+ return std::make_shared<rx_event_action_info_make_shared>();
+}