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.
Table 1. Parameters
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.

Table 2. Return Values
Return value Description

STATUS_OK

If the period value was read correctly

STATUS_ERR_UNSUPPORTED_DEV

If incorrect mode was set