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 1. Parameters
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.

Table 2. Return Values
Return value Description

STATUS_OK

The result was retrieved successfully

STATUS_BUSY

A random result was not ready