Home
last modified time | relevance | path

Searched refs:sensorGetMyEventType (Results 1 – 13 of 13) sorted by relevance

/device/google/contexthub/firmware/src/drivers/tilt_detection/
Dtilt_detection.c32 #define EVT_SENSOR_ANY_MOTION sensorGetMyEventType(SENS_TYPE_ANY_MOTION)
33 #define EVT_SENSOR_NO_MOTION sensorGetMyEventType(SENS_TYPE_NO_MOTION)
34 #define EVT_SENSOR_ACCEL sensorGetMyEventType(SENS_TYPE_ACCEL)
219 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TILT), in tiltDetectionFlush()
262 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TILT), sample.vptr, NULL); in tiltDetectionHandleEvent()
/device/google/contexthub/firmware/src/drivers/hall/
Dhall.c77 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL); in debounceTimerCallback()
170 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL); in hallSetRate()
178 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), SENSOR_DATA_EVENT_FLUSH, NULL); in hallFlush()
188 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL, tid); in hallSendLastSample()
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/
Drohm_rpr0521.c250 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in proxIsr()
362 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushAls()
371 …result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, … in sendLastSampleAls()
412 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushProx()
437 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx()
595 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event()
618 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in handle_i2c_event()
/device/google/contexthub/firmware/src/drivers/hall_twopole/
Dhall_twopole.c80 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL); in hallReportState()
194 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), SENSOR_DATA_EVENT_FLUSH, NULL); in hallFlush()
204 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL, tid); in hallSendLastSample()
/device/google/contexthub/firmware/src/drivers/ams_tmd4903/
Dams_tmd4903.c267 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in proxIsr()
410 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushAls()
455 …result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mTask.lastAlsSample.vptr, NULL, … in sendLastSampleAls()
497 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushProx()
551 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx()
757 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event()
774 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in handle_i2c_event()
785 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in handle_i2c_event()
/device/google/contexthub/firmware/src/drivers/vsync/
Dvsync.c80 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_VSYNC), sample.vptr, NULL); in vsyncIsr()
143 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_VSYNC), SENSOR_DATA_EVENT_FLUSH, NULL); in vsyncFlush()
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/
Dams_tmd2772.c300 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushAls()
309 …result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_ALS), mData.lastAlsSample.vptr, NULL, … in sendLastSampleAls()
355 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushProx()
366 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx()
560 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event()
592 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in handle_i2c_event()
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/
Dbosch_bmp280.c227 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_BARO), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushBaro()
297 return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TEMP), SENSOR_DATA_EVENT_FLUSH, NULL); in sensorFlushTemp()
475 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_BARO), sample.vptr, NULL); in handleI2cEvent()
481 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TEMP), sample.vptr, NULL); in handleI2cEvent()
/device/google/contexthub/firmware/src/drivers/orientation/
Dorientation.c44 #define EVT_SENSOR_ACC_DATA_RDY sensorGetMyEventType(SENS_TYPE_ACCEL)
45 #define EVT_SENSOR_GYR_DATA_RDY sensorGetMyEventType(SENS_TYPE_GYRO)
46 #define EVT_SENSOR_MAG_DATA_RDY sensorGetMyEventType(SENS_TYPE_MAG)
309 …osEnqueueEvtOrFree(EVENT_TYPE_BIT_DISCARDABLE | sensorGetMyEventType(mSi[mSensor->idx].sensorType), in addSample()
479 osEnqueueEvtOrFree(EVENT_TYPE_BIT_DISCARDABLE | sensorGetMyEventType(mSi[i].sensorType), in drainSamples()
697 uint32_t evtType = sensorGetMyEventType(mSi[mSensor->idx].sensorType); in fusionFlush()
/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c73 #define EVT_SENSOR_ACC_DATA_RDY sensorGetMyEventType(SENS_TYPE_ACCEL)
74 #define EVT_SENSOR_WIN_ORIENTATION_DATA_RDY sensorGetMyEventType(SENS_TYPE_WIN_ORIENTATION)
539 …return osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_WIN_ORIENTATION), SENSOR_DATA_EVENT_FLUSH, NULL… in windowOrientationFlush()
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/
Dbosch_bmi160.c191 #define EVT_SENSOR_ACC_DATA_RDY sensorGetMyEventType(SENS_TYPE_ACCEL)
192 #define EVT_SENSOR_GYR_DATA_RDY sensorGetMyEventType(SENS_TYPE_GYRO)
193 #define EVT_SENSOR_MAG_DATA_RDY sensorGetMyEventType(SENS_TYPE_MAG)
194 #define EVT_SENSOR_STEP sensorGetMyEventType(SENS_TYPE_STEP_DETECT)
195 #define EVT_SENSOR_NO_MOTION sensorGetMyEventType(SENS_TYPE_NO_MOTION)
196 #define EVT_SENSOR_ANY_MOTION sensorGetMyEventType(SENS_TYPE_ANY_MOTION)
197 #define EVT_SENSOR_FLAT sensorGetMyEventType(SENS_TYPE_FLAT)
198 #define EVT_SENSOR_DOUBLE_TAP sensorGetMyEventType(SENS_TYPE_DOUBLE_TAP)
199 #define EVT_SENSOR_STEP_COUNTER sensorGetMyEventType(SENS_TYPE_STEP_COUNT)
1719 EVENT_TYPE_BIT_DISCARDABLE | sensorGetMyEventType(mSensorInfo[i].sensorType)); in flushAllData()
[all …]
/device/google/contexthub/firmware/inc/
Dsensors.h252 #define sensorGetMyEventType(_sensorType) (EVT_NO_FIRST_SENSOR_EVENT + (_sensorType)) macro
/device/google/contexthub/firmware/src/
DhostIntf.c706 osEventSubscribe(mHostIntfTid, sensorGetMyEventType(si->biasType)); in initSensors()
1141 osEventUnsubscribe(mHostIntfTid, sensorGetMyEventType(cmd->sensType)); in hostIntfHandleEvent()
1174 osEventSubscribe(mHostIntfTid, sensorGetMyEventType(cmd->sensType)); in hostIntfHandleEvent()