Lines Matching defs:packet
92 "unexpected packet: 0x%02x\n",
220 static int elo_command_10(struct elo *elo, unsigned char *packet)
229 elo->expected_packet = toupper(packet[0]);
237 csum += packet[i];
238 if (serio_write(elo->serio, packet[i]))
249 memcpy(packet, elo->response, ELO10_PACKET_LEN);
262 unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD };
264 if (elo_command_10(elo, packet))
267 dev->id.version = (packet[5] << 8) | packet[4];
271 if (packet[3] & ELO10_PRESSURE)
276 elo_types[(packet[1] -'0') & 0x03],
277 packet[5], packet[4], packet[3], packet[7]);