Lines Matching refs:mTask
104 } mTask;
115 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.id);
122 osEnqueuePrivateEvt(EVT_SENSOR_LEDS_TIMER, data, NULL, mTask.id);
148 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) {
149 if (!mTask.transfers[i].inUse) {
150 mTask.transfers[i].inUse = true;
151 mTask.transfers[i].state = state;
152 return &mTask.transfers[i];
187 if (mTask.ledsTimerHandle) {
188 timTimerCancel(mTask.ledsTimerHandle);
189 mTask.ledsTimerHandle = 0;
191 mTask.ledsOn = on;
192 return sensorSignalInternalEvt(mTask.sHandle, SENSOR_INTERNAL_EVT_POWER_STATE_CHG, on, 0);
197 return sensorSignalInternalEvt(mTask.sHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0);
202 if (mTask.ledsTimerHandle)
203 timTimerCancel(mTask.ledsTimerHandle);
205 mTask.ledsTimerHandle = timTimerSet(sensorTimerLookupCommon(ledsRates,
208 return sensorSignalInternalEvt(mTask.sHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency);
219 if (lcfg->led_num >= mTask.num) {
225 lval = mTask.led[index];
234 mTask.led[index] = lval;
246 lval = flag ? mTask.led[index] : 0;
284 sensorRegisterInitComplete(mTask.sHandle);
286 mTask.ledsOn = true;
287 mTask.led[0] = LP3943_DBG_VALUE;
288 osEnqueuePrivateEvt(EVT_TEST, NULL, NULL, mTask.id);
307 osEventUnsubscribe(mTask.id, EVT_APP_START);
319 if (!mTask.ledsOn)
321 mTask.blink = !mTask.blink;
322 sensorLedsOnOff(mTask.blink);
336 mTask.id = taskId;
337 mTask.num = LP3943_MAX_LED_NUM;
338 memset(mTask.led, 0x00, LP3943_MAX_LED_SECTION);
339 mTask.ledsOn = mTask.blink = false;
342 mTask.sHandle = sensorRegister(&sensorInfoLedsLP3943, &sensorOpsLedsLP3943, NULL, false);
351 sensorUnregister(mTask.sHandle);