DUNE: Uniform Navigational Environment
2017.01.0
|
Generic computation of 8-bit CRCs.
Public Member Functions | |
CRC8 (uint8_t polynomial, uint8_t value=0) | |
void | set (uint8_t value=0) |
uint8_t | get (void) const |
uint8_t | putByte (uint8_t byte) |
uint8_t | putArray (const uint8_t *data, unsigned int data_size) |
|
inline |
Constructor.
[in] | polynomial | polynomial. |
[in] | value | initial CRC8 value. |
|
inline |
Retrieve the current CRC8 value.
Referenced by DUNE::Hardware::UCTK::Bootloader::program().
|
inline |
Compute the CRC8 of an array of bytes.
[in] | data | array of bytes. |
[in] | data_size | size of array. |
References putByte().
Referenced by DUNE::Hardware::UCTK::Bootloader::program().
|
inline |
Compute the CRC8 of one byte.
[in] | byte | byte. |
Referenced by putArray().
|
inline |