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.

Table 26-18. Parameters
Data directionParameter nameDescription

[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 26-19. Return Values
Return valueDescription

STATUS_OK

The read job was started successfully and is in progress

STATUS_BUSY

The TRNG is already busy with another job