26.6.3.1.1 Function trng_init()

Initializes a hardware TRNG module instance.

enum status_code trng_init( struct trng_module *const module_inst, Trng *const hw, struct trng_config *const config)

Enables the clock and initializes the TRNG module, based on the given configuration values.

Table 26-3. Parameters
Data directionParameter nameDescription

[in, out]

module_inst

Pointer to the software module instance struct

[in]

hw

Pointer to the TRNG hardware module

[in]

config

Pointer to the TRNG configuration options struct

Returns

Status of the initialization procedure.

Table 26-4. Return Values
Return valueDescription

STATUS_OK

The module was initialized successfully