#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB |
union | PACK_ATTRIB::PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB::PACK_ATTRIB::PACK_ATTRIB |
union | PACK_ATTRIB::PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB::PACK_ATTRIB |
struct | PACK_ATTRIB |
struct | PACK_ATTRIB |
Macros | |
#define | BUILD_ASSERT(cond) do { (void) sizeof(char [1 - 2*!(cond)]); } while(0) |
#define | COMMS_VERSION 1 |
#define | CONFIGURATION_ENDPOINT 1 |
#define | PACK_ATTRIB __attribute__ ((packed)) |
#define | STREAM_ENDPOINT 2 |
#define | USB_MI 0 |
#define | USB_PID 0x0112 |
#define | USB_VID 0x6923 |
Typedefs | |
typedef union PACK_ATTRIB | ConfigPacket |
typedef union PACK_ATTRIB | MessageBuffer |
typedef struct PACK_ATTRIB | StreamPacket |
typedef struct PACK_ATTRIB | Version |
Enumerations | |
enum | { USB_ID_VERSION = 0x00, USB_ID_REBOOT = 0x01, USB_ID_RESET = 0x08, USB_ID_SET_BUS_CFG = 0x10, USB_ID_GET_BUS_CFG = 0x11, USB_ID_SET_FILTER = 0x12, USB_ID_GET_FILTER = 0x13, USB_ID_NUM_CHANNELS = 0x40, USB_ID_GET_TIME = 0x41, USB_ID_GET_STATS = 0x42 } |
enum | { MODE_NORMAL = 0, MODE_LISTEN_ONLY = 1 } |
Functions | |
static void | testCommonSizes () |
static void | testConfigurationInterfaceSizes () |
static void | testDataStreamSizes () |
#define BUILD_ASSERT | ( | cond | ) | do { (void) sizeof(char [1 - 2*!(cond)]); } while(0) |
Definition at line 47 of file UsbCanMessages.h.
#define COMMS_VERSION 1 |
Definition at line 49 of file UsbCanMessages.h.
#define CONFIGURATION_ENDPOINT 1 |
Definition at line 92 of file UsbCanMessages.h.
#define PACK_ATTRIB __attribute__ ((packed)) |
Definition at line 43 of file UsbCanMessages.h.
#define STREAM_ENDPOINT 2 |
Definition at line 164 of file UsbCanMessages.h.
#define USB_MI 0 |
Definition at line 53 of file UsbCanMessages.h.
#define USB_PID 0x0112 |
Definition at line 52 of file UsbCanMessages.h.
#define USB_VID 0x6923 |
Definition at line 51 of file UsbCanMessages.h.
typedef union PACK_ATTRIB ConfigPacket |
typedef union PACK_ATTRIB MessageBuffer |
typedef struct PACK_ATTRIB StreamPacket |
typedef struct PACK_ATTRIB Version |
anonymous enum |
Enumerator | |
---|---|
USB_ID_VERSION | |
USB_ID_REBOOT | |
USB_ID_RESET | |
USB_ID_SET_BUS_CFG | |
USB_ID_GET_BUS_CFG | |
USB_ID_SET_FILTER | |
USB_ID_GET_FILTER | |
USB_ID_NUM_CHANNELS | |
USB_ID_GET_TIME | |
USB_ID_GET_STATS |
Definition at line 93 of file UsbCanMessages.h.
anonymous enum |
Enumerator | |
---|---|
MODE_NORMAL | |
MODE_LISTEN_ONLY |
Definition at line 105 of file UsbCanMessages.h.
|
inlinestatic |
Definition at line 82 of file UsbCanMessages.h.
|
inlinestatic |
Definition at line 155 of file UsbCanMessages.h.
|
inlinestatic |
Definition at line 168 of file UsbCanMessages.h.