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