23 #ifndef _USB_PACKET_H_ 24 #define _USB_PACKET_H_ 27 #include <libplayercommon/playercommon.h> 31 unsigned char usb_message_header;
32 unsigned char usb_command_identifier;
33 unsigned char command_type;
34 unsigned char unused0;
35 unsigned char unused1;
36 unsigned char unused2;
37 unsigned short can_message_header;
38 unsigned char unused3;
39 unsigned char can_message[8];
40 unsigned char usb_message_checksum;
44 unsigned char pkt_data[18];
51 unsigned short make_can_header(
long id,
unsigned int dlc,
unsigned int flags );
52 unsigned char compute_checksum();
57 typedef enum { CANA_DEV, USB_CMD_RESET } CommandType;
76 USBIO() { fd = -1; synced =
false; }
77 int Init(
const char *dev);
Definition: usb_packet.h:48
Definition: usb_packet.h:43
Definition: usb_packet.h:71
Definition: usb_packet.h:30