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