Lines Matching refs:mask
26 uint16_t mask; member
153 if (alarm->mask == 0) { in rtc_emul_test_alarms()
157 if ((alarm->mask & RTC_ALARM_TIME_MASK_SECOND) && in rtc_emul_test_alarms()
162 if ((alarm->mask & RTC_ALARM_TIME_MASK_MINUTE) && in rtc_emul_test_alarms()
167 if ((alarm->mask & RTC_ALARM_TIME_MASK_HOUR) && in rtc_emul_test_alarms()
172 if ((alarm->mask & RTC_ALARM_TIME_MASK_MONTHDAY) && in rtc_emul_test_alarms()
177 if ((alarm->mask & RTC_ALARM_TIME_MASK_MONTH) && in rtc_emul_test_alarms()
182 if ((alarm->mask & RTC_ALARM_TIME_MASK_WEEKDAY) && in rtc_emul_test_alarms()
282 uint16_t *mask) in rtc_emul_alarm_get_supported_fields() argument
290 *mask = (RTC_ALARM_TIME_MASK_SECOND in rtc_emul_alarm_get_supported_fields()
300 static int rtc_emul_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in rtc_emul_alarm_set_time() argument
309 if ((mask > 0) && (timeptr == NULL)) { in rtc_emul_alarm_set_time()
313 if (mask > 0) { in rtc_emul_alarm_set_time()
314 if (rtc_utils_validate_rtc_time(timeptr, mask) == false) { in rtc_emul_alarm_set_time()
321 data->alarms[id].mask = mask; in rtc_emul_alarm_set_time()
331 static int rtc_emul_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in rtc_emul_alarm_get_time() argument
343 *mask = data->alarms[id].mask; in rtc_emul_alarm_get_time()