26.6.3.2.1 Function trng_read()
Read the random data result.
enum status_code trng_read( struct trng_module *const module_inst, uint32_t * result)
Reads the random data result.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module_inst |
Pointer to the TRNG software instance struct |
|
[out] |
result |
Pointer to store the result value in |
Returns
Status of the TRNG read request.
| Return value | Description |
|---|---|
|
STATUS_OK |
The result was retrieved successfully |
|
STATUS_BUSY |
A random result was not ready |
