Lines Matching refs:control_2
268 uint8_t control_2; in pcf8523_int1_thread() local
275 err = pcf8523_read_reg8(dev, PCF8523_CONTROL_2, &control_2); in pcf8523_int1_thread()
281 if ((control_2 & PCF8523_CONTROL_2_AF) != 0 && data->alarm_callback != NULL) { in pcf8523_int1_thread()
282 control_2 &= ~(PCF8523_CONTROL_2_AF); in pcf8523_int1_thread()
289 if ((control_2 & PCF8523_CONTROL_2_SF) != 0) { in pcf8523_int1_thread()
290 control_2 &= ~(PCF8523_CONTROL_2_SF); in pcf8523_int1_thread()
296 control_2 |= PCF8523_CONTROL_2_CTAF | PCF8523_CONTROL_2_CTBF; in pcf8523_int1_thread()
298 err = pcf8523_write_reg8(dev, PCF8523_CONTROL_2, control_2); in pcf8523_int1_thread()
304 err = pcf8523_read_reg8(dev, PCF8523_CONTROL_2, &control_2); in pcf8523_int1_thread()
309 if (((control_2 & PCF8523_CONTROL_2_AF) != 0U && alarm_callback != NULL) || in pcf8523_int1_thread()
310 ((control_2 & PCF8523_CONTROL_2_SF) != 0U)) { in pcf8523_int1_thread()
547 uint8_t control_2; in pcf8523_alarm_is_pending() local
557 err = pcf8523_read_reg8(dev, PCF8523_CONTROL_2, &control_2); in pcf8523_alarm_is_pending()
562 if ((control_2 & PCF8523_CONTROL_2_AF) != 0) { in pcf8523_alarm_is_pending()
564 control_2 &= ~(PCF8523_CONTROL_2_AF); in pcf8523_alarm_is_pending()
567 control_2 |= PCF8523_CONTROL_2_CTAF | PCF8523_CONTROL_2_CTBF | PCF8523_CONTROL_2_SF; in pcf8523_alarm_is_pending()
569 err = pcf8523_write_reg8(dev, PCF8523_CONTROL_2, control_2); in pcf8523_alarm_is_pending()