156042629SMatthias Ringwald /* 256042629SMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 356042629SMatthias Ringwald * 456042629SMatthias Ringwald * Redistribution and use in source and binary forms, with or without 556042629SMatthias Ringwald * modification, are permitted provided that the following conditions 656042629SMatthias Ringwald * are met: 756042629SMatthias Ringwald * 856042629SMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 956042629SMatthias Ringwald * notice, this list of conditions and the following disclaimer. 1056042629SMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 1156042629SMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 1256042629SMatthias Ringwald * documentation and/or other materials provided with the distribution. 1356042629SMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 1456042629SMatthias Ringwald * contributors may be used to endorse or promote products derived 1556042629SMatthias Ringwald * from this software without specific prior written permission. 1656042629SMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 1756042629SMatthias Ringwald * personal benefit and not for any commercial purpose or for 1856042629SMatthias Ringwald * monetary gain. 1956042629SMatthias Ringwald * 2056042629SMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 2156042629SMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2256042629SMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 232fca4dadSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 242fca4dadSMilanka Ringwald * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 2556042629SMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 2656042629SMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 2756042629SMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 2856042629SMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2956042629SMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 3056042629SMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3156042629SMatthias Ringwald * SUCH DAMAGE. 3256042629SMatthias Ringwald * 3356042629SMatthias Ringwald * Please inquire about commercial licensing options at 3456042629SMatthias Ringwald * [email protected] 3556042629SMatthias Ringwald * 3656042629SMatthias Ringwald */ 3756042629SMatthias Ringwald 38fe5a6c4eSMilanka Ringwald /** 39fe5a6c4eSMilanka Ringwald * HCI Command Builder and official commands 4056042629SMatthias Ringwald * 4156042629SMatthias Ringwald */ 4256042629SMatthias Ringwald 4380e33422SMatthias Ringwald #ifndef HCI_CMDS_H 4480e33422SMatthias Ringwald #define HCI_CMDS_H 4556042629SMatthias Ringwald 4656042629SMatthias Ringwald #include "bluetooth.h" 4756042629SMatthias Ringwald #include "btstack_defines.h" 4856042629SMatthias Ringwald 4956042629SMatthias Ringwald #include <stdint.h> 5056042629SMatthias Ringwald #include <stdarg.h> 5156042629SMatthias Ringwald 5256042629SMatthias Ringwald #if defined __cplusplus 5356042629SMatthias Ringwald extern "C" { 5456042629SMatthias Ringwald #endif 5556042629SMatthias Ringwald 56ea5cc3a8SMatthias Ringwald // calculate hci opcode for ogf/ocf value 57ea5cc3a8SMatthias Ringwald #define HCI_OPCODE(ogf, ocf) ((ocf) | ((ogf) << 10)) 58ea5cc3a8SMatthias Ringwald 5956042629SMatthias Ringwald /** 6056042629SMatthias Ringwald * Hardware state of Bluetooth controller 6156042629SMatthias Ringwald */ 6256042629SMatthias Ringwald typedef enum { 6356042629SMatthias Ringwald HCI_POWER_OFF = 0, 6456042629SMatthias Ringwald HCI_POWER_ON, 6556042629SMatthias Ringwald HCI_POWER_SLEEP 6656042629SMatthias Ringwald } HCI_POWER_MODE; 6756042629SMatthias Ringwald 6856042629SMatthias Ringwald /** 6956042629SMatthias Ringwald * State of BTstack 7056042629SMatthias Ringwald */ 7156042629SMatthias Ringwald typedef enum { 7256042629SMatthias Ringwald HCI_STATE_OFF = 0, 7356042629SMatthias Ringwald HCI_STATE_INITIALIZING, 7456042629SMatthias Ringwald HCI_STATE_WORKING, 7556042629SMatthias Ringwald HCI_STATE_HALTING, 7656042629SMatthias Ringwald HCI_STATE_SLEEPING, 7756042629SMatthias Ringwald HCI_STATE_FALLING_ASLEEP 7856042629SMatthias Ringwald } HCI_STATE; 7956042629SMatthias Ringwald 8056042629SMatthias Ringwald /** 8156042629SMatthias Ringwald * compact HCI Command packet description 8256042629SMatthias Ringwald */ 8356042629SMatthias Ringwald typedef struct { 8456042629SMatthias Ringwald uint16_t opcode; 8556042629SMatthias Ringwald const char *format; 8656042629SMatthias Ringwald } hci_cmd_t; 8756042629SMatthias Ringwald 88ea5cc3a8SMatthias Ringwald typedef enum { 890c1cf6c6SMatthias Ringwald 900c1cf6c6SMatthias Ringwald // Link Control 91ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_INQUIRY = HCI_OPCODE (OGF_LINK_CONTROL, 0x01), 92ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_INQUIRY_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x02), 936fe44815SRicardo Quesada HCI_OPCODE_HCI_PERIODIC_INQUIRY_MODE = HCI_OPCODE(OGF_LINK_CONTROL, 0x03), 946fe44815SRicardo Quesada HCI_OPCODE_HCI_EXIT_PERIODIC_INQUIRY_MODE = HCI_OPCODE(OGF_LINK_CONTROL, 0x04), 95ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_CREATE_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x05), 96ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_DISCONNECT = HCI_OPCODE (OGF_LINK_CONTROL, 0x06), 97ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_CREATE_CONNECTION_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x08), 98ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_ACCEPT_CONNECTION_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x09), 99ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_REJECT_CONNECTION_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x0a), 100ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LINK_KEY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0b), 101ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LINK_KEY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0c), 102ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_PIN_CODE_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0d), 103ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_PIN_CODE_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0e), 104ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_CHANGE_CONNECTION_PACKET_TYPE = HCI_OPCODE (OGF_LINK_CONTROL, 0x0f), 105ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_AUTHENTICATION_REQUESTED = HCI_OPCODE (OGF_LINK_CONTROL, 0x11), 106ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_SET_CONNECTION_ENCRYPTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x13), 107ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_CHANGE_CONNECTION_LINK_KEY = HCI_OPCODE (OGF_LINK_CONTROL, 0x15), 108ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_REMOTE_NAME_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x19), 109ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_REMOTE_NAME_REQUEST_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x1A), 110ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_REMOTE_SUPPORTED_FEATURES_COMMAND = HCI_OPCODE (OGF_LINK_CONTROL, 0x1B), 111ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_REMOTE_EXTENDED_FEATURES_COMMAND = HCI_OPCODE (OGF_LINK_CONTROL, 0x1C), 112ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_REMOTE_VERSION_INFORMATION = HCI_OPCODE (OGF_LINK_CONTROL, 0x1D), 113a9941893SMatthias Ringwald HCI_OPCODE_HCI_READ_CLOCK_OFFSET = HCI_OPCODE (OGF_LINK_CONTROL, 0x1F), 114ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_SETUP_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x0028), 115ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_ACCEPT_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x0029), 116ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_IO_CAPABILITY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2b), 117ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_USER_CONFIRMATION_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2c), 118ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2d), 119ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_USER_PASSKEY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2e), 120ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_USER_PASSKEY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2f), 121ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_REMOTE_OOB_DATA_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x30), 122ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x33), 123ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x34), 124ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_ENHANCED_SETUP_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x3d), 125ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_ENHANCED_ACCEPT_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x3e), 126bb75dd7dSMatthias Ringwald HCI_OPCODE_HCI_REMOTE_OOB_EXTENDED_DATA_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x45), 1270c1cf6c6SMatthias Ringwald 1280c1cf6c6SMatthias Ringwald // Link Policy 12929ae3d7dSMatthias Ringwald HCI_OPCODE_HCI_HOLD_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x01), 130ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_SNIFF_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x03), 131ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_EXIT_SNIFF_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x04), 1326f351188SMatthias Ringwald HCI_OPCODE_HCI_PARK_STATE = HCI_OPCODE (OGF_LINK_POLICY, 0x05), 1336f351188SMatthias Ringwald HCI_OPCODE_HCI_EXIT_PARK_STATE = HCI_OPCODE (OGF_LINK_POLICY, 0x06), 134ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_QOS_SETUP = HCI_OPCODE (OGF_LINK_POLICY, 0x07), 135ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_ROLE_DISCOVERY = HCI_OPCODE (OGF_LINK_POLICY, 0x09), 136ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_SWITCH_ROLE_COMMAND = HCI_OPCODE (OGF_LINK_POLICY, 0x0b), 137ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LINK_POLICY_SETTINGS = HCI_OPCODE (OGF_LINK_POLICY, 0x0c), 138ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_LINK_POLICY_SETTINGS = HCI_OPCODE (OGF_LINK_POLICY, 0x0d), 139ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_DEFAULT_LINK_POLICY_SETTING = HCI_OPCODE (OGF_LINK_POLICY, 0x0F), 140733a7793SMatthias Ringwald HCI_OPCODE_HCI_FLOW_SPECIFICATION = HCI_OPCODE(OGF_LINK_POLICY, 0x10), 14132e2f27fSMatthias Ringwald HCI_OPCODE_HCI_SNIFF_SUBRATING = HCI_OPCODE (OGF_LINK_POLICY, 0x11), 1420c1cf6c6SMatthias Ringwald 1430c1cf6c6SMatthias Ringwald // Controller Baseband 144ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_SET_EVENT_MASK = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x01), 145ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_RESET = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x03), 146ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_FLUSH = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x08), 147ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_PIN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x09), 148ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_PIN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x0A), 149ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_DELETE_STORED_LINK_KEY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x12), 150ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_LOCAL_NAME = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x13), 151ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LOCAL_NAME = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x14), 152ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x17), 153ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x18), 154ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_SCAN_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1A), 155ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_PAGE_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1B), 156ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_PAGE_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1C), 157ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_INQUIRY_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1D), 158ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1E), 159ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_AUTHENTICATION_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x20), 160ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_CLASS_OF_DEVICE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x24), 16139bcce03SMatthias Ringwald HCI_OPCODE_HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT = HCI_OPCODE(OGF_CONTROLLER_BASEBAND, 0x28), 162ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_NUM_BROADCAST_RETRANSMISSIONS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x29), 163ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2a), 164ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2D), 165ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2f), 166ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x31), 167ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_HOST_BUFFER_SIZE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x33), 168ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_HOST_NUMBER_OF_COMPLETED_PACKETS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x35), 169ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x36), 170ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x37), 171ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_CURRENT_IAC_LAP_TWO_IACS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x3A), 1725769fd77SMatthias Ringwald HCI_OPCODE_HCI_READ_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x42), 1735769fd77SMatthias Ringwald HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x43), 1745769fd77SMatthias Ringwald HCI_OPCODE_HCI_READ_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x44), 175ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x45), 1765769fd77SMatthias Ringwald HCI_OPCODE_HCI_READ_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x46), 1775769fd77SMatthias Ringwald HCI_OPCODE_HCI_WRITE_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x47), 178ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_EXTENDED_INQUIRY_RESPONSE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x52), 179ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x56), 180ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LOCAL_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x57), 181c9c0cbe9SAndrey Fominykh HCI_OPCODE_HCI_READ_INQUIRY_RESPONSE_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x58), 182c9c0cbe9SAndrey Fominykh HCI_OPCODE_HCI_WRITE_INQUIRY_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x59), 183ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x5B), 184ff7d1758SMatthias Ringwald HCI_OPCODE_HCI_SET_EVENT_MASK_2 = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x63), 185ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LE_HOST_SUPPORTED = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x6c), 186ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_LE_HOST_SUPPORTED = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x6d), 187ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7a), 1881849becdSMatthias Ringwald HCI_OPCODE_HCI_READ_LOCAL_EXTENDED_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7d), 1896d2375e9SMatthias Ringwald HCI_OPCODE_HCI_READ_EXTENDED_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7e), 1906d2375e9SMatthias Ringwald HCI_OPCODE_HCI_WRITE_EXTENDED_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7f), 1916d2375e9SMatthias Ringwald HCI_OPCODE_HCI_READ_EXTENDED_INQUIRY_LENGTH = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x80), 1926d2375e9SMatthias Ringwald HCI_OPCODE_HCI_WRITE_EXTENDED_INQUIRY_LENGTH = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x81), 1936d2375e9SMatthias Ringwald HCI_OPCODE_HCI_SET_ECOSYSTEM_BASE_INTERVAL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x82), 1946d2375e9SMatthias Ringwald HCI_OPCODE_HCI_CONFIGURE_DATA_PATH = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x83), 1956d2375e9SMatthias Ringwald HCI_OPCODE_HCI_SET_MIN_ENCRYPTION_KEY_SIZE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x84), 1960c1cf6c6SMatthias Ringwald 1970c1cf6c6SMatthias Ringwald // Testing 198ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LOOPBACK_MODE = HCI_OPCODE (OGF_TESTING, 0x01), 199ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_LOOPBACK_MODE = HCI_OPCODE (OGF_TESTING, 0x02), 200ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_ENABLE_DEVICE_UNDER_TEST_MODE = HCI_OPCODE (OGF_TESTING, 0x03), 201ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_DEBUG_MODE = HCI_OPCODE (OGF_TESTING, 0x04), 202ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_WRITE_SECURE_CONNECTIONS_TEST_MODE = HCI_OPCODE (OGF_TESTING, 0x0a), 2030c1cf6c6SMatthias Ringwald 2040c1cf6c6SMatthias Ringwald // Information Parameters 205ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LOCAL_VERSION_INFORMATION = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x01), 206ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LOCAL_SUPPORTED_COMMANDS = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x02), 207ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_LOCAL_SUPPORTED_FEATURES = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x03), 208ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_BUFFER_SIZE = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x05), 209ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_BD_ADDR = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x09), 2100c1cf6c6SMatthias Ringwald 2110c1cf6c6SMatthias Ringwald // Status Parameters 212ebcec9d3SMatthias Ringwald HCI_OPCODE_HCI_READ_FAILED_CONTACT_COUNTER = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x01), 213ebcec9d3SMatthias Ringwald HCI_OPCODE_HCI_RESET_FAILED_CONTACT_COUNTER = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x02), 214ebcec9d3SMatthias Ringwald HCI_OPCODE_HCI_READ_LINK_QUALITY = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x03), 215ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_RSSI = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x05), 216ebcec9d3SMatthias Ringwald HCI_OPCODE_HCI_READ_CLOCK = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x07), 217ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_READ_ENCRYPTION_KEY_SIZE = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x08), 2180c1cf6c6SMatthias Ringwald 2190c1cf6c6SMatthias Ringwald // LE Controller 220ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EVENT_MASK = HCI_OPCODE (OGF_LE_CONTROLLER, 0x01), 221ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_BUFFER_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x02), 2220c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_LOCAL_SUPPORTED_FEATURES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x03), 223ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_RANDOM_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x05), 224ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x06), 225ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_ADVERTISING_CHANNEL_TX_POWER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x07), 226ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x08), 227ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_SCAN_RESPONSE_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x09), 228ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_ADVERTISE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0a), 229ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_SCAN_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0b), 230ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_SCAN_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0c), 231ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_CREATE_CONNECTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0d), 232ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_CREATE_CONNECTION_CANCEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0e), 233ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_WHITE_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0f), 234ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_CLEAR_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x10), 235ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x11), 236ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x12), 237ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_CONNECTION_UPDATE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x13), 238ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x14), 239ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_CHANNEL_MAP = HCI_OPCODE (OGF_LE_CONTROLLER, 0x15), 240ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_REMOTE_USED_FEATURES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x16), 241ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_ENCRYPT = HCI_OPCODE (OGF_LE_CONTROLLER, 0x17), 242ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_RAND = HCI_OPCODE (OGF_LE_CONTROLLER, 0x18), 243ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_START_ENCRYPTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x19), 244ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_LONG_TERM_KEY_REQUEST_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1a), 245ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_LONG_TERM_KEY_NEGATIVE_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1b), 246ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_SUPPORTED_STATES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1c), 247ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_RECEIVER_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1d), 248ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_TRANSMITTER_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1e), 249ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_TEST_END = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1f), 250ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x20), 251ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x21), 252ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x22), 253ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_SUGGESTED_DEFAULT_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x23), 254ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_WRITE_SUGGESTED_DEFAULT_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x24), 255ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_LOCAL_P256_PUBLIC_KEY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x25), 256ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_GENERATE_DHKEY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x26), 257173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x27), 258173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x28), 259173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_CLEAR_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x29), 260173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_RESOLVING_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2A), 261173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_PEER_RESOLVABLE_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2B), 262173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_LOCAL_RESOLVABLE_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2C), 263173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_ADDRESS_RESOLUTION_ENABLED = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2D), 264173ed1a3SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_RESOLVABLE_PRIVATE_ADDRESS_TIMEOUT = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2E), 265ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_MAXIMUM_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2F), 266ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x30), 267ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_DEFAULT_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x31), 268ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x32), 2690c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_RECEIVER_TEST_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x33), 2700c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_TRANSMITTER_TEST_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x34), 2710c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_ADVERTISING_SET_RANDOM_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x35), 2720c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EXTENDED_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x36), 2730c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EXTENDED_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x37), 2740c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EXTENDED_SCAN_RESPONSE_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x38), 2750c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EXTENDED_ADVERTISING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x39), 2760c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_MAXIMUM_ADVERTISING_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3a), 2770c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_NUMBER_OF_SUPPORTED_ADVERTISING_SETS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3b), 2780c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOVE_ADVERTISING_SET = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3c), 2790c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CLEAR_ADVERTISING_SETS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3d), 2800c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3e), 2810c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3f), 2820c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x40), 2830c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EXTENDED_SCAN_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x41), 2840c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_EXTENDED_SCAN_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x42), 2850c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_EXTENDED_CREATE_CONNECTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x43), 2860c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_CREATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x44), 2870c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_CREATE_SYNC_CANCEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x45), 2880c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_TERMINATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x46), 2890c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_PERIODIC_ADVERTISER_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x47), 2900c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_PERIODIC_ADVERTISER_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x48), 2910c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CLEAR_PERIODIC_ADVERTISER_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x49), 2920c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_PERIODIC_ADVERTISER_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4a), 2930c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_TRANSMIT_POWER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4b), 2940c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_RF_PATH_COMPENSATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4c), 2950c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_WRITE_RF_PATH_COMPENSATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4d), 2960c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PRIVACY_MODE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4e), 2970c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_RECEIVER_TEST_V3 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4f), 2980c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_TRANSMITTER_TEST_V3 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x50), 2990c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CONNECTIONLESS_CTE_TRANSMIT_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x51), 3000c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CONNECTIONLESS_CTE_TRANSMIT_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x52), 3010c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CONNECTIONLESS_IQ_SAMPLING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x53), 3020c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CONNECTION_CTE_RECEIVE_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x54), 3030c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CONNECTION_CTE_TRANSMIT_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x55), 3040c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CONNECTION_CTE_REQUEST_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x56), 3050c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CONNECTION_CTE_RESPONSE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x57), 3060c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_ANTENNA_INFORMATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x58), 3070c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_RECEIVE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x59), 3080c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5a), 3090c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_SET_INFO_TRANSFER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5b), 3100c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_SYNC_TRANSFER_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5c), 3110c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_DEFAULT_PERIODIC_ADVERTISING_SYNC_TRANSFER_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5d), 3120c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_GENERATE_DHKEY_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5e), 3130c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_MODIFY_SLEEP_CLOCK_ACCURACY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5f), 314b3e0a1b9SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_BUFFER_SIZE_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x60), 3150c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_ISO_TX_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x61), 3160c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CIG_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x62), 3170c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_CIG_PARAMETERS_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x63), 3180c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CREATE_CIS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x64), 3190c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOVE_CIG = HCI_OPCODE (OGF_LE_CONTROLLER, 0x65), 3200c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ACCEPT_CIS_REQUEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x66), 3210c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_REJECT_CIS_REQUEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x67), 3220c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CREATE_BIG = HCI_OPCODE (OGF_LE_CONTROLLER, 0x68), 3230c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_CREATE_BIG_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x69), 3240c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_TERMINATE_BIG = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6a), 3250c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_BIG_CREATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6b), 3260c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_BIG_TERMINATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6c), 3270c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_REQUEST_PEER_SCA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6d), 3280c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SETUP_ISO_DATA_PATH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6e), 3290c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_REMOVE_ISO_DATA_PATH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6f), 3300c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ISO_TRANSMIT_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x70), 3310c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ISO_RECEIVE_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x71), 3320c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ISO_READ_TEST_COUNTERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x72), 3330c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ISO_TEST_END = HCI_OPCODE (OGF_LE_CONTROLLER, 0x73), 3340c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_HOST_FEATURE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x74), 3350c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_ISO_LINK_QUALITY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x75), 3360c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_ENHANCED_READ_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x76), 3370c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_READ_REMOTE_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x77), 3380c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PATH_LOSS_REPORTING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x78), 3390c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_PATH_LOSS_REPORTING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x79), 3400c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_TRANSMIT_POWER_REPORTING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x7a), 3410c1cf6c6SMatthias Ringwald HCI_OPCODE_HCI_LE_TRANSMITTER_TEST_V4 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x7B), 342*03a8d1d2SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_DATA_RELATED_ADDRESS_CHANGES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x7C), 343*03a8d1d2SMatthias Ringwald HCI_OPCODE_HCI_LE_SET_DEFAULT_SUBRATE= HCI_OPCODE (OGF_LE_CONTROLLER, 0x7D), 344*03a8d1d2SMatthias Ringwald HCI_OPCODE_HCI_LE_SUBRATE_REQUEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x7E), 3450c1cf6c6SMatthias Ringwald 3460e1c28d5SMatthias Ringwald // Broadcom/Cypress/Infineon/Synaptics 347ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_BCM_WRITE_SCO_PCM_INT = HCI_OPCODE (0x3f, 0x1c), 348762c3e10SMatthias Ringwald HCI_OPCODE_HCI_BCM_WRITE_PCM_DATA_FORMAT_PARAM = HCI_OPCODE (0x3f, 0x1e), 349067ecc36SMatthias Ringwald HCI_OPCODE_HCI_BCM_SET_SLEEP_MODE = HCI_OPCODE (0x3f, 0x27), 350067ecc36SMatthias Ringwald HCI_OPCODE_HCI_BCM_WRITE_I2SPCM_INTERFACE_PARAM = HCI_OPCODE (0x3f, 0x6d), 351067ecc36SMatthias Ringwald HCI_OPCODE_HCI_BCM_ENABLE_WBS = HCI_OPCODE(0x3f, 0x7e), 352d7ae48d5SMatthias Ringwald HCI_OPCODE_HCI_BCM_PCM2_SETUP = HCI_OPCODE (0x3f, 0xae), 353ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_BCM_WRITE_TX_POWER_TABLE = HCI_OPCODE (0x3f, 0x1C9), 354ea5cc3a8SMatthias Ringwald HCI_OPCODE_HCI_BCM_SET_TX_PWR = HCI_OPCODE (0x3f, 0x1A5), 35538c9113fSMatthias Ringwald 3560e1c28d5SMatthias Ringwald // Texas Instruments 357733a7793SMatthias Ringwald HCI_OPCODE_HCI_TI_VS_CONFIGURE_DDIP = 0xFD55, 35838c9113fSMatthias Ringwald 3590e1c28d5SMatthias Ringwald // Realtek 36092ce4e6aSMatthias Ringwald HCI_OPCODE_HCI_RTK_CONFIGURE_SCO_ROUTING = HCI_OPCODE (0x3f, 0x93), 36192ce4e6aSMatthias Ringwald HCI_OPCODE_HCI_RTK_READ_CARD_INFO = 0xFC61, 3620e1c28d5SMatthias Ringwald 3630af82dbaSMatthias Ringwald // Zephyr 3640af82dbaSMatthias Ringwald HCI_OPCODE_HCI_ZEPHYR_READ_STATIC_ADDRESS = 0xFC09, 3650af82dbaSMatthias Ringwald 3660e1c28d5SMatthias Ringwald // Marvell/NXP 3670e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_WRITE_PCM_I2S_SETTINGS = 0xFC07, 3680e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_SET_SCO_DATA_PATH = 0xFC1D, 3690e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_SET_BDADDR = 0xFC22, 3700e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_WRITE_PCM_I2S_SYNC_SETTINGS = 0xFC28, 3710e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_WRITE_PCM_LINK_SETTINGS = 0xFC29, 3720e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_SET_WBS_CONNECTION = 0xFC73, 3730e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_HOST_PCM_I2S_AUDIO_CONFIG = 0xFC6F, 3740e1c28d5SMatthias Ringwald HCI_OPCODE_HCI_NXP_HOST_PCM_I2S_CONTROL_ENABLE = 0xFC70, 3750e1c28d5SMatthias Ringwald 376ea5cc3a8SMatthias Ringwald } hci_opcode_t; 37756042629SMatthias Ringwald 37856042629SMatthias Ringwald // HCI Commands - see hci_cmd.c for info on parameters 37956042629SMatthias Ringwald extern const hci_cmd_t hci_accept_connection_request; 38056042629SMatthias Ringwald extern const hci_cmd_t hci_accept_synchronous_connection; 38156042629SMatthias Ringwald extern const hci_cmd_t hci_authentication_requested; 38256042629SMatthias Ringwald extern const hci_cmd_t hci_change_connection_link_key; 38356042629SMatthias Ringwald extern const hci_cmd_t hci_change_connection_packet_type; 3846d2375e9SMatthias Ringwald extern const hci_cmd_t hci_configure_data_path; 38556042629SMatthias Ringwald extern const hci_cmd_t hci_create_connection; 38656042629SMatthias Ringwald extern const hci_cmd_t hci_create_connection_cancel; 38756042629SMatthias Ringwald extern const hci_cmd_t hci_delete_stored_link_key; 38856042629SMatthias Ringwald extern const hci_cmd_t hci_disconnect; 38984ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_enable_device_under_test_mode; 390bed80775SMatthias Ringwald extern const hci_cmd_t hci_enhanced_accept_synchronous_connection; 391bed80775SMatthias Ringwald extern const hci_cmd_t hci_enhanced_setup_synchronous_connection; 3926d2375e9SMatthias Ringwald extern const hci_cmd_t hci_exit_park_state; 3936d2375e9SMatthias Ringwald extern const hci_cmd_t hci_exit_periodic_inquiry_mode; 3947cd21895SMatthias Ringwald extern const hci_cmd_t hci_exit_sniff_mode; 395733a7793SMatthias Ringwald extern const hci_cmd_t hci_flow_specification; 396e49d496aSMatthias Ringwald extern const hci_cmd_t hci_flush; 39729ae3d7dSMatthias Ringwald extern const hci_cmd_t hci_hold_mode; 39856042629SMatthias Ringwald extern const hci_cmd_t hci_host_buffer_size; 39956042629SMatthias Ringwald extern const hci_cmd_t hci_inquiry; 40056042629SMatthias Ringwald extern const hci_cmd_t hci_inquiry_cancel; 401bed80775SMatthias Ringwald extern const hci_cmd_t hci_io_capability_request_negative_reply; 402bed80775SMatthias Ringwald extern const hci_cmd_t hci_io_capability_request_reply; 40356042629SMatthias Ringwald extern const hci_cmd_t hci_link_key_request_negative_reply; 40456042629SMatthias Ringwald extern const hci_cmd_t hci_link_key_request_reply; 4056f351188SMatthias Ringwald extern const hci_cmd_t hci_park_state; 4066fe44815SRicardo Quesada extern const hci_cmd_t hci_periodic_inquiry_mode; 40756042629SMatthias Ringwald extern const hci_cmd_t hci_pin_code_request_negative_reply; 408bed80775SMatthias Ringwald extern const hci_cmd_t hci_pin_code_request_reply; 40956042629SMatthias Ringwald extern const hci_cmd_t hci_qos_setup; 41056042629SMatthias Ringwald extern const hci_cmd_t hci_read_bd_addr; 41156042629SMatthias Ringwald extern const hci_cmd_t hci_read_buffer_size; 412a9941893SMatthias Ringwald extern const hci_cmd_t hci_read_clock_offset; 41397abfa24SMatthias Ringwald extern const hci_cmd_t hci_read_encryption_key_size; 4146d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_extended_inquiry_length; 4156d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_extended_page_timeout; 4164eac2391SMatthias Ringwald extern const hci_cmd_t hci_read_inquiry_scan_activity; 41756042629SMatthias Ringwald extern const hci_cmd_t hci_read_le_host_supported; 41856042629SMatthias Ringwald extern const hci_cmd_t hci_read_link_policy_settings; 41956042629SMatthias Ringwald extern const hci_cmd_t hci_read_link_supervision_timeout; 420237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_extended_oob_data; 421e90bae01SMatthias Ringwald extern const hci_cmd_t hci_read_local_name; 422237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_oob_data; 423c9c0cbe9SAndrey Fominykh extern const hci_cmd_t hci_read_inquiry_response_transmit_power_level; 424c9c0cbe9SAndrey Fominykh extern const hci_cmd_t hci_write_inquiry_transmit_power_level; 425ebcec9d3SMatthias Ringwald extern const hci_cmd_t hci_read_clock; 426ebcec9d3SMatthias Ringwald extern const hci_cmd_t hci_read_failed_contact_counter; 427ebcec9d3SMatthias Ringwald extern const hci_cmd_t hci_read_link_quality; 42856042629SMatthias Ringwald extern const hci_cmd_t hci_read_local_supported_commands; 42956042629SMatthias Ringwald extern const hci_cmd_t hci_read_local_supported_features; 430237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_version_information; 431bed80775SMatthias Ringwald extern const hci_cmd_t hci_read_loopback_mode; 43256042629SMatthias Ringwald extern const hci_cmd_t hci_read_num_broadcast_retransmissions; 4336d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_page_scan_activity; 4346d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_page_timeout; 4356d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_pin_type; 436d5057706SMatthias Ringwald extern const hci_cmd_t hci_read_remote_extended_features_command; 4376d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_remote_supported_features_command; 4388b22c04dSMatthias Ringwald extern const hci_cmd_t hci_read_remote_version_information; 43956042629SMatthias Ringwald extern const hci_cmd_t hci_read_rssi; 4406d2375e9SMatthias Ringwald extern const hci_cmd_t hci_read_transmit_power_level; 44156042629SMatthias Ringwald extern const hci_cmd_t hci_reject_connection_request; 44256042629SMatthias Ringwald extern const hci_cmd_t hci_remote_name_request; 44356042629SMatthias Ringwald extern const hci_cmd_t hci_remote_name_request_cancel; 44456042629SMatthias Ringwald extern const hci_cmd_t hci_remote_oob_data_request_negative_reply; 445bed80775SMatthias Ringwald extern const hci_cmd_t hci_remote_oob_data_request_reply; 4461849becdSMatthias Ringwald extern const hci_cmd_t hci_remote_oob_extended_data_request_reply; 44756042629SMatthias Ringwald extern const hci_cmd_t hci_reset; 448ebcec9d3SMatthias Ringwald extern const hci_cmd_t hci_reset_failed_contact_counter; 44956042629SMatthias Ringwald extern const hci_cmd_t hci_role_discovery; 45056042629SMatthias Ringwald extern const hci_cmd_t hci_set_connection_encryption; 4512b838201SMatthias Ringwald extern const hci_cmd_t hci_set_controller_to_host_flow_control; 4526d2375e9SMatthias Ringwald extern const hci_cmd_t hci_set_ecosystem_base_interval; 45384ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_set_event_mask; 454ff7d1758SMatthias Ringwald extern const hci_cmd_t hci_set_event_mask_2; 4556d2375e9SMatthias Ringwald extern const hci_cmd_t hci_set_min_encryption_key_size; 45656042629SMatthias Ringwald extern const hci_cmd_t hci_setup_synchronous_connection; 45756042629SMatthias Ringwald extern const hci_cmd_t hci_sniff_mode; 45832e2f27fSMatthias Ringwald extern const hci_cmd_t hci_sniff_subrating; 45956042629SMatthias Ringwald extern const hci_cmd_t hci_switch_role_command; 46056042629SMatthias Ringwald extern const hci_cmd_t hci_user_confirmation_request_negative_reply; 46156042629SMatthias Ringwald extern const hci_cmd_t hci_user_confirmation_request_reply; 46256042629SMatthias Ringwald extern const hci_cmd_t hci_user_passkey_request_negative_reply; 46356042629SMatthias Ringwald extern const hci_cmd_t hci_user_passkey_request_reply; 46456042629SMatthias Ringwald extern const hci_cmd_t hci_write_authentication_enable; 46539bcce03SMatthias Ringwald extern const hci_cmd_t hci_write_automatic_flush_timeout; 46656042629SMatthias Ringwald extern const hci_cmd_t hci_write_class_of_device; 4679119d792SMilanka Ringwald extern const hci_cmd_t hci_write_current_iac_lap_two_iacs; 468483c5078SMatthias Ringwald extern const hci_cmd_t hci_write_default_erroneous_data_reporting; 46953138e7aSMatthias Ringwald extern const hci_cmd_t hci_write_default_link_policy_setting; 4706d2375e9SMatthias Ringwald extern const hci_cmd_t hci_write_extended_inquiry_length; 47156042629SMatthias Ringwald extern const hci_cmd_t hci_write_extended_inquiry_response; 4726d2375e9SMatthias Ringwald extern const hci_cmd_t hci_write_extended_page_timeout; 47356042629SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_mode; 4744eac2391SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_scan_activity; 4755769fd77SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_scan_type; 47656042629SMatthias Ringwald extern const hci_cmd_t hci_write_le_host_supported; 47756042629SMatthias Ringwald extern const hci_cmd_t hci_write_link_policy_settings; 47856042629SMatthias Ringwald extern const hci_cmd_t hci_write_link_supervision_timeout; 47956042629SMatthias Ringwald extern const hci_cmd_t hci_write_local_name; 480bed80775SMatthias Ringwald extern const hci_cmd_t hci_write_loopback_mode; 48156042629SMatthias Ringwald extern const hci_cmd_t hci_write_num_broadcast_retransmissions; 482195e82f3Sskoperst extern const hci_cmd_t hci_write_page_scan_activity; 4835769fd77SMatthias Ringwald extern const hci_cmd_t hci_write_page_scan_type; 4846d2375e9SMatthias Ringwald extern const hci_cmd_t hci_write_page_timeout; 4856d2375e9SMatthias Ringwald extern const hci_cmd_t hci_write_pin_type; 48656042629SMatthias Ringwald extern const hci_cmd_t hci_write_scan_enable; 487b002ae8cSMatthias Ringwald extern const hci_cmd_t hci_write_secure_connections_host_support; 48884ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_write_secure_connections_test_mode; 48984ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_write_simple_pairing_debug_mode; 49056042629SMatthias Ringwald extern const hci_cmd_t hci_write_simple_pairing_mode; 49156042629SMatthias Ringwald extern const hci_cmd_t hci_write_synchronous_flow_control_enable; 49256042629SMatthias Ringwald 4930c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_accept_cis_request; 4940c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_periodic_advertiser_list; 495173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_resolving_list; 49656042629SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_white_list; 4970c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_big_create_sync; 4980c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_big_terminate_sync; 4990c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_clear_advertising_sets; 5000c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_clear_periodic_advertiser_list; 501173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_clear_resolving_list; 50256042629SMatthias Ringwald extern const hci_cmd_t hci_le_clear_white_list; 5030c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_connection_cte_request_enable; 5040c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_connection_cte_response_enable; 50556042629SMatthias Ringwald extern const hci_cmd_t hci_le_connection_update; 5060c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_create_big; 5070c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_create_big_test; 5080c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_create_cis; 50956042629SMatthias Ringwald extern const hci_cmd_t hci_le_create_connection; 51056042629SMatthias Ringwald extern const hci_cmd_t hci_le_create_connection_cancel; 51156042629SMatthias Ringwald extern const hci_cmd_t hci_le_encrypt; 5120c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_enhanced_read_transmit_power_level; 5130c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_extended_create_connection; 51482180fcaSMatthias Ringwald extern const hci_cmd_t hci_le_generate_dhkey; 5150c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_generate_dhkey_v2; 5160c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_read_test_counters; 5170c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_receive_test; 5180c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_test_end; 5190c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_transmit_test; 52056042629SMatthias Ringwald extern const hci_cmd_t hci_le_long_term_key_negative_reply; 52156042629SMatthias Ringwald extern const hci_cmd_t hci_le_long_term_key_request_reply; 5220c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_modify_sleep_clock_accuracy; 5230c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_create_sync; 5240c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_create_sync_cancel; 5250c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_set_info_transfer; 5260c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_sync_transfer; 5270c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_terminate_sync; 52856042629SMatthias Ringwald extern const hci_cmd_t hci_le_rand; 52956042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_advertising_channel_tx_power; 5300c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_antenna_information; 53156042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_buffer_size; 532b3e0a1b9SMatthias Ringwald extern const hci_cmd_t hci_le_read_buffer_size_v2; 53356042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_channel_map; 5340c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_iso_link_quality; 5350c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_iso_tx_sync; 53682180fcaSMatthias Ringwald extern const hci_cmd_t hci_le_read_local_p256_public_key; 537173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_local_resolvable_address; 5380c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_local_supported_features; 5390c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_maximum_advertising_data_length; 5400ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_read_maximum_data_length; 5410c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_number_of_supported_advertising_sets; 542173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_peer_resolvable_address; 5430c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_periodic_advertiser_list_size; 544ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_read_phy; 5450c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_remote_transmit_power_level; 54656042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_remote_used_features; 547173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_resolving_list_size; 5480c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_rf_path_compensation; 5490ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_read_suggested_default_data_length; 55056042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_supported_states; 5510c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_transmit_power; 55256042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_white_list_size; 55356042629SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test; 5540c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test_v2; 5550c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test_v3; 5560c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_reject_cis_request; 557fe704c95SMatthias Ringwald extern const hci_cmd_t hci_le_remote_connection_parameter_request_negative_reply; 558ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_remote_connection_parameter_request_reply; 5590c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_advertising_set; 5600c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_cig; 5610c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_periodic_advertiser_list; 562173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_resolving_list; 56356042629SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_white_list; 5640c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_iso_data_path; 5650c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_request_peer_sca; 566173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_set_address_resolution_enabled; 56756042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertise_enable; 56856042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_data; 56956042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_parameters; 5700c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_set_random_address; 5710c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_cig_parameters; 5720c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_cig_parameters_test; 5730c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connection_cte_receive_parameters; 5740c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connection_cte_transmit_parameters; 5750c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connectionless_cte_transmit_enable; 5760c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connectionless_cte_transmit_parameters; 5770c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connectionless_iq_sampling_enable; 5780ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_set_data_length; 579*03a8d1d2SMatthias Ringwald extern const hci_cmd_t hci_le_set_data_related_address_changes; 5800c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_default_periodic_advertising_sync_transfer_parameters; 581ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_set_default_phy; 582*03a8d1d2SMatthias Ringwald extern const hci_cmd_t hci_le_set_default_subrate; 58356042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_event_mask; 5840c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_advertising_data; 5850c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_advertising_enable; 5860c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_advertising_parameters; 5870c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_enable; 5886ea37a0fSMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_parameters; 5890c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_response_data; 59056042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_host_channel_classification; 5910c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_host_feature; 5920c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_path_loss_reporting_enable; 5930c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_path_loss_reporting_parameters; 5940c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_data; 5950c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_enable; 5960c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_parameters; 5970c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_receive_enable; 5980c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_sync_transfer_parameters; 599ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_set_phy; 6000c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_privacy_mode; 60156042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_random_address; 602173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_set_resolvable_private_address_timeout; 60356042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_enable; 60456042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_parameters; 60556042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_response_data; 6060c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_transmit_power_reporting_enable; 6070c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_setup_iso_data_path; 60856042629SMatthias Ringwald extern const hci_cmd_t hci_le_start_encryption; 609*03a8d1d2SMatthias Ringwald extern const hci_cmd_t hci_le_subrate_request; 6100c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_terminate_big; 61156042629SMatthias Ringwald extern const hci_cmd_t hci_le_test_end; 61256042629SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test; 6130c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test_v2; 6140c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test_v3; 6150c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test_v4; 6160c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_write_rf_path_compensation; 6170ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_write_suggested_default_data_length; 6180c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_opcode_hci_le_read_buffer_size_v2; 6190c1cf6c6SMatthias Ringwald 620a42798c3SMatthias Ringwald 621a42798c3SMatthias Ringwald // Broadcom / Cypress specific HCI commands 622067ecc36SMatthias Ringwald extern const hci_cmd_t hci_bcm_enable_wbs; 623d7ae48d5SMatthias Ringwald extern const hci_cmd_t hci_bcm_pcm2_setup; 624762c3e10SMatthias Ringwald extern const hci_cmd_t hci_bcm_write_pcm_data_format_param; 625eab6959fSMatthias Ringwald extern const hci_cmd_t hci_bcm_set_sleep_mode; 626067ecc36SMatthias Ringwald extern const hci_cmd_t hci_bcm_write_i2spcm_interface_param; 6275cdaddfaSMatthias Ringwald extern const hci_cmd_t hci_bcm_write_sco_pcm_int; 6285cdaddfaSMatthias Ringwald extern const hci_cmd_t hci_bcm_write_tx_power_table; 6294545e386SMatthias Ringwald extern const hci_cmd_t hci_bcm_set_tx_pwr; 630a42798c3SMatthias Ringwald 631ba39ed56SMatthias Ringwald // TI specific HCI commands 632365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_avrp_enable; 633733a7793SMatthias Ringwald extern const hci_cmd_t hci_ti_configure_ddip; 63415fca961SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_enable_rf_calibration; 63515fca961SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_con_rx; 636ba39ed56SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_con_tx; 637ba39ed56SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_packet_tx_rx; 638365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_wbs_associate; 639365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_wbs_disassociate; 640365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_write_codec_config; 64115fca961SMatthias Ringwald extern const hci_cmd_t hci_ti_write_hardware_register; 642ba39ed56SMatthias Ringwald 6431645c45cSMatthias Ringwald 6440e1c28d5SMatthias Ringwald // Realtek specific HCI commands 6451645c45cSMatthias Ringwald extern const hci_cmd_t hci_rtk_configure_sco_routing; 64692ce4e6aSMatthias Ringwald extern const hci_cmd_t hci_rtk_read_card_info; 6471645c45cSMatthias Ringwald 6480e1c28d5SMatthias Ringwald // Marvell/NXP specific HCI commands 6490e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_set_sco_data_path; 6500e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_write_pcm_i2s_settings; 6510e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_write_pcm_i2s_sync_settings; 6520e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_write_pcm_link_settings; 6530e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_set_wbs_connection; 6540e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_host_pcm_i2s_audio_config; 6550e1c28d5SMatthias Ringwald extern const hci_cmd_t hci_nxp_host_pcm_i2s_control_enable; 6560e1c28d5SMatthias Ringwald 65756042629SMatthias Ringwald /** 65856042629SMatthias Ringwald * construct HCI Command based on template 659211a5343SMatthias Ringwald * @param hci_cmd_buffer for command 660211a5343SMatthias Ringwald * @param cmd describing command opcode and format 661211a5343SMatthias Ringwald * @param argptr for command arguments 66256042629SMatthias Ringwald * 66356042629SMatthias Ringwald * Format: 66456042629SMatthias Ringwald * 1,2,3,4: one to four byte value 66556042629SMatthias Ringwald * H: HCI connection handle 66656042629SMatthias Ringwald * B: Bluetooth Baseband Address (BD_ADDR) 66756042629SMatthias Ringwald * D: 8 byte data block 66856042629SMatthias Ringwald * E: Extended Inquiry Result 66956042629SMatthias Ringwald * N: Name up to 248 chars, \0 terminated 67056042629SMatthias Ringwald * P: 16 byte Pairing code 67156042629SMatthias Ringwald * A: 31 bytes advertising data 67256042629SMatthias Ringwald * S: Service Record (Data Element Sequence) 673211a5343SMatthias Ringwald * @returns size of command 67456042629SMatthias Ringwald */ 67556042629SMatthias Ringwald 676fe5a6c4eSMilanka Ringwald uint16_t hci_cmd_create_from_template(uint8_t *hci_cmd_buffer, const hci_cmd_t *cmd, va_list argptr); 67756042629SMatthias Ringwald 678211a5343SMatthias Ringwald /** 679211a5343SMatthias Ringwald * construct HCI Command based on template 680211a5343SMatthias Ringwald * Same as hci_cmd_create_from_template but with variable arguments 681211a5343SMatthias Ringwald * 682211a5343SMatthias Ringwald * @param hci_cmd_buffer for command 683211a5343SMatthias Ringwald * @param cmd describing command opcode and format 684211a5343SMatthias Ringwald * @returns size of command 685211a5343SMatthias Ringwald */ 686211a5343SMatthias Ringwald uint16_t hci_cmd_create_from_template_with_vargs(uint8_t * hci_cmd_buffer, const hci_cmd_t * cmd, ...); 687211a5343SMatthias Ringwald 68856042629SMatthias Ringwald #if defined __cplusplus 68956042629SMatthias Ringwald } 69056042629SMatthias Ringwald #endif 69156042629SMatthias Ringwald 69280e33422SMatthias Ringwald #endif // HCI_CMDS_H 693