14.7.3.1.5 Function rtc_count_init()

Initializes the RTC module with given configurations.

enum status_code rtc_count_init( struct rtc_module *const module, Rtc *const hw, const struct rtc_count_config *const config)

Initializes the module, setting up all given configurations to provide the desired functionality of the RTC.

Table 14-12. Parameters
Data directionParameter nameDescription

[out]

module

Pointer to the software instance struct

[in]

hw

Pointer to hardware instance

[in]

config

Pointer to the configuration structure

Returns

Status of the initialization procedure.

Table 14-13. Return Values
Return valueDescription

STATUS_OK

If the initialization was run stressfully

STATUS_ERR_INVALID_ARG

If invalid argument(s) were given