#ifndef _BLUETOOTH_H
#define _BLUETOOTH_H
#include <ByteOrder.h>
#define BLUETOOTH_1_1B 0
#define BLUETOOTH_1_1 1
#define BLUETOOTH_1_2 2
#define BLUETOOTH_2_0 3
#define BLUETOOTH_VERSION BLUETOOTH_2_0
typedef struct {
uint8 b[6];
} __attribute__((packed)) bdaddr_t;
#define BDADDR_NULL ((bdaddr_t) {{0, 0, 0, 0, 0, 0}})
#define BDADDR_LOCAL ((bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
#define BDADDR_BROADCAST ((bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
#define BDADDR_ANY BDADDR_BROADCAST
typedef struct {
uint8 l[16];
} __attribute__((packed)) linkkey_t;
#define BLUETOOTH_PROTO_HCI 134
#define BLUETOOTH_PROTO_L2CAP 135
#define BLUETOOTH_PROTO_RFCOMM 136
#define BLUETOOTH_PROTO_MAX 256
#endif