Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c181 SENSOR_IDLE, enumerator
288 bool ret = atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
289 uint8_t prevState = ret ? SENSOR_IDLE : GET_STATE(); in trySwitchState()
294 return atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
753 case SENSOR_IDLE: in st_acc44_handleCommDoneEvt()
761 SET_STATE(SENSOR_IDLE); in st_acc44_handleCommDoneEvt()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c91 SENSOR_IDLE, enumerator
275 bool ret = atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
276 uint8_t prevState = ret ? SENSOR_IDLE : GET_STATE(); in trySwitchState()
281 return atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
952 case SENSOR_IDLE: in handleCommDoneEvt()
960 SET_STATE(SENSOR_IDLE); in handleCommDoneEvt()
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c496 SENSOR_IDLE, enumerator
760 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
761 uint8_t prevState = ret ? SENSOR_IDLE : GET_STATE();
766 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
3069 SET_STATE(SENSOR_IDLE);
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c392 SENSOR_IDLE, enumerator
727 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
728 uint8_t prevState = ret ? SENSOR_IDLE : GET_STATE();
733 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
3671 SET_STATE(SENSOR_IDLE);
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c530 SENSOR_IDLE, enumerator
954 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState); in trySwitchState_()
4069 SET_STATE(SENSOR_IDLE); in lsm6dsm_processPendingEvt()