Searched refs:proxState (Results 1 – 3 of 3) sorted by relevance
230 uint8_t proxState; // enum ProxState member251 bool firstProxSample = (data->proxState == PROX_STATE_INIT); in proxIsr()252 uint8_t lastProxState = data->proxState; in proxIsr()267 data->proxState = (pinState) ? PROX_STATE_FAR : PROX_STATE_NEAR; in proxIsr()268 if (data->proxState != lastProxState) in proxIsr()447 mTask.proxState = PROX_STATE_INIT; in sensorPowerProx()502 if (mTask.proxState != PROX_STATE_INIT) { in sendLastSampleProx()503 …sample.fdata = (mTask.proxState == PROX_STATE_NEAR) ? ROHM_RPR0521_REPORT_NEAR_VALUE : ROHM_RPR052… in sendLastSampleProx()679 lastProxState = mTask.proxState; in handle_i2c_event()686 mTask.proxState = PROX_STATE_NEAR; in handle_i2c_event()[all …]
184 uint8_t proxState; // enum ProxState member386 mData.proxState = PROX_STATE_INIT; in sensorPowerProx()425 if (mData.proxState != PROX_STATE_INIT) { in sendLastSampleProx()426 sample.fdata = (mData.proxState == PROX_STATE_NEAR) ? in sendLastSampleProx()633 if (mData.proxState == PROX_STATE_INIT) { in handle_i2c_event()636 mData.proxState = PROX_STATE_NEAR; in handle_i2c_event()639 mData.proxState = PROX_STATE_FAR; in handle_i2c_event()642 if (mData.proxState == PROX_STATE_NEAR && in handle_i2c_event()645 mData.proxState = PROX_STATE_FAR; in handle_i2c_event()646 } else if (mData.proxState == PROX_STATE_FAR && in handle_i2c_event()[all …]
153 enum ProxState proxState; member352 if (mTask.proxState == PROX_STATE_FAR) { in configProx()356 mTask.proxState = PROX_STATE_UNKNOWN; in configProx()544 lastProxState = mTask.proxState; in handleEvent()545 …mTask.proxState = (embeddedSample.fdata < PROXIMITY_THRESH_NEAR) ? PROX_STATE_NEAR : PROX_STATE_FA… in handleEvent()547 if ((lastProxState != PROX_STATE_FAR) && (mTask.proxState == PROX_STATE_FAR)) { in handleEvent()551 … } else if ((lastProxState != PROX_STATE_NEAR) && (mTask.proxState == PROX_STATE_NEAR)) { in handleEvent()