Searched refs:trySwitchState (Results 1 – 5 of 5) sorted by relevance
273 static bool trySwitchState(enum st_mag40_SensorState newState) { in trySwitchState() function464 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()
286 static bool trySwitchState(enum st_acc44_SensorState newState) { in trySwitchState() function382 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()
956 #define trySwitchState(s) trySwitchState_(_task, (s)) macro1401 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 …]
730 #define trySwitchState(s) trySwitchState_(_task, (s)) macro1288 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 …]
770 #define trySwitchState(s) trySwitchState_(_task, (s)) macro1005 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)) {