PebbleOS v4.47.0
Loading...
Searching...
No Matches
SiFli SF32LB TRNG

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

Data Structures

struct  pbl_rng_sf32lb
 TRNG. More...
 

Macros

#define PBL_RNG_SF32LB_DEFINE(sym, _name, _base, _clk)
 Define the TRNG.
 

Detailed Description

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


Data Structure Documentation

◆ pbl_rng_sf32lb

struct pbl_rng_sf32lb

TRNG.

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

Macro Definition Documentation

◆ PBL_RNG_SF32LB_DEFINE

#define PBL_RNG_SF32LB_DEFINE (   sym,
  _name,
  _base,
  _clk 
)
Value:
extern const struct pbl_rng_sf32lb sym##_inst; \
PBL_DEVICE_REGISTER(sym##_inst, &sym##_inst.dev); \
PBL_DEVICE_ALIAS(sym, sym##_inst, struct pbl_rng_sf32lb, struct pbl_device, dev); \
const struct pbl_rng_sf32lb sym##_inst = { \
.dev = PBL_DEVICE_INIT(sym, _name, nullptr, nullptr, nullptr), \
.base = (_base), \
.clk = _clk, \
}
#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
struct pbl_device dev
Device.
Definition sf32lb.h:21
struct pbl_clk clk
Clock.
Definition sf32lb.h:25
TRNG.
Definition sf32lb.h:19
A hardware device.
Definition device.h:89

Define the TRNG.

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