7.3.1.1 Function freqm_init()

Initializes a hardware FREQM module instance.

enum status_code freqm_init( struct freqm_module *const module_inst, Freqm *const hw, struct freqm_config *const config)

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

Table 7-2. Parameters
Data directionParameter nameDescription

[in, out]

module_inst

Pointer to the software module instance struct

[in]

hw

Pointer to the FREQM hardware module

[in]

config

Pointer to the FREQM configuration options struct

Returns

Status of the initialization procedure.

Table 7-3. Return Values
Return valueDescription

STATUS_OK

The module was initialized successfully