Searched refs:setMode (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 257 static void setMode(bool on, uint8_t state) in setMode() function 294 setMode(newMode, (on ? STATE_ENABLING_BARO : STATE_DISABLING_BARO)); in sensorPowerBaro() 358 setMode(newMode, (on ? STATE_ENABLING_TEMP : STATE_DISABLING_TEMP)); in sensorPowerTemp()
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 305 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() function 333 setMode(on, mData.proxOn, (on ? SENSOR_STATE_ENABLING_ALS : SENSOR_STATE_DISABLING_ALS)); in sensorPowerAls() 388 setMode(mData.alsOn, on, (on ? SENSOR_STATE_ENABLING_PROX : SENSOR_STATE_DISABLING_PROX)); in sensorPowerProx()
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 371 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() function 400 setMode(on, mTask.proxOn, (on ? SENSOR_STATE_ENABLING_ALS : SENSOR_STATE_DISABLING_ALS)); in sensorPowerAls() 450 setMode(mTask.alsOn, on, (on ? SENSOR_STATE_ENABLING_PROX : SENSOR_STATE_DISABLING_PROX)); in sensorPowerProx()
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 468 static void setMode(bool alsOn, bool proxOn, uint8_t state) in setMode() function 496 setMode(on, mTask.proxOn, (on) ? SENSOR_STATE_ENABLING_ALS : SENSOR_STATE_DISABLING_ALS); in sensorPowerAls() 583 setMode(mTask.alsOn, on, (on) ? SENSOR_STATE_ENABLING_PROX : SENSOR_STATE_DISABLING_PROX); in sensorPowerProx()
|