added some hci link policy commands

This commit is contained in:
matthias.ringwald 2010-01-23 18:26:56 +00:00
parent 481a2f9791
commit 96f7db3e35
2 changed files with 38 additions and 30 deletions

View File

@ -107,7 +107,7 @@
#define BTSTACK_EVENT_VERSION 0x63
// data: system bluetooth on/off (bool)
#define BTSTACK_EVENT_SYSTEM_BLUETOOTH_ENABLED 0x64
#define BTSTACK_EVENT_SYSTEM_BLUETOOTH_ENABLED 0x64
// data: event (8), len(8), status (8), address(48), handle (16), psm (16), source_cid(16), dest_cid (16)
#define L2CAP_EVENT_CHANNEL_OPENED 0x70
@ -167,40 +167,31 @@ typedef enum {
// HCI Commands - see hci_cmds.c for info on parameters
extern hci_cmd_t hci_accept_connection_request;
extern hci_cmd_t hci_authentication_requested;
extern hci_cmd_t hci_create_connection;
extern hci_cmd_t hci_create_connection_cancel;
extern hci_cmd_t hci_delete_stored_link_key;
extern hci_cmd_t hci_disconnect;
extern hci_cmd_t hci_host_buffer_size;
extern hci_cmd_t hci_inquiry;
extern hci_cmd_t hci_inquiry_cancel;
extern hci_cmd_t hci_link_key_request_reply;
extern hci_cmd_t hci_link_key_request_negative_reply;
extern hci_cmd_t hci_link_key_request_reply;
extern hci_cmd_t hci_pin_code_request_reply;
extern hci_cmd_t hci_authentication_requested;
extern hci_cmd_t hci_set_event_mask;
extern hci_cmd_t hci_reset;
extern hci_cmd_t hci_create_connection;
extern hci_cmd_t hci_disconnect;
extern hci_cmd_t hci_create_connection_cancel;
extern hci_cmd_t hci_host_buffer_size;
extern hci_cmd_t hci_write_authentication_enable;
extern hci_cmd_t hci_write_local_name;
extern hci_cmd_t hci_write_page_timeout;
extern hci_cmd_t hci_write_class_of_device;
extern hci_cmd_t hci_qos_setup;
extern hci_cmd_t hci_read_bd_addr;
extern hci_cmd_t hci_read_link_policy_settings;
extern hci_cmd_t hci_remote_name_request;
extern hci_cmd_t hci_remote_name_request_cancel;
extern hci_cmd_t hci_read_bd_addr;
extern hci_cmd_t hci_delete_stored_link_key;
extern hci_cmd_t hci_write_scan_enable;
extern hci_cmd_t hci_accept_connection_request;
extern hci_cmd_t hci_write_inquiry_mode;
extern hci_cmd_t hci_reset;
extern hci_cmd_t hci_set_event_mask;
extern hci_cmd_t hci_write_authentication_enable;
extern hci_cmd_t hci_write_class_of_device;
extern hci_cmd_t hci_write_extended_inquiry_response;
extern hci_cmd_t hci_write_inquiry_mode;
extern hci_cmd_t hci_write_link_policy_settings;
extern hci_cmd_t hci_write_local_name;
extern hci_cmd_t hci_write_page_timeout;
extern hci_cmd_t hci_write_scan_enable;
extern hci_cmd_t hci_write_simple_pairing_mode;
// BTSTACK client/server commands - see hci.c for info on parameters
extern hci_cmd_t btstack_get_state;
extern hci_cmd_t btstack_set_power_mode;
extern hci_cmd_t btstack_set_acl_capture_mode;
extern hci_cmd_t btstack_get_version;
extern hci_cmd_t btstack_get_system_bluetooth_enabled;
extern hci_cmd_t btstack_set_system_bluetooth_enabled;
// L2CAP client/server commands - see l2cap.c for info on parameters
extern hci_cmd_t l2cap_create_channel;
extern hci_cmd_t l2cap_disconnect;

View File

@ -190,6 +190,23 @@ OPCODE(OGF_LINK_CONTROL, 0x1A), "B"
// BD_ADDR
};
/**
* Link Policy Commands
*/
hci_cmd_t hci_qos_setup = {
OPCODE(OGF_LINK_POLICY, 0x07), "H114444"
// handle, flags, service_type, token rate (bytes/s), peak bandwith (bytes/s),
// latency (us), delay_variation (us)
};
hci_cmd_t hci_read_link_policy_settings = {
OPCODE(OGF_LINK_POLICY, 0x0c), "H"
// handle
};
hci_cmd_t hci_write_link_policy_settings = {
OPCODE(OGF_LINK_POLICY, 0x0d), "H2"
// handlee, settings
};
/**
* Controller & Baseband Commands
*/