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 1. Parameters
Data direction Parameter name Description

[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 2. Return Values
Return value Description

STATUS_OK

The module was initialized successfully