CRC Calculation/Message Validation Support
Functions Index
| uint32_t | CalculateCRC (const void *buffer) |
|
Calculate the CRC for the message (header + payload) contained in the buffer. More... | |
| uint32_t | CalculateCRC (const void *buffer, size_t length, uint32_t initial_value=0) |
|
Calculate the CRC for the message (payload) contained in the buffer. More... | |
| bool | IsValid (const void *buffer) |
|
Check if the message contained in the buffer has a valid CRC. More... | |
Functions
CalculateCRC()
Calculate the CRC for the message (header + payload) contained in the buffer.
- Parameters
-
buffer A byte buffer containing a MessageHeader and payload.
- Returns
The calculated CRC value.
Definition at line 57 of file crc.cc.
CalculateCRC()
|
Calculate the CRC for the message (payload) contained in the buffer.
- Parameters
-
buffer A byte buffer containing a payload.
length The length of the buffer.
initial_value The seed value of the CRC calculation.
- Returns
The calculated CRC value.
Definition at line 45 of file crc.cc.
IsValid()
Check if the message contained in the buffer has a valid CRC.
- Parameters
-
buffer A byte buffer containing a MessageHeader and payload.
- Returns
true if the CRC value in the header matches the CRC computed from the current contents.
Definition at line 53 of file crc.h.
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.