26.6.3.4.1 Function trng_read_buffer_job()
Read multiple random data from TRNG.
enum status_code trng_read_buffer_job( struct trng_module *const module_inst, uint32_t * buffer, uint32_t number)
As soon as the TRNG is enabled, the module provides a new 32-bits random data, for every 84 CLK_TRNG_APB clock cycles.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module_inst |
Pointer to the TRNG software instance struct |
|
[in] |
number |
Number of random data to get |
|
[out] |
buffer |
Buffer to store the random data |
Returns
Status of the job start.
| Return value | Description |
|---|---|
|
STATUS_OK |
The read job was started successfully and is in progress |
|
STATUS_BUSY |
The TRNG is already busy with another job |
