Lines Matching refs:mask
569 const struct rtc_time *timeptr, uint16_t mask) in rtc_stm32_init_ll_alrm_struct() argument
581 if (mask & RTC_ALARM_TIME_MASK_SECOND) { in rtc_stm32_init_ll_alrm_struct()
586 if (mask & RTC_ALARM_TIME_MASK_MINUTE) { in rtc_stm32_init_ll_alrm_struct()
591 if (mask & RTC_ALARM_TIME_MASK_HOUR) { in rtc_stm32_init_ll_alrm_struct()
596 if (mask & RTC_ALARM_TIME_MASK_WEEKDAY) { in rtc_stm32_init_ll_alrm_struct()
609 } else if (mask & RTC_ALARM_TIME_MASK_MONTHDAY) { in rtc_stm32_init_ll_alrm_struct()
693 uint16_t *mask) in rtc_stm32_alarm_get_supported_fields() argument
695 if (mask == NULL) { in rtc_stm32_alarm_get_supported_fields()
705 *mask = (uint16_t)RTC_STM32_SUPPORTED_ALARM_FIELDS; in rtc_stm32_alarm_get_supported_fields()
710 static int rtc_stm32_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in rtc_stm32_alarm_get_time() argument
719 if ((mask == NULL) || (timeptr == NULL)) { in rtc_stm32_alarm_get_time()
745 *mask = p_rtc_alrm->user_mask; in rtc_stm32_alarm_get_time()
749 timeptr->tm_min, timeptr->tm_sec, *mask); in rtc_stm32_alarm_get_time()
757 static int rtc_stm32_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in rtc_stm32_alarm_set_time() argument
778 if ((mask == 0) && (timeptr == NULL)) { in rtc_stm32_alarm_set_time()
796 if ((mask & ~RTC_STM32_SUPPORTED_ALARM_FIELDS) != 0) { in rtc_stm32_alarm_set_time()
797 LOG_ERR("unsupported alarm %d field mask 0x%04x", id, mask); in rtc_stm32_alarm_set_time()
808 if (!rtc_utils_validate_rtc_time(timeptr, mask)) { in rtc_stm32_alarm_set_time()
818 rtc_stm32_init_ll_alrm_struct(p_ll_rtc_alarm, timeptr, mask); in rtc_stm32_alarm_set_time()
820 p_rtc_alrm->user_mask = mask; in rtc_stm32_alarm_set_time()
825 timeptr->tm_wday, timeptr->tm_mday, mask); in rtc_stm32_alarm_set_time()