66 #ifndef ti_drivers_TRNG_TRNGCC26XX__include 67 #define ti_drivers_TRNG_TRNGCC26XX__include 76 #include <ti/drivers/dpl/HwiP.h> 77 #include <ti/drivers/dpl/SemaphoreP.h> 84 #define TRNGCC26XX_SAMPLES_PER_CYCLE_MIN 256 88 #define TRNGCC26XX_SAMPLES_PER_CYCLE_DEFAULT 240000 90 #define TRNGCC26XX_SAMPLES_PER_CYCLE_MAX 16777216 99 #define TRNGCC26XX_MIN_BYTES_PER_ITERATION (2 * sizeof(uint32_t)) 109 #ifndef TRNGCC26XX_ENTROPY_POOL_SIZE 110 #define TRNGCC26XX_ENTROPY_POOL_SIZE (32 / sizeof(uint64_t)) 160 uint32_t samplesPerCycle;
162 uint8_t *entropyBuffer;
163 uint32_t semaphoreTimeout;
164 size_t entropyGenerated;
165 size_t entropyRequested;
166 int_fast16_t returnStatus;
169 SemaphoreP_Struct operationSemaphore;
The CryptoKey type is an opaque representation of a cryptographic key.
TRNGCC26XX Hardware Attributes.
Definition: TRNGCC26XX.h:119
TRNG Global configuration.
Definition: TRNG.h:273
CryptoKey datastructure.
Definition: CryptoKey.h:209
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:307
int_fast16_t TRNGCC26XX_setSamplesPerCycle(TRNG_Handle handle, uint32_t samplesPerCycle)
Sets the number of entropy generation cycles before the results are returned.
uint32_t samplesPerCycle
TRNG Maximum Samples per Cycle. Changes the maximum number of randomness samples in each entropy gene...
Definition: TRNGCC26XX.h:144
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
uint32_t swiPriority
TRNG SWI priority. The higher the number, the higher the priority. The minimum is 0 and the maximum i...
Definition: TRNGCC26XX.h:138
uint8_t intPriority
Crypto Peripheral's interrupt priority.
Definition: TRNGCC26XX.h:132