00001 #ifndef TWO_LAYER_INTERFACE
00002 #define TWO_LAYER_INTERFACE
00003
00004 #include <stdint.h>
00005
00010 struct can_msg{
00011 uint16_t id : 11;
00012 uint8_t len : 4;
00013 uint8_t rtr : 1;
00014 uint8_t data[8];
00015
00016
00017
00018
00019
00020 };
00021
00022
00023
00025
00026 void lpl_set_module_mask_filters(uint8_t, uint8_t);
00027 void lpl_msg_poll();
00028
00029 struct can_msg* hpl_msg_alloc();
00030 struct can_msg* hpl_msg_get();
00031 void hpl_msg_commit(struct can_msg*);
00032 void hpl_msg_free(struct can_msg*);
00033
00034 #endif