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.
Data direction | Parameter name | Description |
---|---|---|
[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.
Return value | Description |
---|---|
STATUS_OK |
If the initialization was run stressfully |
STATUS_ERR_INVALID_ARG |
If invalid argument(s) were given |