Lines Matching defs:state
65 uint8_t state;
123 * state. Intermediate states should start / bump the refcount on the
151 if (each[n].state == LBCS_IDLE) {
158 each[n].state = LBCS_MIN_DOWN_QUALIFY;
172 * the switch to a deterministic-ish state.
174 * If the switch remains in that state, well, it makes no
179 * network charge state itself.
185 * to the switch state. But if an interrupt comes and we have
188 * telling us. We can't trust the gpio state if we read it now
219 if (each->state == LBCS_IDLE) {
235 // lwsl_notice("%d\n", each->state);
237 switch (each->state) {
260 each->state = LBCS_UP_SETTLE2;
273 each->state = LBCS_ASSESS_DOWN_HOLD;
289 each->state = LBCS_WAIT_UP;
312 each->state = LBCS_UP_SETTLE1;
324 each->state = LBCS_WAIT_DOUBLECLICK;
335 each->state = LBCS_MIN_DOWN_QUALIFY2;
363 each->state = LBCS_UP_SETTLE2;
377 each->state = LBCS_WAIT_UP;
388 each->state = LBCS_UP_SETTLE2;
406 each->state = LBCS_IDLE;