Loading...
Searching...
No Matches
ucrc16.h File Reference

ucrc16 definitions More...

Detailed Description

ucrc16 definitions

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file ucrc16.h.

#include <stdint.h>
#include <stdlib.h>
+ Include dependency graph for ucrc16.h:

Go to the source code of this file.

Functions

uint16_t ucrc16_calc_be (const uint8_t *buf, size_t len, uint16_t poly, uint16_t seed)
 Calculate CRC16 (big-endian version)
 
uint16_t ucrc16_calc_le (const uint8_t *buf, size_t len, uint16_t poly, uint16_t seed)
 Calculate CRC16 (little-endian version)
 
#define UCRC16_CCITT_POLY_BE   (0x1021)
 Various generator polynomials.
 
#define UCRC16_CCITT_POLY_LE   (0x8408)
 CRC16-CCITT polynomial (little-endian)