27 #if (HAL_USE_TRNG == TRUE) || defined(__DOXYGEN__) void trng_lld_init(void)
Low level TRNG driver initialization.
void trng_lld_stop(TRNGDriver *trngp)
Deactivates the TRNG peripheral.
void trng_lld_start(TRNGDriver *trngp)
Configures and activates the TRNG peripheral.
bool trng_lld_generate(TRNGDriver *trngp, size_t size, uint8_t *out)
True random numbers generator.
void trngStop(TRNGDriver *trngp)
Deactivates the TRNG peripheral.
bool trngGenerate(TRNGDriver *trngp, size_t size, uint8_t *out)
True random numbers generator.
static void osalSysUnlock(void)
Leaves a critical zone from thread context.
void trngObjectInit(TRNGDriver *trngp)
Initializes the standard part of a TRNGDriver structure.
void trngStart(TRNGDriver *trngp, const TRNGConfig *config)
Configures and activates the TRNG peripheral.
Driver configuration structure.
void trngInit(void)
TRNG Driver initialization.
#define osalDbgCheck(c)
Function parameters check.
const TRNGConfig * config
Current configuration data.
static void osalSysLock(void)
Enters a critical zone from thread context.
#define osalDbgAssert(c, remark)
Condition assertion.
USBOutEndpointState out
OUT EP0 state.
Structure representing a TRNG driver.
trngstate_t state
Driver state.