two_layer_interface.h
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         uint16_t id;
00017         uint8_t len;
00018         uint8_t rtr;
00019         uint8_t data[8];*/
00020 };
00021 
00022 //enum CONFIG_BUS_MODE;//TODO
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
 All Classes Files Functions Enumerations Enumerator Defines