ChibiOS  21.6.0
hal_trng.h File Reference

TRNG Driver macros and structures. More...

#include "hal_trng_lld.h"

Go to the source code of this file.

Data Structures

struct  hal_trng_config
 Driver configuration structure. More...
 
struct  hal_trng_driver
 Structure representing a TRNG driver. More...
 

Typedefs

typedef struct hal_trng_driver TRNGDriver
 Type of a structure representing a TRNG driver. More...
 
typedef struct hal_trng_config TRNGConfig
 Driver configuration structure. More...
 

Enumerations

enum  trngstate_t { TRNG_UNINIT = 0, TRNG_STOP = 1, TRNG_READY = 2, TRNG_RUNNING = 3 }
 Driver state machine possible states. More...
 

Functions

void trngInit (void)
 TRNG Driver initialization. More...
 
void trngObjectInit (TRNGDriver *trngp)
 Initializes the standard part of a TRNGDriver structure. More...
 
void trngStart (TRNGDriver *trngp, const TRNGConfig *config)
 Configures and activates the TRNG peripheral. More...
 
void trngStop (TRNGDriver *trngp)
 Deactivates the TRNG peripheral. More...
 
bool trngGenerate (TRNGDriver *trngp, size_t size, uint8_t *out)
 True random numbers generator. More...
 

Detailed Description

TRNG Driver macros and structures.

Definition in file hal_trng.h.