Lines Matching refs:mTask

62 } mTask;  variable
68 bool pinState = gpioGet(mTask.pin); in debounceTimerCallback()
70 if (mTask.on) { in debounceTimerCallback()
75 if (sample.idata != mTask.prevReportedValue) { in debounceTimerCallback()
76 mTask.prevReportedValue = sample.idata; in debounceTimerCallback()
93 if (mTask.debounceTimerHandle) in hallIsr()
94 timTimerCancel(mTask.debounceTimerHandle); in hallIsr()
96mTask.debounceTimerHandle = timTimerSet(HALL_DEBOUNCE_TIMER_DELAY, 0, 50, debounceTimerCallback, (… in hallIsr()
139 extiClearPendingGpio(mTask.pin); in hallPower()
140 enableInterrupt(mTask.pin, &mTask.isr); in hallPower()
142 disableInterrupt(mTask.pin, &mTask.isr); in hallPower()
143 extiClearPendingGpio(mTask.pin); in hallPower()
146 mTask.on = on; in hallPower()
147 mTask.prevReportedValue = -1; in hallPower()
149 if (mTask.debounceTimerHandle) { in hallPower()
150 timTimerCancel(mTask.debounceTimerHandle); in hallPower()
151 mTask.debounceTimerHandle = 0; in hallPower()
154 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_POWER_STATE_CHG, on, 0); in hallPower()
159 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in hallFirmwareUpload()
165 if (mTask.on) { in hallSetRate()
167 bool pinState = gpioGet(mTask.pin); in hallSetRate()
173 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in hallSetRate()
186 if (mTask.prevReportedValue != -1) { in hallSendLastSample()
187 sample.idata = mTask.prevReportedValue; in hallSendLastSample()
211 mTask.id = taskId; in startTask()
212 mTask.sensorHandle = sensorRegister(&mSensorInfo, &mSensorOps, NULL, true); in startTask()
213 mTask.prevReportedValue = -1; in startTask()
214 mTask.pin = gpioRequest(HALL_PIN); in startTask()
215 mTask.isr.func = hallIsr; in startTask()
222 disableInterrupt(mTask.pin, &mTask.isr); in endTask()
223 extiUnchainIsr(HALL_IRQ, &mTask.isr); in endTask()
224 extiClearPendingGpio(mTask.pin); in endTask()
225 gpioRelease(mTask.pin); in endTask()
226 sensorUnregister(mTask.sensorHandle); in endTask()