]> git.enpas.org Git - revag-bap.git/blob - vw-bap.h
Rename functions with vw_ prefix
[revag-bap.git] / vw-bap.h
1 #ifndef __VW_BAP_H__
2 #define __VW_BAP_H__
3
4 #include <linux/can.h>
5
6
7 typedef unsigned char BAP_OpCode;
8 typedef unsigned char BAP_SubNode;
9 typedef unsigned char BAP_SubFunction;
10 typedef unsigned short BAP_FrameLen;
11
12
13 struct BAP_Frame {
14         BAP_OpCode opcode;
15         BAP_SubNode subnode;
16         BAP_SubFunction function;
17         BAP_FrameLen len;
18         BAP_FrameLen len_done;
19         char data[4096];
20 };
21
22
23 struct BAP_RXer {
24         struct BAP_Frame *mfchannel[8];
25 };
26
27
28
29
30
31 void vw_bap_frame_dump(struct BAP_Frame *bap_frame);
32
33 struct BAP_Frame* vw_bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame);
34
35 struct BAP_RXer* vw_bap_alloc();
36 void vw_bap_free(struct BAP_RXer *bap);
37 void vw_bap_frame_free(struct BAP_Frame *bap_frame);
38
39
40
41 #endif