14.7.3.6.1 Function rtc_count_register_callback()

Registers callback for the specified callback type.

enum status_code rtc_count_register_callback( struct rtc_module *const module, rtc_count_callback_t callback, enum rtc_count_callback callback_type)

Associates the given callback function with the specified callback type. To enable the callback, the rtc_count_enable_callback function must be used.

Table 14-40. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to the software instance struct

[in]

callback

Pointer to the function desired for the specified callback

[in]

callback_type

Callback type to register

Returns

Status of registering callback.

Table 14-41. Return Values
Return valueDescription

STATUS_OK

Registering was done successfully

STATUS_ERR_INVALID_ARG

If trying to register a callback not available