Searched refs:accelHandle (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 119 uint32_t accelHandle; member 564 if (on == false && mTask.accelHandle != 0) { in windowOrientationPower() 565 sensorRelease(mTask.tid, mTask.accelHandle); in windowOrientationPower() 566 mTask.accelHandle = 0; in windowOrientationPower() 579 if (mTask.accelHandle == 0) { in windowOrientationSetRate() 580 for (i = 0; sensorFind(SENS_TYPE_ACCEL, i, &mTask.accelHandle) != NULL; i++) { in windowOrientationSetRate() 581 … if (sensorRequest(mTask.tid, mTask.accelHandle, ACCEL_MIN_RATE_HZ, ACCEL_MAX_LATENCY_NS)) { in windowOrientationSetRate() 592 if (mTask.accelHandle != 0) in windowOrientationSetRate()
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
D | tilt_detection.c | 61 uint32_t accelHandle; member 167 sensorRequest(mTask.taskId, mTask.accelHandle, ACCEL_MIN_RATE, in configAccel() 171 sensorRelease(mTask.taskId, mTask.accelHandle); in configAccel() 235 sensorFind(SENS_TYPE_ACCEL, 0, &mTask.accelHandle); in tiltDetectionHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 109 uint32_t accelHandle; member 587 if (mTask.accelHandle == 0) { in fusionSetRateAcc() 592 for (i = 0; sensorFind(SENS_TYPE_ACCEL, i, &mTask.accelHandle) != NULL; i++) { in fusionSetRateAcc() 593 if (sensorRequest(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], in fusionSetRateAcc() 600 sensorRequestRateChange(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], in fusionSetRateAcc() 725 if (mTask.accel_client_cnt == 0 && mTask.accelHandle != 0) { in fusionPower() 726 sensorRelease(mTask.tid, mTask.accelHandle); in fusionPower() 727 mTask.accelHandle = 0; in fusionPower()
|