PebbleOS v4.47.0-757-g12b6c531f
Loading...
Searching...
No Matches
ST STM32 RNG

True random number generator of the STM32, behind rng_rand(). More...

Data Structures

struct  pbl_rng_stm32
 RNG. More...
 

Macros

#define PBL_RNG_STM32_DEFINE(sym, _name, _base, _clk)
 Define the RNG.
 

Detailed Description

True random number generator of the STM32, behind rng_rand().


Data Structure Documentation

◆ pbl_rng_stm32

struct pbl_rng_stm32

RNG.

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

Macro Definition Documentation

◆ PBL_RNG_STM32_DEFINE

#define PBL_RNG_STM32_DEFINE (   sym,
  _name,
  _base,
  _clk 
)
Value:
PBL_DEVICE_INSTANCE_DEV(sym, struct pbl_rng_stm32) { \
.dev = PBL_DEVICE_INIT(sym, _name, pbl_rng_stm32_init, nullptr), .base = (_base), .clk = _clk, \
}
#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
RNG.
Definition stm32.h:19

Define the RNG.

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