14.7.3.2.1 Function rtc_count_set_count()

Set the current count value to desired value.

enum status_code rtc_count_set_count( struct rtc_module *const module, const uint32_t count_value)

Sets the value of the counter to the specified value.

Table 14-16. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to the software instance struct

[in]

count_value

The value to be set in count register

Returns

Status of setting the register.

Table 14-17. Return Values
Return valueDescription

STATUS_OK

If everything was executed correctly

STATUS_ERR_INVALID_ARG

If invalid argument(s) were provided