![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
True Random Number Generator (TRNG) HW driver source file. More...
#include <neorv32.h>Functions | |
| int | neorv32_trng_available (void) |
| void | neorv32_trng_enable (void) |
| void | neorv32_trng_disable (void) |
| void | neorv32_trng_fifo_clear (void) |
| int | neorv32_trng_get_fifo_depth (void) |
| int | neorv32_trng_data_avail (void) |
| uint8_t | neorv32_trng_data_get (void) |
| int | neorv32_trng_check_sim_mode (void) |
True Random Number Generator (TRNG) HW driver source file.
| int neorv32_trng_available | ( | void | ) |
Check if TRNG unit was synthesized.
| int neorv32_trng_check_sim_mode | ( | void | ) |
Check if TRNG is implemented using SIMULATION mode.
| int neorv32_trng_data_avail | ( | void | ) |
Check if at least one byte of random is available.
| uint8_t neorv32_trng_data_get | ( | void | ) |
Get random data byte from TRNG (non-blocking). Check before if data is available using neorv32_trng_data_avail().
| void neorv32_trng_disable | ( | void | ) |
Reset and disable TRNG.
| void neorv32_trng_enable | ( | void | ) |
Reset and enable TRNG.
| void neorv32_trng_fifo_clear | ( | void | ) |
Flush TRNG random data FIFO.
| int neorv32_trng_get_fifo_depth | ( | void | ) |
Get TRNG FIFO depth.