Rev 691 |
Rev 698 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef __CANBUS_H
#define __CANBUS_H
void CanbusInit(void);
void ProcessCanBus(void);
extern canmsg RxCanMsg;
extern volatile u32 frame_received_flag;
typedef struct
{
u32 IdType;
u32 Id;
u32 Length; // data length
union
{
u8 Byte[8];
s8 sByte[8];
u16 Int[2];
s16 sInt[2];
u32 Long;
s32 sLong;
float Float;
} __attribute__((packed)) D;
} /*__attribute__((packed))*/ CanMessage_t;
//extern CanMessage_t CanMessage;
#endif