PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
Nordic nRF54L CRACEN

True random number generator of the CRACEN, a part of its core. More...

Data Structures

struct  pbl_rng_nrf_cracen_state
 Random number generator runtime state. More...
 
struct  pbl_rng_nrf_cracen
 Random number generator of the CRACEN. More...
 

Macros

#define PBL_RNG_NRF_CRACEN_DEFINE(sym, _cracen)
 Define the random number generator of a CRACEN.
 

Detailed Description

True random number generator of the CRACEN, a part of its core.


Data Structure Documentation

◆ pbl_rng_nrf_cracen_state

struct pbl_rng_nrf_cracen_state

Random number generator runtime state.

Data Fields
uint32_t cache[PBL_RNG_NRF_CRACEN_CACHE_WORDS] Words generated, not yet read.
uint32_t count Words in the cache.

◆ pbl_rng_nrf_cracen

struct pbl_rng_nrf_cracen

Random number generator of the CRACEN.

Data Fields
const struct pbl_mfd_nrf_cracen * cracen CRACEN core.
struct pbl_rng rng Random number generator.
struct pbl_rng_nrf_cracen_state * state Runtime state.

Macro Definition Documentation

◆ PBL_RNG_NRF_CRACEN_DEFINE

#define PBL_RNG_NRF_CRACEN_DEFINE (   sym,
  _cracen 
)
Value:
static struct pbl_rng_nrf_cracen_state sym##_nrf_cracen_state; \
PBL_DEVICE_INSTANCE(sym, struct pbl_rng_nrf_cracen, struct pbl_rng, rng) { \
.rng = PBL_RNG_INIT(sym, "rng", &(_cracen)->dev, &pbl_rng_nrf_cracen_ops), \
.state = &sym##_nrf_cracen_state, .cracen = (_cracen), \
}
Random number generator of the CRACEN.
Definition nrf_cracen.h:31
Random number generator runtime state.
Definition nrf_cracen.h:23
Random number generator.
Definition rng.h:40
#define PBL_RNG_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_rng.
Definition rng.h:70
#define PBL_RNG_STATE_DEFINE(sym)
Define the class state of a random number generator.
Definition rng.h:60

Define the random number generator of a CRACEN.

Parameters
symSymbol of the device.
_cracenCRACEN core, the parent.