/*******************************************************************
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)
// }
/*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
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;