True Random Number Generator driver.
More...
|
file | TRNGCC26XX.h |
| TRNG driver implementation for a CC26XX device.
|
|
True Random Number Generator driver.
To use the ECC driver in your application you need to:
§ TRNGCC26XX_ILLEGAL_PARAM_RETURN_VALUE
#define TRNGCC26XX_ILLEGAL_PARAM_RETURN_VALUE 0 |
Number returned from TRNGCC26XX_getNumber when invalid parameters are used.
§ TRNGCC26XX_HWAttrs
TRNGCC26XX Hardware Attributes.
Hardware Attribute structure for TRNG peripherals.
§ TRNGCC26XX_Object
TRNGCC26XX Object.
The application must not access any member variables of this structure!
§ TRNGCC26XX_Params
TRNGCC26XX Parameters.
This holds the TRNG configuration parameters to be used.
- See also
- TRNG_open()
§ TRNGCC26XX_close()
Close the TRNG driver.
- Precondition
- Calling context: Hwi, Swi or Task.
- Parameters
-
- Returns
- none
§ TRNGCC26XX_getNumber()
This routine returns a 32 bit TRNG number.
- Precondition
- params must be initialized with valid configurations. Calling context: Hwi, Swi or Task.
- Parameters
-
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. |
- Returns
- A 32 bit TRNG number.
§ TRNGCC26XX_init()
void TRNGCC26XX_init |
( |
void |
| ) |
|
TRNG Driver initialization.
- Precondition
- Calling context: Hwi, Swi or Task.
- Returns
- void
§ TRNGCC26XX_isParamValid()
Check that the parameters used are valid configurations.
- Precondition
- params must be initialized with valid configurations. Calling context: Hwi, Swi or Task.
- Parameters
-
params | - caller's configuration parameters. input parameter. |
- Returns
- TRNGCC26XX_STATUS_SUCCESS if params is a valid configuration. TRNGCC26XX_STATUS_ILLEGAL_PARAM if params is an invalid configuration.
§ TRNGCC26XX_open()
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.
- Precondition
- Calling context: Hwi, Swi or Task.
- Parameters
-
index | Logical peripheral Number indexed in the HWAttrs table. |
- Returns
- a TRNGCC26XX_Handle
§ TRNGCC26XX_Params_init()
Initialize TRNG configuration parameters to their defaults.
- Precondition
- Calling context: Hwi, Swi or Task.
- Parameters
-
params | - TRNG configuration parameters. input parameter. |
- Returns
- TRNGCC26XX_STATUS_SUCCESS if successful. TRNGCC26XX_STATUS_ILLEGAL_PARAM if params is NULL.