From 12900f4689bba5e37fea100714071eeb03ee4e16 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sun, 15 Jan 2012 21:28:42 +0000 Subject: [PATCH] added read/write num broadcast retransmissions --- include/btstack/hci_cmds.h | 4 +++- src/hci_cmds.c | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/btstack/hci_cmds.h b/include/btstack/hci_cmds.h index 7954c467b..fd8c57fa7 100644 --- a/include/btstack/hci_cmds.h +++ b/include/btstack/hci_cmds.h @@ -141,7 +141,7 @@ extern "C" { // data: event (8), len(8), channel (16) #define L2CAP_EVENT_CHANNEL_CLOSED 0x71 -// data: event (8), len(8), status (8), address(48), handle (16), psm (16), local_cid(16), remote_cid (16) +// data: event (8), len(8), address(48), handle (16), psm (16), local_cid(16), remote_cid (16) #define L2CAP_EVENT_INCOMING_CONNECTION 0x72 // data: event(8), len(8), handle(16) @@ -281,6 +281,7 @@ extern const hci_cmd_t hci_read_le_host_supported; extern const hci_cmd_t hci_read_link_policy_settings; extern const hci_cmd_t hci_read_link_supervision_timeout; extern const hci_cmd_t hci_read_local_supported_features; +extern const hci_cmd_t hci_read_num_broadcast_retransmissions; extern const hci_cmd_t hci_reject_connection_request; extern const hci_cmd_t hci_remote_name_request; extern const hci_cmd_t hci_remote_name_request_cancel; @@ -298,6 +299,7 @@ extern const hci_cmd_t hci_write_le_host_supported; extern const hci_cmd_t hci_write_link_policy_settings; extern const hci_cmd_t hci_write_link_supervision_timeout; extern const hci_cmd_t hci_write_local_name; +extern const hci_cmd_t hci_write_num_broadcast_retransmissions; extern const hci_cmd_t hci_write_page_timeout; extern const hci_cmd_t hci_write_scan_enable; extern const hci_cmd_t hci_write_simple_pairing_mode; diff --git a/src/hci_cmds.c b/src/hci_cmds.c index 0617b62e5..3b39cdeb6 100644 --- a/src/hci_cmds.c +++ b/src/hci_cmds.c @@ -299,6 +299,13 @@ const hci_cmd_t hci_write_class_of_device = { OPCODE(OGF_CONTROLLER_BASEBAND, 0x24), "3" // Class of Device }; +const hci_cmd_t hci_read_num_broadcast_retransmissions = { +OPCODE(OGF_CONTROLLER_BASEBAND, 0x29), "" +}; +const hci_cmd_t hci_write_num_broadcast_retransmissions = { +OPCODE(OGF_CONTROLLER_BASEBAND, 0x2a), "1" +// Num broadcast retransmissions (e.g. 0 for a single broadcast) +}; const hci_cmd_t hci_host_buffer_size = { OPCODE(OGF_CONTROLLER_BASEBAND, 0x33), "2122" // Host_ACL_Data_Packet_Length:, Host_Synchronous_Data_Packet_Length:, Host_Total_Num_ACL_Data_Packets:, Host_Total_Num_Synchronous_Data_Packets: