175 #ifndef ti_drivers_TRNGCC26XX__include 176 #define ti_drivers_TRNGCC26XX__include 196 #define TRNGCC26XX_STATUS_SUCCESS 0 197 #define TRNGCC26XX_STATUS_ILLEGAL_PARAM -1 206 #define TRNGCC26XX_MIN_SAMPLES_MIN 64 212 #define TRNGCC26XX_MIN_SAMPLES_MAX 16384 220 #define TRNGCC26XX_MAX_SAMPLES_MIN 256 227 #define TRNGCC26XX_MAX_SAMPLES_MAX 16777216 233 #define TRNGCC26XX_CLOCKS_PER_SAMPLES_MAX 15 239 #define TRNGCC26XX_ILLEGAL_PARAM_RETURN_VALUE 0 int powerMngrId
Definition: TRNGCC26XX.h:262
int8_t TRNGCC26XX_isParamValid(TRNGCC26XX_Params *params)
Check that the parameters used are valid configurations.
uint32_t clocksPerSample
clocks per sample
Definition: TRNGCC26XX.h:252
void TRNGCC26XX_close(TRNGCC26XX_Handle handle)
Close the TRNG driver.
TRNGCC26XX Hardware Attributes.
Definition: TRNGCC26XX.h:260
void * object
Definition: TRNGCC26XX.h:277
struct TRNGCC26XX_Params TRNGCC26XX_Params
TRNGCC26XX Parameters.
void TRNGCC26XX_init(void)
TRNG Driver initialization.
uint32_t maxSamplesPerCycle
max samples per cycle
Definition: TRNGCC26XX.h:251
struct TRNGCC26XX_Config * TRNGCC26XX_Handle
A handle that is returned from a TRNGCC26XX_open() call.
Definition: TRNGCC26XX.h:286
TRNGCC26XX Object.
Definition: TRNGCC26XX.h:270
uint8_t state
state
Definition: TRNGCC26XX.h:271
uint32_t TRNGCC26XX_getNumber(TRNGCC26XX_Handle handle, TRNGCC26XX_Params *params, int8_t *status)
This routine returns a 32 bit TRNG number.
void const * hwAttrs
Definition: TRNGCC26XX.h:280
TRNGCC26XX Parameters.
Definition: TRNGCC26XX.h:248
struct TRNGCC26XX_Config TRNGCC26XX_Config
TRNGCC26XX Global Configuration.
struct TRNGCC26XX_HWAttrs TRNGCC26XX_HWAttrs
TRNGCC26XX Hardware Attributes.
uint32_t minSamplesPerCycle
min samples per cycle
Definition: TRNGCC26XX.h:250
TRNGCC26XX Global Configuration.
Definition: TRNGCC26XX.h:275
TRNGCC26XX_Handle TRNGCC26XX_open(uint8_t index)
Open the TRNGCC26XX peripheral specified by the index value. This peripheral will be configured as sp...
struct TRNGCC26XX_Object TRNGCC26XX_Object
TRNGCC26XX Object.
int8_t TRNGCC26XX_Params_init(TRNGCC26XX_Params *params)
Initialize TRNG configuration parameters to their defaults.