- Add initial code to unregister devices from server
- Handle Hardware error event - Add function to retrieve an string from a bluetooth error - Styling git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,6 +20,13 @@ typedef enum { BT_COMMAND = 0,
|
||||
HCI_NUM_PACKET_TYPES
|
||||
} bt_packet_t;
|
||||
|
||||
const char* BluetoothCommandOpcode(uint16 opcode);
|
||||
const char* BluetoothEvent(uint8 event);
|
||||
const char* BluetoothManufacturer(uint16 manufacturer);
|
||||
const char* BluetoothHciVersion(uint16 ver);
|
||||
const char* BluetoothLmpVersion(uint16 ver);
|
||||
const char* BluetoothError(uint8 error);
|
||||
|
||||
/* packets sizes */
|
||||
#define HCI_MAX_ACL_SIZE 1024
|
||||
#define HCI_MAX_SCO_SIZE 255
|
||||
|
||||
@@ -10,12 +10,6 @@
|
||||
|
||||
#define HCI_COMMAND_HDR_SIZE 3
|
||||
|
||||
const char* GetCommand(uint16 command);
|
||||
const char* GetEvent(uint8 event);
|
||||
const char* GetManufacturer(uint16 manufacturer);
|
||||
const char* GetHciVersion(uint16 ver);
|
||||
const char* GetLmpVersion(uint16 ver);
|
||||
|
||||
struct hci_command_header {
|
||||
uint16 opcode; /* OCF & OGF */
|
||||
uint8 clen;
|
||||
|
||||
@@ -292,7 +292,7 @@ struct hci_ev_sychronous_connection_changed {
|
||||
// TODO: Define remaining Bluetooth 2.1 events structures
|
||||
#define HCI_EVENT_EXTENDED_INQUIRY_RESULT 0x2F
|
||||
|
||||
#define HCI_EVENT_ENCRYPTION_KEY_REFERSH_COMPLETE 0x30
|
||||
#define HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 0x30
|
||||
|
||||
#define HCI_EVENT_IO_CAPABILITY_REQUEST 0x31
|
||||
|
||||
|
||||
Reference in New Issue
Block a user