![]() |
Imt.Base C++ API V4.1.1.0
|
This layer receives a byte stream from a lower layer and tries to generate data frames out of the byte streams data. More...
#include <Imt.Base.Lib.Remoting/inc/Imt.Base.Lib.Remoting/DataFrameSyncReceiveLayer.h>
Public Member Functions | |
DataFrameSyncReceiveLayer (DataReceiverIfc &upperLevelReceiver, uint8_t const frameEndCharacter=DEFAULT_FRAME_END_CHARACTER) | |
Constructor. | |
void | onDataReceived (uint8_t const *const pData, uint32_t const countDataBytes) final |
virtual void | onDataReceived (uint8_t const *const pData, uint32_t const countDataBytes)=0 |
Callback if data is received. | |
Static Public Attributes | |
static constexpr uint8_t | DEFAULT_FRAME_END_CHARACTER {static_cast<uint8_t>('~')} |
Default frame end character. | |
Additional Inherited Members | |
![]() | |
DataReceiverIfc () noexcept=default | |
Default constructor. | |
~DataReceiverIfc () noexcept=default | |
Destructor. | |
DataReceiverIfc (DataReceiverIfc const &)=delete | |
DataReceiverIfc (DataReceiverIfc &&)=delete | |
DataReceiverIfc & | operator= (DataReceiverIfc const &) &=delete |
DataReceiverIfc & | operator= (DataReceiverIfc &&) &=delete |
This layer receives a byte stream from a lower layer and tries to generate data frames out of the byte streams data.
Characters in the user data that conflict with the special characters used for frame end marking are escaped. The technique used to ommit conflicts of the special characters with the user data is often referenced as byte stuffing or character stuffing.
Definition at line 25 of file DataFrameSyncReceiveLayer.h.
|
explicit |
Constructor.
upperLevelReceiver | Interface to the next higher receiver layer |
frameEndCharacter | optional frame end character, default is '~'. |
|
finalvirtual |
Implements imt::base::lib::remoting::DataReceiverIfc.
|
staticconstexpr |
Default frame end character.
Definition at line 34 of file DataFrameSyncReceiveLayer.h.