35 #ifndef _USB_CAN_MESSAGES_H 36 #define _USB_CAN_MESSAGES_H 39 #if defined(__linux__) || defined(_WIN32) 43 #define PACK_ATTRIB __attribute__ ((packed)) 47 #define BUILD_ASSERT(cond) do { (void) sizeof(char [1 - 2*!(cond)]); } while(0) 49 #define COMMS_VERSION 1 51 #define USB_VID 0x6923 52 #define USB_PID 0x0112 73 uint32_t headerWord[2];
92 #define CONFIGURATION_ENDPOINT 1 149 uint32_t rx_drops[4];
150 uint32_t tx_drops[4];
151 uint8_t rx_errors[4];
152 uint8_t tx_errors[4];
164 #define STREAM_ENDPOINT 2 175 #if defined(__linux__) || defined (_WIN32) 176 #pragma pack(pop) // Undo packing 179 #endif // _USB_CAN_MESSAGES_H
#define BUILD_ASSERT(cond)
struct PACK_ATTRIB::PACK_ATTRIB bus_cfg
struct PACK_ATTRIB::PACK_ATTRIB stats
struct PACK_ATTRIB::PACK_ATTRIB num_channels
union PACK_ATTRIB ConfigPacket
struct PACK_ATTRIB::PACK_ATTRIB time
static void testDataStreamSizes()
struct PACK_ATTRIB Version
struct PACK_ATTRIB::PACK_ATTRIB version
struct PACK_ATTRIB StreamPacket
static void testConfigurationInterfaceSizes()
union PACK_ATTRIB MessageBuffer
struct PACK_ATTRIB::PACK_ATTRIB filter
static void testCommonSizes()