xref: /btstack/src/hci_cmd.h (revision 32e2f27f9690ebbb6cc78f27feb92654e9527cb3)
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
2356042629SMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS
2456042629SMatthias Ringwald  * RINGWALD 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 
3856042629SMatthias Ringwald /*
3956042629SMatthias Ringwald  *  hci_cmd.h
4056042629SMatthias Ringwald  *
4156042629SMatthias Ringwald  *  Created by Matthias Ringwald on 7/23/09.
4256042629SMatthias Ringwald  */
4356042629SMatthias Ringwald 
4480e33422SMatthias Ringwald #ifndef HCI_CMDS_H
4580e33422SMatthias Ringwald #define HCI_CMDS_H
4656042629SMatthias Ringwald 
4756042629SMatthias Ringwald #include "bluetooth.h"
4856042629SMatthias Ringwald #include "btstack_defines.h"
4956042629SMatthias Ringwald 
5056042629SMatthias Ringwald #include <stdint.h>
5156042629SMatthias Ringwald #include <stdarg.h>
5256042629SMatthias Ringwald 
5356042629SMatthias Ringwald #if defined __cplusplus
5456042629SMatthias Ringwald extern "C" {
5556042629SMatthias Ringwald #endif
5656042629SMatthias Ringwald 
57ea5cc3a8SMatthias Ringwald // calculate hci opcode for ogf/ocf value
58ea5cc3a8SMatthias Ringwald #define HCI_OPCODE(ogf, ocf) ((ocf) | ((ogf) << 10))
59ea5cc3a8SMatthias Ringwald 
6056042629SMatthias Ringwald /**
6156042629SMatthias Ringwald  *  Hardware state of Bluetooth controller
6256042629SMatthias Ringwald  */
6356042629SMatthias Ringwald typedef enum {
6456042629SMatthias Ringwald     HCI_POWER_OFF = 0,
6556042629SMatthias Ringwald     HCI_POWER_ON,
6656042629SMatthias Ringwald     HCI_POWER_SLEEP
6756042629SMatthias Ringwald } HCI_POWER_MODE;
6856042629SMatthias Ringwald 
6956042629SMatthias Ringwald /**
7056042629SMatthias Ringwald  * State of BTstack
7156042629SMatthias Ringwald  */
7256042629SMatthias Ringwald typedef enum {
7356042629SMatthias Ringwald     HCI_STATE_OFF = 0,
7456042629SMatthias Ringwald     HCI_STATE_INITIALIZING,
7556042629SMatthias Ringwald     HCI_STATE_WORKING,
7656042629SMatthias Ringwald     HCI_STATE_HALTING,
7756042629SMatthias Ringwald     HCI_STATE_SLEEPING,
7856042629SMatthias Ringwald     HCI_STATE_FALLING_ASLEEP
7956042629SMatthias Ringwald } HCI_STATE;
8056042629SMatthias Ringwald 
8156042629SMatthias Ringwald /**
8256042629SMatthias Ringwald  * compact HCI Command packet description
8356042629SMatthias Ringwald  */
8456042629SMatthias Ringwald  typedef struct {
8556042629SMatthias Ringwald     uint16_t    opcode;
8656042629SMatthias Ringwald     const char *format;
8756042629SMatthias Ringwald } hci_cmd_t;
8856042629SMatthias Ringwald 
89ea5cc3a8SMatthias Ringwald typedef enum {
90ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_INQUIRY = HCI_OPCODE (OGF_LINK_CONTROL, 0x01),
91ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_INQUIRY_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x02),
92ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CREATE_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x05),
93ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_DISCONNECT = HCI_OPCODE (OGF_LINK_CONTROL, 0x06),
94ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CREATE_CONNECTION_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x08),
95ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ACCEPT_CONNECTION_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x09),
96ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REJECT_CONNECTION_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x0a),
97ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LINK_KEY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0b),
98ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LINK_KEY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0c),
99ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_PIN_CODE_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0d),
100ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_PIN_CODE_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x0e),
101ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CHANGE_CONNECTION_PACKET_TYPE = HCI_OPCODE (OGF_LINK_CONTROL, 0x0f),
102ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_AUTHENTICATION_REQUESTED = HCI_OPCODE (OGF_LINK_CONTROL, 0x11),
103ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SET_CONNECTION_ENCRYPTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x13),
104ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_CHANGE_CONNECTION_LINK_KEY = HCI_OPCODE (OGF_LINK_CONTROL, 0x15),
105ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_NAME_REQUEST = HCI_OPCODE (OGF_LINK_CONTROL, 0x19),
106ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_NAME_REQUEST_CANCEL = HCI_OPCODE (OGF_LINK_CONTROL, 0x1A),
107ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_REMOTE_SUPPORTED_FEATURES_COMMAND = HCI_OPCODE (OGF_LINK_CONTROL, 0x1B),
108ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_REMOTE_EXTENDED_FEATURES_COMMAND = HCI_OPCODE (OGF_LINK_CONTROL, 0x1C),
109ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_REMOTE_VERSION_INFORMATION = HCI_OPCODE (OGF_LINK_CONTROL, 0x1D),
110ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SETUP_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x0028),
111ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ACCEPT_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x0029),
112ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_IO_CAPABILITY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2b),
113ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_CONFIRMATION_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2c),
114ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2d),
115ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_PASSKEY_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2e),
116ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_USER_PASSKEY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x2f),
117ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_OOB_DATA_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x30),
118ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x33),
119ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x34),
120ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ENHANCED_SETUP_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x3d),
121ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ENHANCED_ACCEPT_SYNCHRONOUS_CONNECTION = HCI_OPCODE (OGF_LINK_CONTROL, 0x3e),
122bb75dd7dSMatthias Ringwald     HCI_OPCODE_HCI_REMOTE_OOB_EXTENDED_DATA_REQUEST_REPLY = HCI_OPCODE (OGF_LINK_CONTROL, 0x45),
123ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SNIFF_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x03),
124ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_EXIT_SNIFF_MODE = HCI_OPCODE (OGF_LINK_POLICY, 0x04),
125ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_QOS_SETUP = HCI_OPCODE (OGF_LINK_POLICY, 0x07),
126ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ROLE_DISCOVERY = HCI_OPCODE (OGF_LINK_POLICY, 0x09),
127ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SWITCH_ROLE_COMMAND = HCI_OPCODE (OGF_LINK_POLICY, 0x0b),
128ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LINK_POLICY_SETTINGS = HCI_OPCODE (OGF_LINK_POLICY, 0x0c),
129ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LINK_POLICY_SETTINGS = HCI_OPCODE (OGF_LINK_POLICY, 0x0d),
130ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_DEFAULT_LINK_POLICY_SETTING = HCI_OPCODE (OGF_LINK_POLICY, 0x0F),
131*32e2f27fSMatthias Ringwald     HCI_OPCODE_HCI_SNIFF_SUBRATING = HCI_OPCODE (OGF_LINK_POLICY, 0x11),
132ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SET_EVENT_MASK = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x01),
133ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_RESET = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x03),
134ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_FLUSH = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x08),
135ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_PIN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x09),
136ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PIN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x0A),
137ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_DELETE_STORED_LINK_KEY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x12),
138ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LOCAL_NAME = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x13),
139ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_NAME = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x14),
140ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x17),
141ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PAGE_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x18),
142ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SCAN_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1A),
143ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_PAGE_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1B),
144ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PAGE_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1C),
145ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_INQUIRY_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1D),
146ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_ACTIVITY = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x1E),
147ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_AUTHENTICATION_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x20),
148ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_CLASS_OF_DEVICE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x24),
149ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_NUM_BROADCAST_RETRANSMISSIONS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x29),
150ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2a),
151ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_TRANSMIT_POWER_LEVEL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2D),
152ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x2f),
153ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x31),
154ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_HOST_BUFFER_SIZE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x33),
155ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_HOST_NUMBER_OF_COMPLETED_PACKETS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x35),
156ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x36),
157ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x37),
158ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_CURRENT_IAC_LAP_TWO_IACS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x3A),
1595769fd77SMatthias Ringwald     HCI_OPCODE_HCI_READ_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x42),
1605769fd77SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x43),
1615769fd77SMatthias Ringwald     HCI_OPCODE_HCI_READ_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x44),
162ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x45),
1635769fd77SMatthias Ringwald     HCI_OPCODE_HCI_READ_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x46),
1645769fd77SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x47),
165ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_EXTENDED_INQUIRY_RESPONSE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x52),
166ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x56),
167ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x57),
168ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x5B),
169ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LE_HOST_SUPPORTED = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x6c),
170ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LE_HOST_SUPPORTED = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x6d),
171ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7a),
1721849becdSMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_EXTENDED_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x7d),
173ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOOPBACK_MODE = HCI_OPCODE (OGF_TESTING, 0x01),
174ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_LOOPBACK_MODE = HCI_OPCODE (OGF_TESTING, 0x02),
175ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_ENABLE_DEVICE_UNDER_TEST_MODE = HCI_OPCODE (OGF_TESTING, 0x03),
176ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_DEBUG_MODE = HCI_OPCODE (OGF_TESTING, 0x04),
177ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_WRITE_SECURE_CONNECTIONS_TEST_MODE = HCI_OPCODE (OGF_TESTING, 0x0a),
178ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_VERSION_INFORMATION = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x01),
179ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_SUPPORTED_COMMANDS = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x02),
180ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_LOCAL_SUPPORTED_FEATURES = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x03),
181ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_BUFFER_SIZE = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x05),
182ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_BD_ADDR = HCI_OPCODE (OGF_INFORMATIONAL_PARAMETERS, 0x09),
183ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_RSSI = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x05),
184ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_READ_ENCRYPTION_KEY_SIZE = HCI_OPCODE (OGF_STATUS_PARAMETERS, 0x08),
185ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_EVENT_MASK = HCI_OPCODE (OGF_LE_CONTROLLER, 0x01),
186ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_BUFFER_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x02),
187ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_SUPPORTED_FEATURES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x03),
188ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_RANDOM_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x05),
189ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISING_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x06),
190ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_ADVERTISING_CHANNEL_TX_POWER = HCI_OPCODE (OGF_LE_CONTROLLER, 0x07),
191ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISING_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x08),
192ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_SCAN_RESPONSE_DATA = HCI_OPCODE (OGF_LE_CONTROLLER, 0x09),
193ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADVERTISE_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0a),
194ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_SCAN_PARAMETERS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0b),
195ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_SCAN_ENABLE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0c),
196ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_CONNECTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0d),
197ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CREATE_CONNECTION_CANCEL = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0e),
198ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_WHITE_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x0f),
199ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CLEAR_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x10),
200ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x11),
201ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_WHITE_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x12),
202ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_CONNECTION_UPDATE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x13),
203ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x14),
204ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_CHANNEL_MAP = HCI_OPCODE (OGF_LE_CONTROLLER, 0x15),
205ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_REMOTE_USED_FEATURES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x16),
206ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_ENCRYPT = HCI_OPCODE (OGF_LE_CONTROLLER, 0x17),
207ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_RAND = HCI_OPCODE (OGF_LE_CONTROLLER, 0x18),
208ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_START_ENCRYPTION = HCI_OPCODE (OGF_LE_CONTROLLER, 0x19),
209ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_LONG_TERM_KEY_REQUEST_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1a),
210ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_LONG_TERM_KEY_NEGATIVE_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1b),
211ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_SUPPORTED_STATES = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1c),
212ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_RECEIVER_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1d),
213ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_TRANSMITTER_TEST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1e),
214ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_TEST_END = HCI_OPCODE (OGF_LE_CONTROLLER, 0x1f),
215ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x20),
216ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x21),
217ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x22),
218ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_SUGGESTED_DEFAULT_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x23),
219ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_WRITE_SUGGESTED_DEFAULT_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x24),
220ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_LOCAL_P256_PUBLIC_KEY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x25),
221ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_GENERATE_DHKEY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x26),
222173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_ADD_DEVICE_TO_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x27),
223173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_REMOVE_DEVICE_FROM_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x28),
224173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_CLEAR_RESOLVING_LIST = HCI_OPCODE (OGF_LE_CONTROLLER, 0x29),
225173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_RESOLVING_LIST_SIZE = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2A),
226173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_PEER_RESOLVABLE_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2B),
227173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_LOCAL_RESOLVABLE_ADDRESS = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2C),
228173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_ADDRESS_RESOLUTION_ENABLED = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2D),
229173ed1a3SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_RESOLVABLE_PRIVATE_ADDRESS_TIMEOUT = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2E),
230ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_MAXIMUM_DATA_LENGTH = HCI_OPCODE (OGF_LE_CONTROLLER, 0x2F),
231ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_READ_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x30),
232ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_DEFAULT_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x31),
233ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_LE_SET_PHY = HCI_OPCODE (OGF_LE_CONTROLLER, 0x32),
234ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_BCM_WRITE_SCO_PCM_INT = HCI_OPCODE (0x3f, 0x1c),
235067ecc36SMatthias Ringwald     HCI_OPCODE_HCI_BCM_SET_SLEEP_MODE = HCI_OPCODE (0x3f, 0x27),
236067ecc36SMatthias Ringwald     HCI_OPCODE_HCI_BCM_WRITE_I2SPCM_INTERFACE_PARAM = HCI_OPCODE (0x3f, 0x6d),
237067ecc36SMatthias Ringwald     HCI_OPCODE_HCI_BCM_ENABLE_WBS = HCI_OPCODE(0x3f, 0x7e),
238ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_BCM_WRITE_TX_POWER_TABLE = HCI_OPCODE (0x3f, 0x1C9),
239ea5cc3a8SMatthias Ringwald     HCI_OPCODE_HCI_BCM_SET_TX_PWR = HCI_OPCODE (0x3f, 0x1A5),
240ea5cc3a8SMatthias Ringwald } hci_opcode_t;
24156042629SMatthias Ringwald 
24256042629SMatthias Ringwald // HCI Commands - see hci_cmd.c for info on parameters
24356042629SMatthias Ringwald extern const hci_cmd_t hci_accept_connection_request;
24456042629SMatthias Ringwald extern const hci_cmd_t hci_accept_synchronous_connection;
24556042629SMatthias Ringwald extern const hci_cmd_t hci_authentication_requested;
24656042629SMatthias Ringwald extern const hci_cmd_t hci_change_connection_link_key;
24756042629SMatthias Ringwald extern const hci_cmd_t hci_change_connection_packet_type;
24856042629SMatthias Ringwald extern const hci_cmd_t hci_create_connection;
24956042629SMatthias Ringwald extern const hci_cmd_t hci_create_connection_cancel;
25056042629SMatthias Ringwald extern const hci_cmd_t hci_delete_stored_link_key;
25156042629SMatthias Ringwald extern const hci_cmd_t hci_disconnect;
25284ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_enable_device_under_test_mode;
253bed80775SMatthias Ringwald extern const hci_cmd_t hci_enhanced_accept_synchronous_connection;
254bed80775SMatthias Ringwald extern const hci_cmd_t hci_enhanced_setup_synchronous_connection;
2557cd21895SMatthias Ringwald extern const hci_cmd_t hci_exit_sniff_mode;
256e49d496aSMatthias Ringwald extern const hci_cmd_t hci_flush;
25756042629SMatthias Ringwald extern const hci_cmd_t hci_host_buffer_size;
25856042629SMatthias Ringwald extern const hci_cmd_t hci_inquiry;
25956042629SMatthias Ringwald extern const hci_cmd_t hci_inquiry_cancel;
260bed80775SMatthias Ringwald extern const hci_cmd_t hci_io_capability_request_negative_reply;
261bed80775SMatthias Ringwald extern const hci_cmd_t hci_io_capability_request_reply;
26256042629SMatthias Ringwald extern const hci_cmd_t hci_link_key_request_negative_reply;
26356042629SMatthias Ringwald extern const hci_cmd_t hci_link_key_request_reply;
26456042629SMatthias Ringwald extern const hci_cmd_t hci_pin_code_request_negative_reply;
265bed80775SMatthias Ringwald extern const hci_cmd_t hci_pin_code_request_reply;
26656042629SMatthias Ringwald extern const hci_cmd_t hci_qos_setup;
26756042629SMatthias Ringwald extern const hci_cmd_t hci_read_bd_addr;
26856042629SMatthias Ringwald extern const hci_cmd_t hci_read_buffer_size;
26997abfa24SMatthias Ringwald extern const hci_cmd_t hci_read_encryption_key_size;
2704eac2391SMatthias Ringwald extern const hci_cmd_t hci_read_inquiry_scan_activity;
27156042629SMatthias Ringwald extern const hci_cmd_t hci_read_le_host_supported;
27256042629SMatthias Ringwald extern const hci_cmd_t hci_read_link_policy_settings;
27356042629SMatthias Ringwald extern const hci_cmd_t hci_read_link_supervision_timeout;
274237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_extended_oob_data;
275e90bae01SMatthias Ringwald extern const hci_cmd_t hci_read_local_name;
276195e82f3Sskoperst extern const hci_cmd_t hci_read_page_timeout;
277195e82f3Sskoperst extern const hci_cmd_t hci_read_page_scan_activity;
2789af39d9fSMatthias Ringwald extern const hci_cmd_t hci_read_pin_type;
279237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_oob_data;
28056042629SMatthias Ringwald extern const hci_cmd_t hci_read_local_supported_commands;
28156042629SMatthias Ringwald extern const hci_cmd_t hci_read_local_supported_features;
282237daac5SMatthias Ringwald extern const hci_cmd_t hci_read_local_version_information;
283bed80775SMatthias Ringwald extern const hci_cmd_t hci_read_loopback_mode;
28456042629SMatthias Ringwald extern const hci_cmd_t hci_read_num_broadcast_retransmissions;
28556042629SMatthias Ringwald extern const hci_cmd_t hci_read_remote_supported_features_command;
286d5057706SMatthias Ringwald extern const hci_cmd_t hci_read_remote_extended_features_command;
2878b22c04dSMatthias Ringwald extern const hci_cmd_t hci_read_remote_version_information;
28844751e25SMatthias Ringwald extern const hci_cmd_t hci_read_transmit_power_level;
28956042629SMatthias Ringwald extern const hci_cmd_t hci_read_rssi;
29056042629SMatthias Ringwald extern const hci_cmd_t hci_reject_connection_request;
29156042629SMatthias Ringwald extern const hci_cmd_t hci_remote_name_request;
29256042629SMatthias Ringwald extern const hci_cmd_t hci_remote_name_request_cancel;
29356042629SMatthias Ringwald extern const hci_cmd_t hci_remote_oob_data_request_negative_reply;
294bed80775SMatthias Ringwald extern const hci_cmd_t hci_remote_oob_data_request_reply;
2951849becdSMatthias Ringwald extern const hci_cmd_t hci_remote_oob_extended_data_request_reply;
29656042629SMatthias Ringwald extern const hci_cmd_t hci_reset;
29756042629SMatthias Ringwald extern const hci_cmd_t hci_role_discovery;
29856042629SMatthias Ringwald extern const hci_cmd_t hci_set_connection_encryption;
2992b838201SMatthias Ringwald extern const hci_cmd_t hci_set_controller_to_host_flow_control;
30084ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_set_event_mask;
30156042629SMatthias Ringwald extern const hci_cmd_t hci_setup_synchronous_connection;
30256042629SMatthias Ringwald extern const hci_cmd_t hci_sniff_mode;
303*32e2f27fSMatthias Ringwald extern const hci_cmd_t hci_sniff_subrating;
30456042629SMatthias Ringwald extern const hci_cmd_t hci_switch_role_command;
30556042629SMatthias Ringwald extern const hci_cmd_t hci_user_confirmation_request_negative_reply;
30656042629SMatthias Ringwald extern const hci_cmd_t hci_user_confirmation_request_reply;
30756042629SMatthias Ringwald extern const hci_cmd_t hci_user_passkey_request_negative_reply;
30856042629SMatthias Ringwald extern const hci_cmd_t hci_user_passkey_request_reply;
30956042629SMatthias Ringwald extern const hci_cmd_t hci_write_authentication_enable;
31056042629SMatthias Ringwald extern const hci_cmd_t hci_write_class_of_device;
3119119d792SMilanka Ringwald extern const hci_cmd_t hci_write_current_iac_lap_two_iacs;
312483c5078SMatthias Ringwald extern const hci_cmd_t hci_write_default_erroneous_data_reporting;
31353138e7aSMatthias Ringwald extern const hci_cmd_t hci_write_default_link_policy_setting;
31456042629SMatthias Ringwald extern const hci_cmd_t hci_write_extended_inquiry_response;
31556042629SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_mode;
3164eac2391SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_scan_activity;
3175769fd77SMatthias Ringwald extern const hci_cmd_t hci_write_inquiry_scan_type;
31856042629SMatthias Ringwald extern const hci_cmd_t hci_write_le_host_supported;
31956042629SMatthias Ringwald extern const hci_cmd_t hci_write_link_policy_settings;
32056042629SMatthias Ringwald extern const hci_cmd_t hci_write_link_supervision_timeout;
32156042629SMatthias Ringwald extern const hci_cmd_t hci_write_local_name;
322bed80775SMatthias Ringwald extern const hci_cmd_t hci_write_loopback_mode;
32356042629SMatthias Ringwald extern const hci_cmd_t hci_write_num_broadcast_retransmissions;
32456042629SMatthias Ringwald extern const hci_cmd_t hci_write_page_timeout;
3259af39d9fSMatthias Ringwald extern const hci_cmd_t hci_write_pin_type;
326195e82f3Sskoperst extern const hci_cmd_t hci_write_page_scan_activity;
3275769fd77SMatthias Ringwald extern const hci_cmd_t hci_write_page_scan_type;
32856042629SMatthias Ringwald extern const hci_cmd_t hci_write_scan_enable;
329b002ae8cSMatthias Ringwald extern const hci_cmd_t hci_write_secure_connections_host_support;
33084ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_write_secure_connections_test_mode;
33184ca9bd8SMatthias Ringwald extern const hci_cmd_t hci_write_simple_pairing_debug_mode;
33256042629SMatthias Ringwald extern const hci_cmd_t hci_write_simple_pairing_mode;
33356042629SMatthias Ringwald extern const hci_cmd_t hci_write_synchronous_flow_control_enable;
33456042629SMatthias Ringwald 
335173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_resolving_list;
33656042629SMatthias Ringwald extern const hci_cmd_t hci_le_add_device_to_white_list;
337173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_clear_resolving_list;
33856042629SMatthias Ringwald extern const hci_cmd_t hci_le_clear_white_list;
33956042629SMatthias Ringwald extern const hci_cmd_t hci_le_connection_update;
34056042629SMatthias Ringwald extern const hci_cmd_t hci_le_create_connection;
34156042629SMatthias Ringwald extern const hci_cmd_t hci_le_create_connection_cancel;
34256042629SMatthias Ringwald extern const hci_cmd_t hci_le_encrypt;
34382180fcaSMatthias Ringwald extern const hci_cmd_t hci_le_generate_dhkey;
34456042629SMatthias Ringwald extern const hci_cmd_t hci_le_long_term_key_negative_reply;
34556042629SMatthias Ringwald extern const hci_cmd_t hci_le_long_term_key_request_reply;
34656042629SMatthias Ringwald extern const hci_cmd_t hci_le_rand;
34756042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_advertising_channel_tx_power;
34856042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_buffer_size ;
34956042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_channel_map;
35082180fcaSMatthias Ringwald extern const hci_cmd_t hci_le_read_local_p256_public_key;
351173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_local_resolvable_address;
3520ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_read_maximum_data_length;
353173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_peer_resolvable_address;
354ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_read_phy;
35556042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_remote_used_features;
356173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_read_resolving_list_size;
3570ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_read_suggested_default_data_length;
35856042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_supported_features;
35956042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_supported_states;
36056042629SMatthias Ringwald extern const hci_cmd_t hci_le_read_white_list_size;
36156042629SMatthias Ringwald extern const hci_cmd_t hci_le_receiver_test;
362fe704c95SMatthias Ringwald extern const hci_cmd_t hci_le_remote_connection_parameter_request_negative_reply;
363ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_remote_connection_parameter_request_reply;
364173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_resolving_list;
36556042629SMatthias Ringwald extern const hci_cmd_t hci_le_remove_device_from_white_list;
366173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_set_address_resolution_enabled;
36756042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertise_enable;
36856042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_data;
36956042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_advertising_parameters;
3700ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_set_data_length;
371ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_set_default_phy;
37256042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_event_mask;
37356042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_host_channel_classification;
374ca13daefSMatthias Ringwald extern const hci_cmd_t hci_le_set_phy;
37556042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_random_address;
376173ed1a3SMatthias Ringwald extern const hci_cmd_t hci_le_set_resolvable_private_address_timeout;
37756042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_enable;
37856042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_parameters;
37956042629SMatthias Ringwald extern const hci_cmd_t hci_le_set_scan_response_data;
38056042629SMatthias Ringwald extern const hci_cmd_t hci_le_start_encryption;
38156042629SMatthias Ringwald extern const hci_cmd_t hci_le_test_end;
38256042629SMatthias Ringwald extern const hci_cmd_t hci_le_transmitter_test;
3830ea2847fSMatthias Ringwald extern const hci_cmd_t hci_le_write_suggested_default_data_length;
384a42798c3SMatthias Ringwald 
385a42798c3SMatthias Ringwald // Broadcom / Cypress specific HCI commands
386067ecc36SMatthias Ringwald extern const hci_cmd_t hci_bcm_enable_wbs;
387eab6959fSMatthias Ringwald extern const hci_cmd_t hci_bcm_set_sleep_mode;
388067ecc36SMatthias Ringwald extern const hci_cmd_t hci_bcm_write_i2spcm_interface_param;
3895cdaddfaSMatthias Ringwald extern const hci_cmd_t hci_bcm_write_sco_pcm_int;
3905cdaddfaSMatthias Ringwald extern const hci_cmd_t hci_bcm_write_tx_power_table;
3914545e386SMatthias Ringwald extern const hci_cmd_t hci_bcm_set_tx_pwr;
392a42798c3SMatthias Ringwald 
393ba39ed56SMatthias Ringwald // TI specific HCI commands
394365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_avrp_enable;
395ba39ed56SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_con_tx;
396ba39ed56SMatthias Ringwald extern const hci_cmd_t hci_ti_drpb_tester_packet_tx_rx;
397365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_wbs_associate;
398365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_wbs_disassociate;
399365a7dd1SMatthias Ringwald extern const hci_cmd_t hci_ti_write_codec_config;
400ba39ed56SMatthias Ringwald 
40156042629SMatthias Ringwald /**
40256042629SMatthias Ringwald  * construct HCI Command based on template
40356042629SMatthias Ringwald  *
40456042629SMatthias Ringwald  * Format:
40556042629SMatthias Ringwald  *   1,2,3,4: one to four byte value
40656042629SMatthias Ringwald  *   H: HCI connection handle
40756042629SMatthias Ringwald  *   B: Bluetooth Baseband Address (BD_ADDR)
40856042629SMatthias Ringwald  *   D: 8 byte data block
40956042629SMatthias Ringwald  *   E: Extended Inquiry Result
41056042629SMatthias Ringwald  *   N: Name up to 248 chars, \0 terminated
41156042629SMatthias Ringwald  *   P: 16 byte Pairing code
41256042629SMatthias Ringwald  *   A: 31 bytes advertising data
41356042629SMatthias Ringwald  *   S: Service Record (Data Element Sequence)
41456042629SMatthias Ringwald  */
41556042629SMatthias Ringwald  uint16_t hci_cmd_create_from_template(uint8_t *hci_cmd_buffer, const hci_cmd_t *cmd, va_list argptr);
41656042629SMatthias Ringwald 
41756042629SMatthias Ringwald 
41856042629SMatthias Ringwald #if defined __cplusplus
41956042629SMatthias Ringwald }
42056042629SMatthias Ringwald #endif
42156042629SMatthias Ringwald 
42280e33422SMatthias Ringwald #endif // HCI_CMDS_H
423