TI BLE-Stack for Bluetooth API Documentation
3.03.01.00
|
TRNG driver implementation for a CC26XX device. More...
Modules | |
TRNG_STATUS | |
Files | |
file | TRNGCC26XX.h |
TRNG driver implementation for a CC26XX device. | |
Macros | |
#define | TRNGCC26XX_CLOCKS_PER_SAMPLES_MAX 15 |
#define | TRNGCC26XX_MAX_SAMPLES_MAX 16777216 |
#define | TRNGCC26XX_MAX_SAMPLES_MIN 256 |
#define | TRNGCC26XX_MIN_SAMPLES_MAX 16384 |
#define | TRNGCC26XX_MIN_SAMPLES_MIN 64 |
TRNG driver implementation for a CC26XX device.
============================================================================
The TRNG header file should be included in an application as follows:
The TRNGCC26XX driver provides reentrant access to the TRNG module within the CC26XX. Reentrant access is controlled by creating a global critical section when requesting a random number. This critical section disables all Hwi's from running.
If an error occurs during a call to TRNGCC26XX_getNumber, the error status will be set into the status flag and the returned random number shall be 0. passing the status flag is optional.
API function | Description |
---|---|
TRNGCC26XX_open() | Open driver (stub) |
TRNGCC26XX_close() | Close driver (stub) |
TRNGCC26XX_Params_init() | Initialize parameters for random number generation |
TRNGCC26XX_init() | Generates a random number |
TRNGCC26XX_isParamValid | Validate client configuration parameters |
#define TRNGCC26XX_CLOCKS_PER_SAMPLES_MAX 15 |
Number of clocks cycles per sample must be between 1 (0) and 16 (15), inclusive.
#define TRNGCC26XX_MAX_SAMPLES_MAX 16777216 |
Largest allowable maximum samples count per cycle
#define TRNGCC26XX_MAX_SAMPLES_MIN 256 |
Maximium samples per cycle range. Maximium may be 0, or greater than or equal to 2^8 and less than or equal to 2^24.Smallest allowable maximum samples count per cycle
#define TRNGCC26XX_MIN_SAMPLES_MAX 16384 |
Largest allowable minimum samples count per cycle
#define TRNGCC26XX_MIN_SAMPLES_MIN 64 |
Minimum samples per cycle range, minimum value
Minimum may be 0, or greater than or equal to 2^6 and less than 2^14.Smallest allowable minimum samples count per cycle