/device/google/contexthub/firmware/src/drivers/tilt_detection/ |
D | tilt_detection.c | 32 #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/ |
D | hall.c | 77 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/ |
D | rohm_rpr0521.c | 250 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/ |
D | hall_twopole.c | 80 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/ |
D | ams_tmd4903.c | 267 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/ |
D | vsync.c | 80 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/ |
D | ams_tmd2772.c | 300 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/ |
D | bosch_bmp280.c | 227 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/ |
D | orientation.c | 44 #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/ |
D | window_orientation.c | 73 #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/ |
D | bosch_bmi160.c | 191 #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/ |
D | sensors.h | 252 #define sensorGetMyEventType(_sensorType) (EVT_NO_FIRST_SENSOR_EVENT + (_sensorType)) macro
|
/device/google/contexthub/firmware/src/ |
D | hostIntf.c | 706 osEventSubscribe(mHostIntfTid, sensorGetMyEventType(si->biasType)); in initSensors() 1141 osEventUnsubscribe(mHostIntfTid, sensorGetMyEventType(cmd->sensType)); in hostIntfHandleEvent() 1174 osEventSubscribe(mHostIntfTid, sensorGetMyEventType(cmd->sensType)); in hostIntfHandleEvent()
|