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 (int irq_sel) |
void | neorv32_trng_disable (void) |
void | neorv32_trng_fifo_clear (void) |
int | neorv32_trng_get_fifo_depth (void) |
int | neorv32_trng_get (uint8_t *data) |
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.
void neorv32_trng_disable | ( | void | ) |
Reset and disable TRNG.
void neorv32_trng_enable | ( | int | irq_sel | ) |
Reset, configure and enable TRNG.
[in] | irq_sel | Interrupt trigger select (0 = data available, 1 = FIFO full). |
void neorv32_trng_fifo_clear | ( | void | ) |
Flush TRNG random data FIFO.
int neorv32_trng_get | ( | uint8_t * | data | ) |
Get random data byte from TRNG.
[in,out] | data | uint8_t pointer for storing random data byte. Will be set to zero if no valid data available. |
int neorv32_trng_get_fifo_depth | ( | void | ) |
Get TRNG FIFO depth.