14.7.3.2.6 Function rtc_count_get_period()
Retrieves the value of period.
enum status_code rtc_count_get_period( struct rtc_module *const module, uint16_t *const period_value)
Retrieves the value of the period for the 16-bit mode counter.
Note: Only available in 16-bit mode.
Data direction | Parameter name | Description |
---|---|---|
[in, out] |
module |
Pointer to the software instance struct |
[out] |
period_value |
Pointer to value for return argument |
Returns
Status of getting the period value.
Return value | Description |
---|---|
STATUS_OK |
If the period value was read correctly |
STATUS_ERR_UNSUPPORTED_DEV |
If incorrect mode was set |