DUNE: Uniform Navigational Environment
2.5.0-rc1
|
XOR Checksum Algorithm.
Static Public Member Functions | |
static uint8_t | compute (const uint8_t *buffer, uint16_t length, uint8_t sum=0) |
|
inlinestatic |
Compute the XOR checksum of a byte buffer.
buffer | byte buffer. |
length | byte buffer length. |
sum | checksum value to update. |
Referenced by DUNE::Hardware::UCTK::Frame::computeCRC(), and DUNE::Utils::NMEAParser::validateChecksum().