Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
crc_ctx Struct Reference

CRC context structure. More...

#include <zephyr/drivers/crc.h>

Data Fields

enum crc_type type
 CRC calculation type.
enum crc_state state
 Current CRC device state.
uint32_t reversed
 CRC input/output reverse flags.
crc_poly_t polynomial
 CRC polynomial.
crc_init_val_t seed
 CRC initial seed value.
crc_result_t result
 CRC result.

Detailed Description

CRC context structure.

This structure holds the state of the CRC calculation, including the type of CRC being calculated, the current state, the polynomial, the initial seed value, and the result of the CRC calculation.

Field Documentation

◆ polynomial

crc_poly_t crc_ctx::polynomial

CRC polynomial.

◆ result

crc_result_t crc_ctx::result

CRC result.

◆ reversed

uint32_t crc_ctx::reversed

CRC input/output reverse flags.

◆ seed

crc_init_val_t crc_ctx::seed

CRC initial seed value.

◆ state

enum crc_state crc_ctx::state

Current CRC device state.

◆ type

enum crc_type crc_ctx::type

CRC calculation type.


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