uint32_t osmo_crc32gen_compute_bits(const struct osmo_crc32gen_code *code, const ubit_t *in, int len)
int bits
Actual number of bits of the CRC.
Definition: crc32gen.h:40
uint32_t remainder
Remainder of the CRC (final XOR)
Definition: crc32gen.h:43
int osmo_crc32gen_check_bits(const struct osmo_crc32gen_code *code, const ubit_t *in, int len, const ubit_t *crc_bits)
uint8_t ubit_t
Definition: bits.h:24
structure describing a given CRC code of max 32 bits
Definition: crc32gen.h:39
uint32_t poly
Polynom (normal representation, MSB omitted.
Definition: crc32gen.h:41
void osmo_crc32gen_set_bits(const struct osmo_crc32gen_code *code, const ubit_t *in, int len, ubit_t *crc_bits)
uint32_t init
Initialization value of the CRC state.
Definition: crc32gen.h:42