Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Functions | |
void | trng_init (trng_t *obj) |
Initialize the TRNG peripheral. | |
void | trng_free (trng_t *obj) |
Deinitialize the TRNG peripheral. | |
int | trng_get_bytes (trng_t *obj, uint8_t *output, size_t length, size_t *output_length) |
Get random data from TRNG peripheral. |
Function Documentation
void trng_free | ( | trng_t * | obj ) |
Deinitialize the TRNG peripheral.
- Parameters:
-
obj The TRNG object
int trng_get_bytes | ( | trng_t * | obj, |
uint8_t * | output, | ||
size_t | length, | ||
size_t * | output_length | ||
) |
Get random data from TRNG peripheral.
- Parameters:
-
obj The TRNG object output The pointer to an output array length The size of output data, to avoid buffer overwrite output_length The length of generated data
- Returns:
- 0 success, -1 fail
void trng_init | ( | trng_t * | obj ) |
Initialize the TRNG peripheral.
- Parameters:
-
obj The TRNG object
Generated on Tue Jul 12 2022 17:38:59 by
