src/hll.h
Go to the documentation of this file.
00001 
00009 #ifndef HLL_H_
00010 #define HLL_H_
00011 #include "pdcp.h"
00012 #include "socket.h"
00013 
00014 enum {
00015     SOCK_FREE,
00016     SOCK_STDOUT,
00017     SOCK_STDIN,
00018     SOCK_APPLICATION,
00019     //These are all sockets in hll (others may exist elsewhere)
00020     SOCK_TOT_HLL
00021 };
00022 
00023 typedef void (*hll_handled_hook)(u8);
00024 
00025 struct hll{
00026     struct socket sock[SOCK_TOT_HLL];
00027     struct canel canbuf[CONFIG_NUM_CANMSG];
00028     hll_handled_hook notify;
00029 };
00030 
00031 extern struct hll hll_global;
00032 
00033 typedef u8 socknum_t;
00034 
00035 void hll_msg_free(struct can_msg *msg);
00036 void hll_msg_commit(struct can_msg *msg);
00037 struct can_msg *hll_msg_get(void);
00038 struct can_msg *hll_msg_alloc(void);
00039 void hll_msg_push(struct can_msg *msg,socknum_t);
00040 struct can_msg *hll_msg_pull(socknum_t);
00041 void hll_init(sock_recv_hook, hll_handled_hook);
00042 
00043 #endif
 All Classes Files Functions Enumerations Enumerator Defines