Dataflow Runtime API
3.1.1.0
|
This layer checks incoming data frames for crc errors. More...
#include <Imt.Base.Lib.Remoting/DataFrameCRC16CheckReceiveLayer.h>
Public Member Functions | |
DataFrameCRC16CheckReceiveLayer (DataReceiverIfc &upperLevelReceiver, CRC16CheckFailedCallbackIfc &crc16CheckFailedCallback) | |
Constructor. More... | |
virtual | ~DataFrameCRC16CheckReceiveLayer (void) |
Destructor. More... | |
virtual void | onDataReceived (const uint8_t *const pData, const uint32_t countDataBytes) |
void | setInitialCrcValue (const uint16_t initialCrcValue) |
Set the initial CRC value to increase robustness of CRC-16 checksum. More... | |
Public Member Functions inherited from imt::base::lib::remoting::DataReceiverIfc | |
virtual | ~DataReceiverIfc (void) |
Destructor. More... | |
This layer checks incoming data frames for crc errors.
|
explicit |
Constructor.
upperLevelReceiver | Interface to the next higher receiver layer. |
crc16CheckFailedCallback | Callback if CRC check is failed. |
|
virtual |
Destructor.
|
virtual |
Implements imt::base::lib::remoting::DataReceiverIfc.
void imt::base::lib::remoting::DataFrameCRC16CheckReceiveLayer::setInitialCrcValue | ( | const uint16_t | initialCrcValue | ) |
Set the initial CRC value to increase robustness of CRC-16 checksum.
Older implementations used a default value of 0, which is the least robust. Recommendation: use 0xFFFF as initial value.
initialCrcValue | Initial value for the CRC-16 checksum calculation. |