29#ifndef CHECKSUM_UCRC16_H
30#define CHECKSUM_UCRC16_H
43#define UCRC16_CCITT_POLY_BE (0x1021)
44#define UCRC16_CCITT_POLY_LE (0x8408)
uint16_t ucrc16_calc_le(const uint8_t *buf, size_t len, uint16_t poly, uint16_t seed)
Calculate CRC16 (little-endian version)
uint16_t ucrc16_calc_be(const uint8_t *buf, size_t len, uint16_t poly, uint16_t seed)
Calculate CRC16 (big-endian version)