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 1. Parameters
Data direction Parameter name Description

[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 2. Return Values
Return value Description

STATUS_OK

If everything was executed correctly

STATUS_ERR_INVALID_ARG

If invalid argument(s) were provided