Subversion Repositories NaviCtrl

Rev

Rev 691 | Rev 698 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
691 holgerb 1
#ifndef __CANBUS_H
2
#define __CANBUS_H
3
 
4
void CanbusInit(void);
5
void ProcessCanBus(void);
6
extern canmsg RxCanMsg;
7
extern volatile u32 frame_received_flag;
8
 
696 holgerb 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;
28
 
691 holgerb 29
#endif