uint8_t joybus_address_checksum(uint16_t addr)
Compute the CRC-5 address checksum for data transfer commands.
Definition checksum.c:39
uint8_t joybus_data_checksum(const uint8_t *data, size_t size)
Compute the CRC-8 checksum of a Joybus data buffer.
Definition checksum.c:26
uint8_t joybus_data_checksum_update(uint8_t crc, uint8_t byte)
Fold one byte into a running Joybus data checksum.
Definition checksum.c:3