Subversion Repositories NaviCtrl

Rev

Rev 691 | Rev 698 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 691 Rev 696
Line 4... Line 4...
4
void CanbusInit(void);
4
void CanbusInit(void);
5
void ProcessCanBus(void);
5
void ProcessCanBus(void);
6
extern canmsg RxCanMsg;
6
extern canmsg RxCanMsg;
7
extern volatile u32 frame_received_flag;
7
extern volatile u32 frame_received_flag;
Line -... Line 8...
-
 
8
 
-
 
9
 
-
 
10
typedef struct
-
 
11
{
-
 
12
  u32 IdType;
-
 
13
  u32 Id;
-
 
14
  u32 Length;      // data length
-
 
15
        union
-
 
16
        {
-
 
17
            u8  Byte[8];
-
 
18
                s8      sByte[8];
-
 
19
                u16 Int[2];
-
 
20
                s16 sInt[2];
-
 
21
                u32 Long;
-
 
22
                s32 sLong;
-
 
23
                float Float;
-
 
24
        } __attribute__((packed)) D;
-
 
25
 } /*__attribute__((packed))*/ CanMessage_t;
-
 
26
 
-
 
27
//extern CanMessage_t CanMessage;
8
 
28