1 /*
2  * Copyright (c) 2019 Oticon A/S
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef EDDT_APP_COMMANDS_H
7 #define EDDT_APP_COMMANDS_H
8 
9 enum commands_t {
10 	CMD_NOTHING = 0,
11 	CMD_ECHO_REQ,
12 	CMD_ECHO_RSP,
13 	CMD_INQUIRE_REQ,
14 	CMD_INQUIRE_RSP,
15 	CMD_DISCONNECT_REQ,
16 	CMD_DISCONNECT_RSP,
17 	CMD_READ_REMOTE_VERSION_INFORMATION_REQ,
18 	CMD_READ_REMOTE_VERSION_INFORMATION_RSP,
19 	CMD_SET_EVENT_MASK_REQ,
20 	CMD_SET_EVENT_MASK_RSP,
21 	CMD_RESET_REQ,
22 	CMD_RESET_RSP,
23 	CMD_READ_TRANSMIT_POWER_LEVEL_REQ,
24 	CMD_READ_TRANSMIT_POWER_LEVEL_RSP,
25 	CMD_SET_CONTROLLER_TO_HOST_FLOW_CONTROL_REQ,
26 	CMD_SET_CONTROLLER_TO_HOST_FLOW_CONTROL_RSP,
27 	CMD_HOST_BUFFER_SIZE_REQ,
28 	CMD_HOST_BUFFER_SIZE_RSP,
29 	CMD_HOST_NUMBER_OF_COMPLETED_PACKETS_REQ,
30 	CMD_HOST_NUMBER_OF_COMPLETED_PACKETS_RSP,
31 	CMD_SET_EVENT_MASK_PAGE_2_REQ,
32 	CMD_SET_EVENT_MASK_PAGE_2_RSP,
33 	CMD_WRITE_LE_HOST_SUPPORT_REQ,
34 	CMD_WRITE_LE_HOST_SUPPORT_RSP,
35 	CMD_READ_AUTHENTICATED_PAYLOAD_TIMEOUT_REQ,
36 	CMD_READ_AUTHENTICATED_PAYLOAD_TIMEOUT_RSP,
37 	CMD_WRITE_AUTHENTICATED_PAYLOAD_TIMEOUT_REQ,
38 	CMD_WRITE_AUTHENTICATED_PAYLOAD_TIMEOUT_RSP,
39 	CMD_READ_LOCAL_VERSION_INFORMATION_REQ,
40 	CMD_READ_LOCAL_VERSION_INFORMATION_RSP,
41 	CMD_READ_LOCAL_SUPPORTED_COMMANDS_REQ,
42 	CMD_READ_LOCAL_SUPPORTED_COMMANDS_RSP,
43 	CMD_READ_LOCAL_SUPPORTED_FEATURES_REQ,
44 	CMD_READ_LOCAL_SUPPORTED_FEATURES_RSP,
45 	CMD_READ_BUFFER_SIZE_REQ,
46 	CMD_READ_BUFFER_SIZE_RSP,
47 	CMD_READ_BD_ADDR_REQ,
48 	CMD_READ_BD_ADDR_RSP,
49 	CMD_READ_RSSI_REQ,
50 	CMD_READ_RSSI_RSP,
51 	CMD_LE_SET_EVENT_MASK_REQ,
52 	CMD_LE_SET_EVENT_MASK_RSP,
53 	CMD_LE_READ_BUFFER_SIZE_REQ,
54 	CMD_LE_READ_BUFFER_SIZE_RSP,
55 	CMD_LE_READ_LOCAL_SUPPORTED_FEATURES_REQ,
56 	CMD_LE_READ_LOCAL_SUPPORTED_FEATURES_RSP,
57 	CMD_LE_SET_RANDOM_ADDRESS_REQ,
58 	CMD_LE_SET_RANDOM_ADDRESS_RSP,
59 	CMD_LE_SET_ADVERTISING_PARAMETERS_REQ,
60 	CMD_LE_SET_ADVERTISING_PARAMETERS_RSP,
61 	CMD_LE_READ_ADVERTISING_CHANNEL_TX_POWER_REQ,
62 	CMD_LE_READ_ADVERTISING_CHANNEL_TX_POWER_RSP,
63 	CMD_LE_SET_ADVERTISING_DATA_REQ,
64 	CMD_LE_SET_ADVERTISING_DATA_RSP,
65 	CMD_LE_SET_SCAN_RESPONSE_DATA_REQ,
66 	CMD_LE_SET_SCAN_RESPONSE_DATA_RSP,
67 	CMD_LE_SET_ADVERTISING_ENABLE_REQ,
68 	CMD_LE_SET_ADVERTISING_ENABLE_RSP,
69 	CMD_LE_SET_SCAN_PARAMETERS_REQ,
70 	CMD_LE_SET_SCAN_PARAMETERS_RSP,
71 	CMD_LE_SET_SCAN_ENABLE_REQ,
72 	CMD_LE_SET_SCAN_ENABLE_RSP,
73 	CMD_LE_CREATE_CONNECTION_REQ,
74 	CMD_LE_CREATE_CONNECTION_RSP,
75 	CMD_LE_CREATE_CONNECTION_CANCEL_REQ,
76 	CMD_LE_CREATE_CONNECTION_CANCEL_RSP,
77 	CMD_LE_READ_FILTER_ACCEPT_LIST_SIZE_REQ,
78 	CMD_LE_READ_FILTER_ACCEPT_LIST_SIZE_RSP,
79 	CMD_LE_CLEAR_FILTER_ACCEPT_LIST_REQ,
80 	CMD_LE_CLEAR_FILTER_ACCEPT_LIST_RSP,
81 	CMD_LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST_REQ,
82 	CMD_LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST_RSP,
83 	CMD_LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST_REQ,
84 	CMD_LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST_RSP,
85 	CMD_LE_CONNECTION_UPDATE_REQ,
86 	CMD_LE_CONNECTION_UPDATE_RSP,
87 	CMD_LE_SET_HOST_CHANNEL_CLASSIFICATION_REQ,
88 	CMD_LE_SET_HOST_CHANNEL_CLASSIFICATION_RSP,
89 	CMD_LE_READ_CHANNEL_MAP_REQ,
90 	CMD_LE_READ_CHANNEL_MAP_RSP,
91 	CMD_LE_READ_REMOTE_FEATURES_REQ,
92 	CMD_LE_READ_REMOTE_FEATURES_RSP,
93 	CMD_LE_ENCRYPT_REQ,
94 	CMD_LE_ENCRYPT_RSP,
95 	CMD_LE_RAND_REQ,
96 	CMD_LE_RAND_RSP,
97 	CMD_LE_START_ENCRYPTION_REQ,
98 	CMD_LE_START_ENCRYPTION_RSP,
99 	CMD_LE_LONG_TERM_KEY_REQUEST_REPLY_REQ,
100 	CMD_LE_LONG_TERM_KEY_REQUEST_REPLY_RSP,
101 	CMD_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY_REQ,
102 	CMD_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY_RSP,
103 	CMD_LE_READ_SUPPORTED_STATES_REQ,
104 	CMD_LE_READ_SUPPORTED_STATES_RSP,
105 	CMD_LE_RECEIVER_TEST_REQ,
106 	CMD_LE_RECEIVER_TEST_RSP,
107 	CMD_LE_TRANSMITTER_TEST_REQ,
108 	CMD_LE_TRANSMITTER_TEST_RSP,
109 	CMD_LE_TEST_END_REQ,
110 	CMD_LE_TEST_END_RSP,
111 	CMD_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY_REQ,
112 	CMD_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY_RSP,
113 	CMD_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY_REQ,
114 	CMD_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY_RSP,
115 	CMD_LE_SET_DATA_LENGTH_REQ,
116 	CMD_LE_SET_DATA_LENGTH_RSP,
117 	CMD_LE_READ_SUGGESTED_DEFAULT_DATA_LENGTH_REQ,
118 	CMD_LE_READ_SUGGESTED_DEFAULT_DATA_LENGTH_RSP,
119 	CMD_LE_WRITE_SUGGESTED_DEFAULT_DATA_LENGTH_REQ,
120 	CMD_LE_WRITE_SUGGESTED_DEFAULT_DATA_LENGTH_RSP,
121 	CMD_LE_READ_LOCAL_P_256_PUBLIC_KEY_COMMAND_REQ,
122 	CMD_LE_READ_LOCAL_P_256_PUBLIC_KEY_COMMAND_RSP,
123 	CMD_LE_GENERATE_DHKEY_COMMAND_REQ,
124 	CMD_LE_GENERATE_DHKEY_COMMAND_RSP,
125 	CMD_LE_ADD_DEVICE_TO_RESOLVING_LIST_REQ,
126 	CMD_LE_ADD_DEVICE_TO_RESOLVING_LIST_RSP,
127 	CMD_LE_REMOVE_DEVICE_FROM_RESOLVING_LIST_REQ,
128 	CMD_LE_REMOVE_DEVICE_FROM_RESOLVING_LIST_RSP,
129 	CMD_LE_CLEAR_RESOLVING_LIST_REQ,
130 	CMD_LE_CLEAR_RESOLVING_LIST_RSP,
131 	CMD_LE_READ_RESOLVING_LIST_SIZE_REQ,
132 	CMD_LE_READ_RESOLVING_LIST_SIZE_RSP,
133 	CMD_LE_READ_PEER_RESOLVABLE_ADDRESS_REQ,
134 	CMD_LE_READ_PEER_RESOLVABLE_ADDRESS_RSP,
135 	CMD_LE_READ_LOCAL_RESOLVABLE_ADDRESS_REQ,
136 	CMD_LE_READ_LOCAL_RESOLVABLE_ADDRESS_RSP,
137 	CMD_LE_SET_ADDRESS_RESOLUTION_ENABLE_REQ,
138 	CMD_LE_SET_ADDRESS_RESOLUTION_ENABLE_RSP,
139 	CMD_LE_SET_RESOLVABLE_PRIVATE_ADDRESS_TIMEOUT_REQ,
140 	CMD_LE_SET_RESOLVABLE_PRIVATE_ADDRESS_TIMEOUT_RSP,
141 	CMD_LE_READ_MAXIMUM_DATA_LENGTH_REQ,
142 	CMD_LE_READ_MAXIMUM_DATA_LENGTH_RSP,
143 	CMD_LE_READ_PHY_REQ,
144 	CMD_LE_READ_PHY_RSP,
145 	CMD_LE_SET_DEFAULT_PHY_REQ,
146 	CMD_LE_SET_DEFAULT_PHY_RSP,
147 	CMD_LE_SET_PHY_REQ,
148 	CMD_LE_SET_PHY_RSP,
149 	CMD_LE_ENHANCED_RECEIVER_TEST_REQ,
150 	CMD_LE_ENHANCED_RECEIVER_TEST_RSP,
151 	CMD_LE_ENHANCED_TRANSMITTER_TEST_REQ,
152 	CMD_LE_ENHANCED_TRANSMITTER_TEST_RSP,
153 	CMD_LE_SET_EXTENDED_ADVERTISING_PARAMETERS_REQ,
154 	CMD_LE_SET_EXTENDED_ADVERTISING_PARAMETERS_RSP,
155 	CMD_LE_SET_EXTENDED_ADVERTISING_DATA_REQ,
156 	CMD_LE_SET_EXTENDED_ADVERTISING_DATA_RSP,
157 	CMD_LE_SET_EXTENDED_SCAN_RESPONSE_DATA_REQ,
158 	CMD_LE_SET_EXTENDED_SCAN_RESPONSE_DATA_RSP,
159 	CMD_LE_SET_EXTENDED_ADVERTISING_ENABLE_REQ,
160 	CMD_LE_SET_EXTENDED_ADVERTISING_ENABLE_RSP,
161 	CMD_LE_READ_MAXIMUM_ADVERTISING_DATA_LENGTH_REQ,
162 	CMD_LE_READ_MAXIMUM_ADVERTISING_DATA_LENGTH_RSP,
163 	CMD_LE_READ_NUMBER_OF_SUPPORTED_ADVERTISING_SETS_REQ,
164 	CMD_LE_READ_NUMBER_OF_SUPPORTED_ADVERTISING_SETS_RSP,
165 	CMD_LE_REMOVE_ADVERTISING_SET_REQ,
166 	CMD_LE_REMOVE_ADVERTISING_SET_RSP,
167 	CMD_LE_CLEAR_ADVERTISING_SETS_REQ,
168 	CMD_LE_CLEAR_ADVERTISING_SETS_RSP,
169 	CMD_LE_SET_PERIODIC_ADVERTISING_PARAMETERS_REQ,
170 	CMD_LE_SET_PERIODIC_ADVERTISING_PARAMETERS_RSP,
171 	CMD_LE_SET_PERIODIC_ADVERTISING_DATA_REQ,
172 	CMD_LE_SET_PERIODIC_ADVERTISING_DATA_RSP,
173 	CMD_LE_SET_PERIODIC_ADVERTISING_ENABLE_REQ,
174 	CMD_LE_SET_PERIODIC_ADVERTISING_ENABLE_RSP,
175 	CMD_LE_SET_EXTENDED_SCAN_PARAMETERS_REQ,
176 	CMD_LE_SET_EXTENDED_SCAN_PARAMETERS_RSP,
177 	CMD_LE_SET_EXTENDED_SCAN_ENABLE_REQ,
178 	CMD_LE_SET_EXTENDED_SCAN_ENABLE_RSP,
179 	CMD_LE_EXTENDED_CREATE_CONNECTION_REQ,
180 	CMD_LE_EXTENDED_CREATE_CONNECTION_RSP,
181 	CMD_LE_PERIODIC_ADVERTISING_CREATE_SYNC_REQ,
182 	CMD_LE_PERIODIC_ADVERTISING_CREATE_SYNC_RSP,
183 	CMD_LE_PERIODIC_ADVERTISING_CREATE_SYNC_CANCEL_REQ,
184 	CMD_LE_PERIODIC_ADVERTISING_CREATE_SYNC_CANCEL_RSP,
185 	CMD_LE_PERIODIC_ADVERTISING_TERMINATE_SYNC_REQ,
186 	CMD_LE_PERIODIC_ADVERTISING_TERMINATE_SYNC_RSP,
187 	CMD_LE_ADD_DEVICE_TO_PERIODIC_ADVERTISER_LIST_REQ,
188 	CMD_LE_ADD_DEVICE_TO_PERIODIC_ADVERTISER_LIST_RSP,
189 	CMD_LE_REMOVE_DEVICE_FROM_PERIODIC_ADVERTISER_LIST_REQ,
190 	CMD_LE_REMOVE_DEVICE_FROM_PERIODIC_ADVERTISER_LIST_RSP,
191 	CMD_LE_CLEAR_PERIODIC_ADVERTISER_LIST_REQ,
192 	CMD_LE_CLEAR_PERIODIC_ADVERTISER_LIST_RSP,
193 	CMD_LE_READ_PERIODIC_ADVERTISER_LIST_SIZE_REQ,
194 	CMD_LE_READ_PERIODIC_ADVERTISER_LIST_SIZE_RSP,
195 	CMD_LE_READ_TRANSMIT_POWER_REQ,
196 	CMD_LE_READ_TRANSMIT_POWER_RSP,
197 	CMD_LE_READ_RF_PATH_COMPENSATION_REQ,
198 	CMD_LE_READ_RF_PATH_COMPENSATION_RSP,
199 	CMD_LE_WRITE_RF_PATH_COMPENSATION_REQ,
200 	CMD_LE_WRITE_RF_PATH_COMPENSATION_RSP,
201 	CMD_LE_SET_PRIVACY_MODE_REQ,
202 	CMD_LE_SET_PRIVACY_MODE_RSP,
203 	CMD_WRITE_BD_ADDR_REQ,
204 	CMD_WRITE_BD_ADDR_RSP,
205 	CMD_FLUSH_EVENTS_REQ,
206 	CMD_FLUSH_EVENTS_RSP,
207 	CMD_HAS_EVENT_REQ,
208 	CMD_HAS_EVENT_RSP,
209 	CMD_GET_EVENT_REQ,
210 	CMD_GET_EVENT_RSP,
211 	CMD_LE_FLUSH_DATA_REQ,
212 	CMD_LE_FLUSH_DATA_RSP,
213 	CMD_LE_DATA_READY_REQ,
214 	CMD_LE_DATA_READY_RSP,
215 	CMD_LE_DATA_WRITE_REQ,
216 	CMD_LE_DATA_WRITE_RSP,
217 	CMD_LE_DATA_READ_REQ,
218 	CMD_LE_DATA_READ_RSP,
219 	CMD_GATT_SERVICE_SET_REQ,
220 	CMD_GATT_SERVICE_SET_RSP,
221 	CMD_GATT_SERVICE_NOTIFY_REQ,
222 	CMD_GATT_SERVICE_NOTIFY_RSP,
223 	CMD_GATT_SERVICE_INDICATE_REQ,
224 	CMD_GATT_SERVICE_INDICATE_RSP,
225 	CMD_GAP_ADVERTISING_MODE_REQ,
226 	CMD_GAP_ADVERTISING_MODE_RSP,
227 	CMD_GAP_ADVERTISING_DATA_REQ,
228 	CMD_GAP_ADVERTISING_DATA_RSP,
229 	CMD_GAP_SCANNING_MODE_REQ,
230 	CMD_GAP_SCANNING_MODE_RSP,
231 	CMD_READ_STATIC_ADDRESSES_REQ,
232 	CMD_READ_STATIC_ADDRESSES_RSP,
233 	CMD_READ_KEY_HIERARCHY_ROOTS_REQ,
234 	CMD_READ_KEY_HIERARCHY_ROOTS_RSP,
235 	CMD_GAP_READ_IRK_REQ,
236 	CMD_GAP_READ_IRK_RSP,
237 	CMD_GAP_ROLE_REQ,
238 	CMD_GAP_ROLE_RSP,
239 	CMD_LE_FLUSH_ISO_DATA_REQ,
240 	CMD_LE_FLUSH_ISO_DATA_RSP,
241 	CMD_LE_ISO_DATA_READY_REQ,
242 	CMD_LE_ISO_DATA_READY_RSP,
243 	CMD_LE_ISO_DATA_WRITE_REQ,
244 	CMD_LE_ISO_DATA_WRITE_RSP,
245 	CMD_LE_ISO_DATA_READ_REQ,
246 	CMD_LE_ISO_DATA_READ_RSP,
247 	CMD_LE_SET_CIG_PARAMETERS_REQ,
248 	CMD_LE_SET_CIG_PARAMETERS_RSP,
249 	CMD_LE_SET_CIG_PARAMETERS_TEST_REQ,
250 	CMD_LE_SET_CIG_PARAMETERS_TEST_RSP,
251 	CMD_LE_CREATE_CIS_REQ,
252 	CMD_LE_CREATE_CIS_RSP,
253 	CMD_LE_REMOVE_CIG_REQ,
254 	CMD_LE_REMOVE_CIG_RSP,
255 	CMD_LE_ACCEPT_CIS_REQUEST_REQ,
256 	CMD_LE_ACCEPT_CIS_REQUEST_RSP,
257 	CMD_LE_REJECT_CIS_REQUEST_REQ,
258 	CMD_LE_REJECT_CIS_REQUEST_RSP,
259 	CMD_LE_SETUP_ISO_DATA_PATH_REQ,
260 	CMD_LE_SETUP_ISO_DATA_PATH_RSP,
261 	CMD_LE_REMOVE_ISO_DATA_PATH_REQ,
262 	CMD_LE_REMOVE_ISO_DATA_PATH_RSP,
263 	CMD_LE_SET_HOST_FEATURE_REQ,
264 	CMD_LE_SET_HOST_FEATURE_RSP,
265 	CMD_GET_IXIT_VALUE_REQ,
266 	CMD_GET_IXIT_VALUE_RSP,
267 	CMD_HCI_LE_ISO_TRANSMIT_TEST_REQ,
268 	CMD_HCI_LE_ISO_TRANSMIT_TEST_RSP,
269 	CMD_HCI_LE_ISO_RECEIVE_TEST_REQ,
270 	CMD_HCI_LE_ISO_RECEIVE_TEST_RSP,
271 	CMD_HCI_LE_ISO_READ_TEST_COUNTERS_REQ,
272 	CMD_HCI_LE_ISO_READ_TEST_COUNTERS_RSP,
273 	CMD_HCI_LE_ISO_TEST_END_REQ,
274 	CMD_HCI_LE_ISO_TEST_END_RSP
275 };
276 
277 enum profile_t {
278 	PROFILE_ID_GAP,
279 	PROFILE_ID_GATT,
280 	PROFILE_ID_HCI,
281 	PROFILE_ID_L2CAP,
282 	PROFILE_ID_LL,
283 	PROFILE_ID_SM,
284 };
285 
286 #endif /* EDDT_APP_COMMANDS_H */
287