1 #ifndef SSP21_IUPPERLAYER_H 2 #define SSP21_IUPPERLAYER_H 28 if (this->is_open_flag)
34 this->is_open_flag =
true;
48 if (this->is_open_flag)
50 this->is_open_flag =
false;
68 if (this->is_open_flag)
87 if (this->is_open_flag)
137 bool is_open_flag =
false;
SSP21-cpp main namespace.
bool on_lower_close()
Close the layer if it was open.
bool on_lower_tx_ready()
Called by the ILowerLayer when it's ready to transmit data.
virtual void on_lower_open_impl()=0
Open the layer.
bool on_lower_rx_ready()
Called by the ILowerLayer when new data is available.
virtual void on_lower_close_impl()=0
Close the layer.
bool is_open() const
Check if layer is currently open.
virtual void on_lower_tx_ready_impl()=0
Callback when ILowerLayer is ready to transmit data.
Performs asynchronous RX/TX operations on behalf of an ILowerLayer.
virtual void on_lower_rx_ready_impl()=0
Callback when ILowerLayer received data.
bool on_lower_open()
Open the layer if it was closed.