diff options
author | Ciro Nishiguchi <ciro.nishiguchi@ni.com> | 2019-08-08 10:25:20 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:36 -0800 |
commit | bffef674fbbcd892967017e81515bb76e0b850b5 (patch) | |
tree | 8f56eb8548d0fb56094b555ae11d16eb61e6c381 /host/lib/rfnoc/actions.cpp | |
parent | 91e01c484475600fcd659bb433ab86efa5146426 (diff) | |
download | uhd-bffef674fbbcd892967017e81515bb76e0b850b5.tar.gz uhd-bffef674fbbcd892967017e81515bb76e0b850b5.tar.bz2 uhd-bffef674fbbcd892967017e81515bb76e0b850b5.zip |
rfnoc: tx_streamer: add support for async messages
Add an async message queue that aggregates errors from multiple sources.
Errors can come from the strs packets originating from the stream
endpoint or from the radio block through control packets to the host.
Diffstat (limited to 'host/lib/rfnoc/actions.cpp')
-rw-r--r-- | host/lib/rfnoc/actions.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/host/lib/rfnoc/actions.cpp b/host/lib/rfnoc/actions.cpp index d4ed4559f..4de05b304 100644 --- a/host/lib/rfnoc/actions.cpp +++ b/host/lib/rfnoc/actions.cpp @@ -63,3 +63,23 @@ rx_event_action_info::sptr rx_event_action_info::make() }; return std::make_shared<rx_event_action_info_make_shared>(); } + +/*** TX Metadata Action Info *************************************************/ +tx_event_action_info::tx_event_action_info( + uhd::async_metadata_t::event_code_t event_code_) + : action_info(ACTION_KEY_TX_EVENT), event_code(event_code_) +{ +} + +tx_event_action_info::sptr tx_event_action_info::make( + uhd::async_metadata_t::event_code_t event_code) +{ + struct tx_event_action_info_make_shared : public tx_event_action_info + { + tx_event_action_info_make_shared(uhd::async_metadata_t::event_code_t event_code) + : tx_event_action_info(event_code) + { + } + }; + return std::make_shared<tx_event_action_info_make_shared>(event_code); +} |