Go to the documentation of this file.00001
00016 #ifndef HLL_H_
00017 #define HLL_H_
00018 #include "pdcp.h"
00019 #include "socket.h"
00020
00021 enum {
00022 SOCK_FREE,
00023 SOCK_STDOUT,
00024 SOCK_STDIN,
00025 SOCK_APPLICATION,
00026
00027 SOCK_TOT_HLL
00028 };
00029
00030 typedef void (*hll_handled_hook)(u8);
00031
00032 struct hll{
00033 struct socket sock[SOCK_TOT_HLL];
00034 struct canel canbuf[CONFIG_NUM_CANMSG];
00035 hll_handled_hook notify;
00036 };
00037
00038 extern struct hll hll_global;
00039
00040 typedef u8 socknum_t;
00041
00042 void hll_msg_free(struct can_msg *msg);
00043 void hll_msg_commit(struct can_msg *msg);
00044 struct can_msg *hll_msg_get(void);
00045 struct can_msg *hll_msg_alloc(void);
00046 void hll_msg_push(struct can_msg *msg,socknum_t);
00047 struct can_msg *hll_msg_pull(socknum_t);
00048 void hll_init(sock_recv_hook, hll_handled_hook);
00049
00050 #endif