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.

Table 26-10. Parameters
Data directionParameter nameDescription

[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.

Table 26-11. Return Values
Return valueDescription

STATUS_OK

The result was retrieved successfully

STATUS_BUSY

A random result was not ready