288 #ifndef ti_drivers_TRNG__include 289 #define ti_drivers_TRNG__include 318 #define TRNG_CMD_RESERVED (32) 332 #define TRNG_STATUS_RESERVED (-32) 347 #define TRNG_STATUS_SUCCESS (0) 355 #define TRNG_STATUS_ERROR (-1) 364 #define TRNG_STATUS_UNDEFINEDCMD (-2) 374 #define TRNG_STATUS_RESOURCE_UNAVAILABLE (-3) 468 int_fast16_t returnValue,
588 int_fast16_t
TRNG_control(TRNG_Handle handle, uint32_t cmd,
void *args);
int_fast16_t TRNG_control(TRNG_Handle handle, uint32_t cmd, void *args)
Function performs implementation specific features on a given TRNG_Handle.
TRNG_Handle TRNG_open(uint_least8_t index, TRNG_Params *params)
This function opens a given TRNG peripheral.
enum TRNG_ReturnBehavior_ TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
struct TRNG_Config_ * TRNG_Handle
A handle that is returned from a TRNG_open() call.
Definition: TRNG.h:397
The CryptoKey type is an opaque representation of a cryptographic key.
int_fast16_t TRNG_generateEntropy(TRNG_Handle handle, CryptoKey *entropy)
Generate a random number.
struct TRNG_Params_ TRNG_Params
TRNG Parameters.
CryptoKey datastructure.
Definition: CryptoKey.h:210
void * object
Definition: TRNG.h:450
struct TRNG_Config_ TRNG_Config
TRNG Global configuration.
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:420
int_fast16_t TRNG_generateEntropyNonZeroLessThan(TRNG_Handle handle, CryptoKey *entropy, const uint8_t *upperBound)
Generate a random number smaller than a number but greater than 0.
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 * custom
Definition: TRNG.h:485
void TRNG_init(void)
This function initializes the TRNG module.
TRNG Global configuration.
Definition: TRNG.h:448
TRNG Parameters.
Definition: TRNG.h:479
TRNG_CallbackFxn callbackFxn
Definition: TRNG.h:481
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:467
int_fast16_t TRNG_generateEntropyLessThan(TRNG_Handle handle, CryptoKey *entropy, const uint8_t *upperBound)
Generate a random number smaller than a number.
void const * hwAttrs
Definition: TRNG.h:453
uint32_t timeout
Definition: TRNG.h:482
TRNG_ReturnBehavior returnBehavior
Definition: TRNG.h:480