/* Retrieves the value of period. 
Retrieves the value of the period for the 16-bit mode counter. */
enum status_code rtc_count_get_period(struct rtc_module *const module, uint16_t *const period_value)
/* Retrieves the value of period. 
Retrieves the value of the period for the 16-bit mode counter. */
enum status_code rtc_count_get_period(struct rtc_module *const module, uint16_t *const period_value)
{
	Assert(module);
	Assert(module->hw);
	Rtc *const rtc_module = module->hw;
	if (module->mode != RTC_COUNT_MODE_16BIT) {
		return STATUS_ERR_UNSUPPORTED_DEV;
	}
	*period_value = rtc_module->MODE1.PER.reg;
	return STATUS_OK;
}