Lines Matching refs:mask
436 static int pcf8523_alarm_get_supported_fields(const struct device *dev, uint16_t id, uint16_t *mask) in pcf8523_alarm_get_supported_fields() argument
445 *mask = PCF8523_RTC_ALARM_TIME_MASK; in pcf8523_alarm_get_supported_fields()
450 static int pcf8523_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in pcf8523_alarm_set_time() argument
460 if ((mask & ~(PCF8523_RTC_ALARM_TIME_MASK)) != 0U) { in pcf8523_alarm_set_time()
461 LOG_ERR("unsupported alarm field mask 0x%04x", mask); in pcf8523_alarm_set_time()
465 if ((mask & RTC_ALARM_TIME_MASK_MINUTE) != 0U) { in pcf8523_alarm_set_time()
471 if ((mask & RTC_ALARM_TIME_MASK_HOUR) != 0U) { in pcf8523_alarm_set_time()
477 if ((mask & RTC_ALARM_TIME_MASK_MONTHDAY) != 0U) { in pcf8523_alarm_set_time()
483 if ((mask & RTC_ALARM_TIME_MASK_WEEKDAY) != 0U) { in pcf8523_alarm_set_time()
491 timeptr->tm_min, mask); in pcf8523_alarm_set_time()
497 static int pcf8523_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in pcf8523_alarm_get_time() argument
515 *mask = 0U; in pcf8523_alarm_get_time()
519 *mask |= RTC_ALARM_TIME_MASK_MINUTE; in pcf8523_alarm_get_time()
524 *mask |= RTC_ALARM_TIME_MASK_HOUR; in pcf8523_alarm_get_time()
529 *mask |= RTC_ALARM_TIME_MASK_MONTHDAY; in pcf8523_alarm_get_time()
534 *mask |= RTC_ALARM_TIME_MASK_WEEKDAY; in pcf8523_alarm_get_time()
539 timeptr->tm_min, *mask); in pcf8523_alarm_get_time()