]> rtime.felk.cvut.cz Git - tiny-bt.git/blob - testf/t4/bt_hw.h
new version of callback functions and new was added
[tiny-bt.git] / testf / t4 / bt_hw.h
1 //
2 // C++ Interface: bt_hw
3 //
4 // Description: 
5 //
6 //
7 // Author: root <root@ubuntu>, (C) 2008
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef __BT_HW
13 #define __BT_HW
14
15 #include<asm/types.h>
16
17 /* BT protocols(from bluetooth.h)*/
18 #define BTPROTO_L2CAP   0
19 #define BTPROTO_HCI     1
20 #define BTPROTO_SCO     2
21 #define BTPROTO_RFCOMM  3
22 #define BTPROTO_BNEP    4
23 #define BTPROTO_CMTP    5
24 #define BTPROTO_HIDP    6
25 #define BTPROTO_AVDTP   7
26
27 #define SOL_HCI         0
28 #define SOL_L2CAP       6
29 #define SOL_SCO         17
30 #define SOL_RFCOMM      18
31
32 extern int hw_bt_open_device(__u8 dev_id);
33 extern int hw_bt_close_dev();
34 extern int hw_bt_write(__u8 *p_array, __u16 length);
35 extern int hw_bt_read(__u8 *p_recbuf);
36
37
38
39 #endif
40