xref: /btstack/src/hci_cmd.h (revision 2fca4dad957cd7b88f4657ed51e89c12615dda72)
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
23*2fca4dadSMilanka Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN
24*2fca4dadSMilanka 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),
93ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CREATE_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x05),
94ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_DISCONNECT = HCI_OPCODE (OGF_LINK_CONTROL, 0x06),
95ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CREATE_CONNECTION_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x08),
96ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ACCEPT_CONNECTION_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x09),
97ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REJECT_CONNECTION_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x0a),
98ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LINK_KEY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0b),
99ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LINK_KEY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0c),
100ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_PIN_CODE_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0d),
101ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_PIN_CODE_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0e),
102ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CHANGE_CONNECTION_PACKET_TYPE = HCI_OPCODE (OGF_LINK_CONTROL, 0x0f),
103ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_AUTHENTICATION_REQUESTED = HCI_OPCODE (OGF_LINK_CONTROL, 0x11),
104ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SET_CONNECTION_ENCRYPTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x13),
105ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CHANGE_CONNECTION_LINK_KEY = HCI_OPCODE (OGF_LINK_CONTROL, 0x15),
106ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_NAME_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x19),
107ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_NAME_REQUEST_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x1A),
108ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_REMOTE_SUPPORTED_FEATURES_COMMAND = HCI_OPCODE (OGF_LINK_CONTROL, 0x1B),
109ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_REMOTE_EXTENDED_FEATURES_COMMAND = HCI_OPCODE (OGF_LINK_CONTROL, 0x1C),
110ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_REMOTE_VERSION_INFORMATION = HCI_OPCODE (OGF_LINK_CONTROL, 0x1D),
111ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SETUP_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x0028),
112ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ACCEPT_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x0029),
113ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_IO_CAPABILITY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2b),
114ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_CONFIRMATION_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2c),
115ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2d),
116ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_PASSKEY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2e),
117ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_PASSKEY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2f),
118ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_OOB_DATA_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x30),
119ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x33),
120ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x34),
121ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ENHANCED_SETUP_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x3d),
122ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ENHANCED_ACCEPT_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x3e),
123bb75dd7dSMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_OOB_EXTENDED_DATA_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x45),
1240c1cf6c6SMatthias Ringwald 
1250c1cf6c6SMatthias Ringwald     // Link Policy
126ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SNIFF_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x03),
127ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_EXIT_SNIFF_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x04),
128ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_QOS_SETUP = HCI_OPCODE (OGF_LINK_POLICY, 0x07),
129ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ROLE_DISCOVERY = HCI_OPCODE (OGF_LINK_POLICY, 0x09),
130ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SWITCH_ROLE_COMMAND = HCI_OPCODE (OGF_LINK_POLICY, 0x0b),
131ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LINK_POLICY_SETTINGS = HCI_OPCODE (OGF_LINK_POLICY, 0x0c),
132ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LINK_POLICY_SETTINGS = HCI_OPCODE (OGF_LINK_POLICY, 0x0d),
133ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_DEFAULT_LINK_POLICY_SETTING = HCI_OPCODE (OGF_LINK_POLICY, 0x0F),
134733a7793SMatthias Ringwald     HCI_OPCODE_HCI_FLOW_SPECIFICATION = HCI_OPCODE(OGF_LINK_POLICY, 0x10),
13532e2f27fSMatthias Ringwald     HCI_OPCODE_HCI_SNIFF_SUBRATING = HCI_OPCODE (OGF_LINK_POLICY, 0x11),
1360c1cf6c6SMatthias Ringwald 
1370c1cf6c6SMatthias Ringwald     // Controller Baseband
138ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SET_EVENT_MASK = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x01),
139ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_RESET = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x03),
140ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_FLUSH = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x08),
141ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_PIN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x09),
142ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PIN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x0A),
143ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_DELETE_STORED_LINK_KEY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x12),
144ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LOCAL_NAME = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x13),
145ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_NAME = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x14),
146ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x17),
147ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x18),
148ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SCAN_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1A),
149ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_PAGE_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1B),
150ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PAGE_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1C),
151ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_INQUIRY_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1D),
152ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1E),
153ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_AUTHENTICATION_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x20),
154ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_CLASS_OF_DEVICE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x24),
155ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_NUM_BROADCAST_RETRANSMISSIONS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x29),
156ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2a),
157ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2D),
158ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2f),
159ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x31),
160ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_HOST_BUFFER_SIZE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x33),
161ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_HOST_NUMBER_OF_COMPLETED_PACKETS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x35),
162ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x36),
163ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x37),
164ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_CURRENT_IAC_LAP_TWO_IACS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x3A),
1655769fd77SMatthias Ringwald     HCI_OPCODE_HCI_READ_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x42),
1665769fd77SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x43),
1675769fd77SMatthias Ringwald     HCI_OPCODE_HCI_READ_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x44),
168ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x45),
1695769fd77SMatthias Ringwald     HCI_OPCODE_HCI_READ_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x46),
1705769fd77SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x47),
171ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_EXTENDED_INQUIRY_RESPONSE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x52),
172ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x56),
173ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x57),
174ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x5B),
175ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LE_HOST_SUPPORTED = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x6c),
176ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LE_HOST_SUPPORTED = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x6d),
177ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7a),
1781849becdSMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_EXTENDED_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7d),
1790c1cf6c6SMatthias Ringwald 
1800c1cf6c6SMatthias Ringwald     // Testing
181ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOOPBACK_MODE = HCI_OPCODE (OGF_TESTING, 0x01),
182ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LOOPBACK_MODE = HCI_OPCODE (OGF_TESTING, 0x02),
183ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ENABLE_DEVICE_UNDER_TEST_MODE = HCI_OPCODE (OGF_TESTING, 0x03),
184ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_DEBUG_MODE = HCI_OPCODE (OGF_TESTING, 0x04),
185ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SECURE_CONNECTIONS_TEST_MODE = HCI_OPCODE (OGF_TESTING, 0x0a),
1860c1cf6c6SMatthias Ringwald 
1870c1cf6c6SMatthias Ringwald     // Information Parameters
188ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_VERSION_INFORMATION = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x01),
189ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_SUPPORTED_COMMANDS = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x02),
190ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_SUPPORTED_FEATURES = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x03),
191ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_BUFFER_SIZE = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x05),
192ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_BD_ADDR = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x09),
1930c1cf6c6SMatthias Ringwald 
1940c1cf6c6SMatthias Ringwald     // Status Parameters
195ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_RSSI = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x05),
196ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_ENCRYPTION_KEY_SIZE = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x08),
1970c1cf6c6SMatthias Ringwald 
1980c1cf6c6SMatthias Ringwald     // LE Controller
199ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EVENT_MASK = HCI_OPCODE (OGF_LE_CONTROLLER, 0x01),
200ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_BUFFER_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x02),
2010c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_LOCAL_SUPPORTED_FEATURES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x03),
202ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_RANDOM_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x05),
203ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x06),
204ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_ADVERTISING_CHANNEL_TX_POWER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x07),
205ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x08),
206ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_SCAN_RESPONSE_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x09),
207ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0a),
208ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_SCAN_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0b),
209ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_SCAN_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0c),
210ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_CONNECTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0d),
211ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_CONNECTION_CANCEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0e),
212ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_WHITE_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0f),
213ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CLEAR_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x10),
214ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x11),
215ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x12),
216ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CONNECTION_UPDATE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x13),
217ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x14),
218ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_CHANNEL_MAP = HCI_OPCODE (OGF_LE_CONTROLLER, 0x15),
219ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_REMOTE_USED_FEATURES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x16),
220ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_ENCRYPT = HCI_OPCODE (OGF_LE_CONTROLLER, 0x17),
221ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_RAND = HCI_OPCODE (OGF_LE_CONTROLLER, 0x18),
222ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_START_ENCRYPTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x19),
223ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_LONG_TERM_KEY_REQUEST_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1a),
224ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_LONG_TERM_KEY_NEGATIVE_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1b),
225ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_SUPPORTED_STATES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1c),
226ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_RECEIVER_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1d),
227ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_TRANSMITTER_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1e),
228ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_TEST_END = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1f),
229ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x20),
230ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x21),
231ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x22),
232ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_SUGGESTED_DEFAULT_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x23),
233ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_WRITE_SUGGESTED_DEFAULT_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x24),
234ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_LOCAL_P256_PUBLIC_KEY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x25),
235ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_GENERATE_DHKEY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x26),
236173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x27),
237173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x28),
238173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_CLEAR_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x29),
239173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_RESOLVING_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2A),
240173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_PEER_RESOLVABLE_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2B),
241173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_LOCAL_RESOLVABLE_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2C),
242173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADDRESS_RESOLUTION_ENABLED = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2D),
243173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_RESOLVABLE_PRIVATE_ADDRESS_TIMEOUT = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2E),
244ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_MAXIMUM_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2F),
245ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x30),
246ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_DEFAULT_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x31),
247ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x32),
2480c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_RECEIVER_TEST_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x33),
2490c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_TRANSMITTER_TEST_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x34),
2500c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISING_SET_RANDOM_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x35),
2510c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EXTENDED_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x36),
2520c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EXTENDED_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x37),
2530c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EXTENDED_SCAN_RESPONSE_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x38),
2540c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EXTENDED_ADVERTISING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x39),
2550c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_MAXIMUM_ADVERTISING_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3a),
2560c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_NUMBER_OF_SUPPORTED_ADVERTISING_SETS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3b),
2570c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_ADVERTISING_SET = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3c),
2580c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CLEAR_ADVERTISING_SETS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3d),
2590c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3e),
2600c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x3f),
2610c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x40),
2620c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EXTENDED_SCAN_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x41),
2630c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EXTENDED_SCAN_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x42),
2640c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_EXTENDED_CREATE_CONNECTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x43),
2650c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_CREATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x44),
2660c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_CREATE_SYNC_CANCEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x45),
2670c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_TERMINATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x46),
2680c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_PERIODIC_ADVERTISER_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x47),
2690c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_PERIODIC_ADVERTISER_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x48),
2700c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CLEAR_PERIODIC_ADVERTISER_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x49),
2710c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_PERIODIC_ADVERTISER_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4a),
2720c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_TRANSMIT_POWER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4b),
2730c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_RF_PATH_COMPENSATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4c),
2740c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_WRITE_RF_PATH_COMPENSATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4d),
2750c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PRIVACY_MODE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4e),
2760c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_RECEIVER_TEST_V3 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x4f),
2770c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_TRANSMITTER_TEST_V3 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x50),
2780c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CONNECTIONLESS_CTE_TRANSMIT_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x51),
2790c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CONNECTIONLESS_CTE_TRANSMIT_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x52),
2800c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CONNECTIONLESS_IQ_SAMPLING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x53),
2810c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CONNECTION_CTE_RECEIVE_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x54),
2820c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CONNECTION_CTE_TRANSMIT_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x55),
2830c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CONNECTION_CTE_REQUEST_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x56),
2840c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CONNECTION_CTE_RESPONSE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x57),
2850c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_ANTENNA_INFORMATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x58),
2860c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_RECEIVE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x59),
2870c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5a),
2880c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_PERIODIC_ADVERTISING_SET_INFO_TRANSFER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5b),
2890c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PERIODIC_ADVERTISING_SYNC_TRANSFER_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5c),
2900c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_DEFAULT_PERIODIC_ADVERTISING_SYNC_TRANSFER_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5d),
2910c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_GENERATE_DHKEY_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5e),
2920c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_MODIFY_SLEEP_CLOCK_ACCURACY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x5f),
2930c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_OPCODE_HCI_LE_READ_BUFFER_SIZE_V2 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x60),
2940c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_ISO_TX_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x61),
2950c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CIG_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x62),
2960c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_CIG_PARAMETERS_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x63),
2970c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_CIS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x64),
2980c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_CIG = HCI_OPCODE (OGF_LE_CONTROLLER, 0x65),
2990c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ACCEPT_CIS_REQUEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x66),
3000c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_REJECT_CIS_REQUEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x67),
3010c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_BIG = HCI_OPCODE (OGF_LE_CONTROLLER, 0x68),
3020c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_BIG_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x69),
3030c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_TERMINATE_BIG = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6a),
3040c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_BIG_CREATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6b),
3050c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_BIG_TERMINATE_SYNC = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6c),
3060c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_REQUEST_PEER_SCA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6d),
3070c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SETUP_ISO_DATA_PATH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6e),
3080c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_ISO_DATA_PATH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x6f),
3090c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ISO_TRANSMIT_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x70),
3100c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ISO_RECEIVE_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x71),
3110c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ISO_READ_TEST_COUNTERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x72),
3120c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ISO_TEST_END = HCI_OPCODE (OGF_LE_CONTROLLER, 0x73),
3130c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_HOST_FEATURE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x74),
3140c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_ISO_LINK_QUALITY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x75),
3150c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_ENHANCED_READ_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x76),
3160c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_REMOTE_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x77),
3170c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PATH_LOSS_REPORTING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x78),
3180c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PATH_LOSS_REPORTING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x79),
3190c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_TRANSMIT_POWER_REPORTING_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x7a),
3200c1cf6c6SMatthias Ringwald     HCI_OPCODE_HCI_LE_TRANSMITTER_TEST_V4 = HCI_OPCODE (OGF_LE_CONTROLLER, 0x7B),
3210c1cf6c6SMatthias Ringwald 
322ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_BCM_WRITE_SCO_PCM_INT = HCI_OPCODE (0x3f, 0x1c),
323067ecc36SMatthias Ringwald     HCI_OPCODE_HCI_BCM_SET_SLEEP_MODE = HCI_OPCODE (0x3f, 0x27),
324067ecc36SMatthias Ringwald     HCI_OPCODE_HCI_BCM_WRITE_I2SPCM_INTERFACE_PARAM = HCI_OPCODE (0x3f, 0x6d),
325067ecc36SMatthias Ringwald     HCI_OPCODE_HCI_BCM_ENABLE_WBS = HCI_OPCODE(0x3f, 0x7e),
326ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_BCM_WRITE_TX_POWER_TABLE = HCI_OPCODE (0x3f, 0x1C9),
327ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_BCM_SET_TX_PWR = HCI_OPCODE (0x3f, 0x1A5),
328733a7793SMatthias Ringwald     HCI_OPCODE_HCI_TI_VS_CONFIGURE_DDIP = 0xFD55,
329ea5cc3a8SMatthias Ringwald } hci_opcode_t;
33056042629SMatthias Ringwald 
33156042629SMatthias Ringwald // HCI Commands - see hci_cmd.c for info on parameters
33256042629SMatthias Ringwald extern const hci_cmd_t hci_accept_connection_request;
33356042629SMatthias Ringwald extern const hci_cmd_t hci_accept_synchronous_connection;
33456042629SMatthias Ringwald extern const hci_cmd_t hci_authentication_requested;
33556042629SMatthias Ringwald extern const hci_cmd_t hci_change_connection_link_key;
33656042629SMatthias Ringwald extern const hci_cmd_t hci_change_connection_packet_type;
33756042629SMatthias Ringwald extern const hci_cmd_t hci_create_connection;
33856042629SMatthias Ringwald extern const hci_cmd_t hci_create_connection_cancel;
33956042629SMatthias Ringwald extern const hci_cmd_t hci_delete_stored_link_key;
34056042629SMatthias Ringwald extern const hci_cmd_t hci_disconnect;
34184ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_enable_device_under_test_mode;
342bed80775SMatthias Ringwald extern const hci_cmd_t hci_enhanced_accept_synchronous_connection;
343bed80775SMatthias Ringwald extern const hci_cmd_t hci_enhanced_setup_synchronous_connection;
3447cd21895SMatthias Ringwald extern const hci_cmd_t hci_exit_sniff_mode;
345733a7793SMatthias Ringwald extern const hci_cmd_t hci_flow_specification;
346e49d496aSMatthias Ringwald extern const hci_cmd_t hci_flush;
34756042629SMatthias Ringwald extern const hci_cmd_t hci_host_buffer_size;
34856042629SMatthias Ringwald extern const hci_cmd_t hci_inquiry;
34956042629SMatthias Ringwald extern const hci_cmd_t hci_inquiry_cancel;
350bed80775SMatthias Ringwald extern const hci_cmd_t hci_io_capability_request_negative_reply;
351bed80775SMatthias Ringwald extern const hci_cmd_t hci_io_capability_request_reply;
35256042629SMatthias Ringwald extern const hci_cmd_t hci_link_key_request_negative_reply;
35356042629SMatthias Ringwald extern const hci_cmd_t hci_link_key_request_reply;
35456042629SMatthias Ringwald extern const hci_cmd_t hci_pin_code_request_negative_reply;
355bed80775SMatthias Ringwald extern const hci_cmd_t hci_pin_code_request_reply;
35656042629SMatthias Ringwald extern const hci_cmd_t hci_qos_setup;
35756042629SMatthias Ringwald extern const hci_cmd_t hci_read_bd_addr;
35856042629SMatthias Ringwald extern const hci_cmd_t hci_read_buffer_size;
35997abfa24SMatthias Ringwald extern const hci_cmd_t hci_read_encryption_key_size;
3604eac2391SMatthias Ringwald extern const hci_cmd_t hci_read_inquiry_scan_activity;
36156042629SMatthias Ringwald extern const hci_cmd_t hci_read_le_host_supported;
36256042629SMatthias Ringwald extern const hci_cmd_t hci_read_link_policy_settings;
36356042629SMatthias Ringwald extern const hci_cmd_t hci_read_link_supervision_timeout;
364237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_extended_oob_data;
365e90bae01SMatthias Ringwald extern const hci_cmd_t hci_read_local_name;
366195e82f3Sskoperst extern const hci_cmd_t hci_read_page_timeout;
367195e82f3Sskoperst extern const hci_cmd_t hci_read_page_scan_activity;
3689af39d9fSMatthias Ringwald extern const hci_cmd_t hci_read_pin_type;
369237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_oob_data;
37056042629SMatthias Ringwald extern const hci_cmd_t hci_read_local_supported_commands;
37156042629SMatthias Ringwald extern const hci_cmd_t hci_read_local_supported_features;
372237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_version_information;
373bed80775SMatthias Ringwald extern const hci_cmd_t hci_read_loopback_mode;
37456042629SMatthias Ringwald extern const hci_cmd_t hci_read_num_broadcast_retransmissions;
37556042629SMatthias Ringwald extern const hci_cmd_t hci_read_remote_supported_features_command;
376d5057706SMatthias Ringwald extern const hci_cmd_t hci_read_remote_extended_features_command;
3778b22c04dSMatthias Ringwald extern const hci_cmd_t hci_read_remote_version_information;
37844751e25SMatthias Ringwald extern const hci_cmd_t hci_read_transmit_power_level;
37956042629SMatthias Ringwald extern const hci_cmd_t hci_read_rssi;
38056042629SMatthias Ringwald extern const hci_cmd_t hci_reject_connection_request;
38156042629SMatthias Ringwald extern const hci_cmd_t hci_remote_name_request;
38256042629SMatthias Ringwald extern const hci_cmd_t hci_remote_name_request_cancel;
38356042629SMatthias Ringwald extern const hci_cmd_t hci_remote_oob_data_request_negative_reply;
384bed80775SMatthias Ringwald extern const hci_cmd_t hci_remote_oob_data_request_reply;
3851849becdSMatthias Ringwald extern const hci_cmd_t hci_remote_oob_extended_data_request_reply;
38656042629SMatthias Ringwald extern const hci_cmd_t hci_reset;
38756042629SMatthias Ringwald extern const hci_cmd_t hci_role_discovery;
38856042629SMatthias Ringwald extern const hci_cmd_t hci_set_connection_encryption;
3892b838201SMatthias Ringwald extern const hci_cmd_t hci_set_controller_to_host_flow_control;
39084ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_set_event_mask;
39156042629SMatthias Ringwald extern const hci_cmd_t hci_setup_synchronous_connection;
39256042629SMatthias Ringwald extern const hci_cmd_t hci_sniff_mode;
39332e2f27fSMatthias Ringwald extern const hci_cmd_t hci_sniff_subrating;
39456042629SMatthias Ringwald extern const hci_cmd_t hci_switch_role_command;
39556042629SMatthias Ringwald extern const hci_cmd_t hci_user_confirmation_request_negative_reply;
39656042629SMatthias Ringwald extern const hci_cmd_t hci_user_confirmation_request_reply;
39756042629SMatthias Ringwald extern const hci_cmd_t hci_user_passkey_request_negative_reply;
39856042629SMatthias Ringwald extern const hci_cmd_t hci_user_passkey_request_reply;
39956042629SMatthias Ringwald extern const hci_cmd_t hci_write_authentication_enable;
40056042629SMatthias Ringwald extern const hci_cmd_t hci_write_class_of_device;
4019119d792SMilanka Ringwald extern const hci_cmd_t hci_write_current_iac_lap_two_iacs;
402483c5078SMatthias Ringwald extern const hci_cmd_t hci_write_default_erroneous_data_reporting;
40353138e7aSMatthias Ringwald extern const hci_cmd_t hci_write_default_link_policy_setting;
40456042629SMatthias Ringwald extern const hci_cmd_t hci_write_extended_inquiry_response;
40556042629SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_mode;
4064eac2391SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_scan_activity;
4075769fd77SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_scan_type;
40856042629SMatthias Ringwald extern const hci_cmd_t hci_write_le_host_supported;
40956042629SMatthias Ringwald extern const hci_cmd_t hci_write_link_policy_settings;
41056042629SMatthias Ringwald extern const hci_cmd_t hci_write_link_supervision_timeout;
41156042629SMatthias Ringwald extern const hci_cmd_t hci_write_local_name;
412bed80775SMatthias Ringwald extern const hci_cmd_t hci_write_loopback_mode;
41356042629SMatthias Ringwald extern const hci_cmd_t hci_write_num_broadcast_retransmissions;
41456042629SMatthias Ringwald extern const hci_cmd_t hci_write_page_timeout;
4159af39d9fSMatthias Ringwald extern const hci_cmd_t hci_write_pin_type;
416195e82f3Sskoperst extern const hci_cmd_t hci_write_page_scan_activity;
4175769fd77SMatthias Ringwald extern const hci_cmd_t hci_write_page_scan_type;
41856042629SMatthias Ringwald extern const hci_cmd_t hci_write_scan_enable;
419b002ae8cSMatthias Ringwald extern const hci_cmd_t hci_write_secure_connections_host_support;
42084ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_write_secure_connections_test_mode;
42184ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_write_simple_pairing_debug_mode;
42256042629SMatthias Ringwald extern const hci_cmd_t hci_write_simple_pairing_mode;
42356042629SMatthias Ringwald extern const hci_cmd_t hci_write_synchronous_flow_control_enable;
42456042629SMatthias Ringwald 
4250c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_accept_cis_request;
4260c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_periodic_advertiser_list;
427173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_resolving_list;
42856042629SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_white_list;
4290c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_big_create_sync;
4300c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_big_terminate_sync;
4310c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_clear_advertising_sets;
4320c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_clear_periodic_advertiser_list;
433173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_clear_resolving_list;
43456042629SMatthias Ringwald extern const hci_cmd_t hci_le_clear_white_list;
4350c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_connection_cte_request_enable;
4360c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_connection_cte_response_enable;
43756042629SMatthias Ringwald extern const hci_cmd_t hci_le_connection_update;
4380c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_create_big;
4390c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_create_big_test;
4400c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_create_cis;
44156042629SMatthias Ringwald extern const hci_cmd_t hci_le_create_connection;
44256042629SMatthias Ringwald extern const hci_cmd_t hci_le_create_connection_cancel;
44356042629SMatthias Ringwald extern const hci_cmd_t hci_le_encrypt;
4440c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_enhanced_read_transmit_power_level;
4450c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_extended_create_connection;
44682180fcaSMatthias Ringwald extern const hci_cmd_t hci_le_generate_dhkey;
4470c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_generate_dhkey_v2;
4480c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_read_test_counters;
4490c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_receive_test;
4500c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_test_end;
4510c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_iso_transmit_test;
45256042629SMatthias Ringwald extern const hci_cmd_t hci_le_long_term_key_negative_reply;
45356042629SMatthias Ringwald extern const hci_cmd_t hci_le_long_term_key_request_reply;
4540c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_modify_sleep_clock_accuracy;
4550c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_create_sync;
4560c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_create_sync_cancel;
4570c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_set_info_transfer;
4580c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_sync_transfer;
4590c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_periodic_advertising_terminate_sync;
46056042629SMatthias Ringwald extern const hci_cmd_t hci_le_rand;
46156042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_advertising_channel_tx_power;
4620c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_antenna_information;
46356042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_buffer_size ;
46456042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_channel_map;
4650c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_iso_link_quality;
4660c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_iso_tx_sync;
46782180fcaSMatthias Ringwald extern const hci_cmd_t hci_le_read_local_p256_public_key;
468173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_local_resolvable_address;
4690c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_local_supported_features;
4700c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_maximum_advertising_data_length;
4710ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_read_maximum_data_length;
4720c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_number_of_supported_advertising_sets;
473173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_peer_resolvable_address;
4740c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_periodic_advertiser_list_size;
475ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_read_phy;
4760c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_remote_transmit_power_level;
47756042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_remote_used_features;
478173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_resolving_list_size;
4790c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_rf_path_compensation;
4800ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_read_suggested_default_data_length;
48156042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_supported_states;
4820c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_read_transmit_power;
48356042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_white_list_size;
48456042629SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test;
4850c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test_v2;
4860c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test_v3;
4870c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_reject_cis_request;
488fe704c95SMatthias Ringwald extern const hci_cmd_t hci_le_remote_connection_parameter_request_negative_reply;
489ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_remote_connection_parameter_request_reply;
4900c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_advertising_set;
4910c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_cig;
4920c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_periodic_advertiser_list;
493173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_resolving_list;
49456042629SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_white_list;
4950c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_remove_iso_data_path;
4960c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_request_peer_sca;
497173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_set_address_resolution_enabled;
49856042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertise_enable;
49956042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_data;
50056042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_parameters;
5010c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_set_random_address;
5020c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_cig_parameters;
5030c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_cig_parameters_test;
5040c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connection_cte_receive_parameters;
5050c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connection_cte_transmit_parameters;
5060c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connectionless_cte_transmit_enable;
5070c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connectionless_cte_transmit_parameters;
5080c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_connectionless_iq_sampling_enable;
5090ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_set_data_length;
5100c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_default_periodic_advertising_sync_transfer_parameters;
511ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_set_default_phy;
51256042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_event_mask;
5130c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_advertising_data;
5140c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_advertising_enable;
5150c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_advertising_parameters;
5160c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_enable;
5170c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_parameters_1;
5180c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_parameters_2;
5190c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_extended_scan_response_data;
52056042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_host_channel_classification;
5210c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_host_feature;
5220c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_path_loss_reporting_enable;
5230c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_path_loss_reporting_parameters;
5240c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_data;
5250c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_enable;
5260c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_parameters;
5270c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_receive_enable;
5280c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_periodic_advertising_sync_transfer_parameters;
529ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_set_phy;
5300c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_privacy_mode;
53156042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_random_address;
532173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_set_resolvable_private_address_timeout;
53356042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_enable;
53456042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_parameters;
53556042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_response_data;
5360c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_set_transmit_power_reporting_enable;
5370c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_setup_iso_data_path;
53856042629SMatthias Ringwald extern const hci_cmd_t hci_le_start_encryption;
5390c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_terminate_big;
54056042629SMatthias Ringwald extern const hci_cmd_t hci_le_test_end;
54156042629SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test;
5420c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test_v2;
5430c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test_v3;
5440c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test_v4;
5450c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_le_write_rf_path_compensation;
5460ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_write_suggested_default_data_length;
5470c1cf6c6SMatthias Ringwald extern const hci_cmd_t hci_opcode_hci_le_read_buffer_size_v2;
5480c1cf6c6SMatthias Ringwald 
549a42798c3SMatthias Ringwald 
550a42798c3SMatthias Ringwald // Broadcom / Cypress specific HCI commands
551067ecc36SMatthias Ringwald extern const hci_cmd_t hci_bcm_enable_wbs;
552eab6959fSMatthias Ringwald extern const hci_cmd_t hci_bcm_set_sleep_mode;
553067ecc36SMatthias Ringwald extern const hci_cmd_t hci_bcm_write_i2spcm_interface_param;
5545cdaddfaSMatthias Ringwald extern const hci_cmd_t hci_bcm_write_sco_pcm_int;
5555cdaddfaSMatthias Ringwald extern const hci_cmd_t hci_bcm_write_tx_power_table;
5564545e386SMatthias Ringwald extern const hci_cmd_t hci_bcm_set_tx_pwr;
557a42798c3SMatthias Ringwald 
558ba39ed56SMatthias Ringwald // TI specific HCI commands
559365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_avrp_enable;
560733a7793SMatthias Ringwald extern const hci_cmd_t hci_ti_configure_ddip;
56115fca961SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_enable_rf_calibration;
56215fca961SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_con_rx;
563ba39ed56SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_con_tx;
564ba39ed56SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_packet_tx_rx;
565365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_wbs_associate;
566365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_wbs_disassociate;
567365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_write_codec_config;
56815fca961SMatthias Ringwald extern const hci_cmd_t hci_ti_write_hardware_register;
569ba39ed56SMatthias Ringwald 
57056042629SMatthias Ringwald /**
57156042629SMatthias Ringwald  * construct HCI Command based on template
57256042629SMatthias Ringwald  *
57356042629SMatthias Ringwald  * Format:
57456042629SMatthias Ringwald  *   1,2,3,4: one to four byte value
57556042629SMatthias Ringwald  *   H: HCI connection handle
57656042629SMatthias Ringwald  *   B: Bluetooth Baseband Address (BD_ADDR)
57756042629SMatthias Ringwald  *   D: 8 byte data block
57856042629SMatthias Ringwald  *   E: Extended Inquiry Result
57956042629SMatthias Ringwald  *   N: Name up to 248 chars, \0 terminated
58056042629SMatthias Ringwald  *   P: 16 byte Pairing code
58156042629SMatthias Ringwald  *   A: 31 bytes advertising data
58256042629SMatthias Ringwald  *   S: Service Record (Data Element Sequence)
58356042629SMatthias Ringwald  */
58456042629SMatthias Ringwald 
585fe5a6c4eSMilanka Ringwald uint16_t hci_cmd_create_from_template(uint8_t *hci_cmd_buffer, const hci_cmd_t *cmd, va_list argptr);
58656042629SMatthias Ringwald 
58756042629SMatthias Ringwald #if defined __cplusplus
58856042629SMatthias Ringwald }
58956042629SMatthias Ringwald #endif
59056042629SMatthias Ringwald 
59180e33422SMatthias Ringwald #endif // HCI_CMDS_H
592