![]() |
![]() |
TI BLE-Stack for Bluetooth API Documentation
3.03.08.00
|
TRNG driver implementation for a CC26XX device.
Go to the source code of this file.
Data Structures | |
struct | TRNGCC26XX_Config |
TRNGCC26XX Global Configuration. More... | |
struct | TRNGCC26XX_HWAttrs |
TRNGCC26XX Hardware Attributes. More... | |
struct | TRNGCC26XX_Object |
TRNGCC26XX Object. More... | |
struct | TRNGCC26XX_Params |
TRNGCC26XX Parameters. More... | |
Macros | |
#define | TRNGCC26XX_CLOCKS_PER_SAMPLES_MAX 15 |
#define | TRNGCC26XX_ILLEGAL_PARAM_RETURN_VALUE 0 |
#define | TRNGCC26XX_MAX_SAMPLES_MAX 16777216 |
#define | TRNGCC26XX_MAX_SAMPLES_MIN 256 |
#define | TRNGCC26XX_MIN_SAMPLES_MAX 16384 |
#define | TRNGCC26XX_MIN_SAMPLES_MIN 64 |
#define | TRNGCC26XX_STATUS_ILLEGAL_PARAM -1 |
Illegal parameter. | |
#define | TRNGCC26XX_STATUS_SUCCESS 0 |
Success. | |
Typedefs | |
typedef struct TRNGCC26XX_Config | TRNGCC26XX_Config |
TRNGCC26XX Global Configuration. | |
typedef struct TRNGCC26XX_Config * | TRNGCC26XX_Handle |
A handle that is returned from a TRNGCC26XX_open() call. | |
typedef struct TRNGCC26XX_HWAttrs | TRNGCC26XX_HWAttrs |
TRNGCC26XX Hardware Attributes. More... | |
typedef struct TRNGCC26XX_Object | TRNGCC26XX_Object |
TRNGCC26XX Object. More... | |
typedef struct TRNGCC26XX_Params | TRNGCC26XX_Params |
TRNGCC26XX Parameters. More... | |
Functions | |
void | TRNGCC26XX_close (TRNGCC26XX_Handle handle) |
Close the TRNG driver. More... | |
uint32_t | TRNGCC26XX_getNumber (TRNGCC26XX_Handle handle, TRNGCC26XX_Params *params, int8_t *status) |
This routine returns a 32 bit TRNG number. More... | |
void | TRNGCC26XX_init (void) |
TRNG Driver initialization. More... | |
int8_t | TRNGCC26XX_isParamValid (TRNGCC26XX_Params *params) |
Check that the parameters used are valid configurations. More... | |
TRNGCC26XX_Handle | TRNGCC26XX_open (uint8_t index) |
Open the TRNGCC26XX peripheral specified by the index value. This peripheral will be configured as specified by pParams. Alternatively, if pParams is NULL, default values will be used. More... | |
int8_t | TRNGCC26XX_Params_init (TRNGCC26XX_Params *params) |
Initialize TRNG configuration parameters to their defaults. More... | |
#define TRNGCC26XX_ILLEGAL_PARAM_RETURN_VALUE 0 |
Number returned from TRNGCC26XX_getNumber when invalid parameters are used.
typedef struct TRNGCC26XX_HWAttrs TRNGCC26XX_HWAttrs |
TRNGCC26XX Hardware Attributes.
Hardware Attribute structure for TRNG peripherals.
typedef struct TRNGCC26XX_Object TRNGCC26XX_Object |
TRNGCC26XX Object.
The application must not access any member variables of this structure!
typedef struct TRNGCC26XX_Params TRNGCC26XX_Params |
TRNGCC26XX Parameters.
This holds the TRNG configuration parameters to be used.
void TRNGCC26XX_close | ( | TRNGCC26XX_Handle | handle | ) |
Close the TRNG driver.
handle | a TRNGCC26XX_Handle returned from TRNGCC26XX_open(). |
uint32_t TRNGCC26XX_getNumber | ( | TRNGCC26XX_Handle | handle, |
TRNGCC26XX_Params * | params, | ||
int8_t * | status | ||
) |
This routine returns a 32 bit TRNG number.
handle | a TRNGCC26XX_Handle returned from TRNGCC26XX_open(). |
params | - caller's configuration parameters. input parameter. |
status | - a user provided pointer to a status flag in case of failure. This parameter may be left NULL. output parameter. TRNGCC26XX_STATUS_SUCCESS if successful. TRNGCC26XX_STATUS_ILLEGAL_PARAM if params is null or configuration is illegal. |
void TRNGCC26XX_init | ( | void | ) |
TRNG Driver initialization.
int8_t TRNGCC26XX_isParamValid | ( | TRNGCC26XX_Params * | params | ) |
Check that the parameters used are valid configurations.
params | - caller's configuration parameters. input parameter. |
TRNGCC26XX_Handle TRNGCC26XX_open | ( | uint8_t | index | ) |
Open the TRNGCC26XX peripheral specified by the index value. This peripheral will be configured as specified by pParams. Alternatively, if pParams is NULL, default values will be used.
index | Logical peripheral Number indexed in the HWAttrs table. |
int8_t TRNGCC26XX_Params_init | ( | TRNGCC26XX_Params * | params | ) |
Initialize TRNG configuration parameters to their defaults.
params | - TRNG configuration parameters. input parameter. |