Home
last modified time | relevance | path

Searched refs:trySwitchState (Results 1 – 5 of 5) sorted by relevance

/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c273 static bool trySwitchState(enum st_mag40_SensorState newState) { in trySwitchState() function
464 if (trySwitchState(SENSOR_MAG_CONFIGURATION)) { in magPower()
491 if (trySwitchState(SENSOR_MAG_CONFIGURATION)) { in magSetRate()
655 if (!mTask.magOn && trySwitchState(SENSOR_SELF_TEST)) { in magSelfTest()
783 if (trySwitchState(SENSOR_READ_SAMPLES)) { in int2Evt()
799 if (trySwitchState(SENSOR_MAG_CONFIGURATION)) { in processPendingEvt()
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c286 static bool trySwitchState(enum st_acc44_SensorState newState) { in trySwitchState() function
382 if (trySwitchState(state)) { in st_acc44_Power()
414 if (trySwitchState(SENSOR_CHANGE_RATE)) { in st_acc44_SetRate()
508 if (trySwitchState(SENSOR_READ_SAMPLES)) { in int2Evt()
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c956 #define trySwitchState(s) trySwitchState_(_task, (s)) macro
1401 if (trySwitchState(SENSOR_BARO_READ_DATA)) { in lsm6dsm_baroTimerTask()
1434 if (trySwitchState(SENSOR_TIME_SYNC)) { in lsm6dsm_timeSyncTask()
1454 if (trySwitchState(SENSOR_INT1_STATUS_REG_HANDLING)) { in lsm6dsm_readStatusReg_()
2556 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) { in lsm6dsm_setAccelPower()
2589 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) { in lsm6dsm_setGyroPower()
2626 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) { in lsm6dsm_setMagnPower()
2685 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) { in lsm6dsm_setPressPower()
2762 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) { in lsm6dsm_setTempPower()
2840 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) { in lsm6dsm_setStepDetectorPower()
[all …]
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c730 #define trySwitchState(s) trySwitchState_(_task, (s)) macro
1288 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1312 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1344 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1367 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1392 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1412 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1435 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1457 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
1477 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
[all …]
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c770 #define trySwitchState(s) trySwitchState_(_task, (s)) macro
1005 if (trySwitchState(SENSOR_SAVE_CALIBRATION)) {
1400 if (!T(powered) && trySwitchState(SENSOR_CALIBRATING)) {
1417 if (!T(powered) && trySwitchState(SENSOR_CALIBRATING)) {
1827 if (!T(powered) && trySwitchState(SENSOR_TESTING)) {
1845 if (!T(powered) && trySwitchState(SENSOR_TESTING)) {
2270 if (trySwitchState(on ? SENSOR_POWERING_UP : SENSOR_POWERING_DOWN)) {
2295 if (trySwitchState(SENSOR_CONFIG_CHANGING)) {
2786 if (trySwitchState(SENSOR_INT_1_HANDLING)) {