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.

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

Table 2. Return Values
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