209 #ifndef ti_drivers_TRNG__include 210 #define ti_drivers_TRNG__include 234 #define TRNG_STATUS_RESERVED (-32) 242 #define TRNG_STATUS_SUCCESS (0) 250 #define TRNG_STATUS_ERROR (-1) 260 #define TRNG_STATUS_RESOURCE_UNAVAILABLE (-2) 336 int_fast16_t returnValue,
TRNG_Handle TRNG_open(uint_least8_t index, TRNG_Params *params)
This function opens a given TRNG peripheral.
The CryptoKey type is an opaque representation of a cryptographic key.
TRNG Parameters.
Definition: TRNG.h:347
TRNG_ReturnBehavior returnBehavior
Definition: TRNG.h:348
uint32_t timeout
Definition: TRNG.h:350
int_fast16_t TRNG_generateEntropy(TRNG_Handle handle, CryptoKey *entropy)
Generate a random number.
TRNG Global configuration.
Definition: TRNG.h:273
TRNG_CallbackFxn callbackFxn
Definition: TRNG.h:349
CryptoKey datastructure.
Definition: CryptoKey.h:209
TRNG_Config * TRNG_Handle
A handle that is returned from a TRNG_open() call.
Definition: TRNG.h:284
void TRNG_close(TRNG_Handle handle)
Function to close a TRNG peripheral specified by the TRNG handle.
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:307
const TRNG_Params TRNG_defaultParams
Default TRNG_Params structure.
void TRNG_Params_init(TRNG_Params *params)
Function to initialize the TRNG_Params struct to its defaults.
void TRNG_init(void)
This function initializes the TRNG module.
void(* TRNG_CallbackFxn)(TRNG_Handle handle, int_fast16_t returnValue, CryptoKey *entropy)
The definition of a callback function used by the TRNG driver when used in TRNG_RETURN_BEHAVIOR_CALLB...
Definition: TRNG.h:335
TRNG_Handle TRNG_construct(TRNG_Config *config, const TRNG_Params *params)
Constructs a new TRNG object.
void const * hwAttrs
Definition: TRNG.h:278
void * object
Definition: TRNG.h:275
void * custom
Definition: TRNG.h:353