Home | History | Annotate | Download | only in dev

Lines Matching defs:packet

72 	/* 5-byte packet as described above */
78 int8_t packet[5];
228 * Here's the real action. Read a full packet and
237 sc->packet[ZSMS_PACKET_SYNC] = c;
243 sc->packet[ZSMS_PACKET_X1] = c;
248 sc->packet[ZSMS_PACKET_Y1] = c;
253 sc->packet[ZSMS_PACKET_X2] = c;
258 sc->packet[ZSMS_PACKET_Y2] = c;
281 btns = (uint8_t)sc->packet[ZSMS_PACKET_SYNC] & ZSMS_SYNC_BTN_MASK;
290 x = (int)sc->packet[ZSMS_PACKET_X1] + (int)sc->packet[ZSMS_PACKET_X2];
291 y = (int)sc->packet[ZSMS_PACKET_Y1] + (int)sc->packet[ZSMS_PACKET_Y2];