libosmocore 1.13.1.1-afb4 Osmocom core library

Data Fields
osmo_crc16gen_code Struct Reference
Osmocom CRC routines

structure describing a given CRC code of max 16 bits More...

`#include <crc16gen.h>`

## Data Fields
int | bits
| Actual number of bits of the CRC. More...
uint16_t | poly
| Polynom (normal representation, MSB omitted. More...
uint16_t | init
| Initialization value of the CRC state. More...
uint16_t | remainder
| Remainder of the CRC (final XOR) More...

## Detailed Description

structure describing a given CRC code of max 16 bits

## Field Documentation

## ◆ bits

int osmo_crc16gen_code::bits

Actual number of bits of the CRC.

Referenced by osmo_crc16gen_check_bits(), osmo_crc16gen_compute_bits(), and osmo_crc16gen_set_bits().

## ◆ init

uint16_t osmo_crc16gen_code::init

Initialization value of the CRC state.

Referenced by osmo_crc16gen_compute_bits().

## ◆ poly

uint16_t osmo_crc16gen_code::poly

Polynom (normal representation, MSB omitted.

Referenced by osmo_crc16gen_compute_bits().

## ◆ remainder

uint16_t osmo_crc16gen_code::remainder

Remainder of the CRC (final XOR)

Referenced by osmo_crc16gen_compute_bits().

The documentation for this struct was generated from the following file:

- include/osmocom/core/crc16gen.h