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:316
CryptoKey datastructure.
Definition: CryptoKey.h:210
TRNG_CallbackFxn callbackFxn
Definition: TRNG.h:349
void TRNG_close(TRNG_Handle handle)
Function to close a TRNG peripheral specified by the TRNG handle.
struct TRNG_Config TRNG_Config
TRNG Global configuration.
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:288
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
struct TRNG_Config * TRNG_Handle
A handle that is returned from a TRNG_open() call.
Definition: TRNG.h:265
void const * hwAttrs
Definition: TRNG.h:321
void * object
Definition: TRNG.h:318
void * custom
Definition: TRNG.h:353