Class for compute crc16.
More...
#include <erpc_crc16.hpp>
Crc16::Crc16 |
( |
uint32_t |
crcStart | ) |
|
|
explicit |
Constructor.
- Parameters
-
[in] | crcStart | Start value for crc function. |
uint16_t Crc16::computeCRC16 |
( |
const uint8_t * |
data, |
|
|
uint32_t |
lengthInBytes |
|
) |
| |
Compute a ITU-CCITT CRC-16 over the provided data.
This implementation is slow but small in size.
- Parameters
-
[in] | data | Pointer to data used for crc16. |
[in] | lengthInBytes | Data length. |
void Crc16::setCrcStart |
( |
uint32_t |
crcStart | ) |
|
Set crc start number.
- Parameters
-
[in] | crcStart | Crc start number. |
uint32_t erpc::Crc16::m_crcStart |
|
protected |
The documentation for this class was generated from the following files: