]> rtime.felk.cvut.cz Git - mirosot.git/blobdiff - bluetooth/hci.h
An unsucesfull attempt to clean bluetooth library and make it working.
[mirosot.git] / bluetooth / hci.h
index 9cab25fac424b9a628844fbac40b37156ddbe4a2..70ce94467dde009ad5ce14a0d4161dab035c97e8 100644 (file)
@@ -1,8 +1,8 @@
 /*******************************************************************
   bluetooth library
 
-  hci.h - main structures for keeping an information about a queie, definition of global val,
-          and any macros and inline fce
+  hci.h - main structures for keeping an information about a queue,
+          definition of global val, and any macros and inline fce
 
   Copyright (C) 2006 by Petr Kovacik petr_kovacik@gmail.com
 
 #ifndef HCI_H_H
 #define HCI_H_H
 
+#include <bth_config.h>
+#include <types.h>
+#ifdef CONFIG_BLUETOOTH_LINUX
+#include <stddef.h>
+#endif
+
 /* Byte order conversions */
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define htobs(d)  (d)
@@ -51,7 +57,7 @@ typedef struct {
 // }
 
 /*pro typ char (nikoliv u16)*/
-#define store16(field, val) field=val;
+#define store8(field, val) field=val;
 
 
 // Returns an offset of a field in a structure
@@ -198,12 +204,12 @@ extern bths_dev_info  bth_local_info;
 extern bths_connect_bluet *bth_connected[];
 //extern void *bth_for_connecting[];
 
-/*---------------- queue prikazova a potvrzovaci-----------------------*/
-#define LENCOMMAND    10
-extern void  *bth_pole_adrr_comm_packet[LENCOMMAND];
+/*---------------- command and acknowledge queues -----------------------*/
+#define LENCOMMAND 10
+extern void  *bth_array_adrr_comm_packet[LENCOMMAND];
 extern bths_command_buf_info bth_com_buf_info;
 
-extern void  *bth_pole_adrr_check_packet[LENCOMMAND];
+extern void  *bth_array_adrr_check_packet[LENCOMMAND];
 extern bths_command_buf_info bth_check_buf_info;
 
 extern uint8_t bth_controll_flag;