Home
last modified time | relevance | path

Searched refs:alsOn (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c247 bool alsOn; member
347 } else if (data->alsOn && data->alsCalibrating && !pinState) { 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()
472 (alsOn ? ALS_ENABLE_BIT : 0) | in setMode()
489 mTask.alsOn = on; in sensorPowerAls()
524 if (mTask.alsOn || mTask.proxOn) { in sensorCalibrateAls()
530 mTask.alsOn = true; in sensorCalibrateAls()
583 setMode(mTask.alsOn, on, (on) ? SENSOR_STATE_ENABLING_PROX : SENSOR_STATE_DISABLING_PROX); in sensorPowerProx()
612 if (mTask.alsOn || mTask.proxOn) { in sensorCalibrateProx()
[all …]
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c240 bool alsOn; member
379 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() argument
390 …ctrl = measurementTime[alsOn ? 1 : 0 + proxOn ? 2 : 0] | (alsOn ? ALS_EN_BIT : 0) | (proxOn ? PS_E… in setMode()
406 mTask.alsOn = on; in sensorPowerAls()
458 setMode(mTask.alsOn, on, (on ? SENSOR_STATE_ENABLING_PROX : SENSOR_STATE_DISABLING_PROX)); in sensorPowerProx()
673 if (mTask.alsOn) { in handle_i2c_event()
724 mTask.alsOn = false; in init_app()
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c186 bool alsOn; 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()
316 …xfer->txrxBuf.bytes[4] = alsOn ? AMS_TMD2772_WTIME_SETTING_ALS_ON : AMS_TMD2772_WTIME_SETTING_ALS_… in setMode()
332 mData.alsOn = on; in sensorPowerAls()
388 setMode(mData.alsOn, on, (on ? SENSOR_STATE_ENABLING_PROX : SENSOR_STATE_DISABLING_PROX)); in sensorPowerProx()
618 if (mData.alsOn && mData.alsReading && in handle_i2c_event()
679 mData.alsOn = false; in init_app()
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c146 bool alsOn; member
240 mData.alsOn = on; in sensorPowerAls()
363 if (mData.alsOn && mData.alsReading) { in handle_i2c_event()
389 mData.alsOn = false; in init_app()