DUNE: Uniform Navigational Environment  2019.02.0
DUNE::Algorithms::XORChecksum Class Reference

Detailed Description

XOR Checksum Algorithm.

Static Public Member Functions

static uint8_t compute (const uint8_t *buffer, uint16_t length, uint8_t sum=0)
 

Member Function Documentation

static uint8_t DUNE::Algorithms::XORChecksum::compute ( const uint8_t *  buffer,
uint16_t  length,
uint8_t  sum = 0 
)
inlinestatic

Compute the XOR checksum of a byte buffer.

Parameters
bufferbyte buffer.
lengthbyte buffer length.
sumchecksum value to update.
Returns
computed checksum.

Referenced by DUNE::Hardware::UCTK::Frame::computeCRC().

Collaboration diagram for DUNE::Algorithms::XORChecksum:
Collaboration graph