From 027cf1fe9b484197bc7f2aeb2f1bb588442d0bdc Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 21 Aug 2019 15:14:39 -0700 Subject: 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 --- host/lib/rfnoc/rfnoc_rx_streamer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/rfnoc/rfnoc_rx_streamer.cpp') 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(); } } -- cgit v1.2.3