typedef struct timeval canmsg_tstamp_t ;
+typedef unsigned long canmsg_id_t;
+
/**
* struct canmsg_t - structure representing CAN message
* @flags: message flags
struct canmsg_t {
int flags;
int cob;
- unsigned long id;
+ canmsg_id_t id;
canmsg_tstamp_t timestamp;
unsigned short length;
unsigned char data[CAN_MSG_LENGTH];
#ifndef PACKED
#define PACKED __attribute__((packed))
#endif
-
-typedef unsigned long canmsg_tstamp_t ;
-
/* Old, deprecated version of canmsg_t structure */
struct canmsg_t {
short flags;
int cob;
- unsigned long id;
- canmsg_tstamp_t timestamp;
+ canmsg_id_t id;
+ unsigned long timestamp;
unsigned int length;
unsigned char data[CAN_MSG_LENGTH];
} PACKED;
int flags;
int queid;
int cob;
- unsigned long id;
- unsigned long mask;
+ canmsg_id_t id;
+ canmsg_id_t mask;
};
typedef struct canfilt_t canfilt_t;