Function achks8

Function Documentation

uint8_t achks8(const uint8_t *buf, size_t n_bytes, uint8_t seed)

Compute an 8-bit checksum (add-ignore-carry)

Parameters:
  • buf – Buffer to compute over

  • n_bytes – # bytes in buffer

  • seed – Starting value for checksum

Returns:

computed 8-bit checksum