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.
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.
Return value | Description |
---|---|
STATUS_OK |
The module was initialized successfully |