This section introduces the True Randam Number Generator(TRNG) APIs including terms and acronyms, supported features, software architecture, details on how to use this driver, TRNG function groups, enums, structures and functions.
More...
This section introduces the True Randam Number Generator(TRNG) APIs including terms and acronyms, supported features, software architecture, details on how to use this driver, TRNG function groups, enums, structures and functions.
Terms and acronyms
| Terms | Details |
| TRNG | True Randam Number Generator. TRNG is a hardware generator to generate random data for applications. |
How to use this driver
- Trigger TRNG to generate a random number.
This function de-initializes the TRNG hardware clock.
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_TRNG_STATUS_OK, the operation completed successfully.
- Example
- Sample code, please refer to How to use this driver.
- See also
- hal_trng_init()
This function gets the random number generated by the TRNG.
- Parameters
-
| [out] | random_number | is the TRNG hardware generated random number. |
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_TRNG_STATUS_OK, the operation completed successfully.
- Example
- Sample code, please refer to How to use this driver.
- See also
- hal_trng_init(),hal_trng_deinit().