Lines Matching refs:mask
206 uint16_t *mask) in pcf8563_alarm_get_supported_fields() argument
216 *mask = PCF8563_RTC_ALARM_TIME_MASK; in pcf8563_alarm_get_supported_fields()
221 static int pcf8563_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in pcf8563_alarm_set_time() argument
233 if ((mask & ~(PCF8563_RTC_ALARM_TIME_MASK)) != 0) { in pcf8563_alarm_set_time()
234 LOG_ERR("invalid alarm field mask 0x%04x", mask); in pcf8563_alarm_set_time()
238 if (!rtc_utils_validate_rtc_time(timeptr, mask)) { in pcf8563_alarm_set_time()
247 if ((mask & RTC_ALARM_TIME_MASK_MINUTE) != 0) { in pcf8563_alarm_set_time()
254 if ((mask & RTC_ALARM_TIME_MASK_HOUR) != 0) { in pcf8563_alarm_set_time()
260 if ((mask & RTC_ALARM_TIME_MASK_MONTHDAY) != 0) { in pcf8563_alarm_set_time()
266 if ((mask & RTC_ALARM_TIME_MASK_WEEKDAY) != 0) { in pcf8563_alarm_set_time()
288 static int pcf8563_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in pcf8563_alarm_get_time() argument
308 *mask = 0U; in pcf8563_alarm_get_time()
313 *mask |= RTC_ALARM_TIME_MASK_MINUTE; in pcf8563_alarm_get_time()
318 *mask |= RTC_ALARM_TIME_MASK_HOUR; in pcf8563_alarm_get_time()
323 *mask |= RTC_ALARM_TIME_MASK_MONTHDAY; in pcf8563_alarm_get_time()
328 *mask |= RTC_ALARM_TIME_MASK_WEEKDAY; in pcf8563_alarm_get_time()