Searched refs:pinState (Results 1 – 4 of 4) sorted by relevance
68 bool pinState = gpioGet(mTask.pin); in debounceTimerCallback() local71 if (pinState == prevPinState) { in debounceTimerCallback()72 sample.idata = pinState ? HALL_REPORT_OPENED_VALUE : in debounceTimerCallback()86 bool pinState = gpioGet(data->pin); in hallIsr() local96 …imerSet(HALL_DEBOUNCE_TIMER_DELAY, 0, 50, debounceTimerCallback, (void*)pinState, true /* oneShot … in hallIsr()167 bool pinState = gpioGet(mTask.pin); in hallSetRate() local168 sample.idata = pinState ? HALL_REPORT_OPENED_VALUE : in hallSetRate()
74 static void hallReportState(int32_t pinState) in hallReportState() argument77 if (pinState != mTask.prevReportedState) { in hallReportState()78 mTask.prevReportedState = pinState; in hallReportState()79 sample.idata = pinState; in hallReportState()
261 bool pinState; in proxIsr() local269 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()
322 bool pinState; in proxIsr() local328 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()