PebbleOS v4.47.0-757-g12b6c531f
Loading...
Searching...
No Matches
STM32 CRC unit

CRC unit of the STM32F7 and later, behind the hardware CRC functions. More...

Data Structures

struct  pbl_crc_stm32
 CRC unit. More...
 

Macros

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

Detailed Description

CRC unit of the STM32F7 and later, behind the hardware CRC functions.


Data Structure Documentation

◆ pbl_crc_stm32

struct pbl_crc_stm32

CRC unit.

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

Macro Definition Documentation

◆ PBL_CRC_STM32_DEFINE

#define PBL_CRC_STM32_DEFINE (   sym,
  _name,
  _base,
  _clk 
)
Value:
PBL_DEVICE_INSTANCE_DEV(sym, struct pbl_crc_stm32) { \
.dev = PBL_DEVICE_INIT(sym, _name, pbl_crc_stm32_init, nullptr), .base = (_base), .clk = _clk, \
}
CRC unit.
Definition stm32.h:19
#define PBL_DEVICE_INIT(sym, _name, _init, _parent)
Initializer for the struct pbl_device of device instance sym.
Definition device.h:169
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132

Define the CRC unit.

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