mbed-os for GR-LYCHEE
Dependents: mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more
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 11:02:38 by 1.7.2