]> rtime.felk.cvut.cz Git - tiny-bt.git/blobdiff - testf/t4/bt_hw.h
new version of callback functions and new was added
[tiny-bt.git] / testf / t4 / bt_hw.h
diff --git a/testf/t4/bt_hw.h b/testf/t4/bt_hw.h
new file mode 100644 (file)
index 0000000..7e9b258
--- /dev/null
@@ -0,0 +1,40 @@
+//
+// C++ Interface: bt_hw
+//
+// Description: 
+//
+//
+// Author: root <root@ubuntu>, (C) 2008
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef __BT_HW
+#define __BT_HW
+
+#include<asm/types.h>
+
+/* BT protocols(from bluetooth.h)*/
+#define BTPROTO_L2CAP  0
+#define BTPROTO_HCI    1
+#define BTPROTO_SCO    2
+#define BTPROTO_RFCOMM 3
+#define BTPROTO_BNEP   4
+#define BTPROTO_CMTP   5
+#define BTPROTO_HIDP   6
+#define BTPROTO_AVDTP  7
+
+#define SOL_HCI                0
+#define SOL_L2CAP      6
+#define SOL_SCO                17
+#define SOL_RFCOMM     18
+
+extern int hw_bt_open_device(__u8 dev_id);
+extern int hw_bt_close_dev();
+extern int hw_bt_write(__u8 *p_array, __u16 length);
+extern int hw_bt_read(__u8 *p_recbuf);
+
+
+
+#endif
+