Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c241 uint8_t lastProxState; // enum ProxState member
320 uint8_t lastProxState = data->lastProxState; in proxIsr() local
334 (void)lastProxState; in proxIsr()
340 data->lastProxState = (pinState) ? PROX_STATE_FAR : PROX_STATE_NEAR; in proxIsr()
341 if (data->lastProxState != lastProxState) in proxIsr()
579 mTask.lastProxState = PROX_STATE_INIT; in sensorPowerProx()
618 mTask.lastProxState = PROX_STATE_INIT; in sensorCalibrateProx()
655 if (mTask.lastProxState != PROX_STATE_INIT) { in sendLastSampleProx()
656 …sample.fdata = (mTask.lastProxState == PROX_STATE_NEAR) ? AMS_TMD4903_REPORT_NEAR_VALUE : AMS_TMD4… in sendLastSampleProx()
791 uint8_t lastProxState = mTask.lastProxState; in handleProxSample() local
[all …]
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/
Dsynaptics_s3708.c507 enum ProxState lastProxState; in handleEvent() local
545 lastProxState = mTask.proxState; 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()
554 if (lastProxState == PROX_STATE_FAR) { in handleEvent()
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c260 uint8_t lastProxState = data->proxState; in proxIsr() local
276 if (data->proxState != lastProxState) in proxIsr()
574 uint8_t lastProxState; in handle_i2c_event() local
685 lastProxState = mTask.proxState; in handle_i2c_event()
698 if (mTask.proxState != lastProxState) in handle_i2c_event()