14.7.3.3.6 Function rtc_count_clear_compare_match()

Clears RTC compare match flag.

enum status_code rtc_count_clear_compare_match( struct rtc_module *const module, const enum rtc_count_compare comp_index)

Clears the compare flag. The compare flag is set when there is a compare match between the counter and the compare.

Note: Compare 4 and 5 are only available in 16-bit mode.
Table 14-34. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to the software instance struct

[in]

comp_index

Index of compare to check current flag

Returns

Status indicating if flag was successfully cleared.

Table 14-35. Return Values
Return valueDescription

STATUS_OK

If flag was successfully cleared

STATUS_ERR_INVALID_ARG

If invalid argument(s) were provided

STATUS_ERR_BAD_FORMAT

If the module was not initialized in a mode