14.7.3.2.4 Function rtc_count_get_compare()

Get the current compare value of specified compare.

enum status_code rtc_count_get_compare( struct rtc_module *const module, uint32_t *const comp_value, const enum rtc_count_compare comp_index)

Retrieves the current value of the specified compare.

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

[in, out]

module

Pointer to the software instance struct

[out]

comp_value

Pointer to 32-bit integer that will be populated with the current compare value

[in]

comp_index

Index of compare to check

Returns

Status of the reading procedure.

Table 14-22. Return Values
Return valueDescription

STATUS_OK

If the value was read correctly

STATUS_ERR_INVALID_ARG

If invalid argument(s) were provided

STATUS_ERR_BAD_FORMAT

If the module was not initialized in a mode