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.
Data direction | Parameter name | Description |
---|---|---|
[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.
Return value | Description |
---|---|
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 |