Home
last modified time | relevance | path

Searched refs:proxOn (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c248 bool proxOn; member
330 if (data->proxOn) { in proxIsr()
468 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() argument
471 ((alsOn || proxOn) ? POWER_ON_BIT : 0) | in setMode()
473 (proxOn ? (PROX_INT_ENABLE_BIT | PROX_ENABLE_BIT) : 0); in setMode()
496 setMode(on, mTask.proxOn, (on) ? SENSOR_STATE_ENABLING_ALS : SENSOR_STATE_DISABLING_ALS); in sensorPowerAls()
524 if (mTask.alsOn || mTask.proxOn) { in sensorCalibrateAls()
580 mTask.proxOn = on; in sensorPowerProx()
612 if (mTask.alsOn || mTask.proxOn) { in sensorCalibrateProx()
619 mTask.proxOn = true; in sensorCalibrateProx()
[all …]
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c241 bool proxOn; member
268 if (data->proxOn) { in proxIsr()
412 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() argument
423 …ctrl = measurementTime[alsOn ? 1 : 0 + proxOn ? 2 : 0] | (alsOn ? ALS_EN_BIT : 0) | (proxOn ? PS_E… in setMode()
441 setMode(on, mTask.proxOn, (on ? SENSOR_STATE_ENABLING_ALS : SENSOR_STATE_DISABLING_ALS)); in sensorPowerAls()
489 mTask.proxOn = on; in sensorPowerProx()
716 if (mTask.proxOn) { in handle_i2c_event()
752 mTask.proxOn = false; in init_app()
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c188 bool proxOn; member
305 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() argument
313 (alsOn ? ALS_ENABLE_BIT : 0) | (proxOn ? PROX_ENABLE_BIT : 0); in setMode()
333 setMode(on, mData.proxOn, (on ? SENSOR_STATE_ENABLING_ALS : SENSOR_STATE_DISABLING_ALS)); in sensorPowerAls()
387 mData.proxOn = on; in sensorPowerProx()
629 if (mData.proxOn && mData.proxReading && in handle_i2c_event()
681 mData.proxOn = false; in init_app()