Home
last modified time | relevance | path

Searched refs:pinState (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/drivers/hall/
Dhall.c68 bool pinState = gpioGet(mTask.pin); in debounceTimerCallback() local
71 if (pinState == prevPinState) { in debounceTimerCallback()
72 sample.idata = pinState ? HALL_REPORT_OPENED_VALUE : in debounceTimerCallback()
86 bool pinState = gpioGet(data->pin); in hallIsr() local
96 …imerSet(HALL_DEBOUNCE_TIMER_DELAY, 0, 50, debounceTimerCallback, (void*)pinState, true /* oneShot … in hallIsr()
167 bool pinState = gpioGet(mTask.pin); in hallSetRate() local
168 sample.idata = pinState ? HALL_REPORT_OPENED_VALUE : in hallSetRate()
/device/google/contexthub/firmware/os/drivers/hall_twopole/
Dhall_twopole.c74 static void hallReportState(int32_t pinState) in hallReportState() argument
77 if (pinState != mTask.prevReportedState) { in hallReportState()
78 mTask.prevReportedState = pinState; in hallReportState()
79 sample.idata = pinState; in hallReportState()
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c261 bool pinState; in proxIsr() local
269 pinState = gpioGet(data->pin); in proxIsr()
271 if (firstProxSample && !pinState) { in proxIsr()
274 … sample.fdata = (pinState) ? ROHM_RPR0521_REPORT_FAR_VALUE : ROHM_RPR0521_REPORT_NEAR_VALUE; in proxIsr()
275 data->proxState = (pinState) ? PROX_STATE_FAR : PROX_STATE_NEAR; in proxIsr()
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c322 bool pinState; in proxIsr() local
328 pinState = gpioGet(data->pin); in proxIsr()
333 (void)pinState; in proxIsr()
335 if (!pinState) in proxIsr()
339 … sample.fdata = (pinState) ? AMS_TMD4903_REPORT_FAR_VALUE : AMS_TMD4903_REPORT_NEAR_VALUE; in proxIsr()
340 data->lastProxState = (pinState) ? PROX_STATE_FAR : PROX_STATE_NEAR; in proxIsr()
347 } else if (data->alsOn && data->alsCalibrating && !pinState) { in proxIsr()