Classes | Macros | Typedefs | Enumerations | Functions
UsbCanMessages.h File Reference
#include <stdint.h>
Include dependency graph for UsbCanMessages.h:
This graph shows which files directly or indirectly include this file:

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 ()
 

Macro Definition Documentation

#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 Documentation

typedef union PACK_ATTRIB ConfigPacket
typedef union PACK_ATTRIB MessageBuffer
typedef struct PACK_ATTRIB StreamPacket
typedef struct PACK_ATTRIB Version

Enumeration Type Documentation

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.

Function Documentation

static void testCommonSizes ( )
inlinestatic

Definition at line 82 of file UsbCanMessages.h.

static void testConfigurationInterfaceSizes ( )
inlinestatic

Definition at line 155 of file UsbCanMessages.h.

static void testDataStreamSizes ( )
inlinestatic

Definition at line 168 of file UsbCanMessages.h.



dataspeed_can_usb
Author(s): Kevin Hallenbeck
autogenerated on Thu Jul 9 2020 03:42:00