PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
pbl_crc_ops Struct Reference

CRC unit driver operations. More...

#include <crc.h>

Data Fields

int(* init )(const struct pbl_crc *crc)
 Optional.
 
size_t(* crc32 )(const struct pbl_crc *crc, uint32_t *value, const void *data, size_t len)
 Process a prefix of the data as CRC-32/ISO-HDLC, see pbl_crc_crc32().
 
size_t(* crc32_legacy )(const struct pbl_crc *crc, uint32_t *reg, const void *data, size_t len)
 Process a prefix of the data as the legacy checksum, see pbl_crc_crc32_legacy().
 

Detailed Description

CRC unit driver operations.

Field Documentation

◆ crc32

size_t(* pbl_crc_ops::crc32) (const struct pbl_crc *crc, uint32_t *value, const void *data, size_t len)

Process a prefix of the data as CRC-32/ISO-HDLC, see pbl_crc_crc32().

◆ crc32_legacy

size_t(* pbl_crc_ops::crc32_legacy) (const struct pbl_crc *crc, uint32_t *reg, const void *data, size_t len)

Process a prefix of the data as the legacy checksum, see pbl_crc_crc32_legacy().

◆ init

int(* pbl_crc_ops::init) (const struct pbl_crc *crc)

Optional.

Bring the hardware up.


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