PebbleOS v4.47.0
Loading...
Searching...
No Matches
SiFli SF32LB CRC unit

CRC unit of the SF32LB52, behind the hardware CRC functions. More...

Data Structures

struct  pbl_crc_sf32lb
 CRC unit. More...
 

Macros

#define PBL_CRC_SF32LB_DEFINE(sym, _name, _base, _clk)
 Define the CRC unit.
 

Detailed Description

CRC unit of the SF32LB52, behind the hardware CRC functions.


Data Structure Documentation

◆ pbl_crc_sf32lb

struct pbl_crc_sf32lb

CRC unit.

Data Fields
uintptr_t base Registers.
struct pbl_clk clk Clock.
struct pbl_device dev Device.

Macro Definition Documentation

◆ PBL_CRC_SF32LB_DEFINE

#define PBL_CRC_SF32LB_DEFINE (   sym,
  _name,
  _base,
  _clk 
)
Value:
extern const struct pbl_crc_sf32lb sym##_inst; \
PBL_DEVICE_REGISTER(sym##_inst, &sym##_inst.dev); \
PBL_DEVICE_ALIAS(sym, sym##_inst, struct pbl_crc_sf32lb, struct pbl_device, dev); \
const struct pbl_crc_sf32lb sym##_inst = { \
.dev = PBL_DEVICE_INIT(sym, _name, nullptr, nullptr, nullptr), \
.base = (_base), \
.clk = _clk, \
}
struct pbl_device dev
Device.
Definition sf32lb.h:21
struct pbl_clk clk
Clock.
Definition sf32lb.h:25
CRC unit.
Definition sf32lb.h:19
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:131
#define PBL_DEVICE_INIT(sym, _name, _init, _parent, _deps)
Initializer for the struct pbl_device of device instance sym.
Definition device.h:164
A hardware device.
Definition device.h:89

Define the CRC unit.

Parameters
symSymbol of the device.
_nameName.
_baseRegisters.
_clkClock, from PBL_CLK().