1 #ifndef SSP21_ILOWERLAYER_H 2 #define SSP21_ILOWERLAYER_H 8 #include "ssp21/util/SequenceTypes.h" 51 if (this->upper_is_processing_rx_data)
54 this->upper_is_processing_rx_data =
false;
59 if (ret.is_not_empty())
61 this->upper_is_processing_rx_data =
true;
95 this->upper_is_processing_rx_data =
false;
104 return upper_is_processing_rx_data;
108 bool upper_is_processing_rx_data =
false;
SSP21-cpp main namespace.
virtual bool start_tx_from_upper(const seq32_t &data)=0
Start an asynchronous TX operation.
virtual seq32_t start_rx_from_upper_impl()=0
Start reading data.
seq32_t start_rx_from_upper()
Called by the IUpperLayer when it's ready to receive the next chunk of data.
virtual void discard_rx_data()=0
Called when a previous ILowerLayer::start_rx_from_upper() operation completes.
Performs asynchronous RX/TX operations on behalf of an IUpperLayer.
bool is_upper_processing_rx() const
Check if the upper layer is waiting for RX data.
virtual bool is_tx_ready() const =0
Check if the layer is ready to transmit data.
void reset_this_lower_layer()
Reset the layer.