mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-10 15:40:11 +00:00
added master/slave role commands and events
This commit is contained in:
parent
3558ddaba3
commit
13939703e9
@ -210,7 +210,9 @@ extern hci_cmd_t hci_read_link_supervision_timeout;
|
|||||||
extern hci_cmd_t hci_remote_name_request;
|
extern hci_cmd_t hci_remote_name_request;
|
||||||
extern hci_cmd_t hci_remote_name_request_cancel;
|
extern hci_cmd_t hci_remote_name_request_cancel;
|
||||||
extern hci_cmd_t hci_reset;
|
extern hci_cmd_t hci_reset;
|
||||||
|
extern hci_cmd_t hci_role_discovery;
|
||||||
extern hci_cmd_t hci_set_event_mask;
|
extern hci_cmd_t hci_set_event_mask;
|
||||||
|
extern hci_cmd_t hci_switch_role_command;
|
||||||
extern hci_cmd_t hci_write_authentication_enable;
|
extern hci_cmd_t hci_write_authentication_enable;
|
||||||
extern hci_cmd_t hci_write_class_of_device;
|
extern hci_cmd_t hci_write_class_of_device;
|
||||||
extern hci_cmd_t hci_write_extended_inquiry_response;
|
extern hci_cmd_t hci_write_extended_inquiry_response;
|
||||||
|
@ -151,7 +151,6 @@ hci_cmd_t hci_create_connection = {
|
|||||||
OPCODE(OGF_LINK_CONTROL, 0x05), "B21121"
|
OPCODE(OGF_LINK_CONTROL, 0x05), "B21121"
|
||||||
// BD_ADDR, Packet_Type, Page_Scan_Repetition_Mode, Reserved, Clock_Offset, Allow_Role_Switch
|
// BD_ADDR, Packet_Type, Page_Scan_Repetition_Mode, Reserved, Clock_Offset, Allow_Role_Switch
|
||||||
};
|
};
|
||||||
|
|
||||||
hci_cmd_t hci_disconnect = {
|
hci_cmd_t hci_disconnect = {
|
||||||
OPCODE(OGF_LINK_CONTROL, 0x06), "H1"
|
OPCODE(OGF_LINK_CONTROL, 0x06), "H1"
|
||||||
// Handle, Reason: 0x05, 0x13-0x15, 0x1a, 0x29
|
// Handle, Reason: 0x05, 0x13-0x15, 0x1a, 0x29
|
||||||
@ -194,17 +193,25 @@ OPCODE(OGF_LINK_CONTROL, 0x1A), "B"
|
|||||||
* Link Policy Commands
|
* Link Policy Commands
|
||||||
*/
|
*/
|
||||||
hci_cmd_t hci_qos_setup = {
|
hci_cmd_t hci_qos_setup = {
|
||||||
OPCODE(OGF_LINK_POLICY, 0x07), "H114444"
|
OPCODE(OGF_LINK_POLICY, 0x07), "H114444"
|
||||||
// handle, flags, service_type, token rate (bytes/s), peak bandwith (bytes/s),
|
// handle, flags, service_type, token rate (bytes/s), peak bandwith (bytes/s),
|
||||||
// latency (us), delay_variation (us)
|
// latency (us), delay_variation (us)
|
||||||
|
};
|
||||||
|
hci_cmd_t hci_role_discovery = {
|
||||||
|
OPCODE(OGF_LINK_POLICY, 0x09), "H"
|
||||||
|
// handle
|
||||||
|
};
|
||||||
|
hci_cmd_t hci_switch_role_command= {
|
||||||
|
OPCODE(OGF_LINK_POLICY, 0x0b), "B1"
|
||||||
|
// handle, role: {0=master,1=slave}
|
||||||
};
|
};
|
||||||
hci_cmd_t hci_read_link_policy_settings = {
|
hci_cmd_t hci_read_link_policy_settings = {
|
||||||
OPCODE(OGF_LINK_POLICY, 0x0c), "H"
|
OPCODE(OGF_LINK_POLICY, 0x0c), "H"
|
||||||
// handle
|
// handle
|
||||||
};
|
};
|
||||||
hci_cmd_t hci_write_link_policy_settings = {
|
hci_cmd_t hci_write_link_policy_settings = {
|
||||||
OPCODE(OGF_LINK_POLICY, 0x0d), "H2"
|
OPCODE(OGF_LINK_POLICY, 0x0d), "H2"
|
||||||
// handlee, settings
|
// handlee, settings
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user