]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/canmsg.h
README and TODO updated
[lincan.git] / lincan / include / canmsg.h
index 8277b9e1b2d2b8428d4bd0f8b34b91824bf4cdc4..61f327ac2052cd7fb1688de27035dcdd7856735d 100644 (file)
@@ -1,3 +1,11 @@
+/* canmsg.h - common kernel-space and user-space CAN message structure
+ * Linux CAN-bus device driver.
+ * Written by Pavel Pisa - OCERA team member
+ * email:pisa@cmp.felk.cvut.cz
+ * This software is released under the GPL-License.
+ * Version lincan-0.3  17 Jun 2004
+ */
+
 #ifndef _CANMSG_T_H
 #define _CANMSG_T_H
 
@@ -59,12 +67,15 @@ struct canmsg_t {
 #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;
-       unsigned long   timestamp;
+       canmsg_tstamp_t timestamp;
        unsigned int    length;
        unsigned char   data[CAN_MSG_LENGTH];
 } PACKED;