7.3.3.1 Function freqm_register_callback()

Registers a callback.

enum status_code freqm_register_callback( struct freqm_module *const module, freqm_callback_t callback_func, enum freqm_callback callback_type)

Registers a callback function which is implemented by the user.

Note: The callback must be enabled by freqm_enable_callback, in order for the interrupt handler to call it when the conditions for the callback type is met.
Table 7-11. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to FREQM software instance struct

[in]

callback_func

Pointer to callback function

[in]

callback_type

Callback type given by an enum

Table 7-12. Return Values
Return valueDescription

STATUS_OK

The function exited successfully