207 #ifndef ti_drivers_TRNG__include 208 #define ti_drivers_TRNG__include 232 #define TRNG_STATUS_RESERVED (-32) 240 #define TRNG_STATUS_SUCCESS (0) 248 #define TRNG_STATUS_ERROR (-1) 258 #define TRNG_STATUS_RESOURCE_UNAVAILABLE (-2) 334 int_fast16_t returnValue,
TRNG_Handle TRNG_open(uint_least8_t index, TRNG_Params *params)
This function opens a given TRNG peripheral.
ADC_Params params
Definition: Driver_Init.h:11
The CryptoKey type is an opaque representation of a cryptographic key.
TRNG Parameters.
Definition: TRNG.h:345
TRNG_ReturnBehavior returnBehavior
Definition: TRNG.h:346
uint32_t timeout
Definition: TRNG.h:348
int_fast16_t TRNG_generateEntropy(TRNG_Handle handle, CryptoKey *entropy)
Generate a random number.
TRNG Global configuration.
Definition: TRNG.h:271
TRNG_CallbackFxn callbackFxn
Definition: TRNG.h:347
CryptoKey datastructure.
Definition: CryptoKey.h:209
TRNG_Config * TRNG_Handle
A handle that is returned from a TRNG_open() call.
Definition: TRNG.h:282
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:305
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:333
TRNG_Handle TRNG_construct(TRNG_Config *config, const TRNG_Params *params)
Constructs a new TRNG object.
void const * hwAttrs
Definition: TRNG.h:276
void * object
Definition: TRNG.h:273
void * custom
Definition: TRNG.h:351