Home
last modified time | relevance | path

Searched refs:proxState (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c238 uint8_t proxState; // enum ProxState member
259 bool firstProxSample = (data->proxState == PROX_STATE_INIT); in proxIsr()
260 uint8_t lastProxState = data->proxState; in proxIsr()
275 data->proxState = (pinState) ? PROX_STATE_FAR : PROX_STATE_NEAR; in proxIsr()
276 if (data->proxState != lastProxState) in proxIsr()
488 mTask.proxState = PROX_STATE_INIT; in sensorPowerProx()
539 if (mTask.proxState != PROX_STATE_INIT) { in sendLastSampleProx()
540 …sample.fdata = (mTask.proxState == PROX_STATE_NEAR) ? ROHM_RPR0521_REPORT_NEAR_VALUE : ROHM_RPR052… in sendLastSampleProx()
712 lastProxState = mTask.proxState; in handle_i2c_event()
719 mTask.proxState = PROX_STATE_NEAR; in handle_i2c_event()
[all …]
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c184 uint8_t proxState; // enum ProxState member
386 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 …]
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/
Dsynaptics_s3708.c154 enum ProxState proxState; member
353 if (mTask.proxState == PROX_STATE_FAR) { in configProx()
357 mTask.proxState = PROX_STATE_UNKNOWN; in configProx()
545 lastProxState = mTask.proxState; in handleEvent()
546 …mTask.proxState = (embeddedSample.fdata < PROXIMITY_THRESH_NEAR) ? PROX_STATE_NEAR : PROX_STATE_FA… in handleEvent()
548 if ((lastProxState != PROX_STATE_FAR) && (mTask.proxState == PROX_STATE_FAR)) { in handleEvent()
552 … } else if ((lastProxState != PROX_STATE_NEAR) && (mTask.proxState == PROX_STATE_NEAR)) { in handleEvent()