64 #ifndef ti_drivers_TRNG_TRNGCC26XX__include 65 #define ti_drivers_TRNG_TRNGCC26XX__include 74 #include <ti/drivers/dpl/HwiP.h> 75 #include <ti/drivers/dpl/SemaphoreP.h> 82 #define TRNGCC26XX_SAMPLES_PER_CYCLE_MIN 256 86 #define TRNGCC26XX_SAMPLES_PER_CYCLE_DEFAULT 240000 88 #define TRNGCC26XX_SAMPLES_PER_CYCLE_MAX 16777216 97 #define TRNGCC26XX_MIN_BYTES_PER_ITERATION (2 * sizeof(uint32_t)) 107 #ifndef TRNGCC26XX_ENTROPY_POOL_SIZE 108 #define TRNGCC26XX_ENTROPY_POOL_SIZE (32 / sizeof(uint64_t)) 158 uint32_t samplesPerCycle;
160 uint8_t *entropyBuffer;
161 uint32_t semaphoreTimeout;
162 size_t entropyGenerated;
163 size_t entropyRequested;
164 int_fast16_t returnStatus;
167 SemaphoreP_Struct operationSemaphore;
The CryptoKey type is an opaque representation of a cryptographic key.
TRNGCC26XX Hardware Attributes.
Definition: TRNGCC26XX.h:117
TRNG Global configuration.
Definition: TRNG.h:271
CryptoKey datastructure.
Definition: CryptoKey.h:209
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:305
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:142
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
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:136
uint8_t intPriority
Crypto Peripheral's interrupt priority.
Definition: TRNGCC26XX.h:130