![]() |
SSP21-CPP
|
Performs asynchronous RX/TX operations on behalf of an ILowerLayer. More...
#include <ssp21/stack/IUpperLayer.h>
Public Member Functions | |
bool | on_lower_open () |
Open the layer if it was closed. More... | |
bool | on_lower_close () |
Close the layer if it was open. More... | |
bool | on_lower_tx_ready () |
Called by the ILowerLayer when it's ready to transmit data. More... | |
bool | on_lower_rx_ready () |
Called by the ILowerLayer when new data is available. More... | |
bool | is_open () const |
Check if layer is currently open. More... | |
Protected Member Functions | |
virtual void | on_lower_open_impl ()=0 |
Open the layer. More... | |
virtual void | on_lower_close_impl ()=0 |
Close the layer. More... | |
virtual void | on_lower_tx_ready_impl ()=0 |
Callback when ILowerLayer is ready to transmit data. More... | |
virtual void | on_lower_rx_ready_impl ()=0 |
Callback when ILowerLayer received data. More... | |
Performs asynchronous RX/TX operations on behalf of an ILowerLayer.
This class is used by IStack. User of the library must implement this interface to send and receive the bytes to the host application.
Definition at line 17 of file IUpperLayer.h.
|
inline |
Open the layer if it was closed.
Implementor of this class must implement IUpperLayer::on_lower_open_impl().
Definition at line 26 of file IUpperLayer.h.
|
inline |
Close the layer if it was open.
Implementor of this class must implement IUpperLayer::on_lower_close_impl().
Definition at line 46 of file IUpperLayer.h.
|
inline |
Called by the ILowerLayer when it's ready to transmit data.
Implementor of this class must implement IUpperLayer::on_lower_tx_ready_impl().
Definition at line 66 of file IUpperLayer.h.
|
inline |
Called by the ILowerLayer when new data is available.
Implementor of this class must implement IUpperLayer::on_lower_rx_ready_impl().
Definition at line 85 of file IUpperLayer.h.
|
inline |
Check if layer is currently open.
Definition at line 102 of file IUpperLayer.h.
|
protectedpure virtual |
Open the layer.
|
protectedpure virtual |
Close the layer.
|
protectedpure virtual |
Callback when ILowerLayer is ready to transmit data.
|
protectedpure virtual |
Callback when ILowerLayer received data.