diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-08-21 15:14:39 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:42 -0800 |
commit | 027cf1fe9b484197bc7f2aeb2f1bb588442d0bdc (patch) | |
tree | b94743f513b3e0d5d53241592f1caaa72e2acb56 /host/lib/rfnoc/rfnoc_rx_streamer.cpp | |
parent | 77a5358dd03669366a162d67f9ea11b2056c78b6 (diff) | |
download | uhd-027cf1fe9b484197bc7f2aeb2f1bb588442d0bdc.tar.gz uhd-027cf1fe9b484197bc7f2aeb2f1bb588442d0bdc.tar.bz2 uhd-027cf1fe9b484197bc7f2aeb2f1bb588442d0bdc.zip |
rfnoc: radio/streamer: Handle late commands and burst ACKs
- Burst ACKs are already handled by the TX streamer, but the radio now
also sends an action upstream on reception of a burst ACK
- Late commands were only acquitted by an 'L', now an action gets sent
downstream and is handled in the rx streamer
Diffstat (limited to 'host/lib/rfnoc/rfnoc_rx_streamer.cpp')
-rw-r--r-- | host/lib/rfnoc/rfnoc_rx_streamer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/rfnoc_rx_streamer.cpp b/host/lib/rfnoc/rfnoc_rx_streamer.cpp index 9383e3487..d6778267f 100644 --- a/host/lib/rfnoc/rfnoc_rx_streamer.cpp +++ b/host/lib/rfnoc/rfnoc_rx_streamer.cpp @@ -244,6 +244,10 @@ void rfnoc_rx_streamer::_handle_rx_event_action( // Tell the streamer to flag an overrun to the user after the data that // was buffered prior to the overrun is read. set_stopped_due_to_overrun(); + } else if (rx_event_action->error_code + == uhd::rx_metadata_t::ERROR_CODE_LATE_COMMAND) { + RFNOC_LOG_DEBUG("Received late command message on port " << src.instance); + set_stopped_due_to_late_command(); } } |