xref: /btstack/src/btstack_event.h (revision c824d78c0a34df89b57d535abafcc7dacf30bb06)
1 /*
2  * Copyright (C) 2016 BlueKitchen GmbH
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the copyright holders nor the names of
14  *    contributors may be used to endorse or promote products derived
15  *    from this software without specific prior written permission.
16  * 4. Any redistribution, use, or modification is done solely for
17  *    personal benefit and not for any commercial purpose or for
18  *    monetary gain.
19  *
20  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN
24  * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  *
33  * Please inquire about commercial licensing options at
34  * [email protected]
35  *
36  */
37 
38 
39 /**
40  * HCI Event Getter
41  *
42  * Note: Don't edit this file. It is generated by tool/btstack_event_generator.py
43  *
44  */
45 
46 #ifndef BTSTACK_EVENT_H
47 #define BTSTACK_EVENT_H
48 
49 #if defined __cplusplus
50 extern "C" {
51 #endif
52 
53 #include "btstack_util.h"
54 #include <stdint.h>
55 
56 #ifdef ENABLE_BLE
57 #include "ble/gatt_client.h"
58 #endif
59 
60 /* API_START */
61 
62 /**
63  * @brief Get event type
64  * @param event
65  * @return type of event
66  */
67 static inline uint8_t hci_event_packet_get_type(const uint8_t * event){
68     return event[0];
69 }
70 
71 /***
72  * @brief Get subevent code for a2dp event
73  * @param event packet
74  * @return subevent_code
75  */
76 static inline uint8_t hci_event_a2dp_meta_get_subevent_code(const uint8_t * event){
77     return event[2];
78 }
79 /***
80  * @brief Get subevent code for ancs event
81  * @param event packet
82  * @return subevent_code
83  */
84 static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){
85     return event[2];
86 }
87 /***
88  * @brief Get subevent code for avdtp event
89  * @param event packet
90  * @return subevent_code
91  */
92 static inline uint8_t hci_event_avdtp_meta_get_subevent_code(const uint8_t * event){
93     return event[2];
94 }
95 /***
96  * @brief Get subevent code for avrcp event
97  * @param event packet
98  * @return subevent_code
99  */
100 static inline uint8_t hci_event_avrcp_meta_get_subevent_code(const uint8_t * event){
101     return event[2];
102 }
103 /***
104  * @brief Get subevent code for gap event
105  * @param event packet
106  * @return subevent_code
107  */
108 static inline uint8_t hci_event_gap_meta_get_subevent_code(const uint8_t * event){
109     return event[2];
110 }
111 /***
112  * @brief Get subevent code for gattservice event
113  * @param event packet
114  * @return subevent_code
115  */
116 static inline uint8_t hci_event_gattservice_meta_get_subevent_code(const uint8_t * event){
117     return event[2];
118 }
119 /***
120  * @brief Get subevent code for goep event
121  * @param event packet
122  * @return subevent_code
123  */
124 static inline uint8_t hci_event_goep_meta_get_subevent_code(const uint8_t * event){
125     return event[2];
126 }
127 /***
128  * @brief Get subevent code for hfp event
129  * @param event packet
130  * @return subevent_code
131  */
132 static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event){
133     return event[2];
134 }
135 /***
136  * @brief Get subevent code for hid event
137  * @param event packet
138  * @return subevent_code
139  */
140 static inline uint8_t hci_event_hid_meta_get_subevent_code(const uint8_t * event){
141     return event[2];
142 }
143 /***
144  * @brief Get subevent code for hids event
145  * @param event packet
146  * @return subevent_code
147  */
148 static inline uint8_t hci_event_hids_meta_get_subevent_code(const uint8_t * event){
149     return event[2];
150 }
151 /***
152  * @brief Get subevent code for hsp event
153  * @param event packet
154  * @return subevent_code
155  */
156 static inline uint8_t hci_event_hsp_meta_get_subevent_code(const uint8_t * event){
157     return event[2];
158 }
159 /***
160  * @brief Get subevent code for le event
161  * @param event packet
162  * @return subevent_code
163  */
164 static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){
165     return event[2];
166 }
167 /***
168  * @brief Get subevent code for map event
169  * @param event packet
170  * @return subevent_code
171  */
172 static inline uint8_t hci_event_map_meta_get_subevent_code(const uint8_t * event){
173     return event[2];
174 }
175 /***
176  * @brief Get subevent code for mesh event
177  * @param event packet
178  * @return subevent_code
179  */
180 static inline uint8_t hci_event_mesh_meta_get_subevent_code(const uint8_t * event){
181     return event[2];
182 }
183 /***
184  * @brief Get subevent code for pbap event
185  * @param event packet
186  * @return subevent_code
187  */
188 static inline uint8_t hci_event_pbap_meta_get_subevent_code(const uint8_t * event){
189     return event[2];
190 }
191 /**
192  * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE
193  * @param event packet
194  * @return status
195  * @note: btstack_type 1
196  */
197 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){
198     return event[2];
199 }
200 
201 /**
202  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT
203  * @param event packet
204  * @return num_responses
205  * @note: btstack_type 1
206  */
207 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){
208     return event[2];
209 }
210 /**
211  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT
212  * @param event packet
213  * @param Pointer to storage for bd_addr
214  * @note: btstack_type B
215  */
216 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
217     reverse_bytes(&event[3], bd_addr, 6);
218 }
219 /**
220  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT
221  * @param event packet
222  * @return page_scan_repetition_mode
223  * @note: btstack_type 1
224  */
225 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
226     return event[9];
227 }
228 /**
229  * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT
230  * @param event packet
231  * @return reserved1
232  * @note: btstack_type 1
233  */
234 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){
235     return event[10];
236 }
237 /**
238  * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT
239  * @param event packet
240  * @return reserved2
241  * @note: btstack_type 1
242  */
243 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){
244     return event[11];
245 }
246 /**
247  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT
248  * @param event packet
249  * @return class_of_device
250  * @note: btstack_type 3
251  */
252 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){
253     return little_endian_read_24(event, 12);
254 }
255 /**
256  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT
257  * @param event packet
258  * @return clock_offset
259  * @note: btstack_type 2
260  */
261 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){
262     return little_endian_read_16(event, 15);
263 }
264 
265 /**
266  * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE
267  * @param event packet
268  * @return status
269  * @note: btstack_type 1
270  */
271 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){
272     return event[2];
273 }
274 /**
275  * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE
276  * @param event packet
277  * @return connection_handle
278  * @note: btstack_type 2
279  */
280 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){
281     return little_endian_read_16(event, 3);
282 }
283 /**
284  * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE
285  * @param event packet
286  * @param Pointer to storage for bd_addr
287  * @note: btstack_type B
288  */
289 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
290     reverse_bytes(&event[5], bd_addr, 6);
291 }
292 /**
293  * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE
294  * @param event packet
295  * @return link_type
296  * @note: btstack_type 1
297  */
298 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){
299     return event[11];
300 }
301 /**
302  * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE
303  * @param event packet
304  * @return encryption_enabled
305  * @note: btstack_type 1
306  */
307 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){
308     return event[12];
309 }
310 
311 /**
312  * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST
313  * @param event packet
314  * @param Pointer to storage for bd_addr
315  * @note: btstack_type B
316  */
317 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
318     reverse_bytes(&event[2], bd_addr, 6);
319 }
320 /**
321  * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST
322  * @param event packet
323  * @return class_of_device
324  * @note: btstack_type 3
325  */
326 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){
327     return little_endian_read_24(event, 8);
328 }
329 /**
330  * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST
331  * @param event packet
332  * @return link_type
333  * @note: btstack_type 1
334  */
335 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){
336     return event[11];
337 }
338 
339 /**
340  * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE
341  * @param event packet
342  * @return status
343  * @note: btstack_type 1
344  */
345 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){
346     return event[2];
347 }
348 /**
349  * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE
350  * @param event packet
351  * @return connection_handle
352  * @note: btstack_type 2
353  */
354 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){
355     return little_endian_read_16(event, 3);
356 }
357 /**
358  * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE
359  * @param event packet
360  * @return reason
361  * @note: btstack_type 1
362  */
363 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){
364     return event[5];
365 }
366 
367 /**
368  * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE
369  * @param event packet
370  * @return status
371  * @note: btstack_type 1
372  */
373 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){
374     return event[2];
375 }
376 /**
377  * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE
378  * @param event packet
379  * @return connection_handle
380  * @note: btstack_type 2
381  */
382 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){
383     return little_endian_read_16(event, 3);
384 }
385 
386 /**
387  * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
388  * @param event packet
389  * @return status
390  * @note: btstack_type 1
391  */
392 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){
393     return event[2];
394 }
395 /**
396  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
397  * @param event packet
398  * @param Pointer to storage for bd_addr
399  * @note: btstack_type B
400  */
401 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
402     reverse_bytes(&event[3], bd_addr, 6);
403 }
404 /**
405  * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
406  * @param event packet
407  * @return remote_name
408  * @note: btstack_type N
409  */
410 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){
411     return (const char *) &event[9];
412 }
413 
414 /**
415  * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE
416  * @param event packet
417  * @return status
418  * @note: btstack_type 1
419  */
420 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){
421     return event[2];
422 }
423 /**
424  * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE
425  * @param event packet
426  * @return connection_handle
427  * @note: btstack_type 2
428  */
429 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){
430     return little_endian_read_16(event, 3);
431 }
432 /**
433  * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE
434  * @param event packet
435  * @return encryption_enabled
436  * @note: btstack_type 1
437  */
438 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){
439     return event[5];
440 }
441 
442 /**
443  * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
444  * @param event packet
445  * @return status
446  * @note: btstack_type 1
447  */
448 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){
449     return event[2];
450 }
451 /**
452  * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
453  * @param event packet
454  * @return connection_handle
455  * @note: btstack_type 2
456  */
457 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){
458     return little_endian_read_16(event, 3);
459 }
460 
461 /**
462  * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
463  * @param event packet
464  * @return status
465  * @note: btstack_type 1
466  */
467 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){
468     return event[2];
469 }
470 /**
471  * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
472  * @param event packet
473  * @return connection_handle
474  * @note: btstack_type 2
475  */
476 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){
477     return little_endian_read_16(event, 3);
478 }
479 /**
480  * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
481  * @param event packet
482  * @return key_flag
483  * @note: btstack_type 1
484  */
485 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){
486     return event[5];
487 }
488 
489 /**
490  * @brief Get field status from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
491  * @param event packet
492  * @return status
493  * @note: btstack_type 1
494  */
495 static inline uint8_t hci_event_read_remote_version_information_complete_get_status(const uint8_t * event){
496     return event[2];
497 }
498 /**
499  * @brief Get field connection_handle from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
500  * @param event packet
501  * @return connection_handle
502  * @note: btstack_type 2
503  */
504 static inline uint16_t hci_event_read_remote_version_information_complete_get_connection_handle(const uint8_t * event){
505     return little_endian_read_16(event, 3);
506 }
507 /**
508  * @brief Get field version from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
509  * @param event packet
510  * @return version
511  * @note: btstack_type 1
512  */
513 static inline uint8_t hci_event_read_remote_version_information_complete_get_version(const uint8_t * event){
514     return event[5];
515 }
516 /**
517  * @brief Get field manufacturer_name from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
518  * @param event packet
519  * @return manufacturer_name
520  * @note: btstack_type 2
521  */
522 static inline uint16_t hci_event_read_remote_version_information_complete_get_manufacturer_name(const uint8_t * event){
523     return little_endian_read_16(event, 6);
524 }
525 /**
526  * @brief Get field subversion from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
527  * @param event packet
528  * @return subversion
529  * @note: btstack_type 2
530  */
531 static inline uint16_t hci_event_read_remote_version_information_complete_get_subversion(const uint8_t * event){
532     return little_endian_read_16(event, 8);
533 }
534 
535 /**
536  * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE
537  * @param event packet
538  * @return num_hci_command_packets
539  * @note: btstack_type 1
540  */
541 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){
542     return event[2];
543 }
544 /**
545  * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE
546  * @param event packet
547  * @return command_opcode
548  * @note: btstack_type 2
549  */
550 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){
551     return little_endian_read_16(event, 3);
552 }
553 /**
554  * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE
555  * @param event packet
556  * @return return_parameters
557  * @note: btstack_type R
558  */
559 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){
560     return &event[5];
561 }
562 
563 /**
564  * @brief Get field status from event HCI_EVENT_COMMAND_STATUS
565  * @param event packet
566  * @return status
567  * @note: btstack_type 1
568  */
569 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){
570     return event[2];
571 }
572 /**
573  * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS
574  * @param event packet
575  * @return num_hci_command_packets
576  * @note: btstack_type 1
577  */
578 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){
579     return event[3];
580 }
581 /**
582  * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS
583  * @param event packet
584  * @return command_opcode
585  * @note: btstack_type 2
586  */
587 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){
588     return little_endian_read_16(event, 4);
589 }
590 
591 /**
592  * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR
593  * @param event packet
594  * @return hardware_code
595  * @note: btstack_type 1
596  */
597 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){
598     return event[2];
599 }
600 
601 /**
602  * @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED
603  * @param event packet
604  * @return handle
605  * @note: btstack_type H
606  */
607 static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){
608     return little_endian_read_16(event, 2);
609 }
610 
611 /**
612  * @brief Get field status from event HCI_EVENT_ROLE_CHANGE
613  * @param event packet
614  * @return status
615  * @note: btstack_type 1
616  */
617 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){
618     return event[2];
619 }
620 /**
621  * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE
622  * @param event packet
623  * @param Pointer to storage for bd_addr
624  * @note: btstack_type B
625  */
626 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
627     reverse_bytes(&event[3], bd_addr, 6);
628 }
629 /**
630  * @brief Get field role from event HCI_EVENT_ROLE_CHANGE
631  * @param event packet
632  * @return role
633  * @note: btstack_type 1
634  */
635 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){
636     return event[9];
637 }
638 
639 /**
640  * @brief Get field status from event HCI_EVENT_MODE_CHANGE
641  * @param event packet
642  * @return status
643  * @note: btstack_type 1
644  */
645 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){
646     return event[2];
647 }
648 /**
649  * @brief Get field handle from event HCI_EVENT_MODE_CHANGE
650  * @param event packet
651  * @return handle
652  * @note: btstack_type H
653  */
654 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){
655     return little_endian_read_16(event, 3);
656 }
657 /**
658  * @brief Get field mode from event HCI_EVENT_MODE_CHANGE
659  * @param event packet
660  * @return mode
661  * @note: btstack_type 1
662  */
663 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){
664     return event[5];
665 }
666 /**
667  * @brief Get field interval from event HCI_EVENT_MODE_CHANGE
668  * @param event packet
669  * @return interval
670  * @note: btstack_type 2
671  */
672 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){
673     return little_endian_read_16(event, 6);
674 }
675 
676 /**
677  * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST
678  * @param event packet
679  * @param Pointer to storage for bd_addr
680  * @note: btstack_type B
681  */
682 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
683     reverse_bytes(&event[2], bd_addr, 6);
684 }
685 
686 /**
687  * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_REQUEST
688  * @param event packet
689  * @param Pointer to storage for bd_addr
690  * @note: btstack_type B
691  */
692 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
693     reverse_bytes(&event[2], bd_addr, 6);
694 }
695 
696 /**
697  * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW
698  * @param event packet
699  * @return link_type
700  * @note: btstack_type 1
701  */
702 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){
703     return event[2];
704 }
705 
706 /**
707  * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED
708  * @param event packet
709  * @return handle
710  * @note: btstack_type H
711  */
712 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){
713     return little_endian_read_16(event, 2);
714 }
715 /**
716  * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED
717  * @param event packet
718  * @return lmp_max_slots
719  * @note: btstack_type 1
720  */
721 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){
722     return event[4];
723 }
724 
725 /**
726  * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
727  * @param event packet
728  * @return status
729  * @note: btstack_type 1
730  */
731 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){
732     return event[2];
733 }
734 /**
735  * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
736  * @param event packet
737  * @return handle
738  * @note: btstack_type H
739  */
740 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){
741     return little_endian_read_16(event, 3);
742 }
743 /**
744  * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
745  * @param event packet
746  * @return clock_offset
747  * @note: btstack_type 2
748  */
749 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){
750     return little_endian_read_16(event, 5);
751 }
752 
753 /**
754  * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
755  * @param event packet
756  * @return status
757  * @note: btstack_type 1
758  */
759 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){
760     return event[2];
761 }
762 /**
763  * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
764  * @param event packet
765  * @return handle
766  * @note: btstack_type H
767  */
768 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){
769     return little_endian_read_16(event, 3);
770 }
771 /**
772  * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
773  * @param event packet
774  * @return packet_types
775  * @note: btstack_type 2
776  */
777 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){
778     return little_endian_read_16(event, 5);
779 }
780 
781 /**
782  * @brief Get field handle from event HCI_EVENT_QOS_VIOLATION
783  * @param event packet
784  * @return handle
785  * @note: btstack_type H
786  */
787 static inline hci_con_handle_t hci_event_qos_violation_get_handle(const uint8_t * event){
788     return little_endian_read_16(event, 2);
789 }
790 
791 /**
792  * @brief Get field handle from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
793  * @param event packet
794  * @return handle
795  * @note: btstack_type H
796  */
797 static inline hci_con_handle_t hci_event_page_scan_repetition_mode_change_get_handle(const uint8_t * event){
798     return little_endian_read_16(event, 2);
799 }
800 /**
801  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
802  * @param event packet
803  * @return page_scan_repetition_mode
804  * @note: btstack_type 1
805  */
806 static inline uint8_t hci_event_page_scan_repetition_mode_change_get_page_scan_repetition_mode(const uint8_t * event){
807     return event[4];
808 }
809 
810 /**
811  * @brief Get field status from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
812  * @param event packet
813  * @return status
814  * @note: btstack_type 1
815  */
816 static inline uint8_t hci_event_flow_specification_complete_get_status(const uint8_t * event){
817     return event[2];
818 }
819 /**
820  * @brief Get field handle from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
821  * @param event packet
822  * @return handle
823  * @note: btstack_type H
824  */
825 static inline hci_con_handle_t hci_event_flow_specification_complete_get_handle(const uint8_t * event){
826     return little_endian_read_16(event, 3);
827 }
828 /**
829  * @brief Get field unused from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
830  * @param event packet
831  * @return unused
832  * @note: btstack_type 1
833  */
834 static inline uint8_t hci_event_flow_specification_complete_get_unused(const uint8_t * event){
835     return event[5];
836 }
837 /**
838  * @brief Get field flow_direction from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
839  * @param event packet
840  * @return flow_direction
841  * @note: btstack_type 1
842  */
843 static inline uint8_t hci_event_flow_specification_complete_get_flow_direction(const uint8_t * event){
844     return event[6];
845 }
846 /**
847  * @brief Get field service_type from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
848  * @param event packet
849  * @return service_type
850  * @note: btstack_type 1
851  */
852 static inline uint8_t hci_event_flow_specification_complete_get_service_type(const uint8_t * event){
853     return event[7];
854 }
855 /**
856  * @brief Get field token_rate from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
857  * @param event packet
858  * @return token_rate
859  * @note: btstack_type 4
860  */
861 static inline uint32_t hci_event_flow_specification_complete_get_token_rate(const uint8_t * event){
862     return little_endian_read_32(event, 8);
863 }
864 /**
865  * @brief Get field token_bucket_size from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
866  * @param event packet
867  * @return token_bucket_size
868  * @note: btstack_type 4
869  */
870 static inline uint32_t hci_event_flow_specification_complete_get_token_bucket_size(const uint8_t * event){
871     return little_endian_read_32(event, 12);
872 }
873 /**
874  * @brief Get field peak_bandwidth from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
875  * @param event packet
876  * @return peak_bandwidth
877  * @note: btstack_type 4
878  */
879 static inline uint32_t hci_event_flow_specification_complete_get_peak_bandwidth(const uint8_t * event){
880     return little_endian_read_32(event, 16);
881 }
882 /**
883  * @brief Get field access_latency from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
884  * @param event packet
885  * @return access_latency
886  * @note: btstack_type 4
887  */
888 static inline uint32_t hci_event_flow_specification_complete_get_access_latency(const uint8_t * event){
889     return little_endian_read_32(event, 20);
890 }
891 
892 /**
893  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
894  * @param event packet
895  * @return num_responses
896  * @note: btstack_type 1
897  */
898 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){
899     return event[2];
900 }
901 /**
902  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
903  * @param event packet
904  * @param Pointer to storage for bd_addr
905  * @note: btstack_type B
906  */
907 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
908     reverse_bytes(&event[3], bd_addr, 6);
909 }
910 /**
911  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
912  * @param event packet
913  * @return page_scan_repetition_mode
914  * @note: btstack_type 1
915  */
916 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){
917     return event[9];
918 }
919 /**
920  * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
921  * @param event packet
922  * @return reserved
923  * @note: btstack_type 1
924  */
925 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){
926     return event[10];
927 }
928 /**
929  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
930  * @param event packet
931  * @return class_of_device
932  * @note: btstack_type 3
933  */
934 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){
935     return little_endian_read_24(event, 11);
936 }
937 /**
938  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
939  * @param event packet
940  * @return clock_offset
941  * @note: btstack_type 2
942  */
943 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){
944     return little_endian_read_16(event, 14);
945 }
946 /**
947  * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
948  * @param event packet
949  * @return rssi
950  * @note: btstack_type 1
951  */
952 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){
953     return event[16];
954 }
955 
956 /**
957  * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
958  * @param event packet
959  * @return status
960  * @note: btstack_type 1
961  */
962 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){
963     return event[2];
964 }
965 /**
966  * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
967  * @param event packet
968  * @return handle
969  * @note: btstack_type H
970  */
971 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){
972     return little_endian_read_16(event, 3);
973 }
974 /**
975  * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
976  * @param event packet
977  * @param Pointer to storage for bd_addr
978  * @note: btstack_type B
979  */
980 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
981     reverse_bytes(&event[5], bd_addr, 6);
982 }
983 /**
984  * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
985  * @param event packet
986  * @return link_type
987  * @note: btstack_type 1
988  */
989 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){
990     return event[11];
991 }
992 /**
993  * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
994  * @param event packet
995  * @return transmission_interval
996  * @note: btstack_type 1
997  */
998 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){
999     return event[12];
1000 }
1001 /**
1002  * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1003  * @param event packet
1004  * @return retransmission_interval
1005  * @note: btstack_type 1
1006  */
1007 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){
1008     return event[13];
1009 }
1010 /**
1011  * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1012  * @param event packet
1013  * @return rx_packet_length
1014  * @note: btstack_type 2
1015  */
1016 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){
1017     return little_endian_read_16(event, 14);
1018 }
1019 /**
1020  * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1021  * @param event packet
1022  * @return tx_packet_length
1023  * @note: btstack_type 2
1024  */
1025 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){
1026     return little_endian_read_16(event, 16);
1027 }
1028 /**
1029  * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1030  * @param event packet
1031  * @return air_mode
1032  * @note: btstack_type 1
1033  */
1034 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){
1035     return event[18];
1036 }
1037 
1038 /**
1039  * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1040  * @param event packet
1041  * @return status
1042  * @note: btstack_type 1
1043  */
1044 static inline uint8_t hci_event_synchronous_connection_changed_get_status(const uint8_t * event){
1045     return event[2];
1046 }
1047 /**
1048  * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1049  * @param event packet
1050  * @return handle
1051  * @note: btstack_type H
1052  */
1053 static inline hci_con_handle_t hci_event_synchronous_connection_changed_get_handle(const uint8_t * event){
1054     return little_endian_read_16(event, 3);
1055 }
1056 /**
1057  * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1058  * @param event packet
1059  * @return transmission_interval
1060  * @note: btstack_type 1
1061  */
1062 static inline uint8_t hci_event_synchronous_connection_changed_get_transmission_interval(const uint8_t * event){
1063     return event[5];
1064 }
1065 /**
1066  * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1067  * @param event packet
1068  * @return retransmission_interval
1069  * @note: btstack_type 1
1070  */
1071 static inline uint8_t hci_event_synchronous_connection_changed_get_retransmission_interval(const uint8_t * event){
1072     return event[6];
1073 }
1074 /**
1075  * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1076  * @param event packet
1077  * @return rx_packet_length
1078  * @note: btstack_type 2
1079  */
1080 static inline uint16_t hci_event_synchronous_connection_changed_get_rx_packet_length(const uint8_t * event){
1081     return little_endian_read_16(event, 7);
1082 }
1083 /**
1084  * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1085  * @param event packet
1086  * @return tx_packet_length
1087  * @note: btstack_type 2
1088  */
1089 static inline uint16_t hci_event_synchronous_connection_changed_get_tx_packet_length(const uint8_t * event){
1090     return little_endian_read_16(event, 9);
1091 }
1092 
1093 /**
1094  * @brief Get field status from event HCI_EVENT_SNIFF_SUBRATING
1095  * @param event packet
1096  * @return status
1097  * @note: btstack_type 1
1098  */
1099 static inline uint8_t hci_event_sniff_subrating_get_status(const uint8_t * event){
1100     return event[2];
1101 }
1102 /**
1103  * @brief Get field handle from event HCI_EVENT_SNIFF_SUBRATING
1104  * @param event packet
1105  * @return handle
1106  * @note: btstack_type H
1107  */
1108 static inline hci_con_handle_t hci_event_sniff_subrating_get_handle(const uint8_t * event){
1109     return little_endian_read_16(event, 3);
1110 }
1111 /**
1112  * @brief Get field max_tx_latency from event HCI_EVENT_SNIFF_SUBRATING
1113  * @param event packet
1114  * @return max_tx_latency
1115  * @note: btstack_type 2
1116  */
1117 static inline uint16_t hci_event_sniff_subrating_get_max_tx_latency(const uint8_t * event){
1118     return little_endian_read_16(event, 5);
1119 }
1120 /**
1121  * @brief Get field max_rx_latency from event HCI_EVENT_SNIFF_SUBRATING
1122  * @param event packet
1123  * @return max_rx_latency
1124  * @note: btstack_type 2
1125  */
1126 static inline uint16_t hci_event_sniff_subrating_get_max_rx_latency(const uint8_t * event){
1127     return little_endian_read_16(event, 7);
1128 }
1129 /**
1130  * @brief Get field min_remote_timeout from event HCI_EVENT_SNIFF_SUBRATING
1131  * @param event packet
1132  * @return min_remote_timeout
1133  * @note: btstack_type 2
1134  */
1135 static inline uint16_t hci_event_sniff_subrating_get_min_remote_timeout(const uint8_t * event){
1136     return little_endian_read_16(event, 9);
1137 }
1138 /**
1139  * @brief Get field min_local_timeout from event HCI_EVENT_SNIFF_SUBRATING
1140  * @param event packet
1141  * @return min_local_timeout
1142  * @note: btstack_type 2
1143  */
1144 static inline uint16_t hci_event_sniff_subrating_get_min_local_timeout(const uint8_t * event){
1145     return little_endian_read_16(event, 11);
1146 }
1147 
1148 /**
1149  * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1150  * @param event packet
1151  * @return num_responses
1152  * @note: btstack_type 1
1153  */
1154 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){
1155     return event[2];
1156 }
1157 /**
1158  * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1159  * @param event packet
1160  * @param Pointer to storage for bd_addr
1161  * @note: btstack_type B
1162  */
1163 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1164     reverse_bytes(&event[3], bd_addr, 6);
1165 }
1166 /**
1167  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1168  * @param event packet
1169  * @return page_scan_repetition_mode
1170  * @note: btstack_type 1
1171  */
1172 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){
1173     return event[9];
1174 }
1175 /**
1176  * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1177  * @param event packet
1178  * @return reserved
1179  * @note: btstack_type 1
1180  */
1181 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){
1182     return event[10];
1183 }
1184 /**
1185  * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1186  * @param event packet
1187  * @return class_of_device
1188  * @note: btstack_type 3
1189  */
1190 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){
1191     return little_endian_read_24(event, 11);
1192 }
1193 /**
1194  * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1195  * @param event packet
1196  * @return clock_offset
1197  * @note: btstack_type 2
1198  */
1199 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){
1200     return little_endian_read_16(event, 14);
1201 }
1202 /**
1203  * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1204  * @param event packet
1205  * @return rssi
1206  * @note: btstack_type 1
1207  */
1208 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){
1209     return event[16];
1210 }
1211 
1212 /**
1213  * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
1214  * @param event packet
1215  * @return status
1216  * @note: btstack_type 1
1217  */
1218 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){
1219     return event[2];
1220 }
1221 /**
1222  * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
1223  * @param event packet
1224  * @return handle
1225  * @note: btstack_type H
1226  */
1227 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){
1228     return little_endian_read_16(event, 3);
1229 }
1230 
1231 /**
1232  * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST
1233  * @param event packet
1234  * @param Pointer to storage for bd_addr
1235  * @note: btstack_type B
1236  */
1237 static inline void hci_event_io_capability_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1238     reverse_bytes(&event[2], bd_addr, 6);
1239 }
1240 
1241 /**
1242  * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1243  * @param event packet
1244  * @param Pointer to storage for bd_addr
1245  * @note: btstack_type B
1246  */
1247 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1248     reverse_bytes(&event[2], bd_addr, 6);
1249 }
1250 /**
1251  * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1252  * @param event packet
1253  * @return io_capability
1254  * @note: btstack_type 1
1255  */
1256 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){
1257     return event[8];
1258 }
1259 /**
1260  * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1261  * @param event packet
1262  * @return oob_data_present
1263  * @note: btstack_type 1
1264  */
1265 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){
1266     return event[9];
1267 }
1268 /**
1269  * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1270  * @param event packet
1271  * @return authentication_requirements
1272  * @note: btstack_type 1
1273  */
1274 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){
1275     return event[10];
1276 }
1277 
1278 /**
1279  * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST
1280  * @param event packet
1281  * @param Pointer to storage for bd_addr
1282  * @note: btstack_type B
1283  */
1284 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1285     reverse_bytes(&event[2], bd_addr, 6);
1286 }
1287 /**
1288  * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST
1289  * @param event packet
1290  * @return numeric_value
1291  * @note: btstack_type 4
1292  */
1293 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){
1294     return little_endian_read_32(event, 8);
1295 }
1296 
1297 /**
1298  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST
1299  * @param event packet
1300  * @param Pointer to storage for bd_addr
1301  * @note: btstack_type B
1302  */
1303 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1304     reverse_bytes(&event[2], bd_addr, 6);
1305 }
1306 
1307 /**
1308  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST
1309  * @param event packet
1310  * @param Pointer to storage for bd_addr
1311  * @note: btstack_type B
1312  */
1313 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1314     reverse_bytes(&event[2], bd_addr, 6);
1315 }
1316 
1317 /**
1318  * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
1319  * @param event packet
1320  * @return status
1321  * @note: btstack_type 1
1322  */
1323 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){
1324     return event[2];
1325 }
1326 /**
1327  * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
1328  * @param event packet
1329  * @param Pointer to storage for bd_addr
1330  * @note: btstack_type B
1331  */
1332 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1333     reverse_bytes(&event[3], bd_addr, 6);
1334 }
1335 
1336 /**
1337  * @brief Get field handle from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
1338  * @param event packet
1339  * @return handle
1340  * @note: btstack_type H
1341  */
1342 static inline hci_con_handle_t hci_event_link_supervision_timeout_changed_get_handle(const uint8_t * event){
1343     return little_endian_read_16(event, 2);
1344 }
1345 /**
1346  * @brief Get field link_supervision_timeout from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
1347  * @param event packet
1348  * @return link_supervision_timeout
1349  * @note: btstack_type 2
1350  */
1351 static inline uint16_t hci_event_link_supervision_timeout_changed_get_link_supervision_timeout(const uint8_t * event){
1352     return little_endian_read_16(event, 4);
1353 }
1354 
1355 /**
1356  * @brief Get field handle from event HCI_EVENT_ENHANCED_FLUSH_COMPLETE
1357  * @param event packet
1358  * @return handle
1359  * @note: btstack_type H
1360  */
1361 static inline hci_con_handle_t hci_event_enhanced_flush_complete_get_handle(const uint8_t * event){
1362     return little_endian_read_16(event, 2);
1363 }
1364 
1365 /**
1366  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION
1367  * @param event packet
1368  * @param Pointer to storage for bd_addr
1369  * @note: btstack_type B
1370  */
1371 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1372     reverse_bytes(&event[2], bd_addr, 6);
1373 }
1374 /**
1375  * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION
1376  * @param event packet
1377  * @return numeric_value
1378  * @note: btstack_type 4
1379  */
1380 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){
1381     return little_endian_read_32(event, 8);
1382 }
1383 
1384 /**
1385  * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION
1386  * @param event packet
1387  * @param Pointer to storage for bd_addr
1388  * @note: btstack_type B
1389  */
1390 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1391     reverse_bytes(&event[2], bd_addr, 6);
1392 }
1393 /**
1394  * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION
1395  * @param event packet
1396  * @return notification_type
1397  * @note: btstack_type 1
1398  */
1399 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){
1400     return event[8];
1401 }
1402 
1403 /**
1404  * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1405  * @param event packet
1406  * @return status
1407  * @note: btstack_type 1
1408  */
1409 static inline uint8_t hci_event_encryption_change_v2_get_status(const uint8_t * event){
1410     return event[2];
1411 }
1412 /**
1413  * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1414  * @param event packet
1415  * @return connection_handle
1416  * @note: btstack_type 2
1417  */
1418 static inline uint16_t hci_event_encryption_change_v2_get_connection_handle(const uint8_t * event){
1419     return little_endian_read_16(event, 3);
1420 }
1421 /**
1422  * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1423  * @param event packet
1424  * @return encryption_enabled
1425  * @note: btstack_type 1
1426  */
1427 static inline uint8_t hci_event_encryption_change_v2_get_encryption_enabled(const uint8_t * event){
1428     return event[5];
1429 }
1430 /**
1431  * @brief Get field encryption_key_size from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1432  * @param event packet
1433  * @return encryption_key_size
1434  * @note: btstack_type 1
1435  */
1436 static inline uint8_t hci_event_encryption_change_v2_get_encryption_key_size(const uint8_t * event){
1437     return event[6];
1438 }
1439 
1440 /**
1441  * @brief Get field state from event BTSTACK_EVENT_STATE
1442  * @param event packet
1443  * @return state
1444  * @note: btstack_type 1
1445  */
1446 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){
1447     return event[2];
1448 }
1449 
1450 /**
1451  * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED
1452  * @param event packet
1453  * @return number_connections
1454  * @note: btstack_type 1
1455  */
1456 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){
1457     return event[2];
1458 }
1459 
1460 
1461 /**
1462  * @brief Get field discoverable from event BTSTACK_EVENT_SCAN_MODE_CHANGED
1463  * @param event packet
1464  * @return discoverable
1465  * @note: btstack_type 1
1466  */
1467 static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){
1468     return event[2];
1469 }
1470 /**
1471  * @brief Get field connectable from event BTSTACK_EVENT_SCAN_MODE_CHANGED
1472  * @param event packet
1473  * @return connectable
1474  * @note: btstack_type 1
1475  */
1476 static inline uint8_t btstack_event_scan_mode_changed_get_connectable(const uint8_t * event){
1477     return event[3];
1478 }
1479 
1480 /**
1481  * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE
1482  * @param event packet
1483  * @return active
1484  * @note: btstack_type 1
1485  */
1486 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){
1487     return event[2];
1488 }
1489 
1490 /**
1491  * @brief Get field vendor_id from event HCI_EVENT_TRANSPORT_USB_INFO
1492  * @param event packet
1493  * @return vendor_id
1494  * @note: btstack_type 2
1495  */
1496 static inline uint16_t hci_event_transport_usb_info_get_vendor_id(const uint8_t * event){
1497     return little_endian_read_16(event, 2);
1498 }
1499 /**
1500  * @brief Get field product_id from event HCI_EVENT_TRANSPORT_USB_INFO
1501  * @param event packet
1502  * @return product_id
1503  * @note: btstack_type 2
1504  */
1505 static inline uint16_t hci_event_transport_usb_info_get_product_id(const uint8_t * event){
1506     return little_endian_read_16(event, 4);
1507 }
1508 /**
1509  * @brief Get field path_len from event HCI_EVENT_TRANSPORT_USB_INFO
1510  * @param event packet
1511  * @return path_len
1512  * @note: btstack_type J
1513  */
1514 static inline uint8_t hci_event_transport_usb_info_get_path_len(const uint8_t * event){
1515     return event[6];
1516 }
1517 /**
1518  * @brief Get field path from event HCI_EVENT_TRANSPORT_USB_INFO
1519  * @param event packet
1520  * @return path
1521  * @note: btstack_type V
1522  */
1523 static inline const uint8_t * hci_event_transport_usb_info_get_path(const uint8_t * event){
1524     return &event[7];
1525 }
1526 
1527 /**
1528  * @brief Get field big_handle from event HCI_EVENT_BIS_CAN_SEND_NOW
1529  * @param event packet
1530  * @return big_handle
1531  * @note: btstack_type 1
1532  */
1533 static inline uint8_t hci_event_bis_can_send_now_get_big_handle(const uint8_t * event){
1534     return event[2];
1535 }
1536 /**
1537  * @brief Get field bis_index from event HCI_EVENT_BIS_CAN_SEND_NOW
1538  * @param event packet
1539  * @return bis_index
1540  * @note: btstack_type 1
1541  */
1542 static inline uint8_t hci_event_bis_can_send_now_get_bis_index(const uint8_t * event){
1543     return event[3];
1544 }
1545 /**
1546  * @brief Get field con_handle from event HCI_EVENT_BIS_CAN_SEND_NOW
1547  * @param event packet
1548  * @return con_handle
1549  * @note: btstack_type H
1550  */
1551 static inline hci_con_handle_t hci_event_bis_can_send_now_get_con_handle(const uint8_t * event){
1552     return little_endian_read_16(event, 4);
1553 }
1554 
1555 /**
1556  * @brief Get field cis_con_handle from event HCI_EVENT_CIS_CAN_SEND_NOW
1557  * @param event packet
1558  * @return cis_con_handle
1559  * @note: btstack_type H
1560  */
1561 static inline hci_con_handle_t hci_event_cis_can_send_now_get_cis_con_handle(const uint8_t * event){
1562     return little_endian_read_16(event, 2);
1563 }
1564 
1565 
1566 /**
1567  * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED
1568  * @param event packet
1569  * @return status
1570  * @note: btstack_type 1
1571  */
1572 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){
1573     return event[2];
1574 }
1575 /**
1576  * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED
1577  * @param event packet
1578  * @param Pointer to storage for address
1579  * @note: btstack_type B
1580  */
1581 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1582     reverse_bytes(&event[3], address, 6);
1583 }
1584 /**
1585  * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED
1586  * @param event packet
1587  * @return handle
1588  * @note: btstack_type H
1589  */
1590 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){
1591     return little_endian_read_16(event, 9);
1592 }
1593 /**
1594  * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED
1595  * @param event packet
1596  * @return psm
1597  * @note: btstack_type 2
1598  */
1599 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){
1600     return little_endian_read_16(event, 11);
1601 }
1602 /**
1603  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED
1604  * @param event packet
1605  * @return local_cid
1606  * @note: btstack_type 2
1607  */
1608 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){
1609     return little_endian_read_16(event, 13);
1610 }
1611 /**
1612  * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED
1613  * @param event packet
1614  * @return remote_cid
1615  * @note: btstack_type 2
1616  */
1617 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){
1618     return little_endian_read_16(event, 15);
1619 }
1620 /**
1621  * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1622  * @param event packet
1623  * @return local_mtu
1624  * @note: btstack_type 2
1625  */
1626 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){
1627     return little_endian_read_16(event, 17);
1628 }
1629 /**
1630  * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1631  * @param event packet
1632  * @return remote_mtu
1633  * @note: btstack_type 2
1634  */
1635 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){
1636     return little_endian_read_16(event, 19);
1637 }
1638 /**
1639  * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED
1640  * @param event packet
1641  * @return flush_timeout
1642  * @note: btstack_type 2
1643  */
1644 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){
1645     return little_endian_read_16(event, 21);
1646 }
1647 /**
1648  * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED
1649  * @param event packet
1650  * @return incoming
1651  * @note: btstack_type 1
1652  */
1653 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){
1654     return event[23];
1655 }
1656 /**
1657  * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED
1658  * @param event packet
1659  * @return mode
1660  * @note: btstack_type 1
1661  */
1662 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){
1663     return event[24];
1664 }
1665 /**
1666  * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED
1667  * @param event packet
1668  * @return fcs
1669  * @note: btstack_type 1
1670  */
1671 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){
1672     return event[25];
1673 }
1674 
1675 /**
1676  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED
1677  * @param event packet
1678  * @return local_cid
1679  * @note: btstack_type 2
1680  */
1681 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){
1682     return little_endian_read_16(event, 2);
1683 }
1684 
1685 /**
1686  * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION
1687  * @param event packet
1688  * @param Pointer to storage for address
1689  * @note: btstack_type B
1690  */
1691 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1692     reverse_bytes(&event[2], address, 6);
1693 }
1694 /**
1695  * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION
1696  * @param event packet
1697  * @return handle
1698  * @note: btstack_type H
1699  */
1700 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){
1701     return little_endian_read_16(event, 8);
1702 }
1703 /**
1704  * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION
1705  * @param event packet
1706  * @return psm
1707  * @note: btstack_type 2
1708  */
1709 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){
1710     return little_endian_read_16(event, 10);
1711 }
1712 /**
1713  * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1714  * @param event packet
1715  * @return local_cid
1716  * @note: btstack_type 2
1717  */
1718 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){
1719     return little_endian_read_16(event, 12);
1720 }
1721 /**
1722  * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1723  * @param event packet
1724  * @return remote_cid
1725  * @note: btstack_type 2
1726  */
1727 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){
1728     return little_endian_read_16(event, 14);
1729 }
1730 
1731 /**
1732  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1733  * @param event packet
1734  * @return handle
1735  * @note: btstack_type H
1736  */
1737 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){
1738     return little_endian_read_16(event, 2);
1739 }
1740 /**
1741  * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1742  * @param event packet
1743  * @return interval_min
1744  * @note: btstack_type 2
1745  */
1746 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){
1747     return little_endian_read_16(event, 4);
1748 }
1749 /**
1750  * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1751  * @param event packet
1752  * @return interval_max
1753  * @note: btstack_type 2
1754  */
1755 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){
1756     return little_endian_read_16(event, 6);
1757 }
1758 /**
1759  * @brief Get field latency from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1760  * @param event packet
1761  * @return latency
1762  * @note: btstack_type 2
1763  */
1764 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latency(const uint8_t * event){
1765     return little_endian_read_16(event, 8);
1766 }
1767 /**
1768  * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1769  * @param event packet
1770  * @return timeout_multiplier
1771  * @note: btstack_type 2
1772  */
1773 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){
1774     return little_endian_read_16(event, 10);
1775 }
1776 
1777 /**
1778  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1779  * @param event packet
1780  * @return handle
1781  * @note: btstack_type H
1782  */
1783 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){
1784     return little_endian_read_16(event, 2);
1785 }
1786 /**
1787  * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1788  * @param event packet
1789  * @return result
1790  * @note: btstack_type 2
1791  */
1792 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){
1793     return little_endian_read_16(event, 4);
1794 }
1795 
1796 /**
1797  * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE
1798  * @param event packet
1799  * @return con_handle
1800  * @note: btstack_type H
1801  */
1802 static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){
1803     return little_endian_read_16(event, 2);
1804 }
1805 /**
1806  * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE
1807  * @param event packet
1808  * @return extended_feature_mask
1809  * @note: btstack_type 2
1810  */
1811 static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){
1812     return little_endian_read_16(event, 4);
1813 }
1814 /**
1815  * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE
1816  * @param event packet
1817  * @return fixed_channels_supported
1818  * @note: btstack_type 2
1819  */
1820 static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){
1821     return little_endian_read_16(event, 6);
1822 }
1823 
1824 /**
1825  * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW
1826  * @param event packet
1827  * @return local_cid
1828  * @note: btstack_type 2
1829  */
1830 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){
1831     return little_endian_read_16(event, 2);
1832 }
1833 
1834 /**
1835  * @brief Get field local_cid from event L2CAP_EVENT_PACKET_SENT
1836  * @param event packet
1837  * @return local_cid
1838  * @note: btstack_type 2
1839  */
1840 static inline uint16_t l2cap_event_packet_sent_get_local_cid(const uint8_t * event){
1841     return little_endian_read_16(event, 2);
1842 }
1843 
1844 /**
1845  * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED
1846  * @param event packet
1847  * @return local_cid
1848  * @note: btstack_type 2
1849  */
1850 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){
1851     return little_endian_read_16(event, 2);
1852 }
1853 
1854 /**
1855  * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1856  * @param event packet
1857  * @return address_type
1858  * @note: btstack_type 1
1859  */
1860 static inline uint8_t l2cap_event_cbm_incoming_connection_get_address_type(const uint8_t * event){
1861     return event[2];
1862 }
1863 /**
1864  * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1865  * @param event packet
1866  * @param Pointer to storage for address
1867  * @note: btstack_type B
1868  */
1869 static inline void l2cap_event_cbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1870     reverse_bytes(&event[3], address, 6);
1871 }
1872 /**
1873  * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1874  * @param event packet
1875  * @return handle
1876  * @note: btstack_type H
1877  */
1878 static inline hci_con_handle_t l2cap_event_cbm_incoming_connection_get_handle(const uint8_t * event){
1879     return little_endian_read_16(event, 9);
1880 }
1881 /**
1882  * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1883  * @param event packet
1884  * @return psm
1885  * @note: btstack_type 2
1886  */
1887 static inline uint16_t l2cap_event_cbm_incoming_connection_get_psm(const uint8_t * event){
1888     return little_endian_read_16(event, 11);
1889 }
1890 /**
1891  * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1892  * @param event packet
1893  * @return local_cid
1894  * @note: btstack_type 2
1895  */
1896 static inline uint16_t l2cap_event_cbm_incoming_connection_get_local_cid(const uint8_t * event){
1897     return little_endian_read_16(event, 13);
1898 }
1899 /**
1900  * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1901  * @param event packet
1902  * @return remote_cid
1903  * @note: btstack_type 2
1904  */
1905 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_cid(const uint8_t * event){
1906     return little_endian_read_16(event, 15);
1907 }
1908 /**
1909  * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1910  * @param event packet
1911  * @return remote_mtu
1912  * @note: btstack_type 2
1913  */
1914 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_mtu(const uint8_t * event){
1915     return little_endian_read_16(event, 17);
1916 }
1917 
1918 /**
1919  * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1920  * @param event packet
1921  * @return status
1922  * @note: btstack_type 1
1923  */
1924 static inline uint8_t l2cap_event_cbm_channel_opened_get_status(const uint8_t * event){
1925     return event[2];
1926 }
1927 /**
1928  * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1929  * @param event packet
1930  * @return address_type
1931  * @note: btstack_type 1
1932  */
1933 static inline uint8_t l2cap_event_cbm_channel_opened_get_address_type(const uint8_t * event){
1934     return event[3];
1935 }
1936 /**
1937  * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1938  * @param event packet
1939  * @param Pointer to storage for address
1940  * @note: btstack_type B
1941  */
1942 static inline void l2cap_event_cbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1943     reverse_bytes(&event[4], address, 6);
1944 }
1945 /**
1946  * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1947  * @param event packet
1948  * @return handle
1949  * @note: btstack_type H
1950  */
1951 static inline hci_con_handle_t l2cap_event_cbm_channel_opened_get_handle(const uint8_t * event){
1952     return little_endian_read_16(event, 10);
1953 }
1954 /**
1955  * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1956  * @param event packet
1957  * @return incoming
1958  * @note: btstack_type 1
1959  */
1960 static inline uint8_t l2cap_event_cbm_channel_opened_get_incoming(const uint8_t * event){
1961     return event[12];
1962 }
1963 /**
1964  * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1965  * @param event packet
1966  * @return psm
1967  * @note: btstack_type 2
1968  */
1969 static inline uint16_t l2cap_event_cbm_channel_opened_get_psm(const uint8_t * event){
1970     return little_endian_read_16(event, 13);
1971 }
1972 /**
1973  * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1974  * @param event packet
1975  * @return local_cid
1976  * @note: btstack_type 2
1977  */
1978 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_cid(const uint8_t * event){
1979     return little_endian_read_16(event, 15);
1980 }
1981 /**
1982  * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1983  * @param event packet
1984  * @return remote_cid
1985  * @note: btstack_type 2
1986  */
1987 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_cid(const uint8_t * event){
1988     return little_endian_read_16(event, 17);
1989 }
1990 /**
1991  * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1992  * @param event packet
1993  * @return local_mtu
1994  * @note: btstack_type 2
1995  */
1996 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_mtu(const uint8_t * event){
1997     return little_endian_read_16(event, 19);
1998 }
1999 /**
2000  * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2001  * @param event packet
2002  * @return remote_mtu
2003  * @note: btstack_type 2
2004  */
2005 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_mtu(const uint8_t * event){
2006     return little_endian_read_16(event, 21);
2007 }
2008 
2009 
2010 /**
2011  * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2012  * @param event packet
2013  * @return address_type
2014  * @note: btstack_type 1
2015  */
2016 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_address_type(const uint8_t * event){
2017     return event[2];
2018 }
2019 /**
2020  * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2021  * @param event packet
2022  * @param Pointer to storage for address
2023  * @note: btstack_type B
2024  */
2025 static inline void l2cap_event_ecbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
2026     reverse_bytes(&event[3], address, 6);
2027 }
2028 /**
2029  * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2030  * @param event packet
2031  * @return handle
2032  * @note: btstack_type H
2033  */
2034 static inline hci_con_handle_t l2cap_event_ecbm_incoming_connection_get_handle(const uint8_t * event){
2035     return little_endian_read_16(event, 9);
2036 }
2037 /**
2038  * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2039  * @param event packet
2040  * @return psm
2041  * @note: btstack_type 2
2042  */
2043 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_psm(const uint8_t * event){
2044     return little_endian_read_16(event, 11);
2045 }
2046 /**
2047  * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2048  * @param event packet
2049  * @return num_channels
2050  * @note: btstack_type 1
2051  */
2052 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_num_channels(const uint8_t * event){
2053     return event[13];
2054 }
2055 /**
2056  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2057  * @param event packet
2058  * @return local_cid
2059  * @note: btstack_type 2
2060  */
2061 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_local_cid(const uint8_t * event){
2062     return little_endian_read_16(event, 14);
2063 }
2064 
2065 /**
2066  * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2067  * @param event packet
2068  * @return status
2069  * @note: btstack_type 1
2070  */
2071 static inline uint8_t l2cap_event_ecbm_channel_opened_get_status(const uint8_t * event){
2072     return event[2];
2073 }
2074 /**
2075  * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2076  * @param event packet
2077  * @return address_type
2078  * @note: btstack_type 1
2079  */
2080 static inline uint8_t l2cap_event_ecbm_channel_opened_get_address_type(const uint8_t * event){
2081     return event[3];
2082 }
2083 /**
2084  * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2085  * @param event packet
2086  * @param Pointer to storage for address
2087  * @note: btstack_type B
2088  */
2089 static inline void l2cap_event_ecbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
2090     reverse_bytes(&event[4], address, 6);
2091 }
2092 /**
2093  * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2094  * @param event packet
2095  * @return handle
2096  * @note: btstack_type H
2097  */
2098 static inline hci_con_handle_t l2cap_event_ecbm_channel_opened_get_handle(const uint8_t * event){
2099     return little_endian_read_16(event, 10);
2100 }
2101 /**
2102  * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2103  * @param event packet
2104  * @return incoming
2105  * @note: btstack_type 1
2106  */
2107 static inline uint8_t l2cap_event_ecbm_channel_opened_get_incoming(const uint8_t * event){
2108     return event[12];
2109 }
2110 /**
2111  * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2112  * @param event packet
2113  * @return psm
2114  * @note: btstack_type 2
2115  */
2116 static inline uint16_t l2cap_event_ecbm_channel_opened_get_psm(const uint8_t * event){
2117     return little_endian_read_16(event, 13);
2118 }
2119 /**
2120  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2121  * @param event packet
2122  * @return local_cid
2123  * @note: btstack_type 2
2124  */
2125 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_cid(const uint8_t * event){
2126     return little_endian_read_16(event, 15);
2127 }
2128 /**
2129  * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2130  * @param event packet
2131  * @return remote_cid
2132  * @note: btstack_type 2
2133  */
2134 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_cid(const uint8_t * event){
2135     return little_endian_read_16(event, 17);
2136 }
2137 /**
2138  * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2139  * @param event packet
2140  * @return local_mtu
2141  * @note: btstack_type 2
2142  */
2143 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_mtu(const uint8_t * event){
2144     return little_endian_read_16(event, 19);
2145 }
2146 /**
2147  * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2148  * @param event packet
2149  * @return remote_mtu
2150  * @note: btstack_type 2
2151  */
2152 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_mtu(const uint8_t * event){
2153     return little_endian_read_16(event, 21);
2154 }
2155 
2156 /**
2157  * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED
2158  * @param event packet
2159  * @return remote_cid
2160  * @note: btstack_type 2
2161  */
2162 static inline uint16_t l2cap_event_ecbm_reconfigured_get_remote_cid(const uint8_t * event){
2163     return little_endian_read_16(event, 2);
2164 }
2165 /**
2166  * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED
2167  * @param event packet
2168  * @return mtu
2169  * @note: btstack_type 2
2170  */
2171 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mtu(const uint8_t * event){
2172     return little_endian_read_16(event, 4);
2173 }
2174 /**
2175  * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED
2176  * @param event packet
2177  * @return mps
2178  * @note: btstack_type 2
2179  */
2180 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mps(const uint8_t * event){
2181     return little_endian_read_16(event, 6);
2182 }
2183 
2184 /**
2185  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE
2186  * @param event packet
2187  * @return local_cid
2188  * @note: btstack_type 2
2189  */
2190 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_local_cid(const uint8_t * event){
2191     return little_endian_read_16(event, 2);
2192 }
2193 /**
2194  * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE
2195  * @param event packet
2196  * @return reconfigure_result
2197  * @note: btstack_type 2
2198  */
2199 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){
2200     return little_endian_read_16(event, 4);
2201 }
2202 
2203 /**
2204  * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED
2205  * @param event packet
2206  * @return status
2207  * @note: btstack_type 1
2208  */
2209 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){
2210     return event[2];
2211 }
2212 /**
2213  * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED
2214  * @param event packet
2215  * @param Pointer to storage for bd_addr
2216  * @note: btstack_type B
2217  */
2218 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
2219     reverse_bytes(&event[3], bd_addr, 6);
2220 }
2221 /**
2222  * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED
2223  * @param event packet
2224  * @return con_handle
2225  * @note: btstack_type 2
2226  */
2227 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){
2228     return little_endian_read_16(event, 9);
2229 }
2230 /**
2231  * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED
2232  * @param event packet
2233  * @return server_channel
2234  * @note: btstack_type 1
2235  */
2236 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){
2237     return event[11];
2238 }
2239 /**
2240  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED
2241  * @param event packet
2242  * @return rfcomm_cid
2243  * @note: btstack_type 2
2244  */
2245 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){
2246     return little_endian_read_16(event, 12);
2247 }
2248 /**
2249  * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED
2250  * @param event packet
2251  * @return max_frame_size
2252  * @note: btstack_type 2
2253  */
2254 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){
2255     return little_endian_read_16(event, 14);
2256 }
2257 /**
2258  * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED
2259  * @param event packet
2260  * @return incoming
2261  * @note: btstack_type 1
2262  */
2263 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){
2264     return event[16];
2265 }
2266 
2267 /**
2268  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED
2269  * @param event packet
2270  * @return rfcomm_cid
2271  * @note: btstack_type 2
2272  */
2273 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){
2274     return little_endian_read_16(event, 2);
2275 }
2276 
2277 /**
2278  * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION
2279  * @param event packet
2280  * @param Pointer to storage for bd_addr
2281  * @note: btstack_type B
2282  */
2283 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
2284     reverse_bytes(&event[2], bd_addr, 6);
2285 }
2286 /**
2287  * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION
2288  * @param event packet
2289  * @return server_channel
2290  * @note: btstack_type 1
2291  */
2292 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){
2293     return event[8];
2294 }
2295 /**
2296  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION
2297  * @param event packet
2298  * @return rfcomm_cid
2299  * @note: btstack_type 2
2300  */
2301 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){
2302     return little_endian_read_16(event, 9);
2303 }
2304 /**
2305  * @brief Get field con_handle from event RFCOMM_EVENT_INCOMING_CONNECTION
2306  * @param event packet
2307  * @return con_handle
2308  * @note: btstack_type H
2309  */
2310 static inline hci_con_handle_t rfcomm_event_incoming_connection_get_con_handle(const uint8_t * event){
2311     return little_endian_read_16(event, 11);
2312 }
2313 
2314 /**
2315  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS
2316  * @param event packet
2317  * @return rfcomm_cid
2318  * @note: btstack_type 2
2319  */
2320 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){
2321     return little_endian_read_16(event, 2);
2322 }
2323 /**
2324  * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS
2325  * @param event packet
2326  * @return line_status
2327  * @note: btstack_type 1
2328  */
2329 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){
2330     return event[4];
2331 }
2332 
2333 /**
2334  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
2335  * @param event packet
2336  * @return rfcomm_cid
2337  * @note: btstack_type 2
2338  */
2339 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){
2340     return little_endian_read_16(event, 2);
2341 }
2342 /**
2343  * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
2344  * @param event packet
2345  * @return modem_status
2346  * @note: btstack_type 1
2347  */
2348 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){
2349     return event[4];
2350 }
2351 
2352 /**
2353  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW
2354  * @param event packet
2355  * @return rfcomm_cid
2356  * @note: btstack_type 2
2357  */
2358 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){
2359     return little_endian_read_16(event, 2);
2360 }
2361 
2362 /**
2363  * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE
2364  * @param event packet
2365  * @return status
2366  * @note: btstack_type 1
2367  */
2368 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){
2369     return event[2];
2370 }
2371 
2372 /**
2373  * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE
2374  * @param event packet
2375  * @return rfcomm_channel
2376  * @note: btstack_type 1
2377  */
2378 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){
2379     return event[2];
2380 }
2381 /**
2382  * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE
2383  * @param event packet
2384  * @return name
2385  * @note: btstack_type T
2386  */
2387 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){
2388     return (const char *) &event[3];
2389 }
2390 
2391 /**
2392  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2393  * @param event packet
2394  * @return record_id
2395  * @note: btstack_type 2
2396  */
2397 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){
2398     return little_endian_read_16(event, 2);
2399 }
2400 /**
2401  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2402  * @param event packet
2403  * @return attribute_id
2404  * @note: btstack_type 2
2405  */
2406 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){
2407     return little_endian_read_16(event, 4);
2408 }
2409 /**
2410  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2411  * @param event packet
2412  * @return attribute_length
2413  * @note: btstack_type 2
2414  */
2415 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){
2416     return little_endian_read_16(event, 6);
2417 }
2418 /**
2419  * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2420  * @param event packet
2421  * @return data_offset
2422  * @note: btstack_type 2
2423  */
2424 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){
2425     return little_endian_read_16(event, 8);
2426 }
2427 /**
2428  * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2429  * @param event packet
2430  * @return data
2431  * @note: btstack_type 1
2432  */
2433 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){
2434     return event[10];
2435 }
2436 
2437 /**
2438  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2439  * @param event packet
2440  * @return record_id
2441  * @note: btstack_type 2
2442  */
2443 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){
2444     return little_endian_read_16(event, 2);
2445 }
2446 /**
2447  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2448  * @param event packet
2449  * @return attribute_id
2450  * @note: btstack_type 2
2451  */
2452 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){
2453     return little_endian_read_16(event, 4);
2454 }
2455 /**
2456  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2457  * @param event packet
2458  * @return attribute_length
2459  * @note: btstack_type L
2460  */
2461 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){
2462     return little_endian_read_16(event, 6);
2463 }
2464 /**
2465  * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2466  * @param event packet
2467  * @return attribute_value
2468  * @note: btstack_type V
2469  */
2470 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){
2471     return &event[8];
2472 }
2473 
2474 /**
2475  * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2476  * @param event packet
2477  * @return total_count
2478  * @note: btstack_type 2
2479  */
2480 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){
2481     return little_endian_read_16(event, 2);
2482 }
2483 /**
2484  * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2485  * @param event packet
2486  * @return record_index
2487  * @note: btstack_type 2
2488  */
2489 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){
2490     return little_endian_read_16(event, 4);
2491 }
2492 /**
2493  * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2494  * @param event packet
2495  * @return record_handle
2496  * @note: btstack_type 4
2497  */
2498 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){
2499     return little_endian_read_32(event, 6);
2500 }
2501 
2502 #ifdef ENABLE_BLE
2503 /**
2504  * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE
2505  * @param event packet
2506  * @return handle
2507  * @note: btstack_type H
2508  */
2509 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){
2510     return little_endian_read_16(event, 2);
2511 }
2512 /**
2513  * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE
2514  * @param event packet
2515  * @return att_status
2516  * @note: btstack_type 1
2517  */
2518 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){
2519     return event[4];
2520 }
2521 #endif
2522 
2523 #ifdef ENABLE_BLE
2524 /**
2525  * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT
2526  * @param event packet
2527  * @return handle
2528  * @note: btstack_type H
2529  */
2530 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){
2531     return little_endian_read_16(event, 2);
2532 }
2533 /**
2534  * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT
2535  * @param event packet
2536  * @param Pointer to storage for service
2537  * @note: btstack_type X
2538  */
2539 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
2540     gatt_client_deserialize_service(event, 4, service);
2541 }
2542 #endif
2543 
2544 #ifdef ENABLE_BLE
2545 /**
2546  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2547  * @param event packet
2548  * @return handle
2549  * @note: btstack_type H
2550  */
2551 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){
2552     return little_endian_read_16(event, 2);
2553 }
2554 /**
2555  * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2556  * @param event packet
2557  * @param Pointer to storage for characteristic
2558  * @note: btstack_type Y
2559  */
2560 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){
2561     gatt_client_deserialize_characteristic(event, 4, characteristic);
2562 }
2563 #endif
2564 
2565 #ifdef ENABLE_BLE
2566 /**
2567  * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2568  * @param event packet
2569  * @return handle
2570  * @note: btstack_type H
2571  */
2572 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){
2573     return little_endian_read_16(event, 2);
2574 }
2575 /**
2576  * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2577  * @param event packet
2578  * @return include_handle
2579  * @note: btstack_type 2
2580  */
2581 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){
2582     return little_endian_read_16(event, 4);
2583 }
2584 /**
2585  * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2586  * @param event packet
2587  * @param Pointer to storage for service
2588  * @note: btstack_type X
2589  */
2590 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
2591     gatt_client_deserialize_service(event, 6, service);
2592 }
2593 #endif
2594 
2595 #ifdef ENABLE_BLE
2596 /**
2597  * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2598  * @param event packet
2599  * @return handle
2600  * @note: btstack_type H
2601  */
2602 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){
2603     return little_endian_read_16(event, 2);
2604 }
2605 /**
2606  * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2607  * @param event packet
2608  * @param Pointer to storage for characteristic_descriptor
2609  * @note: btstack_type Z
2610  */
2611 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){
2612     gatt_client_deserialize_characteristic_descriptor(event, 4, characteristic_descriptor);
2613 }
2614 #endif
2615 
2616 #ifdef ENABLE_BLE
2617 /**
2618  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2619  * @param event packet
2620  * @return handle
2621  * @note: btstack_type H
2622  */
2623 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){
2624     return little_endian_read_16(event, 2);
2625 }
2626 /**
2627  * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2628  * @param event packet
2629  * @return value_handle
2630  * @note: btstack_type 2
2631  */
2632 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){
2633     return little_endian_read_16(event, 4);
2634 }
2635 /**
2636  * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2637  * @param event packet
2638  * @return value_length
2639  * @note: btstack_type L
2640  */
2641 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){
2642     return little_endian_read_16(event, 6);
2643 }
2644 /**
2645  * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2646  * @param event packet
2647  * @return value
2648  * @note: btstack_type V
2649  */
2650 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){
2651     return &event[8];
2652 }
2653 #endif
2654 
2655 #ifdef ENABLE_BLE
2656 /**
2657  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2658  * @param event packet
2659  * @return handle
2660  * @note: btstack_type H
2661  */
2662 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){
2663     return little_endian_read_16(event, 2);
2664 }
2665 /**
2666  * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2667  * @param event packet
2668  * @return value_handle
2669  * @note: btstack_type 2
2670  */
2671 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){
2672     return little_endian_read_16(event, 4);
2673 }
2674 /**
2675  * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2676  * @param event packet
2677  * @return value_offset
2678  * @note: btstack_type 2
2679  */
2680 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){
2681     return little_endian_read_16(event, 6);
2682 }
2683 /**
2684  * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2685  * @param event packet
2686  * @return value_length
2687  * @note: btstack_type L
2688  */
2689 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){
2690     return little_endian_read_16(event, 8);
2691 }
2692 /**
2693  * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2694  * @param event packet
2695  * @return value
2696  * @note: btstack_type V
2697  */
2698 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){
2699     return &event[10];
2700 }
2701 #endif
2702 
2703 #ifdef ENABLE_BLE
2704 /**
2705  * @brief Get field handle from event GATT_EVENT_NOTIFICATION
2706  * @param event packet
2707  * @return handle
2708  * @note: btstack_type H
2709  */
2710 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){
2711     return little_endian_read_16(event, 2);
2712 }
2713 /**
2714  * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION
2715  * @param event packet
2716  * @return value_handle
2717  * @note: btstack_type 2
2718  */
2719 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){
2720     return little_endian_read_16(event, 4);
2721 }
2722 /**
2723  * @brief Get field value_length from event GATT_EVENT_NOTIFICATION
2724  * @param event packet
2725  * @return value_length
2726  * @note: btstack_type L
2727  */
2728 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){
2729     return little_endian_read_16(event, 6);
2730 }
2731 /**
2732  * @brief Get field value from event GATT_EVENT_NOTIFICATION
2733  * @param event packet
2734  * @return value
2735  * @note: btstack_type V
2736  */
2737 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){
2738     return &event[8];
2739 }
2740 #endif
2741 
2742 #ifdef ENABLE_BLE
2743 /**
2744  * @brief Get field handle from event GATT_EVENT_INDICATION
2745  * @param event packet
2746  * @return handle
2747  * @note: btstack_type H
2748  */
2749 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){
2750     return little_endian_read_16(event, 2);
2751 }
2752 /**
2753  * @brief Get field value_handle from event GATT_EVENT_INDICATION
2754  * @param event packet
2755  * @return value_handle
2756  * @note: btstack_type 2
2757  */
2758 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){
2759     return little_endian_read_16(event, 4);
2760 }
2761 /**
2762  * @brief Get field value_length from event GATT_EVENT_INDICATION
2763  * @param event packet
2764  * @return value_length
2765  * @note: btstack_type L
2766  */
2767 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){
2768     return little_endian_read_16(event, 6);
2769 }
2770 /**
2771  * @brief Get field value from event GATT_EVENT_INDICATION
2772  * @param event packet
2773  * @return value
2774  * @note: btstack_type V
2775  */
2776 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){
2777     return &event[8];
2778 }
2779 #endif
2780 
2781 #ifdef ENABLE_BLE
2782 /**
2783  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2784  * @param event packet
2785  * @return handle
2786  * @note: btstack_type H
2787  */
2788 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2789     return little_endian_read_16(event, 2);
2790 }
2791 /**
2792  * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2793  * @param event packet
2794  * @return descriptor_handle
2795  * @note: btstack_type 2
2796  */
2797 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){
2798     return little_endian_read_16(event, 4);
2799 }
2800 /**
2801  * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2802  * @param event packet
2803  * @return descriptor_length
2804  * @note: btstack_type L
2805  */
2806 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2807     return little_endian_read_16(event, 6);
2808 }
2809 /**
2810  * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2811  * @param event packet
2812  * @return descriptor
2813  * @note: btstack_type V
2814  */
2815 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2816     return &event[8];
2817 }
2818 #endif
2819 
2820 #ifdef ENABLE_BLE
2821 /**
2822  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2823  * @param event packet
2824  * @return handle
2825  * @note: btstack_type H
2826  */
2827 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2828     return little_endian_read_16(event, 2);
2829 }
2830 /**
2831  * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2832  * @param event packet
2833  * @return descriptor_offset
2834  * @note: btstack_type 2
2835  */
2836 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){
2837     return little_endian_read_16(event, 4);
2838 }
2839 /**
2840  * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2841  * @param event packet
2842  * @return descriptor_length
2843  * @note: btstack_type L
2844  */
2845 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2846     return little_endian_read_16(event, 6);
2847 }
2848 /**
2849  * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2850  * @param event packet
2851  * @return descriptor
2852  * @note: btstack_type V
2853  */
2854 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2855     return &event[8];
2856 }
2857 #endif
2858 
2859 #ifdef ENABLE_BLE
2860 /**
2861  * @brief Get field handle from event GATT_EVENT_MTU
2862  * @param event packet
2863  * @return handle
2864  * @note: btstack_type H
2865  */
2866 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){
2867     return little_endian_read_16(event, 2);
2868 }
2869 /**
2870  * @brief Get field MTU from event GATT_EVENT_MTU
2871  * @param event packet
2872  * @return MTU
2873  * @note: btstack_type 2
2874  */
2875 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){
2876     return little_endian_read_16(event, 4);
2877 }
2878 #endif
2879 
2880 #ifdef ENABLE_BLE
2881 /**
2882  * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE
2883  * @param event packet
2884  * @return handle
2885  * @note: btstack_type H
2886  */
2887 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){
2888     return little_endian_read_16(event, 2);
2889 }
2890 #endif
2891 
2892 /**
2893  * @brief Get field address_type from event ATT_EVENT_CONNECTED
2894  * @param event packet
2895  * @return address_type
2896  * @note: btstack_type 1
2897  */
2898 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){
2899     return event[2];
2900 }
2901 /**
2902  * @brief Get field address from event ATT_EVENT_CONNECTED
2903  * @param event packet
2904  * @param Pointer to storage for address
2905  * @note: btstack_type B
2906  */
2907 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){
2908     reverse_bytes(&event[3], address, 6);
2909 }
2910 /**
2911  * @brief Get field handle from event ATT_EVENT_CONNECTED
2912  * @param event packet
2913  * @return handle
2914  * @note: btstack_type H
2915  */
2916 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){
2917     return little_endian_read_16(event, 9);
2918 }
2919 
2920 /**
2921  * @brief Get field handle from event ATT_EVENT_DISCONNECTED
2922  * @param event packet
2923  * @return handle
2924  * @note: btstack_type H
2925  */
2926 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){
2927     return little_endian_read_16(event, 2);
2928 }
2929 
2930 /**
2931  * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
2932  * @param event packet
2933  * @return handle
2934  * @note: btstack_type H
2935  */
2936 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){
2937     return little_endian_read_16(event, 2);
2938 }
2939 /**
2940  * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
2941  * @param event packet
2942  * @return MTU
2943  * @note: btstack_type 2
2944  */
2945 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){
2946     return little_endian_read_16(event, 4);
2947 }
2948 
2949 /**
2950  * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2951  * @param event packet
2952  * @return status
2953  * @note: btstack_type 1
2954  */
2955 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){
2956     return event[2];
2957 }
2958 /**
2959  * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2960  * @param event packet
2961  * @return conn_handle
2962  * @note: btstack_type H
2963  */
2964 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){
2965     return little_endian_read_16(event, 3);
2966 }
2967 /**
2968  * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2969  * @param event packet
2970  * @return attribute_handle
2971  * @note: btstack_type 2
2972  */
2973 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){
2974     return little_endian_read_16(event, 5);
2975 }
2976 
2977 
2978 /**
2979  * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED
2980  * @param event packet
2981  * @return status
2982  * @note: btstack_type 1
2983  */
2984 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){
2985     return event[2];
2986 }
2987 /**
2988  * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED
2989  * @param event packet
2990  * @return service_uuid
2991  * @note: btstack_type 2
2992  */
2993 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){
2994     return little_endian_read_16(event, 3);
2995 }
2996 
2997 /**
2998  * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED
2999  * @param event packet
3000  * @return status
3001  * @note: btstack_type 1
3002  */
3003 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){
3004     return event[2];
3005 }
3006 /**
3007  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED
3008  * @param event packet
3009  * @return bnep_cid
3010  * @note: btstack_type 2
3011  */
3012 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){
3013     return little_endian_read_16(event, 3);
3014 }
3015 /**
3016  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED
3017  * @param event packet
3018  * @return source_uuid
3019  * @note: btstack_type 2
3020  */
3021 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){
3022     return little_endian_read_16(event, 5);
3023 }
3024 /**
3025  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED
3026  * @param event packet
3027  * @return destination_uuid
3028  * @note: btstack_type 2
3029  */
3030 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){
3031     return little_endian_read_16(event, 7);
3032 }
3033 /**
3034  * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED
3035  * @param event packet
3036  * @return mtu
3037  * @note: btstack_type 2
3038  */
3039 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){
3040     return little_endian_read_16(event, 9);
3041 }
3042 /**
3043  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED
3044  * @param event packet
3045  * @param Pointer to storage for remote_address
3046  * @note: btstack_type B
3047  */
3048 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3049     reverse_bytes(&event[11], remote_address, 6);
3050 }
3051 /**
3052  * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED
3053  * @param event packet
3054  * @return con_handle
3055  * @note: btstack_type H
3056  */
3057 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){
3058     return little_endian_read_16(event, 17);
3059 }
3060 
3061 /**
3062  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED
3063  * @param event packet
3064  * @return bnep_cid
3065  * @note: btstack_type 2
3066  */
3067 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){
3068     return little_endian_read_16(event, 2);
3069 }
3070 /**
3071  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED
3072  * @param event packet
3073  * @return source_uuid
3074  * @note: btstack_type 2
3075  */
3076 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){
3077     return little_endian_read_16(event, 4);
3078 }
3079 /**
3080  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED
3081  * @param event packet
3082  * @return destination_uuid
3083  * @note: btstack_type 2
3084  */
3085 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){
3086     return little_endian_read_16(event, 6);
3087 }
3088 /**
3089  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED
3090  * @param event packet
3091  * @param Pointer to storage for remote_address
3092  * @note: btstack_type B
3093  */
3094 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3095     reverse_bytes(&event[8], remote_address, 6);
3096 }
3097 
3098 /**
3099  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT
3100  * @param event packet
3101  * @return bnep_cid
3102  * @note: btstack_type 2
3103  */
3104 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){
3105     return little_endian_read_16(event, 2);
3106 }
3107 /**
3108  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
3109  * @param event packet
3110  * @return source_uuid
3111  * @note: btstack_type 2
3112  */
3113 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){
3114     return little_endian_read_16(event, 4);
3115 }
3116 /**
3117  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
3118  * @param event packet
3119  * @return destination_uuid
3120  * @note: btstack_type 2
3121  */
3122 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){
3123     return little_endian_read_16(event, 6);
3124 }
3125 /**
3126  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT
3127  * @param event packet
3128  * @param Pointer to storage for remote_address
3129  * @note: btstack_type B
3130  */
3131 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3132     reverse_bytes(&event[8], remote_address, 6);
3133 }
3134 /**
3135  * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT
3136  * @param event packet
3137  * @return channel_state
3138  * @note: btstack_type 1
3139  */
3140 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){
3141     return event[14];
3142 }
3143 
3144 /**
3145  * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW
3146  * @param event packet
3147  * @return bnep_cid
3148  * @note: btstack_type 2
3149  */
3150 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){
3151     return little_endian_read_16(event, 2);
3152 }
3153 /**
3154  * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW
3155  * @param event packet
3156  * @return source_uuid
3157  * @note: btstack_type 2
3158  */
3159 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){
3160     return little_endian_read_16(event, 4);
3161 }
3162 /**
3163  * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW
3164  * @param event packet
3165  * @return destination_uuid
3166  * @note: btstack_type 2
3167  */
3168 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){
3169     return little_endian_read_16(event, 6);
3170 }
3171 /**
3172  * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW
3173  * @param event packet
3174  * @param Pointer to storage for remote_address
3175  * @note: btstack_type B
3176  */
3177 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3178     reverse_bytes(&event[8], remote_address, 6);
3179 }
3180 
3181 #ifdef ENABLE_BLE
3182 /**
3183  * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST
3184  * @param event packet
3185  * @return handle
3186  * @note: btstack_type H
3187  */
3188 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){
3189     return little_endian_read_16(event, 2);
3190 }
3191 /**
3192  * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST
3193  * @param event packet
3194  * @return addr_type
3195  * @note: btstack_type 1
3196  */
3197 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){
3198     return event[4];
3199 }
3200 /**
3201  * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST
3202  * @param event packet
3203  * @param Pointer to storage for address
3204  * @note: btstack_type B
3205  */
3206 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){
3207     reverse_bytes(&event[5], address, 6);
3208 }
3209 /**
3210  * @brief Get field secure_connection from event SM_EVENT_JUST_WORKS_REQUEST
3211  * @param event packet
3212  * @return secure_connection
3213  * @note: btstack_type 1
3214  */
3215 static inline uint8_t sm_event_just_works_request_get_secure_connection(const uint8_t * event){
3216     return event[11];
3217 }
3218 #endif
3219 
3220 #ifdef ENABLE_BLE
3221 /**
3222  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3223  * @param event packet
3224  * @return handle
3225  * @note: btstack_type H
3226  */
3227 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){
3228     return little_endian_read_16(event, 2);
3229 }
3230 /**
3231  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3232  * @param event packet
3233  * @return addr_type
3234  * @note: btstack_type 1
3235  */
3236 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){
3237     return event[4];
3238 }
3239 /**
3240  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3241  * @param event packet
3242  * @param Pointer to storage for address
3243  * @note: btstack_type B
3244  */
3245 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){
3246     reverse_bytes(&event[5], address, 6);
3247 }
3248 /**
3249  * @brief Get field secure_connection from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3250  * @param event packet
3251  * @return secure_connection
3252  * @note: btstack_type 1
3253  */
3254 static inline uint8_t sm_event_passkey_display_number_get_secure_connection(const uint8_t * event){
3255     return event[11];
3256 }
3257 /**
3258  * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3259  * @param event packet
3260  * @return passkey
3261  * @note: btstack_type 4
3262  */
3263 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){
3264     return little_endian_read_32(event, 12);
3265 }
3266 #endif
3267 
3268 #ifdef ENABLE_BLE
3269 /**
3270  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
3271  * @param event packet
3272  * @return handle
3273  * @note: btstack_type H
3274  */
3275 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){
3276     return little_endian_read_16(event, 2);
3277 }
3278 /**
3279  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
3280  * @param event packet
3281  * @return addr_type
3282  * @note: btstack_type 1
3283  */
3284 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){
3285     return event[4];
3286 }
3287 /**
3288  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
3289  * @param event packet
3290  * @param Pointer to storage for address
3291  * @note: btstack_type B
3292  */
3293 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){
3294     reverse_bytes(&event[5], address, 6);
3295 }
3296 #endif
3297 
3298 #ifdef ENABLE_BLE
3299 /**
3300  * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER
3301  * @param event packet
3302  * @return handle
3303  * @note: btstack_type H
3304  */
3305 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){
3306     return little_endian_read_16(event, 2);
3307 }
3308 /**
3309  * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER
3310  * @param event packet
3311  * @return addr_type
3312  * @note: btstack_type 1
3313  */
3314 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){
3315     return event[4];
3316 }
3317 /**
3318  * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER
3319  * @param event packet
3320  * @param Pointer to storage for address
3321  * @note: btstack_type B
3322  */
3323 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){
3324     reverse_bytes(&event[5], address, 6);
3325 }
3326 /**
3327  * @brief Get field secure_connection from event SM_EVENT_PASSKEY_INPUT_NUMBER
3328  * @param event packet
3329  * @return secure_connection
3330  * @note: btstack_type 1
3331  */
3332 static inline uint8_t sm_event_passkey_input_number_get_secure_connection(const uint8_t * event){
3333     return event[11];
3334 }
3335 #endif
3336 
3337 #ifdef ENABLE_BLE
3338 /**
3339  * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3340  * @param event packet
3341  * @return handle
3342  * @note: btstack_type H
3343  */
3344 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){
3345     return little_endian_read_16(event, 2);
3346 }
3347 /**
3348  * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3349  * @param event packet
3350  * @return addr_type
3351  * @note: btstack_type 1
3352  */
3353 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){
3354     return event[4];
3355 }
3356 /**
3357  * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3358  * @param event packet
3359  * @param Pointer to storage for address
3360  * @note: btstack_type B
3361  */
3362 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){
3363     reverse_bytes(&event[5], address, 6);
3364 }
3365 /**
3366  * @brief Get field secure_connection from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3367  * @param event packet
3368  * @return secure_connection
3369  * @note: btstack_type 1
3370  */
3371 static inline uint8_t sm_event_numeric_comparison_request_get_secure_connection(const uint8_t * event){
3372     return event[11];
3373 }
3374 /**
3375  * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3376  * @param event packet
3377  * @return passkey
3378  * @note: btstack_type 4
3379  */
3380 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){
3381     return little_endian_read_32(event, 12);
3382 }
3383 #endif
3384 
3385 #ifdef ENABLE_BLE
3386 /**
3387  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED
3388  * @param event packet
3389  * @return handle
3390  * @note: btstack_type H
3391  */
3392 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){
3393     return little_endian_read_16(event, 2);
3394 }
3395 /**
3396  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED
3397  * @param event packet
3398  * @return addr_type
3399  * @note: btstack_type 1
3400  */
3401 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){
3402     return event[4];
3403 }
3404 /**
3405  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED
3406  * @param event packet
3407  * @param Pointer to storage for address
3408  * @note: btstack_type B
3409  */
3410 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){
3411     reverse_bytes(&event[5], address, 6);
3412 }
3413 #endif
3414 
3415 #ifdef ENABLE_BLE
3416 /**
3417  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3418  * @param event packet
3419  * @return handle
3420  * @note: btstack_type H
3421  */
3422 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){
3423     return little_endian_read_16(event, 2);
3424 }
3425 /**
3426  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3427  * @param event packet
3428  * @return addr_type
3429  * @note: btstack_type 1
3430  */
3431 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){
3432     return event[4];
3433 }
3434 /**
3435  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3436  * @param event packet
3437  * @param Pointer to storage for address
3438  * @note: btstack_type B
3439  */
3440 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){
3441     reverse_bytes(&event[5], address, 6);
3442 }
3443 #endif
3444 
3445 #ifdef ENABLE_BLE
3446 /**
3447  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3448  * @param event packet
3449  * @return handle
3450  * @note: btstack_type H
3451  */
3452 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){
3453     return little_endian_read_16(event, 2);
3454 }
3455 /**
3456  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3457  * @param event packet
3458  * @return addr_type
3459  * @note: btstack_type 1
3460  */
3461 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){
3462     return event[4];
3463 }
3464 /**
3465  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3466  * @param event packet
3467  * @param Pointer to storage for address
3468  * @note: btstack_type B
3469  */
3470 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){
3471     reverse_bytes(&event[5], address, 6);
3472 }
3473 /**
3474  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3475  * @param event packet
3476  * @return identity_addr_type
3477  * @note: btstack_type 1
3478  */
3479 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){
3480     return event[11];
3481 }
3482 /**
3483  * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3484  * @param event packet
3485  * @param Pointer to storage for identity_address
3486  * @note: btstack_type B
3487  */
3488 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
3489     reverse_bytes(&event[12], identity_address, 6);
3490 }
3491 /**
3492  * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3493  * @param event packet
3494  * @return index
3495  * @note: btstack_type 2
3496  */
3497 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){
3498     return little_endian_read_16(event, 18);
3499 }
3500 #endif
3501 
3502 #ifdef ENABLE_BLE
3503 /**
3504  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST
3505  * @param event packet
3506  * @return handle
3507  * @note: btstack_type H
3508  */
3509 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){
3510     return little_endian_read_16(event, 2);
3511 }
3512 /**
3513  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST
3514  * @param event packet
3515  * @return addr_type
3516  * @note: btstack_type 1
3517  */
3518 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){
3519     return event[4];
3520 }
3521 /**
3522  * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST
3523  * @param event packet
3524  * @param Pointer to storage for address
3525  * @note: btstack_type B
3526  */
3527 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){
3528     reverse_bytes(&event[5], address, 6);
3529 }
3530 #endif
3531 
3532 #ifdef ENABLE_BLE
3533 /**
3534  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT
3535  * @param event packet
3536  * @return handle
3537  * @note: btstack_type H
3538  */
3539 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){
3540     return little_endian_read_16(event, 2);
3541 }
3542 /**
3543  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT
3544  * @param event packet
3545  * @return addr_type
3546  * @note: btstack_type 1
3547  */
3548 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){
3549     return event[4];
3550 }
3551 /**
3552  * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT
3553  * @param event packet
3554  * @param Pointer to storage for address
3555  * @note: btstack_type B
3556  */
3557 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){
3558     reverse_bytes(&event[5], address, 6);
3559 }
3560 /**
3561  * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT
3562  * @param event packet
3563  * @return authorization_result
3564  * @note: btstack_type 1
3565  */
3566 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){
3567     return event[11];
3568 }
3569 #endif
3570 
3571 #ifdef ENABLE_BLE
3572 /**
3573  * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION
3574  * @param event packet
3575  * @return handle
3576  * @note: btstack_type H
3577  */
3578 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){
3579     return little_endian_read_16(event, 2);
3580 }
3581 /**
3582  * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION
3583  * @param event packet
3584  * @return action
3585  * @note: btstack_type 1
3586  */
3587 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){
3588     return event[4];
3589 }
3590 #endif
3591 
3592 #ifdef ENABLE_BLE
3593 /**
3594  * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED
3595  * @param event packet
3596  * @return handle
3597  * @note: btstack_type H
3598  */
3599 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){
3600     return little_endian_read_16(event, 2);
3601 }
3602 /**
3603  * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED
3604  * @param event packet
3605  * @return addr_type
3606  * @note: btstack_type 1
3607  */
3608 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){
3609     return event[4];
3610 }
3611 /**
3612  * @brief Get field address from event SM_EVENT_IDENTITY_CREATED
3613  * @param event packet
3614  * @param Pointer to storage for address
3615  * @note: btstack_type B
3616  */
3617 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){
3618     reverse_bytes(&event[5], address, 6);
3619 }
3620 /**
3621  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED
3622  * @param event packet
3623  * @return identity_addr_type
3624  * @note: btstack_type 1
3625  */
3626 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){
3627     return event[11];
3628 }
3629 /**
3630  * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED
3631  * @param event packet
3632  * @param Pointer to storage for identity_address
3633  * @note: btstack_type B
3634  */
3635 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
3636     reverse_bytes(&event[12], identity_address, 6);
3637 }
3638 /**
3639  * @brief Get field index from event SM_EVENT_IDENTITY_CREATED
3640  * @param event packet
3641  * @return index
3642  * @note: btstack_type 2
3643  */
3644 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){
3645     return little_endian_read_16(event, 18);
3646 }
3647 #endif
3648 
3649 #ifdef ENABLE_BLE
3650 /**
3651  * @brief Get field handle from event SM_EVENT_PAIRING_STARTED
3652  * @param event packet
3653  * @return handle
3654  * @note: btstack_type H
3655  */
3656 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){
3657     return little_endian_read_16(event, 2);
3658 }
3659 /**
3660  * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED
3661  * @param event packet
3662  * @return addr_type
3663  * @note: btstack_type 1
3664  */
3665 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){
3666     return event[4];
3667 }
3668 /**
3669  * @brief Get field address from event SM_EVENT_PAIRING_STARTED
3670  * @param event packet
3671  * @param Pointer to storage for address
3672  * @note: btstack_type B
3673  */
3674 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){
3675     reverse_bytes(&event[5], address, 6);
3676 }
3677 #endif
3678 
3679 #ifdef ENABLE_BLE
3680 /**
3681  * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE
3682  * @param event packet
3683  * @return handle
3684  * @note: btstack_type H
3685  */
3686 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){
3687     return little_endian_read_16(event, 2);
3688 }
3689 /**
3690  * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE
3691  * @param event packet
3692  * @return addr_type
3693  * @note: btstack_type 1
3694  */
3695 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){
3696     return event[4];
3697 }
3698 /**
3699  * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE
3700  * @param event packet
3701  * @param Pointer to storage for address
3702  * @note: btstack_type B
3703  */
3704 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){
3705     reverse_bytes(&event[5], address, 6);
3706 }
3707 /**
3708  * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE
3709  * @param event packet
3710  * @return status
3711  * @note: btstack_type 1
3712  */
3713 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){
3714     return event[11];
3715 }
3716 /**
3717  * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE
3718  * @param event packet
3719  * @return reason
3720  * @note: btstack_type 1
3721  */
3722 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){
3723     return event[12];
3724 }
3725 #endif
3726 
3727 #ifdef ENABLE_BLE
3728 /**
3729  * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED
3730  * @param event packet
3731  * @return handle
3732  * @note: btstack_type H
3733  */
3734 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){
3735     return little_endian_read_16(event, 2);
3736 }
3737 /**
3738  * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED
3739  * @param event packet
3740  * @return addr_type
3741  * @note: btstack_type 1
3742  */
3743 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){
3744     return event[4];
3745 }
3746 /**
3747  * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED
3748  * @param event packet
3749  * @param Pointer to storage for address
3750  * @note: btstack_type B
3751  */
3752 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){
3753     reverse_bytes(&event[5], address, 6);
3754 }
3755 #endif
3756 
3757 #ifdef ENABLE_BLE
3758 /**
3759  * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE
3760  * @param event packet
3761  * @return handle
3762  * @note: btstack_type H
3763  */
3764 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){
3765     return little_endian_read_16(event, 2);
3766 }
3767 /**
3768  * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE
3769  * @param event packet
3770  * @return addr_type
3771  * @note: btstack_type 1
3772  */
3773 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){
3774     return event[4];
3775 }
3776 /**
3777  * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE
3778  * @param event packet
3779  * @param Pointer to storage for address
3780  * @note: btstack_type B
3781  */
3782 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){
3783     reverse_bytes(&event[5], address, 6);
3784 }
3785 /**
3786  * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE
3787  * @param event packet
3788  * @return status
3789  * @note: btstack_type 1
3790  */
3791 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){
3792     return event[11];
3793 }
3794 #endif
3795 
3796 /**
3797  * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL
3798  * @param event packet
3799  * @return handle
3800  * @note: btstack_type H
3801  */
3802 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){
3803     return little_endian_read_16(event, 2);
3804 }
3805 /**
3806  * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL
3807  * @param event packet
3808  * @return security_level
3809  * @note: btstack_type 1
3810  */
3811 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){
3812     return event[4];
3813 }
3814 
3815 /**
3816  * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
3817  * @param event packet
3818  * @return status
3819  * @note: btstack_type 1
3820  */
3821 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){
3822     return event[2];
3823 }
3824 /**
3825  * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
3826  * @param event packet
3827  * @param Pointer to storage for address
3828  * @note: btstack_type B
3829  */
3830 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){
3831     reverse_bytes(&event[3], address, 6);
3832 }
3833 
3834 /**
3835  * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT
3836  * @param event packet
3837  * @return advertising_event_type
3838  * @note: btstack_type 1
3839  */
3840 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){
3841     return event[2];
3842 }
3843 /**
3844  * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT
3845  * @param event packet
3846  * @return address_type
3847  * @note: btstack_type 1
3848  */
3849 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){
3850     return event[3];
3851 }
3852 /**
3853  * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT
3854  * @param event packet
3855  * @param Pointer to storage for address
3856  * @note: btstack_type B
3857  */
3858 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
3859     reverse_bytes(&event[4], address, 6);
3860 }
3861 /**
3862  * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT
3863  * @param event packet
3864  * @return rssi
3865  * @note: btstack_type 1
3866  */
3867 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){
3868     return event[10];
3869 }
3870 /**
3871  * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT
3872  * @param event packet
3873  * @return data_length
3874  * @note: btstack_type J
3875  */
3876 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){
3877     return event[11];
3878 }
3879 /**
3880  * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT
3881  * @param event packet
3882  * @return data
3883  * @note: btstack_type V
3884  */
3885 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){
3886     return &event[12];
3887 }
3888 
3889 /**
3890  * @brief Get field advertising_event_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3891  * @param event packet
3892  * @return advertising_event_type
3893  * @note: btstack_type 2
3894  */
3895 static inline uint16_t gap_event_extended_advertising_report_get_advertising_event_type(const uint8_t * event){
3896     return little_endian_read_16(event, 2);
3897 }
3898 /**
3899  * @brief Get field address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3900  * @param event packet
3901  * @return address_type
3902  * @note: btstack_type 1
3903  */
3904 static inline uint8_t gap_event_extended_advertising_report_get_address_type(const uint8_t * event){
3905     return event[4];
3906 }
3907 /**
3908  * @brief Get field address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3909  * @param event packet
3910  * @param Pointer to storage for address
3911  * @note: btstack_type B
3912  */
3913 static inline void gap_event_extended_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
3914     reverse_bytes(&event[5], address, 6);
3915 }
3916 /**
3917  * @brief Get field primary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3918  * @param event packet
3919  * @return primary_phy
3920  * @note: btstack_type 1
3921  */
3922 static inline uint8_t gap_event_extended_advertising_report_get_primary_phy(const uint8_t * event){
3923     return event[11];
3924 }
3925 /**
3926  * @brief Get field secondary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3927  * @param event packet
3928  * @return secondary_phy
3929  * @note: btstack_type 1
3930  */
3931 static inline uint8_t gap_event_extended_advertising_report_get_secondary_phy(const uint8_t * event){
3932     return event[12];
3933 }
3934 /**
3935  * @brief Get field advertising_sid from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3936  * @param event packet
3937  * @return advertising_sid
3938  * @note: btstack_type 1
3939  */
3940 static inline uint8_t gap_event_extended_advertising_report_get_advertising_sid(const uint8_t * event){
3941     return event[13];
3942 }
3943 /**
3944  * @brief Get field tx_power from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3945  * @param event packet
3946  * @return tx_power
3947  * @note: btstack_type 1
3948  */
3949 static inline uint8_t gap_event_extended_advertising_report_get_tx_power(const uint8_t * event){
3950     return event[14];
3951 }
3952 /**
3953  * @brief Get field rssi from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3954  * @param event packet
3955  * @return rssi
3956  * @note: btstack_type 1
3957  */
3958 static inline uint8_t gap_event_extended_advertising_report_get_rssi(const uint8_t * event){
3959     return event[15];
3960 }
3961 /**
3962  * @brief Get field periodic_advertising_interval from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3963  * @param event packet
3964  * @return periodic_advertising_interval
3965  * @note: btstack_type 2
3966  */
3967 static inline uint16_t gap_event_extended_advertising_report_get_periodic_advertising_interval(const uint8_t * event){
3968     return little_endian_read_16(event, 16);
3969 }
3970 /**
3971  * @brief Get field direct_address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3972  * @param event packet
3973  * @return direct_address_type
3974  * @note: btstack_type 1
3975  */
3976 static inline uint8_t gap_event_extended_advertising_report_get_direct_address_type(const uint8_t * event){
3977     return event[18];
3978 }
3979 /**
3980  * @brief Get field direct_address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3981  * @param event packet
3982  * @param Pointer to storage for direct_address
3983  * @note: btstack_type B
3984  */
3985 static inline void gap_event_extended_advertising_report_get_direct_address(const uint8_t * event, bd_addr_t direct_address){
3986     reverse_bytes(&event[19], direct_address, 6);
3987 }
3988 /**
3989  * @brief Get field data_length from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3990  * @param event packet
3991  * @return data_length
3992  * @note: btstack_type J
3993  */
3994 static inline uint8_t gap_event_extended_advertising_report_get_data_length(const uint8_t * event){
3995     return event[25];
3996 }
3997 /**
3998  * @brief Get field data from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3999  * @param event packet
4000  * @return data
4001  * @note: btstack_type V
4002  */
4003 static inline const uint8_t * gap_event_extended_advertising_report_get_data(const uint8_t * event){
4004     return &event[26];
4005 }
4006 
4007 /**
4008  * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT
4009  * @param event packet
4010  * @param Pointer to storage for bd_addr
4011  * @note: btstack_type B
4012  */
4013 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4014     reverse_bytes(&event[2], bd_addr, 6);
4015 }
4016 /**
4017  * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT
4018  * @param event packet
4019  * @return page_scan_repetition_mode
4020  * @note: btstack_type 1
4021  */
4022 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
4023     return event[8];
4024 }
4025 /**
4026  * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT
4027  * @param event packet
4028  * @return class_of_device
4029  * @note: btstack_type 3
4030  */
4031 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){
4032     return little_endian_read_24(event, 9);
4033 }
4034 /**
4035  * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT
4036  * @param event packet
4037  * @return clock_offset
4038  * @note: btstack_type 2
4039  */
4040 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){
4041     return little_endian_read_16(event, 12);
4042 }
4043 /**
4044  * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT
4045  * @param event packet
4046  * @return rssi_available
4047  * @note: btstack_type 1
4048  */
4049 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){
4050     return event[14];
4051 }
4052 /**
4053  * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT
4054  * @param event packet
4055  * @return rssi
4056  * @note: btstack_type 1
4057  */
4058 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){
4059     return event[15];
4060 }
4061 /**
4062  * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT
4063  * @param event packet
4064  * @return device_id_available
4065  * @note: btstack_type 1
4066  */
4067 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){
4068     return event[16];
4069 }
4070 /**
4071  * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT
4072  * @param event packet
4073  * @return device_id_vendor_id_source
4074  * @note: btstack_type 2
4075  */
4076 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){
4077     return little_endian_read_16(event, 17);
4078 }
4079 /**
4080  * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT
4081  * @param event packet
4082  * @return device_id_vendor_id
4083  * @note: btstack_type 2
4084  */
4085 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){
4086     return little_endian_read_16(event, 19);
4087 }
4088 /**
4089  * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT
4090  * @param event packet
4091  * @return device_id_product_id
4092  * @note: btstack_type 2
4093  */
4094 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){
4095     return little_endian_read_16(event, 21);
4096 }
4097 /**
4098  * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT
4099  * @param event packet
4100  * @return device_id_version
4101  * @note: btstack_type 2
4102  */
4103 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){
4104     return little_endian_read_16(event, 23);
4105 }
4106 /**
4107  * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT
4108  * @param event packet
4109  * @return name_available
4110  * @note: btstack_type 1
4111  */
4112 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){
4113     return event[25];
4114 }
4115 /**
4116  * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT
4117  * @param event packet
4118  * @return name_len
4119  * @note: btstack_type J
4120  */
4121 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){
4122     return event[26];
4123 }
4124 /**
4125  * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT
4126  * @param event packet
4127  * @return name
4128  * @note: btstack_type V
4129  */
4130 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){
4131     return &event[27];
4132 }
4133 
4134 /**
4135  * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE
4136  * @param event packet
4137  * @return status
4138  * @note: btstack_type 1
4139  */
4140 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){
4141     return event[2];
4142 }
4143 
4144 /**
4145  * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT
4146  * @param event packet
4147  * @return con_handle
4148  * @note: btstack_type H
4149  */
4150 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){
4151     return little_endian_read_16(event, 2);
4152 }
4153 /**
4154  * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT
4155  * @param event packet
4156  * @return rssi
4157  * @note: btstack_type 1
4158  */
4159 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){
4160     return event[4];
4161 }
4162 
4163 /**
4164  * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA
4165  * @param event packet
4166  * @return oob_data_present
4167  * @note: btstack_type 1
4168  */
4169 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){
4170     return event[2];
4171 }
4172 /**
4173  * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA
4174  * @param event packet
4175  * @param Pointer to storage for c_192
4176  * @note: btstack_type K
4177  */
4178 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){
4179     reverse_bytes(&event[3], c_192, 16);
4180 }
4181 /**
4182  * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA
4183  * @param event packet
4184  * @param Pointer to storage for r_192
4185  * @note: btstack_type K
4186  */
4187 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){
4188     reverse_bytes(&event[19], r_192, 16);
4189 }
4190 /**
4191  * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA
4192  * @param event packet
4193  * @param Pointer to storage for c_256
4194  * @note: btstack_type K
4195  */
4196 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){
4197     reverse_bytes(&event[35], c_256, 16);
4198 }
4199 /**
4200  * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA
4201  * @param event packet
4202  * @param Pointer to storage for r_256
4203  * @note: btstack_type K
4204  */
4205 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){
4206     reverse_bytes(&event[51], r_256, 16);
4207 }
4208 
4209 /**
4210  * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED
4211  * @param event packet
4212  * @return con_handle
4213  * @note: btstack_type H
4214  */
4215 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){
4216     return little_endian_read_16(event, 2);
4217 }
4218 /**
4219  * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED
4220  * @param event packet
4221  * @param Pointer to storage for bd_addr
4222  * @note: btstack_type B
4223  */
4224 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4225     reverse_bytes(&event[4], bd_addr, 6);
4226 }
4227 /**
4228  * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED
4229  * @param event packet
4230  * @return ssp
4231  * @note: btstack_type 1
4232  */
4233 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){
4234     return event[10];
4235 }
4236 /**
4237  * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED
4238  * @param event packet
4239  * @return initiator
4240  * @note: btstack_type 1
4241  */
4242 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){
4243     return event[11];
4244 }
4245 
4246 /**
4247  * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE
4248  * @param event packet
4249  * @return con_handle
4250  * @note: btstack_type H
4251  */
4252 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){
4253     return little_endian_read_16(event, 2);
4254 }
4255 /**
4256  * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE
4257  * @param event packet
4258  * @param Pointer to storage for bd_addr
4259  * @note: btstack_type B
4260  */
4261 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4262     reverse_bytes(&event[4], bd_addr, 6);
4263 }
4264 /**
4265  * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE
4266  * @param event packet
4267  * @return status
4268  * @note: btstack_type 1
4269  */
4270 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){
4271     return event[10];
4272 }
4273 
4274 /**
4275  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4276  * @param event packet
4277  * @return status
4278  * @note: btstack_type 1
4279  */
4280 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
4281     return event[3];
4282 }
4283 /**
4284  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4285  * @param event packet
4286  * @return connection_handle
4287  * @note: btstack_type H
4288  */
4289 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){
4290     return little_endian_read_16(event, 4);
4291 }
4292 /**
4293  * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4294  * @param event packet
4295  * @return role
4296  * @note: btstack_type 1
4297  */
4298 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){
4299     return event[6];
4300 }
4301 /**
4302  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4303  * @param event packet
4304  * @return peer_address_type
4305  * @note: btstack_type 1
4306  */
4307 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){
4308     return event[7];
4309 }
4310 /**
4311  * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4312  * @param event packet
4313  * @param Pointer to storage for peer_address
4314  * @note: btstack_type B
4315  */
4316 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){
4317     reverse_bytes(&event[8], peer_address, 6);
4318 }
4319 /**
4320  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4321  * @param event packet
4322  * @return conn_interval
4323  * @note: btstack_type 2
4324  */
4325 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){
4326     return little_endian_read_16(event, 14);
4327 }
4328 /**
4329  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4330  * @param event packet
4331  * @return conn_latency
4332  * @note: btstack_type 2
4333  */
4334 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){
4335     return little_endian_read_16(event, 16);
4336 }
4337 /**
4338  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4339  * @param event packet
4340  * @return supervision_timeout
4341  * @note: btstack_type 2
4342  */
4343 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){
4344     return little_endian_read_16(event, 18);
4345 }
4346 /**
4347  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4348  * @param event packet
4349  * @return master_clock_accuracy
4350  * @note: btstack_type 1
4351  */
4352 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){
4353     return event[20];
4354 }
4355 
4356 /**
4357  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4358  * @param event packet
4359  * @return status
4360  * @note: btstack_type 1
4361  */
4362 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){
4363     return event[3];
4364 }
4365 /**
4366  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4367  * @param event packet
4368  * @return connection_handle
4369  * @note: btstack_type H
4370  */
4371 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){
4372     return little_endian_read_16(event, 4);
4373 }
4374 /**
4375  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4376  * @param event packet
4377  * @return conn_interval
4378  * @note: btstack_type 2
4379  */
4380 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){
4381     return little_endian_read_16(event, 6);
4382 }
4383 /**
4384  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4385  * @param event packet
4386  * @return conn_latency
4387  * @note: btstack_type 2
4388  */
4389 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){
4390     return little_endian_read_16(event, 8);
4391 }
4392 /**
4393  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4394  * @param event packet
4395  * @return supervision_timeout
4396  * @note: btstack_type 2
4397  */
4398 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){
4399     return little_endian_read_16(event, 10);
4400 }
4401 
4402 /**
4403  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE
4404  * @param event packet
4405  * @return connection_handle
4406  * @note: btstack_type H
4407  */
4408 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){
4409     return little_endian_read_16(event, 3);
4410 }
4411 /**
4412  * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE
4413  * @param event packet
4414  * @return le_features
4415  * @note: btstack_type D
4416  */
4417 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){
4418     return (const uint8_t *) &event[5];
4419 }
4420 
4421 /**
4422  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4423  * @param event packet
4424  * @return connection_handle
4425  * @note: btstack_type H
4426  */
4427 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){
4428     return little_endian_read_16(event, 3);
4429 }
4430 /**
4431  * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4432  * @param event packet
4433  * @return random_number
4434  * @note: btstack_type D
4435  */
4436 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){
4437     return (const uint8_t *) &event[5];
4438 }
4439 /**
4440  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4441  * @param event packet
4442  * @return encryption_diversifier
4443  * @note: btstack_type 2
4444  */
4445 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){
4446     return little_endian_read_16(event, 13);
4447 }
4448 
4449 /**
4450  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4451  * @param event packet
4452  * @return connection_handle
4453  * @note: btstack_type H
4454  */
4455 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){
4456     return little_endian_read_16(event, 3);
4457 }
4458 /**
4459  * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4460  * @param event packet
4461  * @return interval_min
4462  * @note: btstack_type 2
4463  */
4464 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){
4465     return little_endian_read_16(event, 5);
4466 }
4467 /**
4468  * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4469  * @param event packet
4470  * @return interval_max
4471  * @note: btstack_type 2
4472  */
4473 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){
4474     return little_endian_read_16(event, 7);
4475 }
4476 /**
4477  * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4478  * @param event packet
4479  * @return latency
4480  * @note: btstack_type 2
4481  */
4482 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){
4483     return little_endian_read_16(event, 9);
4484 }
4485 /**
4486  * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4487  * @param event packet
4488  * @return timeout
4489  * @note: btstack_type 2
4490  */
4491 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){
4492     return little_endian_read_16(event, 11);
4493 }
4494 
4495 /**
4496  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4497  * @param event packet
4498  * @return connection_handle
4499  * @note: btstack_type H
4500  */
4501 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){
4502     return little_endian_read_16(event, 3);
4503 }
4504 /**
4505  * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4506  * @param event packet
4507  * @return max_tx_octets
4508  * @note: btstack_type 2
4509  */
4510 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){
4511     return little_endian_read_16(event, 5);
4512 }
4513 /**
4514  * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4515  * @param event packet
4516  * @return max_tx_time
4517  * @note: btstack_type 2
4518  */
4519 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){
4520     return little_endian_read_16(event, 7);
4521 }
4522 /**
4523  * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4524  * @param event packet
4525  * @return max_rx_octets
4526  * @note: btstack_type 2
4527  */
4528 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){
4529     return little_endian_read_16(event, 9);
4530 }
4531 /**
4532  * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4533  * @param event packet
4534  * @return max_rx_time
4535  * @note: btstack_type 2
4536  */
4537 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){
4538     return little_endian_read_16(event, 11);
4539 }
4540 
4541 /**
4542  * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4543  * @param event packet
4544  * @return status
4545  * @note: btstack_type 1
4546  */
4547 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){
4548     return event[3];
4549 }
4550 /**
4551  * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4552  * @param event packet
4553  * @param Pointer to storage for dhkey_x
4554  * @note: btstack_type Q
4555  */
4556 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){
4557     reverse_bytes(&event[4], dhkey_x, 32);
4558 }
4559 /**
4560  * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4561  * @param event packet
4562  * @param Pointer to storage for dhkey_y
4563  * @note: btstack_type Q
4564  */
4565 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){
4566     reverse_bytes(&event[36], dhkey_y, 32);
4567 }
4568 
4569 /**
4570  * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
4571  * @param event packet
4572  * @return status
4573  * @note: btstack_type 1
4574  */
4575 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){
4576     return event[3];
4577 }
4578 /**
4579  * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
4580  * @param event packet
4581  * @param Pointer to storage for dhkey
4582  * @note: btstack_type Q
4583  */
4584 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){
4585     reverse_bytes(&event[4], dhkey, 32);
4586 }
4587 
4588 /**
4589  * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4590  * @param event packet
4591  * @return status
4592  * @note: btstack_type 1
4593  */
4594 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){
4595     return event[3];
4596 }
4597 /**
4598  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4599  * @param event packet
4600  * @return connection_handle
4601  * @note: btstack_type H
4602  */
4603 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){
4604     return little_endian_read_16(event, 4);
4605 }
4606 /**
4607  * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4608  * @param event packet
4609  * @return role
4610  * @note: btstack_type 1
4611  */
4612 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){
4613     return event[6];
4614 }
4615 /**
4616  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4617  * @param event packet
4618  * @return peer_address_type
4619  * @note: btstack_type 1
4620  */
4621 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){
4622     return event[7];
4623 }
4624 /**
4625  * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4626  * @param event packet
4627  * @param Pointer to storage for peer_addresss
4628  * @note: btstack_type B
4629  */
4630 static inline void hci_subevent_le_enhanced_connection_complete_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){
4631     reverse_bytes(&event[8], peer_addresss, 6);
4632 }
4633 /**
4634  * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4635  * @param event packet
4636  * @param Pointer to storage for local_resolvable_private_addres
4637  * @note: btstack_type B
4638  */
4639 static inline void hci_subevent_le_enhanced_connection_complete_get_local_resolvable_private_addres(const uint8_t * event, bd_addr_t local_resolvable_private_addres){
4640     reverse_bytes(&event[14], local_resolvable_private_addres, 6);
4641 }
4642 /**
4643  * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4644  * @param event packet
4645  * @param Pointer to storage for peer_resolvable_private_addres
4646  * @note: btstack_type B
4647  */
4648 static inline void hci_subevent_le_enhanced_connection_complete_get_peer_resolvable_private_addres(const uint8_t * event, bd_addr_t peer_resolvable_private_addres){
4649     reverse_bytes(&event[20], peer_resolvable_private_addres, 6);
4650 }
4651 /**
4652  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4653  * @param event packet
4654  * @return conn_interval
4655  * @note: btstack_type 2
4656  */
4657 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){
4658     return little_endian_read_16(event, 26);
4659 }
4660 /**
4661  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4662  * @param event packet
4663  * @return conn_latency
4664  * @note: btstack_type 2
4665  */
4666 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){
4667     return little_endian_read_16(event, 28);
4668 }
4669 /**
4670  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4671  * @param event packet
4672  * @return supervision_timeout
4673  * @note: btstack_type 2
4674  */
4675 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){
4676     return little_endian_read_16(event, 30);
4677 }
4678 /**
4679  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4680  * @param event packet
4681  * @return master_clock_accuracy
4682  * @note: btstack_type 1
4683  */
4684 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){
4685     return event[32];
4686 }
4687 
4688 /**
4689  * @brief Get field status from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
4690  * @param event packet
4691  * @return status
4692  * @note: btstack_type 1
4693  */
4694 static inline uint8_t hci_subevent_le_phy_update_complete_get_status(const uint8_t * event){
4695     return event[3];
4696 }
4697 /**
4698  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
4699  * @param event packet
4700  * @return connection_handle
4701  * @note: btstack_type H
4702  */
4703 static inline hci_con_handle_t hci_subevent_le_phy_update_complete_get_connection_handle(const uint8_t * event){
4704     return little_endian_read_16(event, 4);
4705 }
4706 /**
4707  * @brief Get field tx_phy from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
4708  * @param event packet
4709  * @return tx_phy
4710  * @note: btstack_type 1
4711  */
4712 static inline uint8_t hci_subevent_le_phy_update_complete_get_tx_phy(const uint8_t * event){
4713     return event[6];
4714 }
4715 
4716 /**
4717  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4718  * @param event packet
4719  * @return status
4720  * @note: btstack_type 1
4721  */
4722 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_status(const uint8_t * event){
4723     return event[3];
4724 }
4725 /**
4726  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4727  * @param event packet
4728  * @return sync_handle
4729  * @note: btstack_type H
4730  */
4731 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_establishment_get_sync_handle(const uint8_t * event){
4732     return little_endian_read_16(event, 4);
4733 }
4734 /**
4735  * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4736  * @param event packet
4737  * @return advertising_sid
4738  * @note: btstack_type 1
4739  */
4740 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertising_sid(const uint8_t * event){
4741     return event[6];
4742 }
4743 /**
4744  * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4745  * @param event packet
4746  * @return advertiser_address_type
4747  * @note: btstack_type 1
4748  */
4749 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address_type(const uint8_t * event){
4750     return event[7];
4751 }
4752 /**
4753  * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4754  * @param event packet
4755  * @param Pointer to storage for advertiser_address
4756  * @note: btstack_type B
4757  */
4758 static inline void hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){
4759     reverse_bytes(&event[8], advertiser_address, 6);
4760 }
4761 /**
4762  * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4763  * @param event packet
4764  * @return advertiser_phy
4765  * @note: btstack_type 1
4766  */
4767 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_phy(const uint8_t * event){
4768     return event[14];
4769 }
4770 /**
4771  * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4772  * @param event packet
4773  * @return periodic_advertising_interval
4774  * @note: btstack_type 2
4775  */
4776 static inline uint16_t hci_subevent_le_periodic_advertising_sync_establishment_get_periodic_advertising_interval(const uint8_t * event){
4777     return little_endian_read_16(event, 15);
4778 }
4779 /**
4780  * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4781  * @param event packet
4782  * @return advertiser_clock_accuracy
4783  * @note: btstack_type 1
4784  */
4785 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_clock_accuracy(const uint8_t * event){
4786     return event[17];
4787 }
4788 
4789 /**
4790  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4791  * @param event packet
4792  * @return sync_handle
4793  * @note: btstack_type H
4794  */
4795 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_report_get_sync_handle(const uint8_t * event){
4796     return little_endian_read_16(event, 3);
4797 }
4798 /**
4799  * @brief Get field tx_power from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4800  * @param event packet
4801  * @return tx_power
4802  * @note: btstack_type 1
4803  */
4804 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_tx_power(const uint8_t * event){
4805     return event[5];
4806 }
4807 /**
4808  * @brief Get field rssi from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4809  * @param event packet
4810  * @return rssi
4811  * @note: btstack_type 1
4812  */
4813 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_rssi(const uint8_t * event){
4814     return event[6];
4815 }
4816 /**
4817  * @brief Get field cte_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4818  * @param event packet
4819  * @return cte_type
4820  * @note: btstack_type 1
4821  */
4822 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_cte_type(const uint8_t * event){
4823     return event[7];
4824 }
4825 /**
4826  * @brief Get field data_status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4827  * @param event packet
4828  * @return data_status
4829  * @note: btstack_type 1
4830  */
4831 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_status(const uint8_t * event){
4832     return event[8];
4833 }
4834 /**
4835  * @brief Get field data_length from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4836  * @param event packet
4837  * @return data_length
4838  * @note: btstack_type J
4839  */
4840 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_length(const uint8_t * event){
4841     return event[9];
4842 }
4843 /**
4844  * @brief Get field data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4845  * @param event packet
4846  * @return data
4847  * @note: btstack_type V
4848  */
4849 static inline const uint8_t * hci_subevent_le_periodic_advertising_report_get_data(const uint8_t * event){
4850     return &event[10];
4851 }
4852 
4853 /**
4854  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_LOST
4855  * @param event packet
4856  * @return sync_handle
4857  * @note: btstack_type H
4858  */
4859 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_lost_get_sync_handle(const uint8_t * event){
4860     return little_endian_read_16(event, 3);
4861 }
4862 
4863 
4864 /**
4865  * @brief Get field status from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4866  * @param event packet
4867  * @return status
4868  * @note: btstack_type 1
4869  */
4870 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_status(const uint8_t * event){
4871     return event[3];
4872 }
4873 /**
4874  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4875  * @param event packet
4876  * @return advertising_handle
4877  * @note: btstack_type 1
4878  */
4879 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_advertising_handle(const uint8_t * event){
4880     return event[4];
4881 }
4882 /**
4883  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4884  * @param event packet
4885  * @return connection_handle
4886  * @note: btstack_type H
4887  */
4888 static inline hci_con_handle_t hci_subevent_le_advertising_set_terminated_get_connection_handle(const uint8_t * event){
4889     return little_endian_read_16(event, 5);
4890 }
4891 /**
4892  * @brief Get field num_completed_exteneded_advertising_events from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4893  * @param event packet
4894  * @return num_completed_exteneded_advertising_events
4895  * @note: btstack_type 1
4896  */
4897 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_num_completed_exteneded_advertising_events(const uint8_t * event){
4898     return event[7];
4899 }
4900 
4901 /**
4902  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
4903  * @param event packet
4904  * @return advertising_handle
4905  * @note: btstack_type 1
4906  */
4907 static inline uint8_t hci_subevent_le_scan_request_received_get_advertising_handle(const uint8_t * event){
4908     return event[3];
4909 }
4910 /**
4911  * @brief Get field scanner_address_type from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
4912  * @param event packet
4913  * @return scanner_address_type
4914  * @note: btstack_type 1
4915  */
4916 static inline uint8_t hci_subevent_le_scan_request_received_get_scanner_address_type(const uint8_t * event){
4917     return event[4];
4918 }
4919 /**
4920  * @brief Get field scanner_address from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
4921  * @param event packet
4922  * @param Pointer to storage for scanner_address
4923  * @note: btstack_type B
4924  */
4925 static inline void hci_subevent_le_scan_request_received_get_scanner_address(const uint8_t * event, bd_addr_t scanner_address){
4926     reverse_bytes(&event[5], scanner_address, 6);
4927 }
4928 
4929 /**
4930  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM
4931  * @param event packet
4932  * @return connection_handle
4933  * @note: btstack_type H
4934  */
4935 static inline hci_con_handle_t hci_subevent_le_channel_selection_algorithm_get_connection_handle(const uint8_t * event){
4936     return little_endian_read_16(event, 3);
4937 }
4938 /**
4939  * @brief Get field channel_selection_algorithm from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM
4940  * @param event packet
4941  * @return channel_selection_algorithm
4942  * @note: btstack_type 1
4943  */
4944 static inline uint8_t hci_subevent_le_channel_selection_algorithm_get_channel_selection_algorithm(const uint8_t * event){
4945     return event[5];
4946 }
4947 
4948 /**
4949  * @brief Get field status from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED
4950  * @param event packet
4951  * @return status
4952  * @note: btstack_type 1
4953  */
4954 static inline uint8_t hci_subevent_le_le_cte_request_failed_get_status(const uint8_t * event){
4955     return event[3];
4956 }
4957 /**
4958  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED
4959  * @param event packet
4960  * @return connection_handle
4961  * @note: btstack_type H
4962  */
4963 static inline hci_con_handle_t hci_subevent_le_le_cte_request_failed_get_connection_handle(const uint8_t * event){
4964     return little_endian_read_16(event, 4);
4965 }
4966 
4967 /**
4968  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4969  * @param event packet
4970  * @return status
4971  * @note: btstack_type 1
4972  */
4973 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_status(const uint8_t * event){
4974     return event[3];
4975 }
4976 /**
4977  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4978  * @param event packet
4979  * @return connection_handle
4980  * @note: btstack_type H
4981  */
4982 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_connection_handle(const uint8_t * event){
4983     return little_endian_read_16(event, 4);
4984 }
4985 /**
4986  * @brief Get field service_data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4987  * @param event packet
4988  * @return service_data
4989  * @note: btstack_type 2
4990  */
4991 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_service_data(const uint8_t * event){
4992     return little_endian_read_16(event, 6);
4993 }
4994 /**
4995  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4996  * @param event packet
4997  * @return sync_handle
4998  * @note: btstack_type H
4999  */
5000 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_sync_handle(const uint8_t * event){
5001     return little_endian_read_16(event, 8);
5002 }
5003 /**
5004  * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5005  * @param event packet
5006  * @return advertising_sid
5007  * @note: btstack_type 1
5008  */
5009 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertising_sid(const uint8_t * event){
5010     return event[10];
5011 }
5012 /**
5013  * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5014  * @param event packet
5015  * @return advertiser_address_type
5016  * @note: btstack_type 1
5017  */
5018 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address_type(const uint8_t * event){
5019     return event[11];
5020 }
5021 /**
5022  * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5023  * @param event packet
5024  * @param Pointer to storage for advertiser_address
5025  * @note: btstack_type B
5026  */
5027 static inline void hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){
5028     reverse_bytes(&event[12], advertiser_address, 6);
5029 }
5030 /**
5031  * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5032  * @param event packet
5033  * @return advertiser_phy
5034  * @note: btstack_type 1
5035  */
5036 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_phy(const uint8_t * event){
5037     return event[18];
5038 }
5039 /**
5040  * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5041  * @param event packet
5042  * @return periodic_advertising_interval
5043  * @note: btstack_type 2
5044  */
5045 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_periodic_advertising_interval(const uint8_t * event){
5046     return little_endian_read_16(event, 19);
5047 }
5048 /**
5049  * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5050  * @param event packet
5051  * @return advertiser_clock_accuracy
5052  * @note: btstack_type 1
5053  */
5054 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_clock_accuracy(const uint8_t * event){
5055     return event[21];
5056 }
5057 
5058 /**
5059  * @brief Get field status from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5060  * @param event packet
5061  * @return status
5062  * @note: btstack_type 1
5063  */
5064 static inline uint8_t hci_subevent_le_cis_established_get_status(const uint8_t * event){
5065     return event[3];
5066 }
5067 /**
5068  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5069  * @param event packet
5070  * @return connection_handle
5071  * @note: btstack_type H
5072  */
5073 static inline hci_con_handle_t hci_subevent_le_cis_established_get_connection_handle(const uint8_t * event){
5074     return little_endian_read_16(event, 4);
5075 }
5076 /**
5077  * @brief Get field cig_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5078  * @param event packet
5079  * @return cig_sync_delay
5080  * @note: btstack_type 3
5081  */
5082 static inline uint32_t hci_subevent_le_cis_established_get_cig_sync_delay(const uint8_t * event){
5083     return little_endian_read_24(event, 6);
5084 }
5085 /**
5086  * @brief Get field cis_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5087  * @param event packet
5088  * @return cis_sync_delay
5089  * @note: btstack_type 3
5090  */
5091 static inline uint32_t hci_subevent_le_cis_established_get_cis_sync_delay(const uint8_t * event){
5092     return little_endian_read_24(event, 9);
5093 }
5094 /**
5095  * @brief Get field transport_latency_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5096  * @param event packet
5097  * @return transport_latency_c_to_p
5098  * @note: btstack_type 3
5099  */
5100 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_c_to_p(const uint8_t * event){
5101     return little_endian_read_24(event, 12);
5102 }
5103 /**
5104  * @brief Get field transport_latency_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5105  * @param event packet
5106  * @return transport_latency_p_to_c
5107  * @note: btstack_type 3
5108  */
5109 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_p_to_c(const uint8_t * event){
5110     return little_endian_read_24(event, 15);
5111 }
5112 /**
5113  * @brief Get field phy_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5114  * @param event packet
5115  * @return phy_c_to_p
5116  * @note: btstack_type 1
5117  */
5118 static inline uint8_t hci_subevent_le_cis_established_get_phy_c_to_p(const uint8_t * event){
5119     return event[18];
5120 }
5121 /**
5122  * @brief Get field phy_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5123  * @param event packet
5124  * @return phy_p_to_c
5125  * @note: btstack_type 1
5126  */
5127 static inline uint8_t hci_subevent_le_cis_established_get_phy_p_to_c(const uint8_t * event){
5128     return event[19];
5129 }
5130 /**
5131  * @brief Get field nse from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5132  * @param event packet
5133  * @return nse
5134  * @note: btstack_type 1
5135  */
5136 static inline uint8_t hci_subevent_le_cis_established_get_nse(const uint8_t * event){
5137     return event[20];
5138 }
5139 /**
5140  * @brief Get field bn_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5141  * @param event packet
5142  * @return bn_c_to_p
5143  * @note: btstack_type 1
5144  */
5145 static inline uint8_t hci_subevent_le_cis_established_get_bn_c_to_p(const uint8_t * event){
5146     return event[21];
5147 }
5148 /**
5149  * @brief Get field bn_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5150  * @param event packet
5151  * @return bn_p_to_c
5152  * @note: btstack_type 1
5153  */
5154 static inline uint8_t hci_subevent_le_cis_established_get_bn_p_to_c(const uint8_t * event){
5155     return event[22];
5156 }
5157 /**
5158  * @brief Get field ft_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5159  * @param event packet
5160  * @return ft_c_to_p
5161  * @note: btstack_type 1
5162  */
5163 static inline uint8_t hci_subevent_le_cis_established_get_ft_c_to_p(const uint8_t * event){
5164     return event[23];
5165 }
5166 /**
5167  * @brief Get field ft_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5168  * @param event packet
5169  * @return ft_p_to_c
5170  * @note: btstack_type 1
5171  */
5172 static inline uint8_t hci_subevent_le_cis_established_get_ft_p_to_c(const uint8_t * event){
5173     return event[24];
5174 }
5175 /**
5176  * @brief Get field max_pdu_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5177  * @param event packet
5178  * @return max_pdu_c_to_p
5179  * @note: btstack_type 2
5180  */
5181 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_c_to_p(const uint8_t * event){
5182     return little_endian_read_16(event, 25);
5183 }
5184 /**
5185  * @brief Get field max_pdu_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5186  * @param event packet
5187  * @return max_pdu_p_to_c
5188  * @note: btstack_type 2
5189  */
5190 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_p_to_c(const uint8_t * event){
5191     return little_endian_read_16(event, 27);
5192 }
5193 /**
5194  * @brief Get field iso_interval from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5195  * @param event packet
5196  * @return iso_interval
5197  * @note: btstack_type 2
5198  */
5199 static inline uint16_t hci_subevent_le_cis_established_get_iso_interval(const uint8_t * event){
5200     return little_endian_read_16(event, 29);
5201 }
5202 
5203 /**
5204  * @brief Get field acl_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST
5205  * @param event packet
5206  * @return acl_connection_handle
5207  * @note: btstack_type H
5208  */
5209 static inline hci_con_handle_t hci_subevent_le_cis_request_get_acl_connection_handle(const uint8_t * event){
5210     return little_endian_read_16(event, 3);
5211 }
5212 /**
5213  * @brief Get field cis_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST
5214  * @param event packet
5215  * @return cis_connection_handle
5216  * @note: btstack_type H
5217  */
5218 static inline hci_con_handle_t hci_subevent_le_cis_request_get_cis_connection_handle(const uint8_t * event){
5219     return little_endian_read_16(event, 5);
5220 }
5221 /**
5222  * @brief Get field cig_id from event HCI_SUBEVENT_LE_CIS_REQUEST
5223  * @param event packet
5224  * @return cig_id
5225  * @note: btstack_type 1
5226  */
5227 static inline uint8_t hci_subevent_le_cis_request_get_cig_id(const uint8_t * event){
5228     return event[7];
5229 }
5230 /**
5231  * @brief Get field cis_id from event HCI_SUBEVENT_LE_CIS_REQUEST
5232  * @param event packet
5233  * @return cis_id
5234  * @note: btstack_type 1
5235  */
5236 static inline uint8_t hci_subevent_le_cis_request_get_cis_id(const uint8_t * event){
5237     return event[8];
5238 }
5239 
5240 /**
5241  * @brief Get field big_handle from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE
5242  * @param event packet
5243  * @return big_handle
5244  * @note: btstack_type 1
5245  */
5246 static inline uint8_t hci_subevent_le_terminate_big_complete_get_big_handle(const uint8_t * event){
5247     return event[3];
5248 }
5249 /**
5250  * @brief Get field reason from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE
5251  * @param event packet
5252  * @return reason
5253  * @note: btstack_type 1
5254  */
5255 static inline uint8_t hci_subevent_le_terminate_big_complete_get_reason(const uint8_t * event){
5256     return event[4];
5257 }
5258 
5259 /**
5260  * @brief Get field big_handle from event HCI_SUBEVENT_LE_BIG_SYNC_LOST
5261  * @param event packet
5262  * @return big_handle
5263  * @note: btstack_type 1
5264  */
5265 static inline uint8_t hci_subevent_le_big_sync_lost_get_big_handle(const uint8_t * event){
5266     return event[3];
5267 }
5268 /**
5269  * @brief Get field reason from event HCI_SUBEVENT_LE_BIG_SYNC_LOST
5270  * @param event packet
5271  * @return reason
5272  * @note: btstack_type 1
5273  */
5274 static inline uint8_t hci_subevent_le_big_sync_lost_get_reason(const uint8_t * event){
5275     return event[4];
5276 }
5277 
5278 /**
5279  * @brief Get field status from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
5280  * @param event packet
5281  * @return status
5282  * @note: btstack_type 1
5283  */
5284 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_status(const uint8_t * event){
5285     return event[3];
5286 }
5287 /**
5288  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
5289  * @param event packet
5290  * @return connection_handle
5291  * @note: btstack_type H
5292  */
5293 static inline hci_con_handle_t hci_subevent_le_request_peer_sca_complete_get_connection_handle(const uint8_t * event){
5294     return little_endian_read_16(event, 4);
5295 }
5296 /**
5297  * @brief Get field peer_clock_accuracy from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
5298  * @param event packet
5299  * @return peer_clock_accuracy
5300  * @note: btstack_type 1
5301  */
5302 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_peer_clock_accuracy(const uint8_t * event){
5303     return event[6];
5304 }
5305 
5306 /**
5307  * @brief Get field status from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5308  * @param event packet
5309  * @return status
5310  * @note: btstack_type 1
5311  */
5312 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_status(const uint8_t * event){
5313     return event[3];
5314 }
5315 /**
5316  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5317  * @param event packet
5318  * @return connection_handle
5319  * @note: btstack_type H
5320  */
5321 static inline hci_con_handle_t hci_subevent_le_transmit_power_reporting_get_connection_handle(const uint8_t * event){
5322     return little_endian_read_16(event, 4);
5323 }
5324 /**
5325  * @brief Get field reason from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5326  * @param event packet
5327  * @return reason
5328  * @note: btstack_type 1
5329  */
5330 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_reason(const uint8_t * event){
5331     return event[6];
5332 }
5333 /**
5334  * @brief Get field phy from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5335  * @param event packet
5336  * @return phy
5337  * @note: btstack_type 1
5338  */
5339 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_phy(const uint8_t * event){
5340     return event[7];
5341 }
5342 /**
5343  * @brief Get field tx_power_level from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5344  * @param event packet
5345  * @return tx_power_level
5346  * @note: btstack_type 1
5347  */
5348 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level(const uint8_t * event){
5349     return event[8];
5350 }
5351 /**
5352  * @brief Get field tx_power_level_flag from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5353  * @param event packet
5354  * @return tx_power_level_flag
5355  * @note: btstack_type 1
5356  */
5357 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level_flag(const uint8_t * event){
5358     return event[9];
5359 }
5360 /**
5361  * @brief Get field delta from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5362  * @param event packet
5363  * @return delta
5364  * @note: btstack_type 1
5365  */
5366 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_delta(const uint8_t * event){
5367     return event[10];
5368 }
5369 
5370 /**
5371  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5372  * @param event packet
5373  * @return sync_handle
5374  * @note: btstack_type H
5375  */
5376 static inline hci_con_handle_t hci_subevent_le_biginfo_advertising_report_get_sync_handle(const uint8_t * event){
5377     return little_endian_read_16(event, 3);
5378 }
5379 /**
5380  * @brief Get field num_bis from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5381  * @param event packet
5382  * @return num_bis
5383  * @note: btstack_type 1
5384  */
5385 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_num_bis(const uint8_t * event){
5386     return event[5];
5387 }
5388 /**
5389  * @brief Get field nse from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5390  * @param event packet
5391  * @return nse
5392  * @note: btstack_type 1
5393  */
5394 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_nse(const uint8_t * event){
5395     return event[6];
5396 }
5397 /**
5398  * @brief Get field iso_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5399  * @param event packet
5400  * @return iso_interval
5401  * @note: btstack_type 2
5402  */
5403 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_iso_interval(const uint8_t * event){
5404     return little_endian_read_16(event, 7);
5405 }
5406 /**
5407  * @brief Get field bn from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5408  * @param event packet
5409  * @return bn
5410  * @note: btstack_type 1
5411  */
5412 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_bn(const uint8_t * event){
5413     return event[9];
5414 }
5415 /**
5416  * @brief Get field pto from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5417  * @param event packet
5418  * @return pto
5419  * @note: btstack_type 1
5420  */
5421 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_pto(const uint8_t * event){
5422     return event[10];
5423 }
5424 /**
5425  * @brief Get field irc from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5426  * @param event packet
5427  * @return irc
5428  * @note: btstack_type 1
5429  */
5430 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_irc(const uint8_t * event){
5431     return event[11];
5432 }
5433 /**
5434  * @brief Get field max_pdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5435  * @param event packet
5436  * @return max_pdu
5437  * @note: btstack_type 2
5438  */
5439 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_pdu(const uint8_t * event){
5440     return little_endian_read_16(event, 12);
5441 }
5442 /**
5443  * @brief Get field sdu_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5444  * @param event packet
5445  * @return sdu_interval
5446  * @note: btstack_type 3
5447  */
5448 static inline uint32_t hci_subevent_le_biginfo_advertising_report_get_sdu_interval(const uint8_t * event){
5449     return little_endian_read_24(event, 14);
5450 }
5451 /**
5452  * @brief Get field max_sdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5453  * @param event packet
5454  * @return max_sdu
5455  * @note: btstack_type 2
5456  */
5457 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_sdu(const uint8_t * event){
5458     return little_endian_read_16(event, 17);
5459 }
5460 /**
5461  * @brief Get field phy from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5462  * @param event packet
5463  * @return phy
5464  * @note: btstack_type 1
5465  */
5466 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_phy(const uint8_t * event){
5467     return event[19];
5468 }
5469 /**
5470  * @brief Get field framing from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5471  * @param event packet
5472  * @return framing
5473  * @note: btstack_type 1
5474  */
5475 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_framing(const uint8_t * event){
5476     return event[20];
5477 }
5478 /**
5479  * @brief Get field encryption from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5480  * @param event packet
5481  * @return encryption
5482  * @note: btstack_type 1
5483  */
5484 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_encryption(const uint8_t * event){
5485     return event[21];
5486 }
5487 
5488 /**
5489  * @brief Get field status from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5490  * @param event packet
5491  * @return status
5492  * @note: btstack_type 1
5493  */
5494 static inline uint8_t hci_subevent_le_subrate_change_get_status(const uint8_t * event){
5495     return event[3];
5496 }
5497 /**
5498  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5499  * @param event packet
5500  * @return connection_handle
5501  * @note: btstack_type H
5502  */
5503 static inline hci_con_handle_t hci_subevent_le_subrate_change_get_connection_handle(const uint8_t * event){
5504     return little_endian_read_16(event, 4);
5505 }
5506 /**
5507  * @brief Get field subrate_factor from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5508  * @param event packet
5509  * @return subrate_factor
5510  * @note: btstack_type 2
5511  */
5512 static inline uint16_t hci_subevent_le_subrate_change_get_subrate_factor(const uint8_t * event){
5513     return little_endian_read_16(event, 6);
5514 }
5515 /**
5516  * @brief Get field peripheral_latency from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5517  * @param event packet
5518  * @return peripheral_latency
5519  * @note: btstack_type 2
5520  */
5521 static inline uint16_t hci_subevent_le_subrate_change_get_peripheral_latency(const uint8_t * event){
5522     return little_endian_read_16(event, 8);
5523 }
5524 /**
5525  * @brief Get field continuation_number from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5526  * @param event packet
5527  * @return continuation_number
5528  * @note: btstack_type 2
5529  */
5530 static inline uint16_t hci_subevent_le_subrate_change_get_continuation_number(const uint8_t * event){
5531     return little_endian_read_16(event, 10);
5532 }
5533 /**
5534  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5535  * @param event packet
5536  * @return supervision_timeout
5537  * @note: btstack_type 2
5538  */
5539 static inline uint16_t hci_subevent_le_subrate_change_get_supervision_timeout(const uint8_t * event){
5540     return little_endian_read_16(event, 12);
5541 }
5542 
5543 /**
5544  * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
5545  * @param event packet
5546  * @return advertisement_handle
5547  * @note: btstack_type 1
5548  */
5549 static inline uint8_t gap_subevent_advertising_set_installed_get_advertisement_handle(const uint8_t * event){
5550     return event[3];
5551 }
5552 /**
5553  * @brief Get field status from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
5554  * @param event packet
5555  * @return status
5556  * @note: btstack_type 1
5557  */
5558 static inline uint8_t gap_subevent_advertising_set_installed_get_status(const uint8_t * event){
5559     return event[4];
5560 }
5561 /**
5562  * @brief Get field selected_tx_power from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
5563  * @param event packet
5564  * @return selected_tx_power
5565  * @note: btstack_type 1
5566  */
5567 static inline uint8_t gap_subevent_advertising_set_installed_get_selected_tx_power(const uint8_t * event){
5568     return event[5];
5569 }
5570 
5571 /**
5572  * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_REMOVED
5573  * @param event packet
5574  * @return advertisement_handle
5575  * @note: btstack_type 1
5576  */
5577 static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_handle(const uint8_t * event){
5578     return event[3];
5579 }
5580 
5581 /**
5582  * @brief Get field status from event GAP_SUBEVENT_BIG_CREATED
5583  * @param event packet
5584  * @return status
5585  * @note: btstack_type 1
5586  */
5587 static inline uint8_t gap_subevent_big_created_get_status(const uint8_t * event){
5588     return event[3];
5589 }
5590 /**
5591  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_CREATED
5592  * @param event packet
5593  * @return big_handle
5594  * @note: btstack_type 1
5595  */
5596 static inline uint8_t gap_subevent_big_created_get_big_handle(const uint8_t * event){
5597     return event[4];
5598 }
5599 /**
5600  * @brief Get field num_bis from event GAP_SUBEVENT_BIG_CREATED
5601  * @param event packet
5602  * @return num_bis
5603  * @note: btstack_type 1
5604  */
5605 static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event){
5606     return event[5];
5607 }
5608 /**
5609  * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_CREATED
5610  * @param event packet
5611  * @param index
5612  * @return bis_con_handles
5613  * @note: btstack_type C
5614  */
5615 static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
5616     return little_endian_read_16(event, 6 + (2 * index));
5617 }
5618 
5619 /**
5620  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_TERMINATED
5621  * @param event packet
5622  * @return big_handle
5623  * @note: btstack_type 1
5624  */
5625 static inline uint8_t gap_subevent_big_terminated_get_big_handle(const uint8_t * event){
5626     return event[3];
5627 }
5628 
5629 /**
5630  * @brief Get field status from event GAP_SUBEVENT_BIG_SYNC_CREATED
5631  * @param event packet
5632  * @return status
5633  * @note: btstack_type 1
5634  */
5635 static inline uint8_t gap_subevent_big_sync_created_get_status(const uint8_t * event){
5636     return event[3];
5637 }
5638 /**
5639  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_CREATED
5640  * @param event packet
5641  * @return big_handle
5642  * @note: btstack_type 1
5643  */
5644 static inline uint8_t gap_subevent_big_sync_created_get_big_handle(const uint8_t * event){
5645     return event[4];
5646 }
5647 /**
5648  * @brief Get field num_bis from event GAP_SUBEVENT_BIG_SYNC_CREATED
5649  * @param event packet
5650  * @return num_bis
5651  * @note: btstack_type 1
5652  */
5653 static inline uint8_t gap_subevent_big_sync_created_get_num_bis(const uint8_t * event){
5654     return event[5];
5655 }
5656 /**
5657  * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_SYNC_CREATED
5658  * @param event packet
5659  * @param index
5660  * @return bis_con_handles
5661  * @note: btstack_type C
5662  */
5663 static inline uint16_t gap_subevent_big_sync_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
5664     return little_endian_read_16(event, 6 + (2 * index));
5665 }
5666 
5667 /**
5668  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_STOPPED
5669  * @param event packet
5670  * @return big_handle
5671  * @note: btstack_type 1
5672  */
5673 static inline uint8_t gap_subevent_big_sync_stopped_get_big_handle(const uint8_t * event){
5674     return event[3];
5675 }
5676 
5677 /**
5678  * @brief Get field status from event GAP_SUBEVENT_CIG_CREATED
5679  * @param event packet
5680  * @return status
5681  * @note: btstack_type 1
5682  */
5683 static inline uint8_t gap_subevent_cig_created_get_status(const uint8_t * event){
5684     return event[3];
5685 }
5686 /**
5687  * @brief Get field cig_id from event GAP_SUBEVENT_CIG_CREATED
5688  * @param event packet
5689  * @return cig_id
5690  * @note: btstack_type 1
5691  */
5692 static inline uint8_t gap_subevent_cig_created_get_cig_id(const uint8_t * event){
5693     return event[4];
5694 }
5695 /**
5696  * @brief Get field num_cis from event GAP_SUBEVENT_CIG_CREATED
5697  * @param event packet
5698  * @return num_cis
5699  * @note: btstack_type 1
5700  */
5701 static inline uint8_t gap_subevent_cig_created_get_num_cis(const uint8_t * event){
5702     return event[5];
5703 }
5704 /**
5705  * @brief Get element of array field cis_con_handles from event GAP_SUBEVENT_CIG_CREATED
5706  * @param event packet
5707  * @param index
5708  * @return cis_con_handles
5709  * @note: btstack_type C
5710  */
5711 static inline uint16_t gap_subevent_cig_created_get_cis_con_handles(const uint8_t * event, uint8_t index){
5712     return little_endian_read_16(event, 6 + (2 * index));
5713 }
5714 
5715 /**
5716  * @brief Get field status from event GAP_SUBEVENT_CIS_CREATED
5717  * @param event packet
5718  * @return status
5719  * @note: btstack_type 1
5720  */
5721 static inline uint8_t gap_subevent_cis_created_get_status(const uint8_t * event){
5722     return event[3];
5723 }
5724 /**
5725  * @brief Get field cig_id from event GAP_SUBEVENT_CIS_CREATED
5726  * @param event packet
5727  * @return cig_id
5728  * @note: btstack_type 1
5729  */
5730 static inline uint8_t gap_subevent_cis_created_get_cig_id(const uint8_t * event){
5731     return event[4];
5732 }
5733 /**
5734  * @brief Get field cis_con_handle from event GAP_SUBEVENT_CIS_CREATED
5735  * @param event packet
5736  * @return cis_con_handle
5737  * @note: btstack_type H
5738  */
5739 static inline hci_con_handle_t gap_subevent_cis_created_get_cis_con_handle(const uint8_t * event){
5740     return little_endian_read_16(event, 5);
5741 }
5742 
5743 /**
5744  * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
5745  * @param event packet
5746  * @return acl_handle
5747  * @note: btstack_type H
5748  */
5749 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){
5750     return little_endian_read_16(event, 3);
5751 }
5752 /**
5753  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
5754  * @param event packet
5755  * @return status
5756  * @note: btstack_type 1
5757  */
5758 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){
5759     return event[5];
5760 }
5761 /**
5762  * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
5763  * @param event packet
5764  * @param Pointer to storage for bd_addr
5765  * @note: btstack_type B
5766  */
5767 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5768     reverse_bytes(&event[6], bd_addr, 6);
5769 }
5770 
5771 /**
5772  * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE
5773  * @param event packet
5774  * @return acl_handle
5775  * @note: btstack_type H
5776  */
5777 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){
5778     return little_endian_read_16(event, 3);
5779 }
5780 
5781 /**
5782  * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
5783  * @param event packet
5784  * @return acl_handle
5785  * @note: btstack_type H
5786  */
5787 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){
5788     return little_endian_read_16(event, 3);
5789 }
5790 /**
5791  * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
5792  * @param event packet
5793  * @return status
5794  * @note: btstack_type 1
5795  */
5796 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){
5797     return event[5];
5798 }
5799 /**
5800  * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
5801  * @param event packet
5802  * @return sco_handle
5803  * @note: btstack_type H
5804  */
5805 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){
5806     return little_endian_read_16(event, 6);
5807 }
5808 
5809 /**
5810  * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
5811  * @param event packet
5812  * @return acl_handle
5813  * @note: btstack_type H
5814  */
5815 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){
5816     return little_endian_read_16(event, 3);
5817 }
5818 /**
5819  * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
5820  * @param event packet
5821  * @return sco_handle
5822  * @note: btstack_type H
5823  */
5824 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){
5825     return little_endian_read_16(event, 5);
5826 }
5827 
5828 /**
5829  * @brief Get field acl_handle from event HSP_SUBEVENT_RING
5830  * @param event packet
5831  * @return acl_handle
5832  * @note: btstack_type H
5833  */
5834 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){
5835     return little_endian_read_16(event, 3);
5836 }
5837 
5838 /**
5839  * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
5840  * @param event packet
5841  * @return acl_handle
5842  * @note: btstack_type H
5843  */
5844 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){
5845     return little_endian_read_16(event, 3);
5846 }
5847 /**
5848  * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
5849  * @param event packet
5850  * @return gain
5851  * @note: btstack_type 1
5852  */
5853 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){
5854     return event[5];
5855 }
5856 
5857 /**
5858  * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
5859  * @param event packet
5860  * @return acl_handle
5861  * @note: btstack_type H
5862  */
5863 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){
5864     return little_endian_read_16(event, 3);
5865 }
5866 /**
5867  * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
5868  * @param event packet
5869  * @return gain
5870  * @note: btstack_type 1
5871  */
5872 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){
5873     return event[5];
5874 }
5875 
5876 /**
5877  * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND
5878  * @param event packet
5879  * @return acl_handle
5880  * @note: btstack_type H
5881  */
5882 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){
5883     return little_endian_read_16(event, 3);
5884 }
5885 /**
5886  * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND
5887  * @param event packet
5888  * @return value_length
5889  * @note: btstack_type J
5890  */
5891 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){
5892     return event[5];
5893 }
5894 /**
5895  * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND
5896  * @param event packet
5897  * @return value
5898  * @note: btstack_type V
5899  */
5900 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){
5901     return &event[6];
5902 }
5903 
5904 /**
5905  * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION
5906  * @param event packet
5907  * @return acl_handle
5908  * @note: btstack_type H
5909  */
5910 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){
5911     return little_endian_read_16(event, 3);
5912 }
5913 /**
5914  * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION
5915  * @param event packet
5916  * @return value_length
5917  * @note: btstack_type J
5918  */
5919 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){
5920     return event[5];
5921 }
5922 /**
5923  * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION
5924  * @param event packet
5925  * @return value
5926  * @note: btstack_type V
5927  */
5928 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){
5929     return &event[6];
5930 }
5931 
5932 /**
5933  * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED
5934  * @param event packet
5935  * @return acl_handle
5936  * @note: btstack_type H
5937  */
5938 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){
5939     return little_endian_read_16(event, 3);
5940 }
5941 
5942 /**
5943  * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
5944  * @param event packet
5945  * @return acl_handle
5946  * @note: btstack_type H
5947  */
5948 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){
5949     return little_endian_read_16(event, 3);
5950 }
5951 /**
5952  * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
5953  * @param event packet
5954  * @return status
5955  * @note: btstack_type 1
5956  */
5957 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){
5958     return event[5];
5959 }
5960 /**
5961  * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
5962  * @param event packet
5963  * @param Pointer to storage for bd_addr
5964  * @note: btstack_type B
5965  */
5966 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5967     reverse_bytes(&event[6], bd_addr, 6);
5968 }
5969 
5970 /**
5971  * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED
5972  * @param event packet
5973  * @return acl_handle
5974  * @note: btstack_type H
5975  */
5976 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){
5977     return little_endian_read_16(event, 3);
5978 }
5979 
5980 /**
5981  * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5982  * @param event packet
5983  * @return acl_handle
5984  * @note: btstack_type H
5985  */
5986 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){
5987     return little_endian_read_16(event, 3);
5988 }
5989 /**
5990  * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5991  * @param event packet
5992  * @return status
5993  * @note: btstack_type 1
5994  */
5995 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){
5996     return event[5];
5997 }
5998 /**
5999  * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6000  * @param event packet
6001  * @return sco_handle
6002  * @note: btstack_type H
6003  */
6004 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){
6005     return little_endian_read_16(event, 6);
6006 }
6007 /**
6008  * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6009  * @param event packet
6010  * @param Pointer to storage for bd_addr
6011  * @note: btstack_type B
6012  */
6013 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6014     reverse_bytes(&event[8], bd_addr, 6);
6015 }
6016 /**
6017  * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6018  * @param event packet
6019  * @return negotiated_codec
6020  * @note: btstack_type 1
6021  */
6022 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
6023     return event[14];
6024 }
6025 
6026 /**
6027  * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
6028  * @param event packet
6029  * @return acl_handle
6030  * @note: btstack_type H
6031  */
6032 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){
6033     return little_endian_read_16(event, 3);
6034 }
6035 /**
6036  * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
6037  * @param event packet
6038  * @return sco_handle
6039  * @note: btstack_type H
6040  */
6041 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){
6042     return little_endian_read_16(event, 5);
6043 }
6044 
6045 /**
6046  * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE
6047  * @param event packet
6048  * @return acl_handle
6049  * @note: btstack_type H
6050  */
6051 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){
6052     return little_endian_read_16(event, 3);
6053 }
6054 /**
6055  * @brief Get field status from event HFP_SUBEVENT_COMPLETE
6056  * @param event packet
6057  * @return status
6058  * @note: btstack_type 1
6059  */
6060 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){
6061     return event[5];
6062 }
6063 
6064 /**
6065  * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6066  * @param event packet
6067  * @return acl_handle
6068  * @note: btstack_type H
6069  */
6070 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){
6071     return little_endian_read_16(event, 3);
6072 }
6073 /**
6074  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6075  * @param event packet
6076  * @return indicator_index
6077  * @note: btstack_type 1
6078  */
6079 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){
6080     return event[5];
6081 }
6082 /**
6083  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6084  * @param event packet
6085  * @return indicator_min_range
6086  * @note: btstack_type 1
6087  */
6088 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){
6089     return event[6];
6090 }
6091 /**
6092  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6093  * @param event packet
6094  * @return indicator_max_range
6095  * @note: btstack_type 1
6096  */
6097 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){
6098     return event[7];
6099 }
6100 /**
6101  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6102  * @param event packet
6103  * @return indicator_name
6104  * @note: btstack_type T
6105  */
6106 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){
6107     return (const char *) &event[8];
6108 }
6109 
6110 /**
6111  * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6112  * @param event packet
6113  * @return acl_handle
6114  * @note: btstack_type H
6115  */
6116 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){
6117     return little_endian_read_16(event, 3);
6118 }
6119 /**
6120  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6121  * @param event packet
6122  * @return indicator_index
6123  * @note: btstack_type 1
6124  */
6125 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){
6126     return event[5];
6127 }
6128 /**
6129  * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6130  * @param event packet
6131  * @return indicator_status
6132  * @note: btstack_type 1
6133  */
6134 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){
6135     return event[6];
6136 }
6137 /**
6138  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6139  * @param event packet
6140  * @return indicator_min_range
6141  * @note: btstack_type 1
6142  */
6143 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){
6144     return event[7];
6145 }
6146 /**
6147  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6148  * @param event packet
6149  * @return indicator_max_range
6150  * @note: btstack_type 1
6151  */
6152 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){
6153     return event[8];
6154 }
6155 /**
6156  * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6157  * @param event packet
6158  * @return indicator_mandatory
6159  * @note: btstack_type 1
6160  */
6161 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){
6162     return event[9];
6163 }
6164 /**
6165  * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6166  * @param event packet
6167  * @return indicator_enabled
6168  * @note: btstack_type 1
6169  */
6170 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){
6171     return event[10];
6172 }
6173 /**
6174  * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6175  * @param event packet
6176  * @return indicator_status_changed
6177  * @note: btstack_type 1
6178  */
6179 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){
6180     return event[11];
6181 }
6182 /**
6183  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6184  * @param event packet
6185  * @return indicator_name
6186  * @note: btstack_type T
6187  */
6188 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){
6189     return (const char *) &event[12];
6190 }
6191 
6192 /**
6193  * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6194  * @param event packet
6195  * @return acl_handle
6196  * @note: btstack_type H
6197  */
6198 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){
6199     return little_endian_read_16(event, 3);
6200 }
6201 /**
6202  * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6203  * @param event packet
6204  * @return network_operator_mode
6205  * @note: btstack_type 1
6206  */
6207 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){
6208     return event[5];
6209 }
6210 /**
6211  * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6212  * @param event packet
6213  * @return network_operator_format
6214  * @note: btstack_type 1
6215  */
6216 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){
6217     return event[6];
6218 }
6219 /**
6220  * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6221  * @param event packet
6222  * @return network_operator_name
6223  * @note: btstack_type T
6224  */
6225 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){
6226     return (const char *) &event[7];
6227 }
6228 
6229 /**
6230  * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
6231  * @param event packet
6232  * @return acl_handle
6233  * @note: btstack_type H
6234  */
6235 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){
6236     return little_endian_read_16(event, 3);
6237 }
6238 /**
6239  * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
6240  * @param event packet
6241  * @return error
6242  * @note: btstack_type 1
6243  */
6244 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){
6245     return event[5];
6246 }
6247 
6248 /**
6249  * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING
6250  * @param event packet
6251  * @return acl_handle
6252  * @note: btstack_type H
6253  */
6254 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){
6255     return little_endian_read_16(event, 3);
6256 }
6257 
6258 /**
6259  * @brief Get field acl_handle from event HFP_SUBEVENT_RING
6260  * @param event packet
6261  * @return acl_handle
6262  * @note: btstack_type H
6263  */
6264 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){
6265     return little_endian_read_16(event, 3);
6266 }
6267 
6268 /**
6269  * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING
6270  * @param event packet
6271  * @return acl_handle
6272  * @note: btstack_type H
6273  */
6274 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){
6275     return little_endian_read_16(event, 3);
6276 }
6277 
6278 /**
6279  * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
6280  * @param event packet
6281  * @return acl_handle
6282  * @note: btstack_type H
6283  */
6284 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){
6285     return little_endian_read_16(event, 3);
6286 }
6287 /**
6288  * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
6289  * @param event packet
6290  * @return number
6291  * @note: btstack_type T
6292  */
6293 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){
6294     return (const char *) &event[5];
6295 }
6296 
6297 /**
6298  * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG
6299  * @param event packet
6300  * @return acl_handle
6301  * @note: btstack_type H
6302  */
6303 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){
6304     return little_endian_read_16(event, 3);
6305 }
6306 
6307 /**
6308  * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
6309  * @param event packet
6310  * @return acl_handle
6311  * @note: btstack_type H
6312  */
6313 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){
6314     return little_endian_read_16(event, 3);
6315 }
6316 /**
6317  * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
6318  * @param event packet
6319  * @return number
6320  * @note: btstack_type T
6321  */
6322 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){
6323     return (const char *) &event[5];
6324 }
6325 
6326 /**
6327  * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
6328  * @param event packet
6329  * @return acl_handle
6330  * @note: btstack_type H
6331  */
6332 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){
6333     return little_endian_read_16(event, 3);
6334 }
6335 /**
6336  * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
6337  * @param event packet
6338  * @return dtmf
6339  * @note: btstack_type T
6340  */
6341 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){
6342     return (const char *) &event[5];
6343 }
6344 
6345 /**
6346  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED
6347  * @param event packet
6348  * @return acl_handle
6349  * @note: btstack_type H
6350  */
6351 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){
6352     return little_endian_read_16(event, 3);
6353 }
6354 
6355 /**
6356  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED
6357  * @param event packet
6358  * @return acl_handle
6359  * @note: btstack_type H
6360  */
6361 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){
6362     return little_endian_read_16(event, 3);
6363 }
6364 
6365 /**
6366  * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL
6367  * @param event packet
6368  * @return acl_handle
6369  * @note: btstack_type H
6370  */
6371 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){
6372     return little_endian_read_16(event, 3);
6373 }
6374 
6375 /**
6376  * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME
6377  * @param event packet
6378  * @return acl_handle
6379  * @note: btstack_type H
6380  */
6381 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){
6382     return little_endian_read_16(event, 3);
6383 }
6384 /**
6385  * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME
6386  * @param event packet
6387  * @return gain
6388  * @note: btstack_type 1
6389  */
6390 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){
6391     return event[5];
6392 }
6393 
6394 /**
6395  * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME
6396  * @param event packet
6397  * @return acl_handle
6398  * @note: btstack_type H
6399  */
6400 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){
6401     return little_endian_read_16(event, 3);
6402 }
6403 /**
6404  * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME
6405  * @param event packet
6406  * @return gain
6407  * @note: btstack_type 1
6408  */
6409 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){
6410     return event[5];
6411 }
6412 
6413 /**
6414  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6415  * @param event packet
6416  * @return acl_handle
6417  * @note: btstack_type H
6418  */
6419 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){
6420     return little_endian_read_16(event, 3);
6421 }
6422 /**
6423  * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6424  * @param event packet
6425  * @return type
6426  * @note: btstack_type 1
6427  */
6428 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
6429     return event[5];
6430 }
6431 /**
6432  * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6433  * @param event packet
6434  * @return number_length
6435  * @note: btstack_type J
6436  */
6437 static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){
6438     return event[6];
6439 }
6440 /**
6441  * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6442  * @param event packet
6443  * @return number
6444  * @note: btstack_type V
6445  */
6446 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
6447     return &event[7];
6448 }
6449 /**
6450  * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6451  * @param event packet
6452  * @return alpha_length
6453  * @note: btstack_type J
6454  */
6455 static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){
6456     return event[7u + event[6]];
6457 }
6458 /**
6459  * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6460  * @param event packet
6461  * @return alpha
6462  * @note: btstack_type V
6463  */
6464 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){
6465     return &event[7u + event[6] + 1u];
6466 }
6467 
6468 /**
6469  * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6470  * @param event packet
6471  * @return acl_handle
6472  * @note: btstack_type H
6473  */
6474 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){
6475     return little_endian_read_16(event, 3);
6476 }
6477 /**
6478  * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6479  * @param event packet
6480  * @return type
6481  * @note: btstack_type 1
6482  */
6483 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
6484     return event[5];
6485 }
6486 /**
6487  * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6488  * @param event packet
6489  * @return number_length
6490  * @note: btstack_type J
6491  */
6492 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){
6493     return event[6];
6494 }
6495 /**
6496  * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6497  * @param event packet
6498  * @return number
6499  * @note: btstack_type V
6500  */
6501 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
6502     return &event[7];
6503 }
6504 /**
6505  * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6506  * @param event packet
6507  * @return alpha_length
6508  * @note: btstack_type J
6509  */
6510 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){
6511     return event[7u + event[6]];
6512 }
6513 /**
6514  * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6515  * @param event packet
6516  * @return alpha
6517  * @note: btstack_type V
6518  */
6519 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){
6520     return &event[7u + event[6] + 1u];
6521 }
6522 
6523 /**
6524  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6525  * @param event packet
6526  * @return acl_handle
6527  * @note: btstack_type H
6528  */
6529 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){
6530     return little_endian_read_16(event, 3);
6531 }
6532 /**
6533  * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6534  * @param event packet
6535  * @return clcc_idx
6536  * @note: btstack_type 1
6537  */
6538 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){
6539     return event[5];
6540 }
6541 /**
6542  * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6543  * @param event packet
6544  * @return clcc_dir
6545  * @note: btstack_type 1
6546  */
6547 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){
6548     return event[6];
6549 }
6550 /**
6551  * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6552  * @param event packet
6553  * @return clcc_status
6554  * @note: btstack_type 1
6555  */
6556 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){
6557     return event[7];
6558 }
6559 /**
6560  * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6561  * @param event packet
6562  * @return clcc_mode
6563  * @note: btstack_type 1
6564  */
6565 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){
6566     return event[8];
6567 }
6568 /**
6569  * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6570  * @param event packet
6571  * @return clcc_mpty
6572  * @note: btstack_type 1
6573  */
6574 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){
6575     return event[9];
6576 }
6577 /**
6578  * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6579  * @param event packet
6580  * @return bnip_type
6581  * @note: btstack_type 1
6582  */
6583 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){
6584     return event[10];
6585 }
6586 /**
6587  * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6588  * @param event packet
6589  * @return bnip_number
6590  * @note: btstack_type T
6591  */
6592 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){
6593     return (const char *) &event[11];
6594 }
6595 
6596 /**
6597  * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
6598  * @param event packet
6599  * @return acl_handle
6600  * @note: btstack_type H
6601  */
6602 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){
6603     return little_endian_read_16(event, 3);
6604 }
6605 /**
6606  * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
6607  * @param event packet
6608  * @return status
6609  * @note: btstack_type 1
6610  */
6611 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){
6612     return event[5];
6613 }
6614 /**
6615  * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
6616  * @param event packet
6617  * @return bnip_type
6618  * @note: btstack_type 1
6619  */
6620 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){
6621     return event[6];
6622 }
6623 /**
6624  * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
6625  * @param event packet
6626  * @return bnip_number
6627  * @note: btstack_type T
6628  */
6629 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){
6630     return (const char *) &event[7];
6631 }
6632 
6633 /**
6634  * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
6635  * @param event packet
6636  * @return acl_handle
6637  * @note: btstack_type H
6638  */
6639 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){
6640     return little_endian_read_16(event, 3);
6641 }
6642 /**
6643  * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
6644  * @param event packet
6645  * @return value
6646  * @note: btstack_type T
6647  */
6648 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){
6649     return (const char *) &event[5];
6650 }
6651 
6652 /**
6653  * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT
6654  * @param event packet
6655  * @return acl_handle
6656  * @note: btstack_type H
6657  */
6658 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){
6659     return little_endian_read_16(event, 3);
6660 }
6661 /**
6662  * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT
6663  * @param event packet
6664  * @return command
6665  * @note: btstack_type T
6666  */
6667 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){
6668     return (const char *) &event[5];
6669 }
6670 
6671 /**
6672  * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED
6673  * @param event packet
6674  * @return acl_handle
6675  * @note: btstack_type H
6676  */
6677 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){
6678     return little_endian_read_16(event, 3);
6679 }
6680 /**
6681  * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED
6682  * @param event packet
6683  * @return command
6684  * @note: btstack_type T
6685  */
6686 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){
6687     return (const char *) &event[5];
6688 }
6689 
6690 /**
6691  * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE
6692  * @param event packet
6693  * @return acl_handle
6694  * @note: btstack_type H
6695  */
6696 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){
6697     return little_endian_read_16(event, 3);
6698 }
6699 /**
6700  * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE
6701  * @param event packet
6702  * @return status
6703  * @note: btstack_type 1
6704  */
6705 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
6706     return event[5];
6707 }
6708 
6709 /**
6710  * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
6711  * @param event packet
6712  * @return acl_handle
6713  * @note: btstack_type H
6714  */
6715 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){
6716     return little_endian_read_16(event, 3);
6717 }
6718 /**
6719  * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
6720  * @param event packet
6721  * @return status
6722  * @note: btstack_type 1
6723  */
6724 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){
6725     return event[5];
6726 }
6727 /**
6728  * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
6729  * @param event packet
6730  * @return enhanced
6731  * @note: btstack_type 1
6732  */
6733 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){
6734     return event[6];
6735 }
6736 
6737 /**
6738  * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED
6739  * @param event packet
6740  * @return acl_handle
6741  * @note: btstack_type H
6742  */
6743 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){
6744     return little_endian_read_16(event, 3);
6745 }
6746 /**
6747  * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED
6748  * @param event packet
6749  * @return status
6750  * @note: btstack_type 1
6751  */
6752 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){
6753     return event[5];
6754 }
6755 
6756 /**
6757  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
6758  * @param event packet
6759  * @return acl_handle
6760  * @note: btstack_type H
6761  */
6762 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){
6763     return little_endian_read_16(event, 3);
6764 }
6765 /**
6766  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
6767  * @param event packet
6768  * @return status
6769  * @note: btstack_type 1
6770  */
6771 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){
6772     return event[5];
6773 }
6774 
6775 /**
6776  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT
6777  * @param event packet
6778  * @return acl_handle
6779  * @note: btstack_type H
6780  */
6781 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){
6782     return little_endian_read_16(event, 3);
6783 }
6784 /**
6785  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT
6786  * @param event packet
6787  * @return status
6788  * @note: btstack_type 1
6789  */
6790 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){
6791     return event[5];
6792 }
6793 
6794 /**
6795  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND
6796  * @param event packet
6797  * @return acl_handle
6798  * @note: btstack_type H
6799  */
6800 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){
6801     return little_endian_read_16(event, 3);
6802 }
6803 /**
6804  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND
6805  * @param event packet
6806  * @return status
6807  * @note: btstack_type 1
6808  */
6809 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){
6810     return event[5];
6811 }
6812 
6813 /**
6814  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT
6815  * @param event packet
6816  * @return acl_handle
6817  * @note: btstack_type H
6818  */
6819 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){
6820     return little_endian_read_16(event, 3);
6821 }
6822 /**
6823  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT
6824  * @param event packet
6825  * @return status
6826  * @note: btstack_type 1
6827  */
6828 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){
6829     return event[5];
6830 }
6831 
6832 /**
6833  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT
6834  * @param event packet
6835  * @return acl_handle
6836  * @note: btstack_type H
6837  */
6838 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){
6839     return little_endian_read_16(event, 3);
6840 }
6841 /**
6842  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT
6843  * @param event packet
6844  * @return status
6845  * @note: btstack_type 1
6846  */
6847 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){
6848     return event[5];
6849 }
6850 
6851 /**
6852  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6853  * @param event packet
6854  * @return acl_handle
6855  * @note: btstack_type H
6856  */
6857 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){
6858     return little_endian_read_16(event, 3);
6859 }
6860 /**
6861  * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6862  * @param event packet
6863  * @return text_id
6864  * @note: btstack_type 2
6865  */
6866 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){
6867     return little_endian_read_16(event, 5);
6868 }
6869 /**
6870  * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6871  * @param event packet
6872  * @return text_type
6873  * @note: btstack_type 1
6874  */
6875 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){
6876     return event[7];
6877 }
6878 /**
6879  * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6880  * @param event packet
6881  * @return text_operation
6882  * @note: btstack_type 1
6883  */
6884 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){
6885     return event[8];
6886 }
6887 /**
6888  * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6889  * @param event packet
6890  * @return text_length
6891  * @note: btstack_type L
6892  */
6893 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){
6894     return little_endian_read_16(event, 9);
6895 }
6896 /**
6897  * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6898  * @param event packet
6899  * @return text
6900  * @note: btstack_type V
6901  */
6902 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){
6903     return &event[11];
6904 }
6905 
6906 /**
6907  * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
6908  * @param event packet
6909  * @return acl_handle
6910  * @note: btstack_type H
6911  */
6912 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){
6913     return little_endian_read_16(event, 3);
6914 }
6915 /**
6916  * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
6917  * @param event packet
6918  * @return status
6919  * @note: btstack_type 1
6920  */
6921 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){
6922     return event[5];
6923 }
6924 
6925 /**
6926  * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR
6927  * @param event packet
6928  * @return acl_handle
6929  * @note: btstack_type H
6930  */
6931 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){
6932     return little_endian_read_16(event, 3);
6933 }
6934 /**
6935  * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR
6936  * @param event packet
6937  * @return uuid
6938  * @note: btstack_type 2
6939  */
6940 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){
6941     return little_endian_read_16(event, 5);
6942 }
6943 /**
6944  * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR
6945  * @param event packet
6946  * @return value
6947  * @note: btstack_type 1
6948  */
6949 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){
6950     return event[7];
6951 }
6952 
6953 /**
6954  * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_COMMAND
6955  * @param event packet
6956  * @return acl_handle
6957  * @note: btstack_type H
6958  */
6959 static inline hci_con_handle_t hfp_subevent_custom_at_command_get_acl_handle(const uint8_t * event){
6960     return little_endian_read_16(event, 3);
6961 }
6962 /**
6963  * @brief Get field command_id from event HFP_SUBEVENT_CUSTOM_AT_COMMAND
6964  * @param event packet
6965  * @return command_id
6966  * @note: btstack_type 2
6967  */
6968 static inline uint16_t hfp_subevent_custom_at_command_get_command_id(const uint8_t * event){
6969     return little_endian_read_16(event, 5);
6970 }
6971 /**
6972  * @brief Get field command_string from event HFP_SUBEVENT_CUSTOM_AT_COMMAND
6973  * @param event packet
6974  * @return command_string
6975  * @note: btstack_type T
6976  */
6977 static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){
6978     return (const char *) &event[7];
6979 }
6980 
6981 #ifdef ENABLE_BLE
6982 /**
6983  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
6984  * @param event packet
6985  * @return handle
6986  * @note: btstack_type H
6987  */
6988 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){
6989     return little_endian_read_16(event, 3);
6990 }
6991 #endif
6992 
6993 #ifdef ENABLE_BLE
6994 /**
6995  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
6996  * @param event packet
6997  * @return handle
6998  * @note: btstack_type H
6999  */
7000 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){
7001     return little_endian_read_16(event, 3);
7002 }
7003 /**
7004  * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
7005  * @param event packet
7006  * @return attribute_id
7007  * @note: btstack_type 2
7008  */
7009 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){
7010     return little_endian_read_16(event, 5);
7011 }
7012 /**
7013  * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
7014  * @param event packet
7015  * @return text
7016  * @note: btstack_type T
7017  */
7018 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){
7019     return (const char *) &event[7];
7020 }
7021 #endif
7022 
7023 #ifdef ENABLE_BLE
7024 /**
7025  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED
7026  * @param event packet
7027  * @return handle
7028  * @note: btstack_type H
7029  */
7030 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){
7031     return little_endian_read_16(event, 3);
7032 }
7033 #endif
7034 
7035 /**
7036  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7037  * @param event packet
7038  * @return avdtp_cid
7039  * @note: btstack_type 2
7040  */
7041 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){
7042     return little_endian_read_16(event, 3);
7043 }
7044 /**
7045  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7046  * @param event packet
7047  * @return local_seid
7048  * @note: btstack_type 1
7049  */
7050 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){
7051     return event[5];
7052 }
7053 /**
7054  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7055  * @param event packet
7056  * @return is_initiator
7057  * @note: btstack_type 1
7058  */
7059 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){
7060     return event[6];
7061 }
7062 /**
7063  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7064  * @param event packet
7065  * @return signal_identifier
7066  * @note: btstack_type 1
7067  */
7068 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){
7069     return event[7];
7070 }
7071 
7072 /**
7073  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT
7074  * @param event packet
7075  * @return avdtp_cid
7076  * @note: btstack_type 2
7077  */
7078 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){
7079     return little_endian_read_16(event, 3);
7080 }
7081 /**
7082  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT
7083  * @param event packet
7084  * @return local_seid
7085  * @note: btstack_type 1
7086  */
7087 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){
7088     return event[5];
7089 }
7090 /**
7091  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT
7092  * @param event packet
7093  * @return is_initiator
7094  * @note: btstack_type 1
7095  */
7096 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){
7097     return event[6];
7098 }
7099 /**
7100  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT
7101  * @param event packet
7102  * @return signal_identifier
7103  * @note: btstack_type 1
7104  */
7105 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){
7106     return event[7];
7107 }
7108 
7109 /**
7110  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7111  * @param event packet
7112  * @return avdtp_cid
7113  * @note: btstack_type 2
7114  */
7115 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){
7116     return little_endian_read_16(event, 3);
7117 }
7118 /**
7119  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7120  * @param event packet
7121  * @return local_seid
7122  * @note: btstack_type 1
7123  */
7124 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){
7125     return event[5];
7126 }
7127 /**
7128  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7129  * @param event packet
7130  * @return is_initiator
7131  * @note: btstack_type 1
7132  */
7133 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){
7134     return event[6];
7135 }
7136 /**
7137  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7138  * @param event packet
7139  * @return signal_identifier
7140  * @note: btstack_type 1
7141  */
7142 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){
7143     return event[7];
7144 }
7145 
7146 /**
7147  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7148  * @param event packet
7149  * @return avdtp_cid
7150  * @note: btstack_type 2
7151  */
7152 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){
7153     return little_endian_read_16(event, 3);
7154 }
7155 /**
7156  * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7157  * @param event packet
7158  * @param Pointer to storage for bd_addr
7159  * @note: btstack_type B
7160  */
7161 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
7162     reverse_bytes(&event[5], bd_addr, 6);
7163 }
7164 /**
7165  * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7166  * @param event packet
7167  * @return con_handle
7168  * @note: btstack_type 2
7169  */
7170 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){
7171     return little_endian_read_16(event, 11);
7172 }
7173 /**
7174  * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7175  * @param event packet
7176  * @return status
7177  * @note: btstack_type 1
7178  */
7179 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){
7180     return event[13];
7181 }
7182 
7183 /**
7184  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
7185  * @param event packet
7186  * @return avdtp_cid
7187  * @note: btstack_type 2
7188  */
7189 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){
7190     return little_endian_read_16(event, 3);
7191 }
7192 
7193 /**
7194  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
7195  * @param event packet
7196  * @return avdtp_cid
7197  * @note: btstack_type 2
7198  */
7199 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){
7200     return little_endian_read_16(event, 3);
7201 }
7202 /**
7203  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
7204  * @param event packet
7205  * @return remote_seid
7206  * @note: btstack_type 1
7207  */
7208 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){
7209     return event[5];
7210 }
7211 /**
7212  * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
7213  * @param event packet
7214  * @return in_use
7215  * @note: btstack_type 1
7216  */
7217 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){
7218     return event[6];
7219 }
7220 /**
7221  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
7222  * @param event packet
7223  * @return media_type
7224  * @note: btstack_type 1
7225  */
7226 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){
7227     return event[7];
7228 }
7229 /**
7230  * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
7231  * @param event packet
7232  * @return sep_type
7233  * @note: btstack_type 1
7234  */
7235 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){
7236     return event[8];
7237 }
7238 
7239 /**
7240  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7241  * @param event packet
7242  * @return avdtp_cid
7243  * @note: btstack_type 2
7244  */
7245 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){
7246     return little_endian_read_16(event, 3);
7247 }
7248 /**
7249  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7250  * @param event packet
7251  * @return remote_seid
7252  * @note: btstack_type 1
7253  */
7254 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
7255     return event[5];
7256 }
7257 /**
7258  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7259  * @param event packet
7260  * @return media_type
7261  * @note: btstack_type 1
7262  */
7263 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
7264     return event[6];
7265 }
7266 /**
7267  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7268  * @param event packet
7269  * @return sampling_frequency_bitmap
7270  * @note: btstack_type 1
7271  */
7272 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
7273     return event[7];
7274 }
7275 /**
7276  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7277  * @param event packet
7278  * @return channel_mode_bitmap
7279  * @note: btstack_type 1
7280  */
7281 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
7282     return event[8];
7283 }
7284 /**
7285  * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7286  * @param event packet
7287  * @return block_length_bitmap
7288  * @note: btstack_type 1
7289  */
7290 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
7291     return event[9];
7292 }
7293 /**
7294  * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7295  * @param event packet
7296  * @return subbands_bitmap
7297  * @note: btstack_type 1
7298  */
7299 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
7300     return event[10];
7301 }
7302 /**
7303  * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7304  * @param event packet
7305  * @return allocation_method_bitmap
7306  * @note: btstack_type 1
7307  */
7308 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
7309     return event[11];
7310 }
7311 /**
7312  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7313  * @param event packet
7314  * @return min_bitpool_value
7315  * @note: btstack_type 1
7316  */
7317 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
7318     return event[12];
7319 }
7320 /**
7321  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
7322  * @param event packet
7323  * @return max_bitpool_value
7324  * @note: btstack_type 1
7325  */
7326 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
7327     return event[13];
7328 }
7329 
7330 /**
7331  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7332  * @param event packet
7333  * @return avdtp_cid
7334  * @note: btstack_type 2
7335  */
7336 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){
7337     return little_endian_read_16(event, 3);
7338 }
7339 /**
7340  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7341  * @param event packet
7342  * @return remote_seid
7343  * @note: btstack_type 1
7344  */
7345 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){
7346     return event[5];
7347 }
7348 /**
7349  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7350  * @param event packet
7351  * @return media_type
7352  * @note: btstack_type 1
7353  */
7354 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){
7355     return event[6];
7356 }
7357 /**
7358  * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7359  * @param event packet
7360  * @return layer_bitmap
7361  * @note: btstack_type 1
7362  */
7363 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){
7364     return event[7];
7365 }
7366 /**
7367  * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7368  * @param event packet
7369  * @return crc
7370  * @note: btstack_type 1
7371  */
7372 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){
7373     return event[8];
7374 }
7375 /**
7376  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7377  * @param event packet
7378  * @return channel_mode_bitmap
7379  * @note: btstack_type 1
7380  */
7381 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){
7382     return event[9];
7383 }
7384 /**
7385  * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7386  * @param event packet
7387  * @return media_payload_format
7388  * @note: btstack_type 1
7389  */
7390 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){
7391     return event[10];
7392 }
7393 /**
7394  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7395  * @param event packet
7396  * @return sampling_frequency_bitmap
7397  * @note: btstack_type 1
7398  */
7399 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){
7400     return event[11];
7401 }
7402 /**
7403  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7404  * @param event packet
7405  * @return vbr
7406  * @note: btstack_type 1
7407  */
7408 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){
7409     return event[12];
7410 }
7411 /**
7412  * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
7413  * @param event packet
7414  * @return bit_rate_index_bitmap
7415  * @note: btstack_type 2
7416  */
7417 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){
7418     return little_endian_read_16(event, 13);
7419 }
7420 
7421 /**
7422  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7423  * @param event packet
7424  * @return avdtp_cid
7425  * @note: btstack_type 2
7426  */
7427 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){
7428     return little_endian_read_16(event, 3);
7429 }
7430 /**
7431  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7432  * @param event packet
7433  * @return remote_seid
7434  * @note: btstack_type 1
7435  */
7436 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){
7437     return event[5];
7438 }
7439 /**
7440  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7441  * @param event packet
7442  * @return media_type
7443  * @note: btstack_type 1
7444  */
7445 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){
7446     return event[6];
7447 }
7448 /**
7449  * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7450  * @param event packet
7451  * @return object_type_bitmap
7452  * @note: btstack_type 1
7453  */
7454 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){
7455     return event[7];
7456 }
7457 /**
7458  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7459  * @param event packet
7460  * @return sampling_frequency_bitmap
7461  * @note: btstack_type 2
7462  */
7463 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
7464     return little_endian_read_16(event, 8);
7465 }
7466 /**
7467  * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7468  * @param event packet
7469  * @return channels_bitmap
7470  * @note: btstack_type 1
7471  */
7472 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){
7473     return event[10];
7474 }
7475 /**
7476  * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7477  * @param event packet
7478  * @return bit_rate
7479  * @note: btstack_type 3
7480  */
7481 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){
7482     return little_endian_read_24(event, 11);
7483 }
7484 /**
7485  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
7486  * @param event packet
7487  * @return vbr
7488  * @note: btstack_type 1
7489  */
7490 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){
7491     return event[14];
7492 }
7493 
7494 /**
7495  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7496  * @param event packet
7497  * @return avdtp_cid
7498  * @note: btstack_type 2
7499  */
7500 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){
7501     return little_endian_read_16(event, 3);
7502 }
7503 /**
7504  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7505  * @param event packet
7506  * @return remote_seid
7507  * @note: btstack_type 1
7508  */
7509 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){
7510     return event[5];
7511 }
7512 /**
7513  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7514  * @param event packet
7515  * @return media_type
7516  * @note: btstack_type 1
7517  */
7518 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){
7519     return event[6];
7520 }
7521 /**
7522  * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7523  * @param event packet
7524  * @return version
7525  * @note: btstack_type 1
7526  */
7527 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){
7528     return event[7];
7529 }
7530 /**
7531  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7532  * @param event packet
7533  * @return channel_mode_bitmap
7534  * @note: btstack_type 1
7535  */
7536 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){
7537     return event[8];
7538 }
7539 /**
7540  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7541  * @param event packet
7542  * @return sampling_frequency_bitmap
7543  * @note: btstack_type 1
7544  */
7545 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
7546     return event[9];
7547 }
7548 /**
7549  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7550  * @param event packet
7551  * @return vbr
7552  * @note: btstack_type 1
7553  */
7554 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){
7555     return event[10];
7556 }
7557 /**
7558  * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7559  * @param event packet
7560  * @return bit_rate_index_bitmap
7561  * @note: btstack_type 3
7562  */
7563 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){
7564     return little_endian_read_24(event, 11);
7565 }
7566 /**
7567  * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
7568  * @param event packet
7569  * @return maximum_sul
7570  * @note: btstack_type 2
7571  */
7572 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){
7573     return little_endian_read_16(event, 14);
7574 }
7575 
7576 /**
7577  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
7578  * @param event packet
7579  * @return avdtp_cid
7580  * @note: btstack_type 2
7581  */
7582 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){
7583     return little_endian_read_16(event, 3);
7584 }
7585 /**
7586  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
7587  * @param event packet
7588  * @return remote_seid
7589  * @note: btstack_type 1
7590  */
7591 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
7592     return event[5];
7593 }
7594 /**
7595  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
7596  * @param event packet
7597  * @return media_type
7598  * @note: btstack_type 1
7599  */
7600 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
7601     return event[6];
7602 }
7603 /**
7604  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
7605  * @param event packet
7606  * @return media_codec_type
7607  * @note: btstack_type 2
7608  */
7609 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
7610     return little_endian_read_16(event, 7);
7611 }
7612 /**
7613  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
7614  * @param event packet
7615  * @return media_codec_information_len
7616  * @note: btstack_type L
7617  */
7618 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
7619     return little_endian_read_16(event, 9);
7620 }
7621 /**
7622  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
7623  * @param event packet
7624  * @return media_codec_information
7625  * @note: btstack_type V
7626  */
7627 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
7628     return &event[11];
7629 }
7630 
7631 /**
7632  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
7633  * @param event packet
7634  * @return avdtp_cid
7635  * @note: btstack_type 2
7636  */
7637 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){
7638     return little_endian_read_16(event, 3);
7639 }
7640 /**
7641  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
7642  * @param event packet
7643  * @return remote_seid
7644  * @note: btstack_type 1
7645  */
7646 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){
7647     return event[5];
7648 }
7649 
7650 /**
7651  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
7652  * @param event packet
7653  * @return avdtp_cid
7654  * @note: btstack_type 2
7655  */
7656 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){
7657     return little_endian_read_16(event, 3);
7658 }
7659 /**
7660  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
7661  * @param event packet
7662  * @return remote_seid
7663  * @note: btstack_type 1
7664  */
7665 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){
7666     return event[5];
7667 }
7668 
7669 /**
7670  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7671  * @param event packet
7672  * @return avdtp_cid
7673  * @note: btstack_type 2
7674  */
7675 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){
7676     return little_endian_read_16(event, 3);
7677 }
7678 /**
7679  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7680  * @param event packet
7681  * @return remote_seid
7682  * @note: btstack_type 1
7683  */
7684 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){
7685     return event[5];
7686 }
7687 /**
7688  * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7689  * @param event packet
7690  * @return recovery_type
7691  * @note: btstack_type 1
7692  */
7693 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){
7694     return event[6];
7695 }
7696 /**
7697  * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7698  * @param event packet
7699  * @return maximum_recovery_window_size
7700  * @note: btstack_type 1
7701  */
7702 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){
7703     return event[7];
7704 }
7705 /**
7706  * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7707  * @param event packet
7708  * @return maximum_number_media_packets
7709  * @note: btstack_type 1
7710  */
7711 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){
7712     return event[8];
7713 }
7714 
7715 /**
7716  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7717  * @param event packet
7718  * @return avdtp_cid
7719  * @note: btstack_type 2
7720  */
7721 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){
7722     return little_endian_read_16(event, 3);
7723 }
7724 /**
7725  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7726  * @param event packet
7727  * @return remote_seid
7728  * @note: btstack_type 1
7729  */
7730 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){
7731     return event[5];
7732 }
7733 /**
7734  * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7735  * @param event packet
7736  * @return cp_type
7737  * @note: btstack_type 2
7738  */
7739 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){
7740     return little_endian_read_16(event, 6);
7741 }
7742 /**
7743  * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7744  * @param event packet
7745  * @return cp_type_value_len
7746  * @note: btstack_type L
7747  */
7748 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){
7749     return little_endian_read_16(event, 8);
7750 }
7751 /**
7752  * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7753  * @param event packet
7754  * @return cp_type_value
7755  * @note: btstack_type V
7756  */
7757 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){
7758     return &event[10];
7759 }
7760 
7761 /**
7762  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7763  * @param event packet
7764  * @return avdtp_cid
7765  * @note: btstack_type 2
7766  */
7767 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){
7768     return little_endian_read_16(event, 3);
7769 }
7770 /**
7771  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7772  * @param event packet
7773  * @return remote_seid
7774  * @note: btstack_type 1
7775  */
7776 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){
7777     return event[5];
7778 }
7779 /**
7780  * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7781  * @param event packet
7782  * @return fragmentation
7783  * @note: btstack_type 1
7784  */
7785 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){
7786     return event[6];
7787 }
7788 /**
7789  * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7790  * @param event packet
7791  * @return transport_identifiers_num
7792  * @note: btstack_type 1
7793  */
7794 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){
7795     return event[7];
7796 }
7797 /**
7798  * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7799  * @param event packet
7800  * @return transport_session_identifier_1
7801  * @note: btstack_type 1
7802  */
7803 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){
7804     return event[8];
7805 }
7806 /**
7807  * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7808  * @param event packet
7809  * @return transport_session_identifier_2
7810  * @note: btstack_type 1
7811  */
7812 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){
7813     return event[9];
7814 }
7815 /**
7816  * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7817  * @param event packet
7818  * @return transport_session_identifier_3
7819  * @note: btstack_type 1
7820  */
7821 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){
7822     return event[10];
7823 }
7824 /**
7825  * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7826  * @param event packet
7827  * @return tcid_1
7828  * @note: btstack_type 1
7829  */
7830 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){
7831     return event[11];
7832 }
7833 /**
7834  * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7835  * @param event packet
7836  * @return tcid_2
7837  * @note: btstack_type 1
7838  */
7839 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){
7840     return event[12];
7841 }
7842 /**
7843  * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7844  * @param event packet
7845  * @return tcid_3
7846  * @note: btstack_type 1
7847  */
7848 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){
7849     return event[13];
7850 }
7851 
7852 /**
7853  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
7854  * @param event packet
7855  * @return avdtp_cid
7856  * @note: btstack_type 2
7857  */
7858 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){
7859     return little_endian_read_16(event, 3);
7860 }
7861 /**
7862  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
7863  * @param event packet
7864  * @return remote_seid
7865  * @note: btstack_type 1
7866  */
7867 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
7868     return event[5];
7869 }
7870 
7871 /**
7872  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7873  * @param event packet
7874  * @return avdtp_cid
7875  * @note: btstack_type 2
7876  */
7877 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){
7878     return little_endian_read_16(event, 3);
7879 }
7880 /**
7881  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7882  * @param event packet
7883  * @return remote_seid
7884  * @note: btstack_type 1
7885  */
7886 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){
7887     return event[5];
7888 }
7889 /**
7890  * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7891  * @param event packet
7892  * @return back_ch
7893  * @note: btstack_type 1
7894  */
7895 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){
7896     return event[6];
7897 }
7898 /**
7899  * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7900  * @param event packet
7901  * @return media
7902  * @note: btstack_type 1
7903  */
7904 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){
7905     return event[7];
7906 }
7907 /**
7908  * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7909  * @param event packet
7910  * @return recovery
7911  * @note: btstack_type 1
7912  */
7913 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){
7914     return event[8];
7915 }
7916 
7917 /**
7918  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
7919  * @param event packet
7920  * @return avdtp_cid
7921  * @note: btstack_type 2
7922  */
7923 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){
7924     return little_endian_read_16(event, 3);
7925 }
7926 /**
7927  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
7928  * @param event packet
7929  * @return remote_seid
7930  * @note: btstack_type 1
7931  */
7932 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
7933     return event[5];
7934 }
7935 
7936 /**
7937  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7938  * @param event packet
7939  * @return avdtp_cid
7940  * @note: btstack_type 2
7941  */
7942 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){
7943     return little_endian_read_16(event, 3);
7944 }
7945 /**
7946  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7947  * @param event packet
7948  * @return local_seid
7949  * @note: btstack_type 1
7950  */
7951 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
7952     return event[5];
7953 }
7954 /**
7955  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7956  * @param event packet
7957  * @return remote_seid
7958  * @note: btstack_type 1
7959  */
7960 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
7961     return event[6];
7962 }
7963 /**
7964  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7965  * @param event packet
7966  * @return reconfigure
7967  * @note: btstack_type 1
7968  */
7969 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
7970     return event[7];
7971 }
7972 /**
7973  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7974  * @param event packet
7975  * @return media_type
7976  * @note: btstack_type 1
7977  */
7978 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
7979     return event[8];
7980 }
7981 /**
7982  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7983  * @param event packet
7984  * @return sampling_frequency
7985  * @note: btstack_type 2
7986  */
7987 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
7988     return little_endian_read_16(event, 9);
7989 }
7990 /**
7991  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7992  * @param event packet
7993  * @return channel_mode
7994  * @note: btstack_type 1
7995  */
7996 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
7997     return event[11];
7998 }
7999 /**
8000  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8001  * @param event packet
8002  * @return num_channels
8003  * @note: btstack_type 1
8004  */
8005 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
8006     return event[12];
8007 }
8008 /**
8009  * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8010  * @param event packet
8011  * @return block_length
8012  * @note: btstack_type 1
8013  */
8014 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
8015     return event[13];
8016 }
8017 /**
8018  * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8019  * @param event packet
8020  * @return subbands
8021  * @note: btstack_type 1
8022  */
8023 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
8024     return event[14];
8025 }
8026 /**
8027  * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8028  * @param event packet
8029  * @return allocation_method
8030  * @note: btstack_type 1
8031  */
8032 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
8033     return event[15];
8034 }
8035 /**
8036  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8037  * @param event packet
8038  * @return min_bitpool_value
8039  * @note: btstack_type 1
8040  */
8041 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
8042     return event[16];
8043 }
8044 /**
8045  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8046  * @param event packet
8047  * @return max_bitpool_value
8048  * @note: btstack_type 1
8049  */
8050 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
8051     return event[17];
8052 }
8053 
8054 /**
8055  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8056  * @param event packet
8057  * @return avdtp_cid
8058  * @note: btstack_type 2
8059  */
8060 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){
8061     return little_endian_read_16(event, 3);
8062 }
8063 /**
8064  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8065  * @param event packet
8066  * @return local_seid
8067  * @note: btstack_type 1
8068  */
8069 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){
8070     return event[5];
8071 }
8072 /**
8073  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8074  * @param event packet
8075  * @return remote_seid
8076  * @note: btstack_type 1
8077  */
8078 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){
8079     return event[6];
8080 }
8081 /**
8082  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8083  * @param event packet
8084  * @return reconfigure
8085  * @note: btstack_type 1
8086  */
8087 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){
8088     return event[7];
8089 }
8090 /**
8091  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8092  * @param event packet
8093  * @return media_type
8094  * @note: btstack_type 1
8095  */
8096 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){
8097     return event[8];
8098 }
8099 /**
8100  * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8101  * @param event packet
8102  * @return layer
8103  * @note: btstack_type 1
8104  */
8105 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){
8106     return event[9];
8107 }
8108 /**
8109  * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8110  * @param event packet
8111  * @return crc
8112  * @note: btstack_type 1
8113  */
8114 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){
8115     return event[10];
8116 }
8117 /**
8118  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8119  * @param event packet
8120  * @return channel_mode
8121  * @note: btstack_type 1
8122  */
8123 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){
8124     return event[11];
8125 }
8126 /**
8127  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8128  * @param event packet
8129  * @return num_channels
8130  * @note: btstack_type 1
8131  */
8132 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){
8133     return event[12];
8134 }
8135 /**
8136  * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8137  * @param event packet
8138  * @return media_payload_format
8139  * @note: btstack_type 1
8140  */
8141 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){
8142     return event[13];
8143 }
8144 /**
8145  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8146  * @param event packet
8147  * @return sampling_frequency
8148  * @note: btstack_type 2
8149  */
8150 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){
8151     return little_endian_read_16(event, 14);
8152 }
8153 /**
8154  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8155  * @param event packet
8156  * @return vbr
8157  * @note: btstack_type 1
8158  */
8159 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){
8160     return event[16];
8161 }
8162 /**
8163  * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8164  * @param event packet
8165  * @return bit_rate_index
8166  * @note: btstack_type 1
8167  */
8168 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){
8169     return event[17];
8170 }
8171 
8172 /**
8173  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8174  * @param event packet
8175  * @return avdtp_cid
8176  * @note: btstack_type 2
8177  */
8178 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){
8179     return little_endian_read_16(event, 3);
8180 }
8181 /**
8182  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8183  * @param event packet
8184  * @return local_seid
8185  * @note: btstack_type 1
8186  */
8187 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){
8188     return event[5];
8189 }
8190 /**
8191  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8192  * @param event packet
8193  * @return remote_seid
8194  * @note: btstack_type 1
8195  */
8196 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){
8197     return event[6];
8198 }
8199 /**
8200  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8201  * @param event packet
8202  * @return reconfigure
8203  * @note: btstack_type 1
8204  */
8205 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){
8206     return event[7];
8207 }
8208 /**
8209  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8210  * @param event packet
8211  * @return media_type
8212  * @note: btstack_type 1
8213  */
8214 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){
8215     return event[8];
8216 }
8217 /**
8218  * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8219  * @param event packet
8220  * @return object_type
8221  * @note: btstack_type 1
8222  */
8223 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){
8224     return event[9];
8225 }
8226 /**
8227  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8228  * @param event packet
8229  * @return sampling_frequency
8230  * @note: btstack_type 3
8231  */
8232 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){
8233     return little_endian_read_24(event, 10);
8234 }
8235 /**
8236  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8237  * @param event packet
8238  * @return num_channels
8239  * @note: btstack_type 1
8240  */
8241 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){
8242     return event[13];
8243 }
8244 /**
8245  * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8246  * @param event packet
8247  * @return bit_rate
8248  * @note: btstack_type 3
8249  */
8250 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
8251     return little_endian_read_24(event, 14);
8252 }
8253 /**
8254  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8255  * @param event packet
8256  * @return vbr
8257  * @note: btstack_type 1
8258  */
8259 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
8260     return event[17];
8261 }
8262 
8263 /**
8264  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8265  * @param event packet
8266  * @return avdtp_cid
8267  * @note: btstack_type 2
8268  */
8269 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){
8270     return little_endian_read_16(event, 3);
8271 }
8272 /**
8273  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8274  * @param event packet
8275  * @return local_seid
8276  * @note: btstack_type 1
8277  */
8278 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){
8279     return event[5];
8280 }
8281 /**
8282  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8283  * @param event packet
8284  * @return remote_seid
8285  * @note: btstack_type 1
8286  */
8287 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){
8288     return event[6];
8289 }
8290 /**
8291  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8292  * @param event packet
8293  * @return reconfigure
8294  * @note: btstack_type 1
8295  */
8296 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){
8297     return event[7];
8298 }
8299 /**
8300  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8301  * @param event packet
8302  * @return media_type
8303  * @note: btstack_type 1
8304  */
8305 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){
8306     return event[8];
8307 }
8308 /**
8309  * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8310  * @param event packet
8311  * @return version
8312  * @note: btstack_type 1
8313  */
8314 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){
8315     return event[9];
8316 }
8317 /**
8318  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8319  * @param event packet
8320  * @return channel_mode
8321  * @note: btstack_type 1
8322  */
8323 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){
8324     return event[10];
8325 }
8326 /**
8327  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8328  * @param event packet
8329  * @return num_channels
8330  * @note: btstack_type 1
8331  */
8332 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){
8333     return event[11];
8334 }
8335 /**
8336  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8337  * @param event packet
8338  * @return sampling_frequency
8339  * @note: btstack_type 2
8340  */
8341 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){
8342     return little_endian_read_16(event, 12);
8343 }
8344 /**
8345  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8346  * @param event packet
8347  * @return vbr
8348  * @note: btstack_type 1
8349  */
8350 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){
8351     return event[14];
8352 }
8353 /**
8354  * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8355  * @param event packet
8356  * @return bit_rate_index
8357  * @note: btstack_type 1
8358  */
8359 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){
8360     return event[15];
8361 }
8362 /**
8363  * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8364  * @param event packet
8365  * @return maximum_sul
8366  * @note: btstack_type 2
8367  */
8368 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){
8369     return little_endian_read_16(event, 16);
8370 }
8371 
8372 /**
8373  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8374  * @param event packet
8375  * @return avdtp_cid
8376  * @note: btstack_type 2
8377  */
8378 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){
8379     return little_endian_read_16(event, 3);
8380 }
8381 /**
8382  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8383  * @param event packet
8384  * @return local_seid
8385  * @note: btstack_type 1
8386  */
8387 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
8388     return event[5];
8389 }
8390 /**
8391  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8392  * @param event packet
8393  * @return remote_seid
8394  * @note: btstack_type 1
8395  */
8396 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
8397     return event[6];
8398 }
8399 /**
8400  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8401  * @param event packet
8402  * @return reconfigure
8403  * @note: btstack_type 1
8404  */
8405 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
8406     return event[7];
8407 }
8408 /**
8409  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8410  * @param event packet
8411  * @return media_type
8412  * @note: btstack_type 1
8413  */
8414 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
8415     return event[8];
8416 }
8417 /**
8418  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8419  * @param event packet
8420  * @return media_codec_type
8421  * @note: btstack_type 2
8422  */
8423 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
8424     return little_endian_read_16(event, 9);
8425 }
8426 /**
8427  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8428  * @param event packet
8429  * @return media_codec_information_len
8430  * @note: btstack_type L
8431  */
8432 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
8433     return little_endian_read_16(event, 11);
8434 }
8435 /**
8436  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8437  * @param event packet
8438  * @return media_codec_information
8439  * @note: btstack_type V
8440  */
8441 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
8442     return &event[13];
8443 }
8444 
8445 /**
8446  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
8447  * @param event packet
8448  * @return avdtp_cid
8449  * @note: btstack_type 2
8450  */
8451 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){
8452     return little_endian_read_16(event, 3);
8453 }
8454 /**
8455  * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
8456  * @param event packet
8457  * @param Pointer to storage for bd_addr
8458  * @note: btstack_type B
8459  */
8460 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
8461     reverse_bytes(&event[5], bd_addr, 6);
8462 }
8463 /**
8464  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
8465  * @param event packet
8466  * @return local_seid
8467  * @note: btstack_type 1
8468  */
8469 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){
8470     return event[11];
8471 }
8472 /**
8473  * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
8474  * @param event packet
8475  * @return remote_seid
8476  * @note: btstack_type 1
8477  */
8478 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){
8479     return event[12];
8480 }
8481 /**
8482  * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
8483  * @param event packet
8484  * @return status
8485  * @note: btstack_type 1
8486  */
8487 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){
8488     return event[13];
8489 }
8490 
8491 /**
8492  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
8493  * @param event packet
8494  * @return avdtp_cid
8495  * @note: btstack_type 2
8496  */
8497 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){
8498     return little_endian_read_16(event, 3);
8499 }
8500 /**
8501  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
8502  * @param event packet
8503  * @return local_seid
8504  * @note: btstack_type 1
8505  */
8506 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){
8507     return event[5];
8508 }
8509 
8510 /**
8511  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
8512  * @param event packet
8513  * @return avdtp_cid
8514  * @note: btstack_type 2
8515  */
8516 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){
8517     return little_endian_read_16(event, 3);
8518 }
8519 /**
8520  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
8521  * @param event packet
8522  * @return local_seid
8523  * @note: btstack_type 1
8524  */
8525 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
8526     return event[5];
8527 }
8528 /**
8529  * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
8530  * @param event packet
8531  * @return sequence_number
8532  * @note: btstack_type 2
8533  */
8534 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){
8535     return little_endian_read_16(event, 6);
8536 }
8537 
8538 /**
8539  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE
8540  * @param event packet
8541  * @return avdtp_cid
8542  * @note: btstack_type 2
8543  */
8544 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){
8545     return little_endian_read_16(event, 3);
8546 }
8547 
8548 /**
8549  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
8550  * @param event packet
8551  * @return avdtp_cid
8552  * @note: btstack_type 2
8553  */
8554 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){
8555     return little_endian_read_16(event, 3);
8556 }
8557 /**
8558  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
8559  * @param event packet
8560  * @return local_seid
8561  * @note: btstack_type 1
8562  */
8563 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){
8564     return event[5];
8565 }
8566 /**
8567  * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
8568  * @param event packet
8569  * @return delay_100us
8570  * @note: btstack_type 2
8571  */
8572 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){
8573     return little_endian_read_16(event, 6);
8574 }
8575 
8576 /**
8577  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
8578  * @param event packet
8579  * @return a2dp_cid
8580  * @note: btstack_type 2
8581  */
8582 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){
8583     return little_endian_read_16(event, 3);
8584 }
8585 /**
8586  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
8587  * @param event packet
8588  * @return local_seid
8589  * @note: btstack_type 1
8590  */
8591 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
8592     return event[5];
8593 }
8594 
8595 /**
8596  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8597  * @param event packet
8598  * @return a2dp_cid
8599  * @note: btstack_type 2
8600  */
8601 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){
8602     return little_endian_read_16(event, 3);
8603 }
8604 /**
8605  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8606  * @param event packet
8607  * @return local_seid
8608  * @note: btstack_type 1
8609  */
8610 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
8611     return event[5];
8612 }
8613 /**
8614  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8615  * @param event packet
8616  * @return remote_seid
8617  * @note: btstack_type 1
8618  */
8619 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
8620     return event[6];
8621 }
8622 /**
8623  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8624  * @param event packet
8625  * @return reconfigure
8626  * @note: btstack_type 1
8627  */
8628 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
8629     return event[7];
8630 }
8631 /**
8632  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8633  * @param event packet
8634  * @return media_type
8635  * @note: btstack_type 1
8636  */
8637 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
8638     return event[8];
8639 }
8640 /**
8641  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8642  * @param event packet
8643  * @return sampling_frequency
8644  * @note: btstack_type 2
8645  */
8646 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
8647     return little_endian_read_16(event, 9);
8648 }
8649 /**
8650  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8651  * @param event packet
8652  * @return channel_mode
8653  * @note: btstack_type 1
8654  */
8655 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
8656     return event[11];
8657 }
8658 /**
8659  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8660  * @param event packet
8661  * @return num_channels
8662  * @note: btstack_type 1
8663  */
8664 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
8665     return event[12];
8666 }
8667 /**
8668  * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8669  * @param event packet
8670  * @return block_length
8671  * @note: btstack_type 1
8672  */
8673 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
8674     return event[13];
8675 }
8676 /**
8677  * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8678  * @param event packet
8679  * @return subbands
8680  * @note: btstack_type 1
8681  */
8682 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
8683     return event[14];
8684 }
8685 /**
8686  * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8687  * @param event packet
8688  * @return allocation_method
8689  * @note: btstack_type 1
8690  */
8691 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
8692     return event[15];
8693 }
8694 /**
8695  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8696  * @param event packet
8697  * @return min_bitpool_value
8698  * @note: btstack_type 1
8699  */
8700 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
8701     return event[16];
8702 }
8703 /**
8704  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8705  * @param event packet
8706  * @return max_bitpool_value
8707  * @note: btstack_type 1
8708  */
8709 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
8710     return event[17];
8711 }
8712 
8713 /**
8714  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8715  * @param event packet
8716  * @return a2dp_cid
8717  * @note: btstack_type 2
8718  */
8719 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){
8720     return little_endian_read_16(event, 3);
8721 }
8722 /**
8723  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8724  * @param event packet
8725  * @return local_seid
8726  * @note: btstack_type 1
8727  */
8728 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){
8729     return event[5];
8730 }
8731 /**
8732  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8733  * @param event packet
8734  * @return remote_seid
8735  * @note: btstack_type 1
8736  */
8737 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){
8738     return event[6];
8739 }
8740 /**
8741  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8742  * @param event packet
8743  * @return reconfigure
8744  * @note: btstack_type 1
8745  */
8746 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){
8747     return event[7];
8748 }
8749 /**
8750  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8751  * @param event packet
8752  * @return media_type
8753  * @note: btstack_type 1
8754  */
8755 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){
8756     return event[8];
8757 }
8758 /**
8759  * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8760  * @param event packet
8761  * @return layer
8762  * @note: btstack_type 1
8763  */
8764 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){
8765     return event[9];
8766 }
8767 /**
8768  * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8769  * @param event packet
8770  * @return crc
8771  * @note: btstack_type 1
8772  */
8773 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){
8774     return event[10];
8775 }
8776 /**
8777  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8778  * @param event packet
8779  * @return channel_mode
8780  * @note: btstack_type 1
8781  */
8782 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){
8783     return event[11];
8784 }
8785 /**
8786  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8787  * @param event packet
8788  * @return num_channels
8789  * @note: btstack_type 1
8790  */
8791 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){
8792     return event[12];
8793 }
8794 /**
8795  * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8796  * @param event packet
8797  * @return media_payload_format
8798  * @note: btstack_type 1
8799  */
8800 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){
8801     return event[13];
8802 }
8803 /**
8804  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8805  * @param event packet
8806  * @return sampling_frequency
8807  * @note: btstack_type 2
8808  */
8809 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){
8810     return little_endian_read_16(event, 14);
8811 }
8812 /**
8813  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8814  * @param event packet
8815  * @return vbr
8816  * @note: btstack_type 1
8817  */
8818 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){
8819     return event[16];
8820 }
8821 /**
8822  * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8823  * @param event packet
8824  * @return bit_rate_index
8825  * @note: btstack_type 1
8826  */
8827 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){
8828     return event[17];
8829 }
8830 
8831 /**
8832  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8833  * @param event packet
8834  * @return a2dp_cid
8835  * @note: btstack_type 2
8836  */
8837 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){
8838     return little_endian_read_16(event, 3);
8839 }
8840 /**
8841  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8842  * @param event packet
8843  * @return local_seid
8844  * @note: btstack_type 1
8845  */
8846 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){
8847     return event[5];
8848 }
8849 /**
8850  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8851  * @param event packet
8852  * @return remote_seid
8853  * @note: btstack_type 1
8854  */
8855 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){
8856     return event[6];
8857 }
8858 /**
8859  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8860  * @param event packet
8861  * @return reconfigure
8862  * @note: btstack_type 1
8863  */
8864 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){
8865     return event[7];
8866 }
8867 /**
8868  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8869  * @param event packet
8870  * @return media_type
8871  * @note: btstack_type 1
8872  */
8873 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){
8874     return event[8];
8875 }
8876 /**
8877  * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8878  * @param event packet
8879  * @return object_type
8880  * @note: btstack_type 1
8881  */
8882 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){
8883     return event[9];
8884 }
8885 /**
8886  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8887  * @param event packet
8888  * @return sampling_frequency
8889  * @note: btstack_type 3
8890  */
8891 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){
8892     return little_endian_read_24(event, 10);
8893 }
8894 /**
8895  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8896  * @param event packet
8897  * @return num_channels
8898  * @note: btstack_type 1
8899  */
8900 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){
8901     return event[13];
8902 }
8903 /**
8904  * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8905  * @param event packet
8906  * @return bit_rate
8907  * @note: btstack_type 3
8908  */
8909 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
8910     return little_endian_read_24(event, 14);
8911 }
8912 /**
8913  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8914  * @param event packet
8915  * @return vbr
8916  * @note: btstack_type 1
8917  */
8918 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
8919     return event[17];
8920 }
8921 
8922 /**
8923  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8924  * @param event packet
8925  * @return a2dp_cid
8926  * @note: btstack_type 2
8927  */
8928 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){
8929     return little_endian_read_16(event, 3);
8930 }
8931 /**
8932  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8933  * @param event packet
8934  * @return local_seid
8935  * @note: btstack_type 1
8936  */
8937 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){
8938     return event[5];
8939 }
8940 /**
8941  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8942  * @param event packet
8943  * @return remote_seid
8944  * @note: btstack_type 1
8945  */
8946 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){
8947     return event[6];
8948 }
8949 /**
8950  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8951  * @param event packet
8952  * @return reconfigure
8953  * @note: btstack_type 1
8954  */
8955 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){
8956     return event[7];
8957 }
8958 /**
8959  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8960  * @param event packet
8961  * @return media_type
8962  * @note: btstack_type 1
8963  */
8964 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){
8965     return event[8];
8966 }
8967 /**
8968  * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8969  * @param event packet
8970  * @return version
8971  * @note: btstack_type 1
8972  */
8973 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){
8974     return event[9];
8975 }
8976 /**
8977  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8978  * @param event packet
8979  * @return channel_mode
8980  * @note: btstack_type 1
8981  */
8982 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){
8983     return event[10];
8984 }
8985 /**
8986  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8987  * @param event packet
8988  * @return num_channels
8989  * @note: btstack_type 1
8990  */
8991 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){
8992     return event[11];
8993 }
8994 /**
8995  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8996  * @param event packet
8997  * @return sampling_frequency
8998  * @note: btstack_type 2
8999  */
9000 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){
9001     return little_endian_read_16(event, 12);
9002 }
9003 /**
9004  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9005  * @param event packet
9006  * @return vbr
9007  * @note: btstack_type 1
9008  */
9009 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){
9010     return event[14];
9011 }
9012 /**
9013  * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9014  * @param event packet
9015  * @return bit_rate_index
9016  * @note: btstack_type 1
9017  */
9018 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){
9019     return event[15];
9020 }
9021 /**
9022  * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9023  * @param event packet
9024  * @return maximum_sul
9025  * @note: btstack_type 2
9026  */
9027 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){
9028     return little_endian_read_16(event, 16);
9029 }
9030 
9031 /**
9032  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9033  * @param event packet
9034  * @return a2dp_cid
9035  * @note: btstack_type 2
9036  */
9037 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){
9038     return little_endian_read_16(event, 3);
9039 }
9040 /**
9041  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9042  * @param event packet
9043  * @return local_seid
9044  * @note: btstack_type 1
9045  */
9046 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
9047     return event[5];
9048 }
9049 /**
9050  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9051  * @param event packet
9052  * @return remote_seid
9053  * @note: btstack_type 1
9054  */
9055 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
9056     return event[6];
9057 }
9058 /**
9059  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9060  * @param event packet
9061  * @return reconfigure
9062  * @note: btstack_type 1
9063  */
9064 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
9065     return event[7];
9066 }
9067 /**
9068  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9069  * @param event packet
9070  * @return media_type
9071  * @note: btstack_type 1
9072  */
9073 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
9074     return event[8];
9075 }
9076 /**
9077  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9078  * @param event packet
9079  * @return media_codec_type
9080  * @note: btstack_type 2
9081  */
9082 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
9083     return little_endian_read_16(event, 9);
9084 }
9085 /**
9086  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9087  * @param event packet
9088  * @return media_codec_information_len
9089  * @note: btstack_type L
9090  */
9091 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
9092     return little_endian_read_16(event, 11);
9093 }
9094 /**
9095  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9096  * @param event packet
9097  * @return media_codec_information
9098  * @note: btstack_type V
9099  */
9100 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
9101     return &event[13];
9102 }
9103 
9104 /**
9105  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9106  * @param event packet
9107  * @return a2dp_cid
9108  * @note: btstack_type 2
9109  */
9110 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){
9111     return little_endian_read_16(event, 3);
9112 }
9113 /**
9114  * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9115  * @param event packet
9116  * @param Pointer to storage for bd_addr
9117  * @note: btstack_type B
9118  */
9119 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
9120     reverse_bytes(&event[5], bd_addr, 6);
9121 }
9122 /**
9123  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9124  * @param event packet
9125  * @return local_seid
9126  * @note: btstack_type 1
9127  */
9128 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){
9129     return event[11];
9130 }
9131 /**
9132  * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9133  * @param event packet
9134  * @return remote_seid
9135  * @note: btstack_type 1
9136  */
9137 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){
9138     return event[12];
9139 }
9140 /**
9141  * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9142  * @param event packet
9143  * @return status
9144  * @note: btstack_type 1
9145  */
9146 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){
9147     return event[13];
9148 }
9149 
9150 /**
9151  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED
9152  * @param event packet
9153  * @return a2dp_cid
9154  * @note: btstack_type 2
9155  */
9156 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){
9157     return little_endian_read_16(event, 3);
9158 }
9159 /**
9160  * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED
9161  * @param event packet
9162  * @return local_seid
9163  * @note: btstack_type 1
9164  */
9165 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){
9166     return event[5];
9167 }
9168 
9169 /**
9170  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED
9171  * @param event packet
9172  * @return a2dp_cid
9173  * @note: btstack_type 2
9174  */
9175 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){
9176     return little_endian_read_16(event, 3);
9177 }
9178 /**
9179  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED
9180  * @param event packet
9181  * @return local_seid
9182  * @note: btstack_type 1
9183  */
9184 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){
9185     return event[5];
9186 }
9187 
9188 /**
9189  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED
9190  * @param event packet
9191  * @return a2dp_cid
9192  * @note: btstack_type 2
9193  */
9194 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){
9195     return little_endian_read_16(event, 3);
9196 }
9197 /**
9198  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED
9199  * @param event packet
9200  * @return local_seid
9201  * @note: btstack_type 1
9202  */
9203 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){
9204     return event[5];
9205 }
9206 
9207 /**
9208  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED
9209  * @param event packet
9210  * @return a2dp_cid
9211  * @note: btstack_type 2
9212  */
9213 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){
9214     return little_endian_read_16(event, 3);
9215 }
9216 /**
9217  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED
9218  * @param event packet
9219  * @return local_seid
9220  * @note: btstack_type 1
9221  */
9222 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){
9223     return event[5];
9224 }
9225 
9226 /**
9227  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED
9228  * @param event packet
9229  * @return a2dp_cid
9230  * @note: btstack_type 2
9231  */
9232 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){
9233     return little_endian_read_16(event, 3);
9234 }
9235 /**
9236  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED
9237  * @param event packet
9238  * @return local_seid
9239  * @note: btstack_type 1
9240  */
9241 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){
9242     return event[5];
9243 }
9244 
9245 /**
9246  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
9247  * @param event packet
9248  * @return a2dp_cid
9249  * @note: btstack_type 2
9250  */
9251 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){
9252     return little_endian_read_16(event, 3);
9253 }
9254 /**
9255  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
9256  * @param event packet
9257  * @return local_seid
9258  * @note: btstack_type 1
9259  */
9260 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){
9261     return event[5];
9262 }
9263 /**
9264  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED
9265  * @param event packet
9266  * @return signal_identifier
9267  * @note: btstack_type 1
9268  */
9269 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){
9270     return event[6];
9271 }
9272 
9273 /**
9274  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED
9275  * @param event packet
9276  * @return a2dp_cid
9277  * @note: btstack_type 2
9278  */
9279 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){
9280     return little_endian_read_16(event, 3);
9281 }
9282 /**
9283  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED
9284  * @param event packet
9285  * @return local_seid
9286  * @note: btstack_type 1
9287  */
9288 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){
9289     return event[5];
9290 }
9291 /**
9292  * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED
9293  * @param event packet
9294  * @return is_initiator
9295  * @note: btstack_type 1
9296  */
9297 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){
9298     return event[6];
9299 }
9300 /**
9301  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED
9302  * @param event packet
9303  * @return signal_identifier
9304  * @note: btstack_type 1
9305  */
9306 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){
9307     return event[7];
9308 }
9309 
9310 /**
9311  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
9312  * @param event packet
9313  * @return a2dp_cid
9314  * @note: btstack_type 2
9315  */
9316 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){
9317     return little_endian_read_16(event, 3);
9318 }
9319 /**
9320  * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
9321  * @param event packet
9322  * @param Pointer to storage for bd_addr
9323  * @note: btstack_type B
9324  */
9325 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
9326     reverse_bytes(&event[5], bd_addr, 6);
9327 }
9328 /**
9329  * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
9330  * @param event packet
9331  * @return con_handle
9332  * @note: btstack_type 2
9333  */
9334 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){
9335     return little_endian_read_16(event, 11);
9336 }
9337 /**
9338  * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
9339  * @param event packet
9340  * @return status
9341  * @note: btstack_type 1
9342  */
9343 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){
9344     return event[13];
9345 }
9346 
9347 /**
9348  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
9349  * @param event packet
9350  * @return a2dp_cid
9351  * @note: btstack_type 2
9352  */
9353 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){
9354     return little_endian_read_16(event, 3);
9355 }
9356 
9357 /**
9358  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
9359  * @param event packet
9360  * @return a2dp_cid
9361  * @note: btstack_type 2
9362  */
9363 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){
9364     return little_endian_read_16(event, 3);
9365 }
9366 /**
9367  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
9368  * @param event packet
9369  * @return local_seid
9370  * @note: btstack_type 1
9371  */
9372 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){
9373     return event[5];
9374 }
9375 /**
9376  * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED
9377  * @param event packet
9378  * @return status
9379  * @note: btstack_type 1
9380  */
9381 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){
9382     return event[6];
9383 }
9384 
9385 /**
9386  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9387  * @param event packet
9388  * @return a2dp_cid
9389  * @note: btstack_type 2
9390  */
9391 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){
9392     return little_endian_read_16(event, 3);
9393 }
9394 /**
9395  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9396  * @param event packet
9397  * @return remote_seid
9398  * @note: btstack_type 1
9399  */
9400 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
9401     return event[5];
9402 }
9403 /**
9404  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9405  * @param event packet
9406  * @return media_type
9407  * @note: btstack_type 1
9408  */
9409 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
9410     return event[6];
9411 }
9412 /**
9413  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9414  * @param event packet
9415  * @return sampling_frequency_bitmap
9416  * @note: btstack_type 1
9417  */
9418 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
9419     return event[7];
9420 }
9421 /**
9422  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9423  * @param event packet
9424  * @return channel_mode_bitmap
9425  * @note: btstack_type 1
9426  */
9427 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
9428     return event[8];
9429 }
9430 /**
9431  * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9432  * @param event packet
9433  * @return block_length_bitmap
9434  * @note: btstack_type 1
9435  */
9436 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
9437     return event[9];
9438 }
9439 /**
9440  * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9441  * @param event packet
9442  * @return subbands_bitmap
9443  * @note: btstack_type 1
9444  */
9445 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
9446     return event[10];
9447 }
9448 /**
9449  * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9450  * @param event packet
9451  * @return allocation_method_bitmap
9452  * @note: btstack_type 1
9453  */
9454 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
9455     return event[11];
9456 }
9457 /**
9458  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9459  * @param event packet
9460  * @return min_bitpool_value
9461  * @note: btstack_type 1
9462  */
9463 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
9464     return event[12];
9465 }
9466 /**
9467  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
9468  * @param event packet
9469  * @return max_bitpool_value
9470  * @note: btstack_type 1
9471  */
9472 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
9473     return event[13];
9474 }
9475 
9476 /**
9477  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9478  * @param event packet
9479  * @return a2dp_cid
9480  * @note: btstack_type 2
9481  */
9482 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){
9483     return little_endian_read_16(event, 3);
9484 }
9485 /**
9486  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9487  * @param event packet
9488  * @return remote_seid
9489  * @note: btstack_type 1
9490  */
9491 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){
9492     return event[5];
9493 }
9494 /**
9495  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9496  * @param event packet
9497  * @return media_type
9498  * @note: btstack_type 1
9499  */
9500 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){
9501     return event[6];
9502 }
9503 /**
9504  * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9505  * @param event packet
9506  * @return layer_bitmap
9507  * @note: btstack_type 1
9508  */
9509 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){
9510     return event[7];
9511 }
9512 /**
9513  * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9514  * @param event packet
9515  * @return crc
9516  * @note: btstack_type 1
9517  */
9518 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){
9519     return event[8];
9520 }
9521 /**
9522  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9523  * @param event packet
9524  * @return channel_mode_bitmap
9525  * @note: btstack_type 1
9526  */
9527 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){
9528     return event[9];
9529 }
9530 /**
9531  * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9532  * @param event packet
9533  * @return media_payload_format
9534  * @note: btstack_type 1
9535  */
9536 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){
9537     return event[10];
9538 }
9539 /**
9540  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9541  * @param event packet
9542  * @return sampling_frequency_bitmap
9543  * @note: btstack_type 1
9544  */
9545 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){
9546     return event[11];
9547 }
9548 /**
9549  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9550  * @param event packet
9551  * @return vbr
9552  * @note: btstack_type 1
9553  */
9554 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){
9555     return event[12];
9556 }
9557 /**
9558  * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
9559  * @param event packet
9560  * @return bit_rate_index_bitmap
9561  * @note: btstack_type 2
9562  */
9563 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){
9564     return little_endian_read_16(event, 13);
9565 }
9566 
9567 /**
9568  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9569  * @param event packet
9570  * @return a2dp_cid
9571  * @note: btstack_type 2
9572  */
9573 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){
9574     return little_endian_read_16(event, 3);
9575 }
9576 /**
9577  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9578  * @param event packet
9579  * @return remote_seid
9580  * @note: btstack_type 1
9581  */
9582 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){
9583     return event[5];
9584 }
9585 /**
9586  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9587  * @param event packet
9588  * @return media_type
9589  * @note: btstack_type 1
9590  */
9591 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){
9592     return event[6];
9593 }
9594 /**
9595  * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9596  * @param event packet
9597  * @return object_type_bitmap
9598  * @note: btstack_type 1
9599  */
9600 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){
9601     return event[7];
9602 }
9603 /**
9604  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9605  * @param event packet
9606  * @return sampling_frequency_bitmap
9607  * @note: btstack_type 2
9608  */
9609 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
9610     return little_endian_read_16(event, 8);
9611 }
9612 /**
9613  * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9614  * @param event packet
9615  * @return channels_bitmap
9616  * @note: btstack_type 1
9617  */
9618 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){
9619     return event[10];
9620 }
9621 /**
9622  * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9623  * @param event packet
9624  * @return bit_rate
9625  * @note: btstack_type 3
9626  */
9627 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){
9628     return little_endian_read_24(event, 11);
9629 }
9630 /**
9631  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
9632  * @param event packet
9633  * @return vbr
9634  * @note: btstack_type 1
9635  */
9636 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){
9637     return event[14];
9638 }
9639 
9640 /**
9641  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9642  * @param event packet
9643  * @return a2dp_cid
9644  * @note: btstack_type 2
9645  */
9646 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){
9647     return little_endian_read_16(event, 3);
9648 }
9649 /**
9650  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9651  * @param event packet
9652  * @return remote_seid
9653  * @note: btstack_type 1
9654  */
9655 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){
9656     return event[5];
9657 }
9658 /**
9659  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9660  * @param event packet
9661  * @return media_type
9662  * @note: btstack_type 1
9663  */
9664 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){
9665     return event[6];
9666 }
9667 /**
9668  * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9669  * @param event packet
9670  * @return version
9671  * @note: btstack_type 1
9672  */
9673 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){
9674     return event[7];
9675 }
9676 /**
9677  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9678  * @param event packet
9679  * @return channel_mode_bitmap
9680  * @note: btstack_type 1
9681  */
9682 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){
9683     return event[8];
9684 }
9685 /**
9686  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9687  * @param event packet
9688  * @return sampling_frequency_bitmap
9689  * @note: btstack_type 1
9690  */
9691 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
9692     return event[9];
9693 }
9694 /**
9695  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9696  * @param event packet
9697  * @return vbr
9698  * @note: btstack_type 1
9699  */
9700 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){
9701     return event[10];
9702 }
9703 /**
9704  * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9705  * @param event packet
9706  * @return bit_rate_index_bitmap
9707  * @note: btstack_type 3
9708  */
9709 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){
9710     return little_endian_read_24(event, 11);
9711 }
9712 /**
9713  * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9714  * @param event packet
9715  * @return maximum_sul
9716  * @note: btstack_type 2
9717  */
9718 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){
9719     return little_endian_read_16(event, 14);
9720 }
9721 
9722 /**
9723  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9724  * @param event packet
9725  * @return a2dp_cid
9726  * @note: btstack_type 2
9727  */
9728 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){
9729     return little_endian_read_16(event, 3);
9730 }
9731 /**
9732  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9733  * @param event packet
9734  * @return remote_seid
9735  * @note: btstack_type 1
9736  */
9737 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
9738     return event[5];
9739 }
9740 /**
9741  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9742  * @param event packet
9743  * @return media_type
9744  * @note: btstack_type 1
9745  */
9746 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
9747     return event[6];
9748 }
9749 /**
9750  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9751  * @param event packet
9752  * @return media_codec_type
9753  * @note: btstack_type 2
9754  */
9755 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
9756     return little_endian_read_16(event, 7);
9757 }
9758 /**
9759  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9760  * @param event packet
9761  * @return media_codec_information_len
9762  * @note: btstack_type L
9763  */
9764 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
9765     return little_endian_read_16(event, 9);
9766 }
9767 /**
9768  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9769  * @param event packet
9770  * @return media_codec_information
9771  * @note: btstack_type V
9772  */
9773 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
9774     return &event[11];
9775 }
9776 
9777 /**
9778  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
9779  * @param event packet
9780  * @return a2dp_cid
9781  * @note: btstack_type 2
9782  */
9783 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){
9784     return little_endian_read_16(event, 3);
9785 }
9786 /**
9787  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
9788  * @param event packet
9789  * @return remote_seid
9790  * @note: btstack_type 1
9791  */
9792 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
9793     return event[5];
9794 }
9795 
9796 /**
9797  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
9798  * @param event packet
9799  * @return a2dp_cid
9800  * @note: btstack_type 2
9801  */
9802 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){
9803     return little_endian_read_16(event, 3);
9804 }
9805 /**
9806  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
9807  * @param event packet
9808  * @return local_seid
9809  * @note: btstack_type 1
9810  */
9811 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){
9812     return event[5];
9813 }
9814 /**
9815  * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
9816  * @param event packet
9817  * @return delay_100us
9818  * @note: btstack_type 2
9819  */
9820 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){
9821     return little_endian_read_16(event, 6);
9822 }
9823 
9824 /**
9825  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
9826  * @param event packet
9827  * @return a2dp_cid
9828  * @note: btstack_type 2
9829  */
9830 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){
9831     return little_endian_read_16(event, 3);
9832 }
9833 /**
9834  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
9835  * @param event packet
9836  * @return remote_seid
9837  * @note: btstack_type 1
9838  */
9839 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
9840     return event[5];
9841 }
9842 
9843 /**
9844  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE
9845  * @param event packet
9846  * @return a2dp_cid
9847  * @note: btstack_type 2
9848  */
9849 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){
9850     return little_endian_read_16(event, 3);
9851 }
9852 
9853 /**
9854  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
9855  * @param event packet
9856  * @return avrcp_cid
9857  * @note: btstack_type 2
9858  */
9859 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){
9860     return little_endian_read_16(event, 3);
9861 }
9862 /**
9863  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
9864  * @param event packet
9865  * @return command_type
9866  * @note: btstack_type 1
9867  */
9868 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){
9869     return event[5];
9870 }
9871 /**
9872  * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
9873  * @param event packet
9874  * @return play_status
9875  * @note: btstack_type 1
9876  */
9877 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){
9878     return event[6];
9879 }
9880 
9881 /**
9882  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
9883  * @param event packet
9884  * @return avrcp_cid
9885  * @note: btstack_type 2
9886  */
9887 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){
9888     return little_endian_read_16(event, 3);
9889 }
9890 /**
9891  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
9892  * @param event packet
9893  * @return command_type
9894  * @note: btstack_type 1
9895  */
9896 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){
9897     return event[5];
9898 }
9899 
9900 /**
9901  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END
9902  * @param event packet
9903  * @return avrcp_cid
9904  * @note: btstack_type 2
9905  */
9906 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){
9907     return little_endian_read_16(event, 3);
9908 }
9909 /**
9910  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END
9911  * @param event packet
9912  * @return command_type
9913  * @note: btstack_type 1
9914  */
9915 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){
9916     return event[5];
9917 }
9918 
9919 /**
9920  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START
9921  * @param event packet
9922  * @return avrcp_cid
9923  * @note: btstack_type 2
9924  */
9925 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){
9926     return little_endian_read_16(event, 3);
9927 }
9928 /**
9929  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START
9930  * @param event packet
9931  * @return command_type
9932  * @note: btstack_type 1
9933  */
9934 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){
9935     return event[5];
9936 }
9937 
9938 /**
9939  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
9940  * @param event packet
9941  * @return avrcp_cid
9942  * @note: btstack_type 2
9943  */
9944 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
9945     return little_endian_read_16(event, 3);
9946 }
9947 /**
9948  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
9949  * @param event packet
9950  * @return command_type
9951  * @note: btstack_type 1
9952  */
9953 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){
9954     return event[5];
9955 }
9956 /**
9957  * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
9958  * @param event packet
9959  * @return playback_position
9960  * @note: btstack_type 4
9961  */
9962 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){
9963     return little_endian_read_32(event, 6);
9964 }
9965 
9966 /**
9967  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
9968  * @param event packet
9969  * @return avrcp_cid
9970  * @note: btstack_type 2
9971  */
9972 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){
9973     return little_endian_read_16(event, 3);
9974 }
9975 /**
9976  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
9977  * @param event packet
9978  * @return command_type
9979  * @note: btstack_type 1
9980  */
9981 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){
9982     return event[5];
9983 }
9984 /**
9985  * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
9986  * @param event packet
9987  * @return battery_status
9988  * @note: btstack_type 1
9989  */
9990 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){
9991     return event[6];
9992 }
9993 
9994 /**
9995  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
9996  * @param event packet
9997  * @return avrcp_cid
9998  * @note: btstack_type 2
9999  */
10000 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){
10001     return little_endian_read_16(event, 3);
10002 }
10003 /**
10004  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
10005  * @param event packet
10006  * @return command_type
10007  * @note: btstack_type 1
10008  */
10009 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){
10010     return event[5];
10011 }
10012 /**
10013  * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
10014  * @param event packet
10015  * @return system_status
10016  * @note: btstack_type 1
10017  */
10018 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){
10019     return event[6];
10020 }
10021 
10022 /**
10023  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
10024  * @param event packet
10025  * @return avrcp_cid
10026  * @note: btstack_type 2
10027  */
10028 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){
10029     return little_endian_read_16(event, 3);
10030 }
10031 /**
10032  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
10033  * @param event packet
10034  * @return command_type
10035  * @note: btstack_type 1
10036  */
10037 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){
10038     return event[5];
10039 }
10040 
10041 /**
10042  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
10043  * @param event packet
10044  * @return avrcp_cid
10045  * @note: btstack_type 2
10046  */
10047 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){
10048     return little_endian_read_16(event, 3);
10049 }
10050 /**
10051  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
10052  * @param event packet
10053  * @return command_type
10054  * @note: btstack_type 1
10055  */
10056 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){
10057     return event[5];
10058 }
10059 
10060 /**
10061  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
10062  * @param event packet
10063  * @return avrcp_cid
10064  * @note: btstack_type 2
10065  */
10066 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){
10067     return little_endian_read_16(event, 3);
10068 }
10069 /**
10070  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
10071  * @param event packet
10072  * @return command_type
10073  * @note: btstack_type 1
10074  */
10075 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){
10076     return event[5];
10077 }
10078 /**
10079  * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
10080  * @param event packet
10081  * @return uid_counter
10082  * @note: btstack_type 2
10083  */
10084 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){
10085     return little_endian_read_16(event, 6);
10086 }
10087 
10088 /**
10089  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
10090  * @param event packet
10091  * @return avrcp_cid
10092  * @note: btstack_type 2
10093  */
10094 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){
10095     return little_endian_read_16(event, 3);
10096 }
10097 /**
10098  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
10099  * @param event packet
10100  * @return command_type
10101  * @note: btstack_type 1
10102  */
10103 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){
10104     return event[5];
10105 }
10106 /**
10107  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
10108  * @param event packet
10109  * @return absolute_volume
10110  * @note: btstack_type 1
10111  */
10112 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){
10113     return event[6];
10114 }
10115 
10116 /**
10117  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
10118  * @param event packet
10119  * @return avrcp_cid
10120  * @note: btstack_type 2
10121  */
10122 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){
10123     return little_endian_read_16(event, 3);
10124 }
10125 /**
10126  * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
10127  * @param event packet
10128  * @return command_type
10129  * @note: btstack_type 1
10130  */
10131 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){
10132     return event[5];
10133 }
10134 /**
10135  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
10136  * @param event packet
10137  * @return absolute_volume
10138  * @note: btstack_type 1
10139  */
10140 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){
10141     return event[6];
10142 }
10143 
10144 /**
10145  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10146  * @param event packet
10147  * @return avrcp_cid
10148  * @note: btstack_type 2
10149  */
10150 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){
10151     return little_endian_read_16(event, 3);
10152 }
10153 /**
10154  * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10155  * @param event packet
10156  * @return status
10157  * @note: btstack_type 1
10158  */
10159 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){
10160     return event[5];
10161 }
10162 /**
10163  * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10164  * @param event packet
10165  * @return enabled
10166  * @note: btstack_type 1
10167  */
10168 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){
10169     return event[6];
10170 }
10171 /**
10172  * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10173  * @param event packet
10174  * @return event_id
10175  * @note: btstack_type 1
10176  */
10177 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){
10178     return event[7];
10179 }
10180 
10181 /**
10182  * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
10183  * @param event packet
10184  * @return status
10185  * @note: btstack_type 1
10186  */
10187 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){
10188     return event[3];
10189 }
10190 /**
10191  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
10192  * @param event packet
10193  * @return avrcp_cid
10194  * @note: btstack_type 2
10195  */
10196 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){
10197     return little_endian_read_16(event, 4);
10198 }
10199 /**
10200  * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
10201  * @param event packet
10202  * @param Pointer to storage for bd_addr
10203  * @note: btstack_type B
10204  */
10205 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10206     reverse_bytes(&event[6], bd_addr, 6);
10207 }
10208 /**
10209  * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
10210  * @param event packet
10211  * @return con_handle
10212  * @note: btstack_type 2
10213  */
10214 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){
10215     return little_endian_read_16(event, 12);
10216 }
10217 
10218 /**
10219  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED
10220  * @param event packet
10221  * @return avrcp_cid
10222  * @note: btstack_type 2
10223  */
10224 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){
10225     return little_endian_read_16(event, 3);
10226 }
10227 
10228 /**
10229  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
10230  * @param event packet
10231  * @return avrcp_cid
10232  * @note: btstack_type 2
10233  */
10234 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){
10235     return little_endian_read_16(event, 3);
10236 }
10237 /**
10238  * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
10239  * @param event packet
10240  * @return command_type
10241  * @note: btstack_type 1
10242  */
10243 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){
10244     return event[5];
10245 }
10246 /**
10247  * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
10248  * @param event packet
10249  * @return repeat_mode
10250  * @note: btstack_type 1
10251  */
10252 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){
10253     return event[6];
10254 }
10255 /**
10256  * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
10257  * @param event packet
10258  * @return shuffle_mode
10259  * @note: btstack_type 1
10260  */
10261 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){
10262     return event[7];
10263 }
10264 
10265 /**
10266  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS
10267  * @param event packet
10268  * @return avrcp_cid
10269  * @note: btstack_type 2
10270  */
10271 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){
10272     return little_endian_read_16(event, 3);
10273 }
10274 /**
10275  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS
10276  * @param event packet
10277  * @return command_type
10278  * @note: btstack_type 1
10279  */
10280 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){
10281     return event[5];
10282 }
10283 /**
10284  * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS
10285  * @param event packet
10286  * @return song_length
10287  * @note: btstack_type 4
10288  */
10289 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){
10290     return little_endian_read_32(event, 6);
10291 }
10292 /**
10293  * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS
10294  * @param event packet
10295  * @return song_position
10296  * @note: btstack_type 4
10297  */
10298 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){
10299     return little_endian_read_32(event, 10);
10300 }
10301 /**
10302  * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS
10303  * @param event packet
10304  * @return play_status
10305  * @note: btstack_type 1
10306  */
10307 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){
10308     return event[14];
10309 }
10310 
10311 /**
10312  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START
10313  * @param event packet
10314  * @return avrcp_cid
10315  * @note: btstack_type 2
10316  */
10317 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){
10318     return little_endian_read_16(event, 3);
10319 }
10320 /**
10321  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START
10322  * @param event packet
10323  * @return command_type
10324  * @note: btstack_type 1
10325  */
10326 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){
10327     return event[5];
10328 }
10329 /**
10330  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START
10331  * @param event packet
10332  * @return operation_id
10333  * @note: btstack_type 1
10334  */
10335 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){
10336     return event[6];
10337 }
10338 
10339 /**
10340  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE
10341  * @param event packet
10342  * @return avrcp_cid
10343  * @note: btstack_type 2
10344  */
10345 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){
10346     return little_endian_read_16(event, 3);
10347 }
10348 /**
10349  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE
10350  * @param event packet
10351  * @return command_type
10352  * @note: btstack_type 1
10353  */
10354 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){
10355     return event[5];
10356 }
10357 /**
10358  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE
10359  * @param event packet
10360  * @return operation_id
10361  * @note: btstack_type 1
10362  */
10363 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){
10364     return event[6];
10365 }
10366 
10367 /**
10368  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
10369  * @param event packet
10370  * @return avrcp_cid
10371  * @note: btstack_type 2
10372  */
10373 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){
10374     return little_endian_read_16(event, 3);
10375 }
10376 /**
10377  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
10378  * @param event packet
10379  * @return command_type
10380  * @note: btstack_type 1
10381  */
10382 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){
10383     return event[5];
10384 }
10385 
10386 /**
10387  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY
10388  * @param event packet
10389  * @return avrcp_cid
10390  * @note: btstack_type 2
10391  */
10392 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){
10393     return little_endian_read_16(event, 3);
10394 }
10395 
10396 /**
10397  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION
10398  * @param event packet
10399  * @return avrcp_cid
10400  * @note: btstack_type 2
10401  */
10402 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){
10403     return little_endian_read_16(event, 3);
10404 }
10405 /**
10406  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION
10407  * @param event packet
10408  * @return operation_id
10409  * @note: btstack_type 1
10410  */
10411 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){
10412     return event[5];
10413 }
10414 /**
10415  * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION
10416  * @param event packet
10417  * @return button_pressed
10418  * @note: btstack_type 1
10419  */
10420 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){
10421     return event[6];
10422 }
10423 /**
10424  * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION
10425  * @param event packet
10426  * @return operands_length
10427  * @note: btstack_type 1
10428  */
10429 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){
10430     return event[7];
10431 }
10432 /**
10433  * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION
10434  * @param event packet
10435  * @return operand
10436  * @note: btstack_type 1
10437  */
10438 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){
10439     return event[8];
10440 }
10441 
10442 /**
10443  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
10444  * @param event packet
10445  * @return avrcp_cid
10446  * @note: btstack_type 2
10447  */
10448 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){
10449     return little_endian_read_16(event, 3);
10450 }
10451 /**
10452  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
10453  * @param event packet
10454  * @return command_type
10455  * @note: btstack_type 1
10456  */
10457 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){
10458     return event[5];
10459 }
10460 /**
10461  * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
10462  * @param event packet
10463  * @return track
10464  * @note: btstack_type 1
10465  */
10466 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){
10467     return event[6];
10468 }
10469 
10470 /**
10471  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
10472  * @param event packet
10473  * @return avrcp_cid
10474  * @note: btstack_type 2
10475  */
10476 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){
10477     return little_endian_read_16(event, 3);
10478 }
10479 /**
10480  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
10481  * @param event packet
10482  * @return command_type
10483  * @note: btstack_type 1
10484  */
10485 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){
10486     return event[5];
10487 }
10488 /**
10489  * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
10490  * @param event packet
10491  * @return total_tracks
10492  * @note: btstack_type 1
10493  */
10494 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){
10495     return event[6];
10496 }
10497 
10498 /**
10499  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
10500  * @param event packet
10501  * @return avrcp_cid
10502  * @note: btstack_type 2
10503  */
10504 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){
10505     return little_endian_read_16(event, 3);
10506 }
10507 /**
10508  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
10509  * @param event packet
10510  * @return command_type
10511  * @note: btstack_type 1
10512  */
10513 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){
10514     return event[5];
10515 }
10516 /**
10517  * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
10518  * @param event packet
10519  * @return song_length
10520  * @note: btstack_type 4
10521  */
10522 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){
10523     return little_endian_read_32(event, 6);
10524 }
10525 
10526 /**
10527  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
10528  * @param event packet
10529  * @return avrcp_cid
10530  * @note: btstack_type 2
10531  */
10532 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){
10533     return little_endian_read_16(event, 3);
10534 }
10535 /**
10536  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
10537  * @param event packet
10538  * @return command_type
10539  * @note: btstack_type 1
10540  */
10541 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){
10542     return event[5];
10543 }
10544 /**
10545  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
10546  * @param event packet
10547  * @return value_len
10548  * @note: btstack_type J
10549  */
10550 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){
10551     return event[6];
10552 }
10553 /**
10554  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
10555  * @param event packet
10556  * @return value
10557  * @note: btstack_type V
10558  */
10559 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){
10560     return &event[7];
10561 }
10562 
10563 /**
10564  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
10565  * @param event packet
10566  * @return avrcp_cid
10567  * @note: btstack_type 2
10568  */
10569 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){
10570     return little_endian_read_16(event, 3);
10571 }
10572 /**
10573  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
10574  * @param event packet
10575  * @return command_type
10576  * @note: btstack_type 1
10577  */
10578 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){
10579     return event[5];
10580 }
10581 /**
10582  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
10583  * @param event packet
10584  * @return value_len
10585  * @note: btstack_type J
10586  */
10587 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){
10588     return event[6];
10589 }
10590 /**
10591  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
10592  * @param event packet
10593  * @return value
10594  * @note: btstack_type V
10595  */
10596 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){
10597     return &event[7];
10598 }
10599 
10600 /**
10601  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
10602  * @param event packet
10603  * @return avrcp_cid
10604  * @note: btstack_type 2
10605  */
10606 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){
10607     return little_endian_read_16(event, 3);
10608 }
10609 /**
10610  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
10611  * @param event packet
10612  * @return command_type
10613  * @note: btstack_type 1
10614  */
10615 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){
10616     return event[5];
10617 }
10618 /**
10619  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
10620  * @param event packet
10621  * @return value_len
10622  * @note: btstack_type J
10623  */
10624 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){
10625     return event[6];
10626 }
10627 /**
10628  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
10629  * @param event packet
10630  * @return value
10631  * @note: btstack_type V
10632  */
10633 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){
10634     return &event[7];
10635 }
10636 
10637 /**
10638  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
10639  * @param event packet
10640  * @return avrcp_cid
10641  * @note: btstack_type 2
10642  */
10643 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){
10644     return little_endian_read_16(event, 3);
10645 }
10646 /**
10647  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
10648  * @param event packet
10649  * @return command_type
10650  * @note: btstack_type 1
10651  */
10652 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){
10653     return event[5];
10654 }
10655 /**
10656  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
10657  * @param event packet
10658  * @return value_len
10659  * @note: btstack_type J
10660  */
10661 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){
10662     return event[6];
10663 }
10664 /**
10665  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
10666  * @param event packet
10667  * @return value
10668  * @note: btstack_type V
10669  */
10670 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){
10671     return &event[7];
10672 }
10673 
10674 /**
10675  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
10676  * @param event packet
10677  * @return avrcp_cid
10678  * @note: btstack_type 2
10679  */
10680 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){
10681     return little_endian_read_16(event, 3);
10682 }
10683 /**
10684  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
10685  * @param event packet
10686  * @return command_type
10687  * @note: btstack_type 1
10688  */
10689 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){
10690     return event[5];
10691 }
10692 /**
10693  * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
10694  * @param event packet
10695  * @return status
10696  * @note: btstack_type 1
10697  */
10698 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){
10699     return event[6];
10700 }
10701 
10702 /**
10703  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
10704  * @param event packet
10705  * @return avrcp_cid
10706  * @note: btstack_type 2
10707  */
10708 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
10709     return little_endian_read_16(event, 3);
10710 }
10711 /**
10712  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
10713  * @param event packet
10714  * @return command_type
10715  * @note: btstack_type 1
10716  */
10717 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){
10718     return event[5];
10719 }
10720 /**
10721  * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
10722  * @param event packet
10723  * @return playback_position_ms
10724  * @note: btstack_type 4
10725  */
10726 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){
10727     return little_endian_read_32(event, 6);
10728 }
10729 
10730 /**
10731  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10732  * @param event packet
10733  * @return avrcp_cid
10734  * @note: btstack_type 2
10735  */
10736 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){
10737     return little_endian_read_16(event, 3);
10738 }
10739 /**
10740  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10741  * @param event packet
10742  * @return command_type
10743  * @note: btstack_type 1
10744  */
10745 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){
10746     return event[5];
10747 }
10748 /**
10749  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10750  * @param event packet
10751  * @return status
10752  * @note: btstack_type 1
10753  */
10754 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){
10755     return event[6];
10756 }
10757 /**
10758  * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10759  * @param event packet
10760  * @return event_id
10761  * @note: btstack_type 1
10762  */
10763 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){
10764     return event[7];
10765 }
10766 
10767 /**
10768  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
10769  * @param event packet
10770  * @return avrcp_cid
10771  * @note: btstack_type 2
10772  */
10773 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){
10774     return little_endian_read_16(event, 3);
10775 }
10776 /**
10777  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
10778  * @param event packet
10779  * @return command_type
10780  * @note: btstack_type 1
10781  */
10782 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){
10783     return event[5];
10784 }
10785 /**
10786  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
10787  * @param event packet
10788  * @return status
10789  * @note: btstack_type 1
10790  */
10791 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){
10792     return event[6];
10793 }
10794 
10795 /**
10796  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10797  * @param event packet
10798  * @return avrcp_cid
10799  * @note: btstack_type 2
10800  */
10801 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){
10802     return little_endian_read_16(event, 3);
10803 }
10804 /**
10805  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10806  * @param event packet
10807  * @return command_type
10808  * @note: btstack_type 1
10809  */
10810 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){
10811     return event[5];
10812 }
10813 /**
10814  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10815  * @param event packet
10816  * @return status
10817  * @note: btstack_type 1
10818  */
10819 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){
10820     return event[6];
10821 }
10822 /**
10823  * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10824  * @param event packet
10825  * @return company_id
10826  * @note: btstack_type 3
10827  */
10828 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){
10829     return little_endian_read_24(event, 7);
10830 }
10831 
10832 /**
10833  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
10834  * @param event packet
10835  * @return avrcp_cid
10836  * @note: btstack_type 2
10837  */
10838 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){
10839     return little_endian_read_16(event, 3);
10840 }
10841 /**
10842  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
10843  * @param event packet
10844  * @return command_type
10845  * @note: btstack_type 1
10846  */
10847 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){
10848     return event[5];
10849 }
10850 /**
10851  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
10852  * @param event packet
10853  * @return status
10854  * @note: btstack_type 1
10855  */
10856 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){
10857     return event[6];
10858 }
10859 
10860 /**
10861  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10862  * @param event packet
10863  * @return avrcp_cid
10864  * @note: btstack_type 2
10865  */
10866 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){
10867     return little_endian_read_16(event, 3);
10868 }
10869 /**
10870  * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10871  * @param event packet
10872  * @return command_type
10873  * @note: btstack_type 1
10874  */
10875 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){
10876     return event[5];
10877 }
10878 /**
10879  * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10880  * @param event packet
10881  * @return pdu_id
10882  * @note: btstack_type 1
10883  */
10884 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){
10885     return event[6];
10886 }
10887 /**
10888  * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10889  * @param event packet
10890  * @return params_len
10891  * @note: btstack_type L
10892  */
10893 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){
10894     return little_endian_read_16(event, 7);
10895 }
10896 /**
10897  * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10898  * @param event packet
10899  * @return params
10900  * @note: btstack_type V
10901  */
10902 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){
10903     return &event[9];
10904 }
10905 
10906 /**
10907  * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
10908  * @param event packet
10909  * @param Pointer to storage for bd_addr
10910  * @note: btstack_type B
10911  */
10912 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10913     reverse_bytes(&event[3], bd_addr, 6);
10914 }
10915 /**
10916  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
10917  * @param event packet
10918  * @return browsing_cid
10919  * @note: btstack_type 2
10920  */
10921 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){
10922     return little_endian_read_16(event, 9);
10923 }
10924 
10925 /**
10926  * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
10927  * @param event packet
10928  * @return status
10929  * @note: btstack_type 1
10930  */
10931 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){
10932     return event[3];
10933 }
10934 /**
10935  * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
10936  * @param event packet
10937  * @param Pointer to storage for bd_addr
10938  * @note: btstack_type B
10939  */
10940 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10941     reverse_bytes(&event[4], bd_addr, 6);
10942 }
10943 /**
10944  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
10945  * @param event packet
10946  * @return browsing_cid
10947  * @note: btstack_type 2
10948  */
10949 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){
10950     return little_endian_read_16(event, 10);
10951 }
10952 
10953 /**
10954  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED
10955  * @param event packet
10956  * @return browsing_cid
10957  * @note: btstack_type 2
10958  */
10959 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){
10960     return little_endian_read_16(event, 3);
10961 }
10962 
10963 /**
10964  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
10965  * @param event packet
10966  * @return browsing_cid
10967  * @note: btstack_type 2
10968  */
10969 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){
10970     return little_endian_read_16(event, 3);
10971 }
10972 /**
10973  * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE
10974  * @param event packet
10975  * @return uid_counter
10976  * @note: btstack_type 2
10977  */
10978 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){
10979     return little_endian_read_16(event, 5);
10980 }
10981 /**
10982  * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE
10983  * @param event packet
10984  * @return browsing_status
10985  * @note: btstack_type 1
10986  */
10987 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){
10988     return event[7];
10989 }
10990 /**
10991  * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE
10992  * @param event packet
10993  * @return bluetooth_status
10994  * @note: btstack_type 1
10995  */
10996 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){
10997     return event[8];
10998 }
10999 
11000 /**
11001  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
11002  * @param event packet
11003  * @return browsing_cid
11004  * @note: btstack_type 2
11005  */
11006 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){
11007     return little_endian_read_16(event, 3);
11008 }
11009 /**
11010  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
11011  * @param event packet
11012  * @return scope
11013  * @note: btstack_type 1
11014  */
11015 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
11016     return event[5];
11017 }
11018 /**
11019  * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
11020  * @param event packet
11021  * @return attr_bitmap
11022  * @note: btstack_type 4
11023  */
11024 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){
11025     return little_endian_read_32(event, 6);
11026 }
11027 
11028 /**
11029  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
11030  * @param event packet
11031  * @return browsing_cid
11032  * @note: btstack_type 2
11033  */
11034 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){
11035     return little_endian_read_16(event, 3);
11036 }
11037 /**
11038  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
11039  * @param event packet
11040  * @return scope
11041  * @note: btstack_type 1
11042  */
11043 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){
11044     return event[5];
11045 }
11046 
11047 /**
11048  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
11049  * @param event packet
11050  * @return browsing_cid
11051  * @note: btstack_type 2
11052  */
11053 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){
11054     return little_endian_read_16(event, 3);
11055 }
11056 /**
11057  * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
11058  * @param event packet
11059  * @return player_id
11060  * @note: btstack_type 2
11061  */
11062 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){
11063     return little_endian_read_16(event, 5);
11064 }
11065 
11066 /**
11067  * @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION
11068  * @param event packet
11069  * @return goep_cid
11070  * @note: btstack_type 2
11071  */
11072 static inline uint16_t goep_subevent_incoming_connection_get_goep_cid(const uint8_t * event){
11073     return little_endian_read_16(event, 3);
11074 }
11075 /**
11076  * @brief Get field address from event GOEP_SUBEVENT_INCOMING_CONNECTION
11077  * @param event packet
11078  * @param Pointer to storage for address
11079  * @note: btstack_type B
11080  */
11081 static inline void goep_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
11082     reverse_bytes(&event[5], address, 6);
11083 }
11084 /**
11085  * @brief Get field handle from event GOEP_SUBEVENT_INCOMING_CONNECTION
11086  * @param event packet
11087  * @return handle
11088  * @note: btstack_type H
11089  */
11090 static inline hci_con_handle_t goep_subevent_incoming_connection_get_handle(const uint8_t * event){
11091     return little_endian_read_16(event, 11);
11092 }
11093 
11094 /**
11095  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED
11096  * @param event packet
11097  * @return goep_cid
11098  * @note: btstack_type 2
11099  */
11100 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){
11101     return little_endian_read_16(event, 3);
11102 }
11103 /**
11104  * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED
11105  * @param event packet
11106  * @return status
11107  * @note: btstack_type 1
11108  */
11109 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){
11110     return event[5];
11111 }
11112 /**
11113  * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED
11114  * @param event packet
11115  * @param Pointer to storage for bd_addr
11116  * @note: btstack_type B
11117  */
11118 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11119     reverse_bytes(&event[6], bd_addr, 6);
11120 }
11121 /**
11122  * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED
11123  * @param event packet
11124  * @return con_handle
11125  * @note: btstack_type H
11126  */
11127 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){
11128     return little_endian_read_16(event, 12);
11129 }
11130 /**
11131  * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED
11132  * @param event packet
11133  * @return incoming
11134  * @note: btstack_type 1
11135  */
11136 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){
11137     return event[14];
11138 }
11139 
11140 /**
11141  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED
11142  * @param event packet
11143  * @return goep_cid
11144  * @note: btstack_type 2
11145  */
11146 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){
11147     return little_endian_read_16(event, 3);
11148 }
11149 
11150 /**
11151  * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW
11152  * @param event packet
11153  * @return goep_cid
11154  * @note: btstack_type 2
11155  */
11156 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){
11157     return little_endian_read_16(event, 3);
11158 }
11159 
11160 /**
11161  * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED
11162  * @param event packet
11163  * @return pbap_cid
11164  * @note: btstack_type 2
11165  */
11166 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){
11167     return little_endian_read_16(event, 3);
11168 }
11169 /**
11170  * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED
11171  * @param event packet
11172  * @return status
11173  * @note: btstack_type 1
11174  */
11175 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){
11176     return event[5];
11177 }
11178 /**
11179  * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED
11180  * @param event packet
11181  * @param Pointer to storage for bd_addr
11182  * @note: btstack_type B
11183  */
11184 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11185     reverse_bytes(&event[6], bd_addr, 6);
11186 }
11187 /**
11188  * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED
11189  * @param event packet
11190  * @return con_handle
11191  * @note: btstack_type H
11192  */
11193 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){
11194     return little_endian_read_16(event, 12);
11195 }
11196 /**
11197  * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED
11198  * @param event packet
11199  * @return incoming
11200  * @note: btstack_type 1
11201  */
11202 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){
11203     return event[14];
11204 }
11205 
11206 /**
11207  * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED
11208  * @param event packet
11209  * @return goep_cid
11210  * @note: btstack_type 2
11211  */
11212 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){
11213     return little_endian_read_16(event, 3);
11214 }
11215 
11216 /**
11217  * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED
11218  * @param event packet
11219  * @return goep_cid
11220  * @note: btstack_type 2
11221  */
11222 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){
11223     return little_endian_read_16(event, 3);
11224 }
11225 /**
11226  * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED
11227  * @param event packet
11228  * @return status
11229  * @note: btstack_type 1
11230  */
11231 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){
11232     return event[5];
11233 }
11234 
11235 /**
11236  * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE
11237  * @param event packet
11238  * @return goep_cid
11239  * @note: btstack_type 2
11240  */
11241 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){
11242     return little_endian_read_16(event, 3);
11243 }
11244 /**
11245  * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE
11246  * @param event packet
11247  * @return status
11248  * @note: btstack_type 1
11249  */
11250 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){
11251     return event[5];
11252 }
11253 /**
11254  * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
11255  * @param event packet
11256  * @return phonebook_size
11257  * @note: btstack_type 2
11258  */
11259 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){
11260     return little_endian_read_16(event, 6);
11261 }
11262 
11263 /**
11264  * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
11265  * @param event packet
11266  * @return goep_cid
11267  * @note: btstack_type 2
11268  */
11269 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){
11270     return little_endian_read_16(event, 3);
11271 }
11272 /**
11273  * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
11274  * @param event packet
11275  * @return user_id_required
11276  * @note: btstack_type 1
11277  */
11278 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){
11279     return event[5];
11280 }
11281 /**
11282  * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
11283  * @param event packet
11284  * @return full_access
11285  * @note: btstack_type 1
11286  */
11287 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){
11288     return event[6];
11289 }
11290 
11291 /**
11292  * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT
11293  * @param event packet
11294  * @return goep_cid
11295  * @note: btstack_type 2
11296  */
11297 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){
11298     return little_endian_read_16(event, 3);
11299 }
11300 /**
11301  * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT
11302  * @param event packet
11303  * @return name_len
11304  * @note: btstack_type J
11305  */
11306 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){
11307     return event[5];
11308 }
11309 /**
11310  * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT
11311  * @param event packet
11312  * @return name
11313  * @note: btstack_type V
11314  */
11315 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){
11316     return &event[6];
11317 }
11318 /**
11319  * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT
11320  * @param event packet
11321  * @return handle_len
11322  * @note: btstack_type J
11323  */
11324 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){
11325     return event[6u + event[5]];
11326 }
11327 /**
11328  * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT
11329  * @param event packet
11330  * @return handle
11331  * @note: btstack_type V
11332  */
11333 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){
11334     return &event[6u + event[5] + 1u];
11335 }
11336 
11337 /**
11338  * @brief Get field goep_cid from event PBAP_SUBEVENT_RESET_MISSED_CALLS
11339  * @param event packet
11340  * @return goep_cid
11341  * @note: btstack_type 2
11342  */
11343 static inline uint16_t pbap_subevent_reset_missed_calls_get_goep_cid(const uint8_t * event){
11344     return little_endian_read_16(event, 3);
11345 }
11346 /**
11347  * @brief Get field phonebook from event PBAP_SUBEVENT_RESET_MISSED_CALLS
11348  * @param event packet
11349  * @return phonebook
11350  * @note: btstack_type 1
11351  */
11352 static inline uint8_t pbap_subevent_reset_missed_calls_get_phonebook(const uint8_t * event){
11353     return event[5];
11354 }
11355 
11356 /**
11357  * @brief Get field goep_cid from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
11358  * @param event packet
11359  * @return goep_cid
11360  * @note: btstack_type 2
11361  */
11362 static inline uint16_t pbap_subevent_query_phonebook_size_get_goep_cid(const uint8_t * event){
11363     return little_endian_read_16(event, 3);
11364 }
11365 /**
11366  * @brief Get field vcard_selector from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
11367  * @param event packet
11368  * @return vcard_selector
11369  * @note: btstack_type 4
11370  */
11371 static inline uint32_t pbap_subevent_query_phonebook_size_get_vcard_selector(const uint8_t * event){
11372     return little_endian_read_32(event, 5);
11373 }
11374 /**
11375  * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
11376  * @param event packet
11377  * @return vcard_selector_operator
11378  * @note: btstack_type 1
11379  */
11380 static inline uint8_t pbap_subevent_query_phonebook_size_get_vcard_selector_operator(const uint8_t * event){
11381     return event[9];
11382 }
11383 /**
11384  * @brief Get field phonebook from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
11385  * @param event packet
11386  * @return phonebook
11387  * @note: btstack_type 1
11388  */
11389 static inline uint8_t pbap_subevent_query_phonebook_size_get_phonebook(const uint8_t * event){
11390     return event[10];
11391 }
11392 
11393 /**
11394  * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_PHONEBOOK
11395  * @param event packet
11396  * @return goep_cid
11397  * @note: btstack_type 2
11398  */
11399 static inline uint16_t pbap_subevent_pull_phonebook_get_goep_cid(const uint8_t * event){
11400     return little_endian_read_16(event, 3);
11401 }
11402 /**
11403  * @brief Get field continuation from event PBAP_SUBEVENT_PULL_PHONEBOOK
11404  * @param event packet
11405  * @return continuation
11406  * @note: btstack_type 4
11407  */
11408 static inline uint32_t pbap_subevent_pull_phonebook_get_continuation(const uint8_t * event){
11409     return little_endian_read_32(event, 5);
11410 }
11411 /**
11412  * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK
11413  * @param event packet
11414  * @return property_selector
11415  * @note: btstack_type 4
11416  */
11417 static inline uint32_t pbap_subevent_pull_phonebook_get_property_selector(const uint8_t * event){
11418     return little_endian_read_32(event, 9);
11419 }
11420 /**
11421  * @brief Get field format from event PBAP_SUBEVENT_PULL_PHONEBOOK
11422  * @param event packet
11423  * @return format
11424  * @note: btstack_type 1
11425  */
11426 static inline uint8_t pbap_subevent_pull_phonebook_get_format(const uint8_t * event){
11427     return event[13];
11428 }
11429 /**
11430  * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_PHONEBOOK
11431  * @param event packet
11432  * @return max_list_count
11433  * @note: btstack_type 2
11434  */
11435 static inline uint16_t pbap_subevent_pull_phonebook_get_max_list_count(const uint8_t * event){
11436     return little_endian_read_16(event, 14);
11437 }
11438 /**
11439  * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_PHONEBOOK
11440  * @param event packet
11441  * @return list_start_offset
11442  * @note: btstack_type 2
11443  */
11444 static inline uint16_t pbap_subevent_pull_phonebook_get_list_start_offset(const uint8_t * event){
11445     return little_endian_read_16(event, 16);
11446 }
11447 /**
11448  * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK
11449  * @param event packet
11450  * @return vcard_selector
11451  * @note: btstack_type 4
11452  */
11453 static inline uint32_t pbap_subevent_pull_phonebook_get_vcard_selector(const uint8_t * event){
11454     return little_endian_read_32(event, 18);
11455 }
11456 /**
11457  * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_PHONEBOOK
11458  * @param event packet
11459  * @return vcard_selector_operator
11460  * @note: btstack_type 1
11461  */
11462 static inline uint8_t pbap_subevent_pull_phonebook_get_vcard_selector_operator(const uint8_t * event){
11463     return event[22];
11464 }
11465 /**
11466  * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_PHONEBOOK
11467  * @param event packet
11468  * @return phonebook
11469  * @note: btstack_type 1
11470  */
11471 static inline uint8_t pbap_subevent_pull_phonebook_get_phonebook(const uint8_t * event){
11472     return event[23];
11473 }
11474 
11475 /**
11476  * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11477  * @param event packet
11478  * @return goep_cid
11479  * @note: btstack_type 2
11480  */
11481 static inline uint16_t pbap_subevent_pull_vcard_listing_get_goep_cid(const uint8_t * event){
11482     return little_endian_read_16(event, 3);
11483 }
11484 /**
11485  * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11486  * @param event packet
11487  * @return continuation
11488  * @note: btstack_type 4
11489  */
11490 static inline uint32_t pbap_subevent_pull_vcard_listing_get_continuation(const uint8_t * event){
11491     return little_endian_read_32(event, 5);
11492 }
11493 /**
11494  * @brief Get field order from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11495  * @param event packet
11496  * @return order
11497  * @note: btstack_type 1
11498  */
11499 static inline uint8_t pbap_subevent_pull_vcard_listing_get_order(const uint8_t * event){
11500     return event[9];
11501 }
11502 /**
11503  * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11504  * @param event packet
11505  * @return max_list_count
11506  * @note: btstack_type 2
11507  */
11508 static inline uint16_t pbap_subevent_pull_vcard_listing_get_max_list_count(const uint8_t * event){
11509     return little_endian_read_16(event, 10);
11510 }
11511 /**
11512  * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11513  * @param event packet
11514  * @return list_start_offset
11515  * @note: btstack_type 2
11516  */
11517 static inline uint16_t pbap_subevent_pull_vcard_listing_get_list_start_offset(const uint8_t * event){
11518     return little_endian_read_16(event, 12);
11519 }
11520 /**
11521  * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11522  * @param event packet
11523  * @return vcard_selector
11524  * @note: btstack_type 4
11525  */
11526 static inline uint32_t pbap_subevent_pull_vcard_listing_get_vcard_selector(const uint8_t * event){
11527     return little_endian_read_32(event, 14);
11528 }
11529 /**
11530  * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11531  * @param event packet
11532  * @return vcard_selector_operator
11533  * @note: btstack_type 1
11534  */
11535 static inline uint8_t pbap_subevent_pull_vcard_listing_get_vcard_selector_operator(const uint8_t * event){
11536     return event[18];
11537 }
11538 /**
11539  * @brief Get field search_property from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11540  * @param event packet
11541  * @return search_property
11542  * @note: btstack_type 1
11543  */
11544 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_property(const uint8_t * event){
11545     return event[19];
11546 }
11547 /**
11548  * @brief Get field search_value_len from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11549  * @param event packet
11550  * @return search_value_len
11551  * @note: btstack_type J
11552  */
11553 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_value_len(const uint8_t * event){
11554     return event[20];
11555 }
11556 /**
11557  * @brief Get field search_value from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11558  * @param event packet
11559  * @return search_value
11560  * @note: btstack_type V
11561  */
11562 static inline const uint8_t * pbap_subevent_pull_vcard_listing_get_search_value(const uint8_t * event){
11563     return &event[21];
11564 }
11565 /**
11566  * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_LISTING
11567  * @param event packet
11568  * @return phonebook
11569  * @note: btstack_type 1
11570  */
11571 static inline uint8_t pbap_subevent_pull_vcard_listing_get_phonebook(const uint8_t * event){
11572     return event[21u + event[20]];
11573 }
11574 
11575 /**
11576  * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
11577  * @param event packet
11578  * @return goep_cid
11579  * @note: btstack_type 2
11580  */
11581 static inline uint16_t pbap_subevent_pull_vcard_entry_get_goep_cid(const uint8_t * event){
11582     return little_endian_read_16(event, 3);
11583 }
11584 /**
11585  * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
11586  * @param event packet
11587  * @return continuation
11588  * @note: btstack_type 4
11589  */
11590 static inline uint32_t pbap_subevent_pull_vcard_entry_get_continuation(const uint8_t * event){
11591     return little_endian_read_32(event, 5);
11592 }
11593 /**
11594  * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
11595  * @param event packet
11596  * @return property_selector
11597  * @note: btstack_type 4
11598  */
11599 static inline uint32_t pbap_subevent_pull_vcard_entry_get_property_selector(const uint8_t * event){
11600     return little_endian_read_32(event, 9);
11601 }
11602 /**
11603  * @brief Get field format from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
11604  * @param event packet
11605  * @return format
11606  * @note: btstack_type 1
11607  */
11608 static inline uint8_t pbap_subevent_pull_vcard_entry_get_format(const uint8_t * event){
11609     return event[13];
11610 }
11611 /**
11612  * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
11613  * @param event packet
11614  * @return phonebook
11615  * @note: btstack_type 1
11616  */
11617 static inline uint8_t pbap_subevent_pull_vcard_entry_get_phonebook(const uint8_t * event){
11618     return event[14];
11619 }
11620 /**
11621  * @brief Get field name from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
11622  * @param event packet
11623  * @return name
11624  * @note: btstack_type T
11625  */
11626 static inline const char * pbap_subevent_pull_vcard_entry_get_name(const uint8_t * event){
11627     return (const char *) &event[15];
11628 }
11629 
11630 /**
11631  * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION
11632  * @param event packet
11633  * @return hid_cid
11634  * @note: btstack_type 2
11635  */
11636 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){
11637     return little_endian_read_16(event, 3);
11638 }
11639 /**
11640  * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION
11641  * @param event packet
11642  * @param Pointer to storage for address
11643  * @note: btstack_type B
11644  */
11645 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
11646     reverse_bytes(&event[5], address, 6);
11647 }
11648 /**
11649  * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION
11650  * @param event packet
11651  * @return handle
11652  * @note: btstack_type H
11653  */
11654 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){
11655     return little_endian_read_16(event, 11);
11656 }
11657 
11658 /**
11659  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED
11660  * @param event packet
11661  * @return hid_cid
11662  * @note: btstack_type 2
11663  */
11664 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){
11665     return little_endian_read_16(event, 3);
11666 }
11667 /**
11668  * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED
11669  * @param event packet
11670  * @return status
11671  * @note: btstack_type 1
11672  */
11673 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){
11674     return event[5];
11675 }
11676 /**
11677  * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED
11678  * @param event packet
11679  * @param Pointer to storage for bd_addr
11680  * @note: btstack_type B
11681  */
11682 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11683     reverse_bytes(&event[6], bd_addr, 6);
11684 }
11685 /**
11686  * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED
11687  * @param event packet
11688  * @return con_handle
11689  * @note: btstack_type H
11690  */
11691 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){
11692     return little_endian_read_16(event, 12);
11693 }
11694 /**
11695  * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED
11696  * @param event packet
11697  * @return incoming
11698  * @note: btstack_type 1
11699  */
11700 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){
11701     return event[14];
11702 }
11703 
11704 /**
11705  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED
11706  * @param event packet
11707  * @return hid_cid
11708  * @note: btstack_type 2
11709  */
11710 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){
11711     return little_endian_read_16(event, 3);
11712 }
11713 
11714 /**
11715  * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW
11716  * @param event packet
11717  * @return hid_cid
11718  * @note: btstack_type 2
11719  */
11720 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){
11721     return little_endian_read_16(event, 3);
11722 }
11723 
11724 /**
11725  * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND
11726  * @param event packet
11727  * @return hid_cid
11728  * @note: btstack_type 2
11729  */
11730 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){
11731     return little_endian_read_16(event, 3);
11732 }
11733 
11734 /**
11735  * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND
11736  * @param event packet
11737  * @return hid_cid
11738  * @note: btstack_type 2
11739  */
11740 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){
11741     return little_endian_read_16(event, 3);
11742 }
11743 
11744 /**
11745  * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG
11746  * @param event packet
11747  * @return hid_cid
11748  * @note: btstack_type 2
11749  */
11750 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){
11751     return little_endian_read_16(event, 3);
11752 }
11753 
11754 /**
11755  * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE
11756  * @param event packet
11757  * @return hid_cid
11758  * @note: btstack_type 2
11759  */
11760 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){
11761     return little_endian_read_16(event, 3);
11762 }
11763 /**
11764  * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE
11765  * @param event packet
11766  * @return handshake_status
11767  * @note: btstack_type 1
11768  */
11769 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){
11770     return event[5];
11771 }
11772 /**
11773  * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE
11774  * @param event packet
11775  * @return report_len
11776  * @note: btstack_type L
11777  */
11778 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){
11779     return little_endian_read_16(event, 6);
11780 }
11781 /**
11782  * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE
11783  * @param event packet
11784  * @return report
11785  * @note: btstack_type V
11786  */
11787 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){
11788     return &event[8];
11789 }
11790 
11791 /**
11792  * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE
11793  * @param event packet
11794  * @return hid_cid
11795  * @note: btstack_type 2
11796  */
11797 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){
11798     return little_endian_read_16(event, 3);
11799 }
11800 /**
11801  * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE
11802  * @param event packet
11803  * @return handshake_status
11804  * @note: btstack_type 1
11805  */
11806 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){
11807     return event[5];
11808 }
11809 
11810 /**
11811  * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
11812  * @param event packet
11813  * @return hid_cid
11814  * @note: btstack_type 2
11815  */
11816 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){
11817     return little_endian_read_16(event, 3);
11818 }
11819 /**
11820  * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
11821  * @param event packet
11822  * @return handshake_status
11823  * @note: btstack_type 1
11824  */
11825 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){
11826     return event[5];
11827 }
11828 /**
11829  * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
11830  * @param event packet
11831  * @return protocol_mode
11832  * @note: btstack_type 1
11833  */
11834 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){
11835     return event[6];
11836 }
11837 
11838 /**
11839  * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
11840  * @param event packet
11841  * @return hid_cid
11842  * @note: btstack_type 2
11843  */
11844 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){
11845     return little_endian_read_16(event, 3);
11846 }
11847 /**
11848  * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
11849  * @param event packet
11850  * @return handshake_status
11851  * @note: btstack_type 1
11852  */
11853 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){
11854     return event[5];
11855 }
11856 /**
11857  * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
11858  * @param event packet
11859  * @return protocol_mode
11860  * @note: btstack_type 1
11861  */
11862 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){
11863     return event[6];
11864 }
11865 
11866 /**
11867  * @brief Get field hid_cid from event HID_SUBEVENT_REPORT
11868  * @param event packet
11869  * @return hid_cid
11870  * @note: btstack_type 2
11871  */
11872 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){
11873     return little_endian_read_16(event, 3);
11874 }
11875 /**
11876  * @brief Get field report_len from event HID_SUBEVENT_REPORT
11877  * @param event packet
11878  * @return report_len
11879  * @note: btstack_type L
11880  */
11881 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){
11882     return little_endian_read_16(event, 5);
11883 }
11884 /**
11885  * @brief Get field report from event HID_SUBEVENT_REPORT
11886  * @param event packet
11887  * @return report
11888  * @note: btstack_type V
11889  */
11890 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){
11891     return &event[7];
11892 }
11893 
11894 /**
11895  * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
11896  * @param event packet
11897  * @return hid_cid
11898  * @note: btstack_type 2
11899  */
11900 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){
11901     return little_endian_read_16(event, 3);
11902 }
11903 /**
11904  * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
11905  * @param event packet
11906  * @return status
11907  * @note: btstack_type 1
11908  */
11909 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){
11910     return event[5];
11911 }
11912 
11913 /**
11914  * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
11915  * @param event packet
11916  * @return hid_cid
11917  * @note: btstack_type 2
11918  */
11919 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){
11920     return little_endian_read_16(event, 3);
11921 }
11922 /**
11923  * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
11924  * @param event packet
11925  * @return host_max_latency
11926  * @note: btstack_type 2
11927  */
11928 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){
11929     return little_endian_read_16(event, 5);
11930 }
11931 /**
11932  * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
11933  * @param event packet
11934  * @return host_min_timeout
11935  * @note: btstack_type 2
11936  */
11937 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){
11938     return little_endian_read_16(event, 7);
11939 }
11940 
11941 /**
11942  * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
11943  * @param event packet
11944  * @return con_handle
11945  * @note: btstack_type 2
11946  */
11947 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){
11948     return little_endian_read_16(event, 3);
11949 }
11950 
11951 /**
11952  * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE
11953  * @param event packet
11954  * @return con_handle
11955  * @note: btstack_type 2
11956  */
11957 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){
11958     return little_endian_read_16(event, 3);
11959 }
11960 /**
11961  * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE
11962  * @param event packet
11963  * @return protocol_mode
11964  * @note: btstack_type 1
11965  */
11966 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){
11967     return event[5];
11968 }
11969 
11970 /**
11971  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
11972  * @param event packet
11973  * @return con_handle
11974  * @note: btstack_type 2
11975  */
11976 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){
11977     return little_endian_read_16(event, 3);
11978 }
11979 /**
11980  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
11981  * @param event packet
11982  * @return enable
11983  * @note: btstack_type 1
11984  */
11985 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){
11986     return event[5];
11987 }
11988 
11989 /**
11990  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
11991  * @param event packet
11992  * @return con_handle
11993  * @note: btstack_type 2
11994  */
11995 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){
11996     return little_endian_read_16(event, 3);
11997 }
11998 /**
11999  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
12000  * @param event packet
12001  * @return enable
12002  * @note: btstack_type 1
12003  */
12004 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){
12005     return event[5];
12006 }
12007 
12008 /**
12009  * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
12010  * @param event packet
12011  * @return con_handle
12012  * @note: btstack_type 2
12013  */
12014 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){
12015     return little_endian_read_16(event, 3);
12016 }
12017 /**
12018  * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
12019  * @param event packet
12020  * @return enable
12021  * @note: btstack_type 1
12022  */
12023 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){
12024     return event[5];
12025 }
12026 
12027 /**
12028  * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
12029  * @param event packet
12030  * @return con_handle
12031  * @note: btstack_type 2
12032  */
12033 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){
12034     return little_endian_read_16(event, 3);
12035 }
12036 /**
12037  * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
12038  * @param event packet
12039  * @return enable
12040  * @note: btstack_type 1
12041  */
12042 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){
12043     return event[5];
12044 }
12045 
12046 /**
12047  * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
12048  * @param event packet
12049  * @return con_handle
12050  * @note: btstack_type 2
12051  */
12052 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){
12053     return little_endian_read_16(event, 3);
12054 }
12055 /**
12056  * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
12057  * @param event packet
12058  * @return enable
12059  * @note: btstack_type 1
12060  */
12061 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){
12062     return event[5];
12063 }
12064 
12065 /**
12066  * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND
12067  * @param event packet
12068  * @return con_handle
12069  * @note: btstack_type 2
12070  */
12071 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){
12072     return little_endian_read_16(event, 3);
12073 }
12074 
12075 /**
12076  * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND
12077  * @param event packet
12078  * @return con_handle
12079  * @note: btstack_type 2
12080  */
12081 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){
12082     return little_endian_read_16(event, 3);
12083 }
12084 
12085 /**
12086  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
12087  * @param event packet
12088  * @return con_handle
12089  * @note: btstack_type 2
12090  */
12091 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){
12092     return little_endian_read_16(event, 3);
12093 }
12094 /**
12095  * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
12096  * @param event packet
12097  * @return measurement_type
12098  * @note: btstack_type 1
12099  */
12100 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){
12101     return event[5];
12102 }
12103 /**
12104  * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
12105  * @param event packet
12106  * @return is_enhanced
12107  * @note: btstack_type 1
12108  */
12109 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){
12110     return event[6];
12111 }
12112 
12113 /**
12114  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START
12115  * @param event packet
12116  * @return con_handle
12117  * @note: btstack_type 2
12118  */
12119 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){
12120     return little_endian_read_16(event, 3);
12121 }
12122 
12123 /**
12124  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP
12125  * @param event packet
12126  * @return con_handle
12127  * @note: btstack_type 2
12128  */
12129 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){
12130     return little_endian_read_16(event, 3);
12131 }
12132 
12133 /**
12134  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
12135  * @param event packet
12136  * @return hids_cid
12137  * @note: btstack_type 2
12138  */
12139 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){
12140     return little_endian_read_16(event, 3);
12141 }
12142 /**
12143  * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
12144  * @param event packet
12145  * @return status
12146  * @note: btstack_type 1
12147  */
12148 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){
12149     return event[5];
12150 }
12151 /**
12152  * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
12153  * @param event packet
12154  * @return num_instances
12155  * @note: btstack_type 1
12156  */
12157 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){
12158     return event[6];
12159 }
12160 /**
12161  * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
12162  * @param event packet
12163  * @return poll_bitmap
12164  * @note: btstack_type 1
12165  */
12166 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){
12167     return event[7];
12168 }
12169 
12170 /**
12171  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
12172  * @param event packet
12173  * @return hids_cid
12174  * @note: btstack_type 2
12175  */
12176 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){
12177     return little_endian_read_16(event, 3);
12178 }
12179 /**
12180  * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
12181  * @param event packet
12182  * @return sevice_index
12183  * @note: btstack_type 1
12184  */
12185 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){
12186     return event[5];
12187 }
12188 /**
12189  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
12190  * @param event packet
12191  * @return att_status
12192  * @note: btstack_type 1
12193  */
12194 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){
12195     return event[6];
12196 }
12197 /**
12198  * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
12199  * @param event packet
12200  * @return level
12201  * @note: btstack_type 1
12202  */
12203 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){
12204     return event[7];
12205 }
12206 
12207 /**
12208  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
12209  * @param event packet
12210  * @return con_handle
12211  * @note: btstack_type H
12212  */
12213 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){
12214     return little_endian_read_16(event, 3);
12215 }
12216 /**
12217  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
12218  * @param event packet
12219  * @return att_status
12220  * @note: btstack_type 1
12221  */
12222 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){
12223     return event[5];
12224 }
12225 
12226 /**
12227  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
12228  * @param event packet
12229  * @return con_handle
12230  * @note: btstack_type H
12231  */
12232 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){
12233     return little_endian_read_16(event, 3);
12234 }
12235 /**
12236  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
12237  * @param event packet
12238  * @return att_status
12239  * @note: btstack_type 1
12240  */
12241 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){
12242     return event[5];
12243 }
12244 /**
12245  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
12246  * @param event packet
12247  * @return value
12248  * @note: btstack_type T
12249  */
12250 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){
12251     return (const char *) &event[6];
12252 }
12253 
12254 /**
12255  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
12256  * @param event packet
12257  * @return con_handle
12258  * @note: btstack_type H
12259  */
12260 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){
12261     return little_endian_read_16(event, 3);
12262 }
12263 /**
12264  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
12265  * @param event packet
12266  * @return att_status
12267  * @note: btstack_type 1
12268  */
12269 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){
12270     return event[5];
12271 }
12272 /**
12273  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
12274  * @param event packet
12275  * @return value
12276  * @note: btstack_type T
12277  */
12278 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){
12279     return (const char *) &event[6];
12280 }
12281 
12282 /**
12283  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
12284  * @param event packet
12285  * @return con_handle
12286  * @note: btstack_type H
12287  */
12288 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){
12289     return little_endian_read_16(event, 3);
12290 }
12291 /**
12292  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
12293  * @param event packet
12294  * @return att_status
12295  * @note: btstack_type 1
12296  */
12297 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){
12298     return event[5];
12299 }
12300 /**
12301  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
12302  * @param event packet
12303  * @return value
12304  * @note: btstack_type T
12305  */
12306 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){
12307     return (const char *) &event[6];
12308 }
12309 
12310 /**
12311  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
12312  * @param event packet
12313  * @return con_handle
12314  * @note: btstack_type H
12315  */
12316 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){
12317     return little_endian_read_16(event, 3);
12318 }
12319 /**
12320  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
12321  * @param event packet
12322  * @return att_status
12323  * @note: btstack_type 1
12324  */
12325 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){
12326     return event[5];
12327 }
12328 /**
12329  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
12330  * @param event packet
12331  * @return value
12332  * @note: btstack_type T
12333  */
12334 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){
12335     return (const char *) &event[6];
12336 }
12337 
12338 /**
12339  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
12340  * @param event packet
12341  * @return con_handle
12342  * @note: btstack_type H
12343  */
12344 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){
12345     return little_endian_read_16(event, 3);
12346 }
12347 /**
12348  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
12349  * @param event packet
12350  * @return att_status
12351  * @note: btstack_type 1
12352  */
12353 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){
12354     return event[5];
12355 }
12356 /**
12357  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
12358  * @param event packet
12359  * @return value
12360  * @note: btstack_type T
12361  */
12362 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){
12363     return (const char *) &event[6];
12364 }
12365 
12366 /**
12367  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
12368  * @param event packet
12369  * @return con_handle
12370  * @note: btstack_type H
12371  */
12372 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){
12373     return little_endian_read_16(event, 3);
12374 }
12375 /**
12376  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
12377  * @param event packet
12378  * @return att_status
12379  * @note: btstack_type 1
12380  */
12381 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){
12382     return event[5];
12383 }
12384 /**
12385  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
12386  * @param event packet
12387  * @return value
12388  * @note: btstack_type T
12389  */
12390 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){
12391     return (const char *) &event[6];
12392 }
12393 
12394 /**
12395  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
12396  * @param event packet
12397  * @return con_handle
12398  * @note: btstack_type H
12399  */
12400 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){
12401     return little_endian_read_16(event, 3);
12402 }
12403 /**
12404  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
12405  * @param event packet
12406  * @return att_status
12407  * @note: btstack_type 1
12408  */
12409 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){
12410     return event[5];
12411 }
12412 /**
12413  * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
12414  * @param event packet
12415  * @return manufacturer_id_low
12416  * @note: btstack_type 4
12417  */
12418 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){
12419     return little_endian_read_32(event, 6);
12420 }
12421 /**
12422  * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
12423  * @param event packet
12424  * @return manufacturer_id_high
12425  * @note: btstack_type 1
12426  */
12427 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){
12428     return event[10];
12429 }
12430 /**
12431  * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
12432  * @param event packet
12433  * @return organizationally_unique_id
12434  * @note: btstack_type 3
12435  */
12436 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){
12437     return little_endian_read_24(event, 11);
12438 }
12439 
12440 /**
12441  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
12442  * @param event packet
12443  * @return con_handle
12444  * @note: btstack_type H
12445  */
12446 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){
12447     return little_endian_read_16(event, 3);
12448 }
12449 /**
12450  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
12451  * @param event packet
12452  * @return att_status
12453  * @note: btstack_type 1
12454  */
12455 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){
12456     return event[5];
12457 }
12458 /**
12459  * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
12460  * @param event packet
12461  * @return value_a
12462  * @note: btstack_type 2
12463  */
12464 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){
12465     return little_endian_read_16(event, 6);
12466 }
12467 /**
12468  * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
12469  * @param event packet
12470  * @return value_b
12471  * @note: btstack_type 2
12472  */
12473 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){
12474     return little_endian_read_16(event, 8);
12475 }
12476 
12477 /**
12478  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
12479  * @param event packet
12480  * @return con_handle
12481  * @note: btstack_type H
12482  */
12483 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){
12484     return little_endian_read_16(event, 3);
12485 }
12486 /**
12487  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
12488  * @param event packet
12489  * @return att_status
12490  * @note: btstack_type 1
12491  */
12492 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){
12493     return event[5];
12494 }
12495 /**
12496  * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
12497  * @param event packet
12498  * @return vendor_source_id
12499  * @note: btstack_type 1
12500  */
12501 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){
12502     return event[6];
12503 }
12504 /**
12505  * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
12506  * @param event packet
12507  * @return vendor_id
12508  * @note: btstack_type 2
12509  */
12510 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){
12511     return little_endian_read_16(event, 7);
12512 }
12513 /**
12514  * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
12515  * @param event packet
12516  * @return product_id
12517  * @note: btstack_type 2
12518  */
12519 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){
12520     return little_endian_read_16(event, 9);
12521 }
12522 /**
12523  * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
12524  * @param event packet
12525  * @return product_version
12526  * @note: btstack_type 2
12527  */
12528 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){
12529     return little_endian_read_16(event, 11);
12530 }
12531 
12532 /**
12533  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED
12534  * @param event packet
12535  * @return con_handle
12536  * @note: btstack_type H
12537  */
12538 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){
12539     return little_endian_read_16(event, 3);
12540 }
12541 /**
12542  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED
12543  * @param event packet
12544  * @return att_status
12545  * @note: btstack_type 1
12546  */
12547 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){
12548     return event[5];
12549 }
12550 
12551 /**
12552  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED
12553  * @param event packet
12554  * @return con_handle
12555  * @note: btstack_type H
12556  */
12557 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){
12558     return little_endian_read_16(event, 3);
12559 }
12560 
12561 /**
12562  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED
12563  * @param event packet
12564  * @return con_handle
12565  * @note: btstack_type H
12566  */
12567 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){
12568     return little_endian_read_16(event, 3);
12569 }
12570 
12571 /**
12572  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
12573  * @param event packet
12574  * @return hids_cid
12575  * @note: btstack_type 2
12576  */
12577 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){
12578     return little_endian_read_16(event, 3);
12579 }
12580 /**
12581  * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
12582  * @param event packet
12583  * @return status
12584  * @note: btstack_type 1
12585  */
12586 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){
12587     return event[5];
12588 }
12589 /**
12590  * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
12591  * @param event packet
12592  * @return protocol_mode
12593  * @note: btstack_type 1
12594  */
12595 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){
12596     return event[6];
12597 }
12598 /**
12599  * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
12600  * @param event packet
12601  * @return num_instances
12602  * @note: btstack_type 1
12603  */
12604 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){
12605     return event[7];
12606 }
12607 
12608 /**
12609  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT
12610  * @param event packet
12611  * @return hids_cid
12612  * @note: btstack_type 2
12613  */
12614 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){
12615     return little_endian_read_16(event, 3);
12616 }
12617 /**
12618  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT
12619  * @param event packet
12620  * @return service_index
12621  * @note: btstack_type 1
12622  */
12623 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){
12624     return event[5];
12625 }
12626 /**
12627  * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT
12628  * @param event packet
12629  * @return report_id
12630  * @note: btstack_type 1
12631  */
12632 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){
12633     return event[6];
12634 }
12635 /**
12636  * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT
12637  * @param event packet
12638  * @return report_len
12639  * @note: btstack_type L
12640  */
12641 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){
12642     return little_endian_read_16(event, 7);
12643 }
12644 /**
12645  * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT
12646  * @param event packet
12647  * @return report
12648  * @note: btstack_type V
12649  */
12650 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){
12651     return &event[9];
12652 }
12653 
12654 /**
12655  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION
12656  * @param event packet
12657  * @return hids_cid
12658  * @note: btstack_type 2
12659  */
12660 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){
12661     return little_endian_read_16(event, 3);
12662 }
12663 /**
12664  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION
12665  * @param event packet
12666  * @return service_index
12667  * @note: btstack_type 1
12668  */
12669 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){
12670     return event[5];
12671 }
12672 /**
12673  * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION
12674  * @param event packet
12675  * @return base_usb_hid_version
12676  * @note: btstack_type 2
12677  */
12678 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){
12679     return little_endian_read_16(event, 6);
12680 }
12681 /**
12682  * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION
12683  * @param event packet
12684  * @return country_code
12685  * @note: btstack_type 1
12686  */
12687 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){
12688     return event[8];
12689 }
12690 /**
12691  * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION
12692  * @param event packet
12693  * @return remote_wake
12694  * @note: btstack_type 1
12695  */
12696 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){
12697     return event[9];
12698 }
12699 /**
12700  * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION
12701  * @param event packet
12702  * @return normally_connectable
12703  * @note: btstack_type 1
12704  */
12705 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){
12706     return event[10];
12707 }
12708 
12709 /**
12710  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
12711  * @param event packet
12712  * @return hids_cid
12713  * @note: btstack_type 2
12714  */
12715 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){
12716     return little_endian_read_16(event, 3);
12717 }
12718 /**
12719  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
12720  * @param event packet
12721  * @return service_index
12722  * @note: btstack_type 1
12723  */
12724 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){
12725     return event[5];
12726 }
12727 /**
12728  * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
12729  * @param event packet
12730  * @return protocol_mode
12731  * @note: btstack_type 1
12732  */
12733 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){
12734     return event[6];
12735 }
12736 
12737 /**
12738  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
12739  * @param event packet
12740  * @return hids_cid
12741  * @note: btstack_type 2
12742  */
12743 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){
12744     return little_endian_read_16(event, 3);
12745 }
12746 /**
12747  * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
12748  * @param event packet
12749  * @return configuration
12750  * @note: btstack_type 1
12751  */
12752 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){
12753     return event[5];
12754 }
12755 
12756 /**
12757  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
12758  * @param event packet
12759  * @return con_handle
12760  * @note: btstack_type H
12761  */
12762 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){
12763     return little_endian_read_16(event, 3);
12764 }
12765 /**
12766  * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
12767  * @param event packet
12768  * @return max_scan_interval
12769  * @note: btstack_type 2
12770  */
12771 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){
12772     return little_endian_read_16(event, 5);
12773 }
12774 /**
12775  * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
12776  * @param event packet
12777  * @return min_scan_window
12778  * @note: btstack_type 2
12779  */
12780 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){
12781     return little_endian_read_16(event, 7);
12782 }
12783 
12784 /**
12785  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_MICS_CONNECTED
12786  * @param event packet
12787  * @return hids_cid
12788  * @note: btstack_type 2
12789  */
12790 static inline uint16_t gattservice_subevent_mics_connected_get_hids_cid(const uint8_t * event){
12791     return little_endian_read_16(event, 3);
12792 }
12793 /**
12794  * @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_CONNECTED
12795  * @param event packet
12796  * @return status
12797  * @note: btstack_type 1
12798  */
12799 static inline uint8_t gattservice_subevent_mics_connected_get_status(const uint8_t * event){
12800     return event[5];
12801 }
12802 
12803 /**
12804  * @brief Get field cid from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE
12805  * @param event packet
12806  * @return cid
12807  * @note: btstack_type 2
12808  */
12809 static inline uint16_t gattservice_subevent_remote_mics_mute_get_cid(const uint8_t * event){
12810     return little_endian_read_16(event, 3);
12811 }
12812 /**
12813  * @brief Get field status from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE
12814  * @param event packet
12815  * @return status
12816  * @note: btstack_type 1
12817  */
12818 static inline uint8_t gattservice_subevent_remote_mics_mute_get_status(const uint8_t * event){
12819     return event[5];
12820 }
12821 /**
12822  * @brief Get field state from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE
12823  * @param event packet
12824  * @return state
12825  * @note: btstack_type 1
12826  */
12827 static inline uint8_t gattservice_subevent_remote_mics_mute_get_state(const uint8_t * event){
12828     return event[6];
12829 }
12830 
12831 /**
12832  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE
12833  * @param event packet
12834  * @return con_handle
12835  * @note: btstack_type H
12836  */
12837 static inline hci_con_handle_t gattservice_subevent_local_mics_mute_get_con_handle(const uint8_t * event){
12838     return little_endian_read_16(event, 3);
12839 }
12840 /**
12841  * @brief Get field state from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE
12842  * @param event packet
12843  * @return state
12844  * @note: btstack_type 1
12845  */
12846 static inline uint8_t gattservice_subevent_local_mics_mute_get_state(const uint8_t * event){
12847     return event[5];
12848 }
12849 
12850 /**
12851  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_MUTE_MODE
12852  * @param event packet
12853  * @return con_handle
12854  * @note: btstack_type H
12855  */
12856 static inline hci_con_handle_t gattservice_subevent_aics_mute_mode_get_con_handle(const uint8_t * event){
12857     return little_endian_read_16(event, 3);
12858 }
12859 /**
12860  * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_MUTE_MODE
12861  * @param event packet
12862  * @return index
12863  * @note: btstack_type 1
12864  */
12865 static inline uint8_t gattservice_subevent_aics_mute_mode_get_index(const uint8_t * event){
12866     return event[5];
12867 }
12868 /**
12869  * @brief Get field state from event GATTSERVICE_SUBEVENT_AICS_MUTE_MODE
12870  * @param event packet
12871  * @return state
12872  * @note: btstack_type 1
12873  */
12874 static inline uint8_t gattservice_subevent_aics_mute_mode_get_state(const uint8_t * event){
12875     return event[6];
12876 }
12877 
12878 /**
12879  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_GAIN_MODE
12880  * @param event packet
12881  * @return con_handle
12882  * @note: btstack_type H
12883  */
12884 static inline hci_con_handle_t gattservice_subevent_aics_gain_mode_get_con_handle(const uint8_t * event){
12885     return little_endian_read_16(event, 3);
12886 }
12887 /**
12888  * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_GAIN_MODE
12889  * @param event packet
12890  * @return index
12891  * @note: btstack_type 1
12892  */
12893 static inline uint8_t gattservice_subevent_aics_gain_mode_get_index(const uint8_t * event){
12894     return event[5];
12895 }
12896 /**
12897  * @brief Get field state from event GATTSERVICE_SUBEVENT_AICS_GAIN_MODE
12898  * @param event packet
12899  * @return state
12900  * @note: btstack_type 1
12901  */
12902 static inline uint8_t gattservice_subevent_aics_gain_mode_get_state(const uint8_t * event){
12903     return event[6];
12904 }
12905 
12906 /**
12907  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_GAIN_CHANGED
12908  * @param event packet
12909  * @return con_handle
12910  * @note: btstack_type H
12911  */
12912 static inline hci_con_handle_t gattservice_subevent_aics_gain_changed_get_con_handle(const uint8_t * event){
12913     return little_endian_read_16(event, 3);
12914 }
12915 /**
12916  * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_GAIN_CHANGED
12917  * @param event packet
12918  * @return index
12919  * @note: btstack_type 1
12920  */
12921 static inline uint8_t gattservice_subevent_aics_gain_changed_get_index(const uint8_t * event){
12922     return event[5];
12923 }
12924 /**
12925  * @brief Get field gain_db from event GATTSERVICE_SUBEVENT_AICS_GAIN_CHANGED
12926  * @param event packet
12927  * @return gain_db
12928  * @note: btstack_type 1
12929  */
12930 static inline uint8_t gattservice_subevent_aics_gain_changed_get_gain_db(const uint8_t * event){
12931     return event[6];
12932 }
12933 
12934 /**
12935  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED
12936  * @param event packet
12937  * @return con_handle
12938  * @note: btstack_type H
12939  */
12940 static inline hci_con_handle_t gattservice_subevent_aics_audio_input_desc_changed_get_con_handle(const uint8_t * event){
12941     return little_endian_read_16(event, 3);
12942 }
12943 /**
12944  * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED
12945  * @param event packet
12946  * @return index
12947  * @note: btstack_type 1
12948  */
12949 static inline uint8_t gattservice_subevent_aics_audio_input_desc_changed_get_index(const uint8_t * event){
12950     return event[5];
12951 }
12952 /**
12953  * @brief Get field description_len from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED
12954  * @param event packet
12955  * @return description_len
12956  * @note: btstack_type J
12957  */
12958 static inline uint8_t gattservice_subevent_aics_audio_input_desc_changed_get_description_len(const uint8_t * event){
12959     return event[6];
12960 }
12961 /**
12962  * @brief Get field description from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED
12963  * @param event packet
12964  * @return description
12965  * @note: btstack_type V
12966  */
12967 static inline const uint8_t * gattservice_subevent_aics_audio_input_desc_changed_get_description(const uint8_t * event){
12968     return &event[7];
12969 }
12970 
12971 /**
12972  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET
12973  * @param event packet
12974  * @return con_handle
12975  * @note: btstack_type H
12976  */
12977 static inline hci_con_handle_t gattservice_subevent_vocs_volume_offset_get_con_handle(const uint8_t * event){
12978     return little_endian_read_16(event, 3);
12979 }
12980 /**
12981  * @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET
12982  * @param event packet
12983  * @return index
12984  * @note: btstack_type 1
12985  */
12986 static inline uint8_t gattservice_subevent_vocs_volume_offset_get_index(const uint8_t * event){
12987     return event[5];
12988 }
12989 /**
12990  * @brief Get field volume_offset from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET
12991  * @param event packet
12992  * @return volume_offset
12993  * @note: btstack_type 2
12994  */
12995 static inline uint16_t gattservice_subevent_vocs_volume_offset_get_volume_offset(const uint8_t * event){
12996     return little_endian_read_16(event, 6);
12997 }
12998 
12999 /**
13000  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION
13001  * @param event packet
13002  * @return con_handle
13003  * @note: btstack_type H
13004  */
13005 static inline hci_con_handle_t gattservice_subevent_vocs_audio_location_get_con_handle(const uint8_t * event){
13006     return little_endian_read_16(event, 3);
13007 }
13008 /**
13009  * @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION
13010  * @param event packet
13011  * @return index
13012  * @note: btstack_type 1
13013  */
13014 static inline uint8_t gattservice_subevent_vocs_audio_location_get_index(const uint8_t * event){
13015     return event[5];
13016 }
13017 /**
13018  * @brief Get field audio_location from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION
13019  * @param event packet
13020  * @return audio_location
13021  * @note: btstack_type 4
13022  */
13023 static inline uint32_t gattservice_subevent_vocs_audio_location_get_audio_location(const uint8_t * event){
13024     return little_endian_read_32(event, 6);
13025 }
13026 
13027 /**
13028  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
13029  * @param event packet
13030  * @return con_handle
13031  * @note: btstack_type H
13032  */
13033 static inline hci_con_handle_t gattservice_subevent_vocs_audio_output_desc_changed_get_con_handle(const uint8_t * event){
13034     return little_endian_read_16(event, 3);
13035 }
13036 /**
13037  * @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
13038  * @param event packet
13039  * @return index
13040  * @note: btstack_type 1
13041  */
13042 static inline uint8_t gattservice_subevent_vocs_audio_output_desc_changed_get_index(const uint8_t * event){
13043     return event[5];
13044 }
13045 /**
13046  * @brief Get field description_len from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
13047  * @param event packet
13048  * @return description_len
13049  * @note: btstack_type J
13050  */
13051 static inline uint8_t gattservice_subevent_vocs_audio_output_desc_changed_get_description_len(const uint8_t * event){
13052     return event[6];
13053 }
13054 /**
13055  * @brief Get field description from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
13056  * @param event packet
13057  * @return description
13058  * @note: btstack_type V
13059  */
13060 static inline const uint8_t * gattservice_subevent_vocs_audio_output_desc_changed_get_description(const uint8_t * event){
13061     return &event[7];
13062 }
13063 
13064 /**
13065  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
13066  * @param event packet
13067  * @return con_handle
13068  * @note: btstack_type H
13069  */
13070 static inline hci_con_handle_t gattservice_subevent_vcs_volume_state_get_con_handle(const uint8_t * event){
13071     return little_endian_read_16(event, 3);
13072 }
13073 /**
13074  * @brief Get field volume_setting from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
13075  * @param event packet
13076  * @return volume_setting
13077  * @note: btstack_type 1
13078  */
13079 static inline uint8_t gattservice_subevent_vcs_volume_state_get_volume_setting(const uint8_t * event){
13080     return event[5];
13081 }
13082 /**
13083  * @brief Get field volume_change_step from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
13084  * @param event packet
13085  * @return volume_change_step
13086  * @note: btstack_type 1
13087  */
13088 static inline uint8_t gattservice_subevent_vcs_volume_state_get_volume_change_step(const uint8_t * event){
13089     return event[6];
13090 }
13091 /**
13092  * @brief Get field mute from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
13093  * @param event packet
13094  * @return mute
13095  * @note: btstack_type 1
13096  */
13097 static inline uint8_t gattservice_subevent_vcs_volume_state_get_mute(const uint8_t * event){
13098     return event[7];
13099 }
13100 
13101 /**
13102  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_VOLUME_FLAGS
13103  * @param event packet
13104  * @return con_handle
13105  * @note: btstack_type H
13106  */
13107 static inline hci_con_handle_t gattservice_subevent_vcs_volume_flags_get_con_handle(const uint8_t * event){
13108     return little_endian_read_16(event, 3);
13109 }
13110 /**
13111  * @brief Get field flags from event GATTSERVICE_SUBEVENT_VCS_VOLUME_FLAGS
13112  * @param event packet
13113  * @return flags
13114  * @note: btstack_type 1
13115  */
13116 static inline uint8_t gattservice_subevent_vcs_volume_flags_get_flags(const uint8_t * event){
13117     return event[5];
13118 }
13119 
13120 /**
13121  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_REMOTE_SCAN_STOPPED
13122  * @param event packet
13123  * @return con_handle
13124  * @note: btstack_type H
13125  */
13126 static inline hci_con_handle_t gattservice_subevent_bass_remote_scan_stopped_get_con_handle(const uint8_t * event){
13127     return little_endian_read_16(event, 3);
13128 }
13129 
13130 /**
13131  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_REMOTE_SCAN_STARTED
13132  * @param event packet
13133  * @return con_handle
13134  * @note: btstack_type H
13135  */
13136 static inline hci_con_handle_t gattservice_subevent_bass_remote_scan_started_get_con_handle(const uint8_t * event){
13137     return little_endian_read_16(event, 3);
13138 }
13139 
13140 /**
13141  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE
13142  * @param event packet
13143  * @return con_handle
13144  * @note: btstack_type H
13145  */
13146 static inline hci_con_handle_t gattservice_subevent_bass_broadcast_code_get_con_handle(const uint8_t * event){
13147     return little_endian_read_16(event, 3);
13148 }
13149 /**
13150  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE
13151  * @param event packet
13152  * @return source_id
13153  * @note: btstack_type 1
13154  */
13155 static inline uint8_t gattservice_subevent_bass_broadcast_code_get_source_id(const uint8_t * event){
13156     return event[5];
13157 }
13158 /**
13159  * @brief Get field broadcast_code from event GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE
13160  * @param event packet
13161  * @param Pointer to storage for broadcast_code
13162  * @note: btstack_type K
13163  */
13164 static inline void gattservice_subevent_bass_broadcast_code_get_broadcast_code(const uint8_t * event, uint8_t * broadcast_code){
13165     reverse_bytes(&event[6], broadcast_code, 16);
13166 }
13167 
13168 /**
13169  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED
13170  * @param event packet
13171  * @return con_handle
13172  * @note: btstack_type H
13173  */
13174 static inline hci_con_handle_t gattservice_subevent_bass_source_added_get_con_handle(const uint8_t * event){
13175     return little_endian_read_16(event, 3);
13176 }
13177 /**
13178  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED
13179  * @param event packet
13180  * @return source_id
13181  * @note: btstack_type 1
13182  */
13183 static inline uint8_t gattservice_subevent_bass_source_added_get_source_id(const uint8_t * event){
13184     return event[5];
13185 }
13186 /**
13187  * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED
13188  * @param event packet
13189  * @return pa_sync
13190  * @note: btstack_type 1
13191  */
13192 static inline uint8_t gattservice_subevent_bass_source_added_get_pa_sync(const uint8_t * event){
13193     return event[6];
13194 }
13195 
13196 /**
13197  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED
13198  * @param event packet
13199  * @return con_handle
13200  * @note: btstack_type H
13201  */
13202 static inline hci_con_handle_t gattservice_subevent_bass_source_modified_get_con_handle(const uint8_t * event){
13203     return little_endian_read_16(event, 3);
13204 }
13205 /**
13206  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED
13207  * @param event packet
13208  * @return source_id
13209  * @note: btstack_type 1
13210  */
13211 static inline uint8_t gattservice_subevent_bass_source_modified_get_source_id(const uint8_t * event){
13212     return event[5];
13213 }
13214 /**
13215  * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED
13216  * @param event packet
13217  * @return pa_sync
13218  * @note: btstack_type 1
13219  */
13220 static inline uint8_t gattservice_subevent_bass_source_modified_get_pa_sync(const uint8_t * event){
13221     return event[6];
13222 }
13223 
13224 /**
13225  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED
13226  * @param event packet
13227  * @return con_handle
13228  * @note: btstack_type H
13229  */
13230 static inline hci_con_handle_t gattservice_subevent_bass_source_deleted_get_con_handle(const uint8_t * event){
13231     return little_endian_read_16(event, 3);
13232 }
13233 /**
13234  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED
13235  * @param event packet
13236  * @return source_id
13237  * @note: btstack_type 1
13238  */
13239 static inline uint8_t gattservice_subevent_bass_source_deleted_get_source_id(const uint8_t * event){
13240     return event[5];
13241 }
13242 /**
13243  * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED
13244  * @param event packet
13245  * @return pa_sync
13246  * @note: btstack_type 1
13247  */
13248 static inline uint8_t gattservice_subevent_bass_source_deleted_get_pa_sync(const uint8_t * event){
13249     return event[6];
13250 }
13251 
13252 /**
13253  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13254  * @param event packet
13255  * @return con_handle
13256  * @note: btstack_type H
13257  */
13258 static inline hci_con_handle_t gattservice_subevent_ascs_codec_configuration_request_get_con_handle(const uint8_t * event){
13259     return little_endian_read_16(event, 3);
13260 }
13261 /**
13262  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13263  * @param event packet
13264  * @return ase_id
13265  * @note: btstack_type 1
13266  */
13267 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_ase_id(const uint8_t * event){
13268     return event[5];
13269 }
13270 /**
13271  * @brief Get field target_latency from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13272  * @param event packet
13273  * @return target_latency
13274  * @note: btstack_type 1
13275  */
13276 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_target_latency(const uint8_t * event){
13277     return event[6];
13278 }
13279 /**
13280  * @brief Get field target_phy from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13281  * @param event packet
13282  * @return target_phy
13283  * @note: btstack_type 1
13284  */
13285 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_target_phy(const uint8_t * event){
13286     return event[7];
13287 }
13288 /**
13289  * @brief Get field coding_format from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13290  * @param event packet
13291  * @return coding_format
13292  * @note: btstack_type 1
13293  */
13294 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_coding_format(const uint8_t * event){
13295     return event[8];
13296 }
13297 /**
13298  * @brief Get field company_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13299  * @param event packet
13300  * @return company_id
13301  * @note: btstack_type 2
13302  */
13303 static inline uint16_t gattservice_subevent_ascs_codec_configuration_request_get_company_id(const uint8_t * event){
13304     return little_endian_read_16(event, 9);
13305 }
13306 /**
13307  * @brief Get field vendor_specific_codec_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13308  * @param event packet
13309  * @return vendor_specific_codec_id
13310  * @note: btstack_type 2
13311  */
13312 static inline uint16_t gattservice_subevent_ascs_codec_configuration_request_get_vendor_specific_codec_id(const uint8_t * event){
13313     return little_endian_read_16(event, 11);
13314 }
13315 /**
13316  * @brief Get field specific_codec_configuration_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13317  * @param event packet
13318  * @return specific_codec_configuration_mask
13319  * @note: btstack_type 1
13320  */
13321 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_specific_codec_configuration_mask(const uint8_t * event){
13322     return event[13];
13323 }
13324 /**
13325  * @brief Get field sampling_frequency_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13326  * @param event packet
13327  * @return sampling_frequency_index
13328  * @note: btstack_type 1
13329  */
13330 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_sampling_frequency_index(const uint8_t * event){
13331     return event[14];
13332 }
13333 /**
13334  * @brief Get field frame_duration_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13335  * @param event packet
13336  * @return frame_duration_index
13337  * @note: btstack_type 1
13338  */
13339 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_frame_duration_index(const uint8_t * event){
13340     return event[15];
13341 }
13342 /**
13343  * @brief Get field audio_channel_allocation_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13344  * @param event packet
13345  * @return audio_channel_allocation_mask
13346  * @note: btstack_type 4
13347  */
13348 static inline uint32_t gattservice_subevent_ascs_codec_configuration_request_get_audio_channel_allocation_mask(const uint8_t * event){
13349     return little_endian_read_32(event, 16);
13350 }
13351 /**
13352  * @brief Get field octets_per_frame from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13353  * @param event packet
13354  * @return octets_per_frame
13355  * @note: btstack_type 2
13356  */
13357 static inline uint16_t gattservice_subevent_ascs_codec_configuration_request_get_octets_per_frame(const uint8_t * event){
13358     return little_endian_read_16(event, 20);
13359 }
13360 /**
13361  * @brief Get field frame_blocks_per_sdu from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST
13362  * @param event packet
13363  * @return frame_blocks_per_sdu
13364  * @note: btstack_type 1
13365  */
13366 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_frame_blocks_per_sdu(const uint8_t * event){
13367     return event[22];
13368 }
13369 
13370 /**
13371  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13372  * @param event packet
13373  * @return con_handle
13374  * @note: btstack_type H
13375  */
13376 static inline hci_con_handle_t gattservice_subevent_ascs_qos_configuration_get_con_handle(const uint8_t * event){
13377     return little_endian_read_16(event, 3);
13378 }
13379 /**
13380  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13381  * @param event packet
13382  * @return ase_id
13383  * @note: btstack_type 1
13384  */
13385 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_ase_id(const uint8_t * event){
13386     return event[5];
13387 }
13388 /**
13389  * @brief Get field cig_id from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13390  * @param event packet
13391  * @return cig_id
13392  * @note: btstack_type 1
13393  */
13394 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_cig_id(const uint8_t * event){
13395     return event[6];
13396 }
13397 /**
13398  * @brief Get field cis_id from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13399  * @param event packet
13400  * @return cis_id
13401  * @note: btstack_type 1
13402  */
13403 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_cis_id(const uint8_t * event){
13404     return event[7];
13405 }
13406 /**
13407  * @brief Get field sdu_interval from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13408  * @param event packet
13409  * @return sdu_interval
13410  * @note: btstack_type 3
13411  */
13412 static inline uint32_t gattservice_subevent_ascs_qos_configuration_get_sdu_interval(const uint8_t * event){
13413     return little_endian_read_24(event, 8);
13414 }
13415 /**
13416  * @brief Get field framing from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13417  * @param event packet
13418  * @return framing
13419  * @note: btstack_type 1
13420  */
13421 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_framing(const uint8_t * event){
13422     return event[11];
13423 }
13424 /**
13425  * @brief Get field phy from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13426  * @param event packet
13427  * @return phy
13428  * @note: btstack_type 1
13429  */
13430 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_phy(const uint8_t * event){
13431     return event[12];
13432 }
13433 /**
13434  * @brief Get field max_sdu from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13435  * @param event packet
13436  * @return max_sdu
13437  * @note: btstack_type 2
13438  */
13439 static inline uint16_t gattservice_subevent_ascs_qos_configuration_get_max_sdu(const uint8_t * event){
13440     return little_endian_read_16(event, 13);
13441 }
13442 /**
13443  * @brief Get field retransmission_number from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13444  * @param event packet
13445  * @return retransmission_number
13446  * @note: btstack_type 1
13447  */
13448 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_retransmission_number(const uint8_t * event){
13449     return event[15];
13450 }
13451 /**
13452  * @brief Get field max_transport_latency from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13453  * @param event packet
13454  * @return max_transport_latency
13455  * @note: btstack_type 2
13456  */
13457 static inline uint16_t gattservice_subevent_ascs_qos_configuration_get_max_transport_latency(const uint8_t * event){
13458     return little_endian_read_16(event, 16);
13459 }
13460 /**
13461  * @brief Get field presentation_delay_us from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION
13462  * @param event packet
13463  * @return presentation_delay_us
13464  * @note: btstack_type 3
13465  */
13466 static inline uint32_t gattservice_subevent_ascs_qos_configuration_get_presentation_delay_us(const uint8_t * event){
13467     return little_endian_read_24(event, 18);
13468 }
13469 
13470 /**
13471  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13472  * @param event packet
13473  * @return con_handle
13474  * @note: btstack_type H
13475  */
13476 static inline hci_con_handle_t gattservice_subevent_ascs_metadata_get_con_handle(const uint8_t * event){
13477     return little_endian_read_16(event, 3);
13478 }
13479 /**
13480  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13481  * @param event packet
13482  * @return ase_id
13483  * @note: btstack_type 1
13484  */
13485 static inline uint8_t gattservice_subevent_ascs_metadata_get_ase_id(const uint8_t * event){
13486     return event[5];
13487 }
13488 /**
13489  * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13490  * @param event packet
13491  * @return metadata_mask
13492  * @note: btstack_type 1
13493  */
13494 static inline uint8_t gattservice_subevent_ascs_metadata_get_metadata_mask(const uint8_t * event){
13495     return event[6];
13496 }
13497 /**
13498  * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13499  * @param event packet
13500  * @return preferred_audio_contexts_mask
13501  * @note: btstack_type 2
13502  */
13503 static inline uint16_t gattservice_subevent_ascs_metadata_get_preferred_audio_contexts_mask(const uint8_t * event){
13504     return little_endian_read_16(event, 7);
13505 }
13506 /**
13507  * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13508  * @param event packet
13509  * @return streaming_audio_contexts_mask
13510  * @note: btstack_type 2
13511  */
13512 static inline uint16_t gattservice_subevent_ascs_metadata_get_streaming_audio_contexts_mask(const uint8_t * event){
13513     return little_endian_read_16(event, 9);
13514 }
13515 /**
13516  * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13517  * @param event packet
13518  * @return program_info_length
13519  * @note: btstack_type J
13520  */
13521 static inline uint8_t gattservice_subevent_ascs_metadata_get_program_info_length(const uint8_t * event){
13522     return event[11];
13523 }
13524 /**
13525  * @brief Get field program_info from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13526  * @param event packet
13527  * @return program_info
13528  * @note: btstack_type V
13529  */
13530 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_program_info(const uint8_t * event){
13531     return &event[12];
13532 }
13533 /**
13534  * @brief Get field language_code from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13535  * @param event packet
13536  * @return language_code
13537  * @note: btstack_type 3
13538  */
13539 static inline uint32_t gattservice_subevent_ascs_metadata_get_language_code(const uint8_t * event){
13540     return little_endian_read_24(event, 12u + event[11]);
13541 }
13542 /**
13543  * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13544  * @param event packet
13545  * @return ccids_num
13546  * @note: btstack_type J
13547  */
13548 static inline uint8_t gattservice_subevent_ascs_metadata_get_ccids_num(const uint8_t * event){
13549     return event[12u + event[11] + 3u];
13550 }
13551 /**
13552  * @brief Get field ccids from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13553  * @param event packet
13554  * @return ccids
13555  * @note: btstack_type V
13556  */
13557 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_ccids(const uint8_t * event){
13558     return &event[12u + event[11] + 3u + 1u];
13559 }
13560 /**
13561  * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13562  * @param event packet
13563  * @return parental_rating
13564  * @note: btstack_type 1
13565  */
13566 static inline uint8_t gattservice_subevent_ascs_metadata_get_parental_rating(const uint8_t * event){
13567     return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u]];
13568 }
13569 /**
13570  * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13571  * @param event packet
13572  * @return program_info_uri_length
13573  * @note: btstack_type J
13574  */
13575 static inline uint8_t gattservice_subevent_ascs_metadata_get_program_info_uri_length(const uint8_t * event){
13576     return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u];
13577 }
13578 /**
13579  * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13580  * @param event packet
13581  * @return program_info_uri
13582  * @note: btstack_type V
13583  */
13584 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_program_info_uri(const uint8_t * event){
13585     return &event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u];
13586 }
13587 /**
13588  * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13589  * @param event packet
13590  * @return extended_metadata_type
13591  * @note: btstack_type 2
13592  */
13593 static inline uint16_t gattservice_subevent_ascs_metadata_get_extended_metadata_type(const uint8_t * event){
13594     return little_endian_read_16(event, 12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u]);
13595 }
13596 /**
13597  * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13598  * @param event packet
13599  * @return extended_metadata_value_length
13600  * @note: btstack_type J
13601  */
13602 static inline uint8_t gattservice_subevent_ascs_metadata_get_extended_metadata_value_length(const uint8_t * event){
13603     return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u];
13604 }
13605 /**
13606  * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13607  * @param event packet
13608  * @return extended_metadata_value
13609  * @note: btstack_type V
13610  */
13611 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_extended_metadata_value(const uint8_t * event){
13612     return &event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u];
13613 }
13614 /**
13615  * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13616  * @param event packet
13617  * @return vendor_specific_metadata_type
13618  * @note: btstack_type 2
13619  */
13620 static inline uint16_t gattservice_subevent_ascs_metadata_get_vendor_specific_metadata_type(const uint8_t * event){
13621     return little_endian_read_16(event, 12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u]);
13622 }
13623 /**
13624  * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13625  * @param event packet
13626  * @return vendor_specific_metadata_value_length
13627  * @note: btstack_type J
13628  */
13629 static inline uint8_t gattservice_subevent_ascs_metadata_get_vendor_specific_metadata_value_length(const uint8_t * event){
13630     return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u] + 2u];
13631 }
13632 /**
13633  * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_ASCS_METADATA
13634  * @param event packet
13635  * @return vendor_specific_metadata_value
13636  * @note: btstack_type V
13637  */
13638 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_vendor_specific_metadata_value(const uint8_t * event){
13639     return &event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u] + 2u + 1u];
13640 }
13641 
13642 /**
13643  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_START_READY
13644  * @param event packet
13645  * @return con_handle
13646  * @note: btstack_type H
13647  */
13648 static inline hci_con_handle_t gattservice_subevent_ascs_client_start_ready_get_con_handle(const uint8_t * event){
13649     return little_endian_read_16(event, 3);
13650 }
13651 /**
13652  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_START_READY
13653  * @param event packet
13654  * @return ase_id
13655  * @note: btstack_type 1
13656  */
13657 static inline uint8_t gattservice_subevent_ascs_client_start_ready_get_ase_id(const uint8_t * event){
13658     return event[5];
13659 }
13660 
13661 /**
13662  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_DISABLING
13663  * @param event packet
13664  * @return con_handle
13665  * @note: btstack_type H
13666  */
13667 static inline hci_con_handle_t gattservice_subevent_ascs_client_disabling_get_con_handle(const uint8_t * event){
13668     return little_endian_read_16(event, 3);
13669 }
13670 /**
13671  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_DISABLING
13672  * @param event packet
13673  * @return ase_id
13674  * @note: btstack_type 1
13675  */
13676 static inline uint8_t gattservice_subevent_ascs_client_disabling_get_ase_id(const uint8_t * event){
13677     return event[5];
13678 }
13679 
13680 /**
13681  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASING
13682  * @param event packet
13683  * @return con_handle
13684  * @note: btstack_type H
13685  */
13686 static inline hci_con_handle_t gattservice_subevent_ascs_client_releasing_get_con_handle(const uint8_t * event){
13687     return little_endian_read_16(event, 3);
13688 }
13689 /**
13690  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASING
13691  * @param event packet
13692  * @return ase_id
13693  * @note: btstack_type 1
13694  */
13695 static inline uint8_t gattservice_subevent_ascs_client_releasing_get_ase_id(const uint8_t * event){
13696     return event[5];
13697 }
13698 
13699 /**
13700  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_STOP_READY
13701  * @param event packet
13702  * @return con_handle
13703  * @note: btstack_type H
13704  */
13705 static inline hci_con_handle_t gattservice_subevent_ascs_client_stop_ready_get_con_handle(const uint8_t * event){
13706     return little_endian_read_16(event, 3);
13707 }
13708 /**
13709  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_STOP_READY
13710  * @param event packet
13711  * @return ase_id
13712  * @note: btstack_type 1
13713  */
13714 static inline uint8_t gattservice_subevent_ascs_client_stop_ready_get_ase_id(const uint8_t * event){
13715     return event[5];
13716 }
13717 
13718 /**
13719  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASED
13720  * @param event packet
13721  * @return con_handle
13722  * @note: btstack_type H
13723  */
13724 static inline hci_con_handle_t gattservice_subevent_ascs_client_released_get_con_handle(const uint8_t * event){
13725     return little_endian_read_16(event, 3);
13726 }
13727 /**
13728  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASED
13729  * @param event packet
13730  * @return ase_id
13731  * @note: btstack_type 1
13732  */
13733 static inline uint8_t gattservice_subevent_ascs_client_released_get_ase_id(const uint8_t * event){
13734     return event[5];
13735 }
13736 
13737 /**
13738  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATION_RECEIVED
13739  * @param event packet
13740  * @return con_handle
13741  * @note: btstack_type H
13742  */
13743 static inline hci_con_handle_t gattservice_subevent_pacs_audio_location_received_get_con_handle(const uint8_t * event){
13744     return little_endian_read_16(event, 3);
13745 }
13746 /**
13747  * @brief Get field audio_locations from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATION_RECEIVED
13748  * @param event packet
13749  * @return audio_locations
13750  * @note: btstack_type 4
13751  */
13752 static inline uint32_t gattservice_subevent_pacs_audio_location_received_get_audio_locations(const uint8_t * event){
13753     return little_endian_read_32(event, 5);
13754 }
13755 /**
13756  * @brief Get field role from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATION_RECEIVED
13757  * @param event packet
13758  * @return role
13759  * @note: btstack_type 1
13760  */
13761 static inline uint8_t gattservice_subevent_pacs_audio_location_received_get_role(const uint8_t * event){
13762     return event[9];
13763 }
13764 
13765 /**
13766  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_CONNECTED
13767  * @param event packet
13768  * @return con_handle
13769  * @note: btstack_type H
13770  */
13771 static inline hci_con_handle_t gattservice_subevent_bass_connected_get_con_handle(const uint8_t * event){
13772     return little_endian_read_16(event, 3);
13773 }
13774 /**
13775  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CONNECTED
13776  * @param event packet
13777  * @return bass_cid
13778  * @note: btstack_type 2
13779  */
13780 static inline uint16_t gattservice_subevent_bass_connected_get_bass_cid(const uint8_t * event){
13781     return little_endian_read_16(event, 5);
13782 }
13783 /**
13784  * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CONNECTED
13785  * @param event packet
13786  * @return status
13787  * @note: btstack_type 1
13788  */
13789 static inline uint8_t gattservice_subevent_bass_connected_get_status(const uint8_t * event){
13790     return event[7];
13791 }
13792 
13793 /**
13794  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_DISCONNECTED
13795  * @param event packet
13796  * @return bass_cid
13797  * @note: btstack_type 2
13798  */
13799 static inline uint16_t gattservice_subevent_bass_disconnected_get_bass_cid(const uint8_t * event){
13800     return little_endian_read_16(event, 3);
13801 }
13802 
13803 /**
13804  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_SCAN_OPERATION_COMPLETE
13805  * @param event packet
13806  * @return bass_cid
13807  * @note: btstack_type 2
13808  */
13809 static inline uint16_t gattservice_subevent_bass_scan_operation_complete_get_bass_cid(const uint8_t * event){
13810     return little_endian_read_16(event, 3);
13811 }
13812 /**
13813  * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_SCAN_OPERATION_COMPLETE
13814  * @param event packet
13815  * @return status
13816  * @note: btstack_type 1
13817  */
13818 static inline uint8_t gattservice_subevent_bass_scan_operation_complete_get_status(const uint8_t * event){
13819     return event[5];
13820 }
13821 /**
13822  * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_SCAN_OPERATION_COMPLETE
13823  * @param event packet
13824  * @return opcode
13825  * @note: btstack_type 1
13826  */
13827 static inline uint8_t gattservice_subevent_bass_scan_operation_complete_get_opcode(const uint8_t * event){
13828     return event[6];
13829 }
13830 
13831 /**
13832  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13833  * @param event packet
13834  * @return bass_cid
13835  * @note: btstack_type 2
13836  */
13837 //  static inline uint16_t gattservice_subevent_bass_notify_receive_state_base_get_bass_cid(const uint8_t * event){
13838 //      not implemented yet
13839 //  }
13840 /**
13841  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13842  * @param event packet
13843  * @return source_id
13844  * @note: btstack_type 1
13845  */
13846 //  static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_id(const uint8_t * event){
13847 //      not implemented yet
13848 //  }
13849 /**
13850  * @brief Get field source_address_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13851  * @param event packet
13852  * @return source_address_type
13853  * @note: btstack_type 1
13854  */
13855 //  static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_address_type(const uint8_t * event){
13856 //      not implemented yet
13857 //  }
13858 /**
13859  * @brief Get field source_address from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13860  * @param event packet
13861  * @return source_address
13862  * @note: btstack_type B
13863  */
13864 //  static inline bd_addr_t gattservice_subevent_bass_notify_receive_state_base_get_source_address(const uint8_t * event){
13865 //      not implemented yet
13866 //  }
13867 /**
13868  * @brief Get field source_adv_sid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13869  * @param event packet
13870  * @return source_adv_sid
13871  * @note: btstack_type 1
13872  */
13873 //  static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_adv_sid(const uint8_t * event){
13874 //      not implemented yet
13875 //  }
13876 /**
13877  * @brief Get field broadcast_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13878  * @param event packet
13879  * @return broadcast_id
13880  * @note: btstack_type 3
13881  */
13882 //  static inline uint32_t gattservice_subevent_bass_notify_receive_state_base_get_broadcast_id(const uint8_t * event){
13883 //      not implemented yet
13884 //  }
13885 /**
13886  * @brief Get field pa_sync_state from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13887  * @param event packet
13888  * @return pa_sync_state
13889  * @note: btstack_type 1
13890  */
13891 //  static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_pa_sync_state(const uint8_t * event){
13892 //      not implemented yet
13893 //  }
13894 /**
13895  * @brief Get field big_encryption from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13896  * @param event packet
13897  * @return big_encryption
13898  * @note: btstack_type 1
13899  */
13900 //  static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_big_encryption(const uint8_t * event){
13901 //      not implemented yet
13902 //  }
13903 /**
13904  * @brief Get field bad_code from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13905  * @param event packet
13906  * @return bad_code
13907  * @note: btstack_type P
13908  */
13909 //  static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_base_get_bad_code(const uint8_t * event){
13910 //      not implemented yet
13911 //  }
13912 /**
13913  * @brief Get field subgroups_num from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE
13914  * @param event packet
13915  * @return subgroups_num
13916  * @note: btstack_type 1
13917  */
13918 //  static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_subgroups_num(const uint8_t * event){
13919 //      not implemented yet
13920 //  }
13921 
13922 /**
13923  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13924  * @param event packet
13925  * @return bass_cid
13926  * @note: btstack_type 2
13927  */
13928 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_bass_cid(const uint8_t * event){
13929     return little_endian_read_16(event, 3);
13930 }
13931 /**
13932  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13933  * @param event packet
13934  * @return source_id
13935  * @note: btstack_type 1
13936  */
13937 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_source_id(const uint8_t * event){
13938     return event[5];
13939 }
13940 /**
13941  * @brief Get field bis_sync_state from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13942  * @param event packet
13943  * @return bis_sync_state
13944  * @note: btstack_type 4
13945  */
13946 static inline uint32_t gattservice_subevent_bass_notify_receive_state_subgroup_get_bis_sync_state(const uint8_t * event){
13947     return little_endian_read_32(event, 6);
13948 }
13949 /**
13950  * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13951  * @param event packet
13952  * @return metadata_mask
13953  * @note: btstack_type 1
13954  */
13955 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_metadata_mask(const uint8_t * event){
13956     return event[10];
13957 }
13958 /**
13959  * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13960  * @param event packet
13961  * @return preferred_audio_contexts_mask
13962  * @note: btstack_type 2
13963  */
13964 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_preferred_audio_contexts_mask(const uint8_t * event){
13965     return little_endian_read_16(event, 11);
13966 }
13967 /**
13968  * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13969  * @param event packet
13970  * @return streaming_audio_contexts_mask
13971  * @note: btstack_type 2
13972  */
13973 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_streaming_audio_contexts_mask(const uint8_t * event){
13974     return little_endian_read_16(event, 13);
13975 }
13976 /**
13977  * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13978  * @param event packet
13979  * @return program_info_length
13980  * @note: btstack_type J
13981  */
13982 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info_length(const uint8_t * event){
13983     return event[15];
13984 }
13985 /**
13986  * @brief Get field program_info from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13987  * @param event packet
13988  * @return program_info
13989  * @note: btstack_type V
13990  */
13991 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info(const uint8_t * event){
13992     return &event[16];
13993 }
13994 /**
13995  * @brief Get field language_code from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
13996  * @param event packet
13997  * @return language_code
13998  * @note: btstack_type 3
13999  */
14000 static inline uint32_t gattservice_subevent_bass_notify_receive_state_subgroup_get_language_code(const uint8_t * event){
14001     return little_endian_read_24(event, 16u + event[15]);
14002 }
14003 /**
14004  * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14005  * @param event packet
14006  * @return ccids_num
14007  * @note: btstack_type J
14008  */
14009 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_ccids_num(const uint8_t * event){
14010     return event[16u + event[15] + 3u];
14011 }
14012 /**
14013  * @brief Get field ccids from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14014  * @param event packet
14015  * @return ccids
14016  * @note: btstack_type V
14017  */
14018 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_ccids(const uint8_t * event){
14019     return &event[16u + event[15] + 3u + 1u];
14020 }
14021 /**
14022  * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14023  * @param event packet
14024  * @return parental_rating
14025  * @note: btstack_type 1
14026  */
14027 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_parental_rating(const uint8_t * event){
14028     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u]];
14029 }
14030 /**
14031  * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14032  * @param event packet
14033  * @return program_info_uri_length
14034  * @note: btstack_type J
14035  */
14036 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info_uri_length(const uint8_t * event){
14037     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u];
14038 }
14039 /**
14040  * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14041  * @param event packet
14042  * @return program_info_uri
14043  * @note: btstack_type V
14044  */
14045 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info_uri(const uint8_t * event){
14046     return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u];
14047 }
14048 /**
14049  * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14050  * @param event packet
14051  * @return extended_metadata_type
14052  * @note: btstack_type 2
14053  */
14054 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_extended_metadata_type(const uint8_t * event){
14055     return little_endian_read_16(event, 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]);
14056 }
14057 /**
14058  * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14059  * @param event packet
14060  * @return extended_metadata_value_length
14061  * @note: btstack_type J
14062  */
14063 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_extended_metadata_value_length(const uint8_t * event){
14064     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u];
14065 }
14066 /**
14067  * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14068  * @param event packet
14069  * @return extended_metadata_value
14070  * @note: btstack_type V
14071  */
14072 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_extended_metadata_value(const uint8_t * event){
14073     return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u];
14074 }
14075 /**
14076  * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14077  * @param event packet
14078  * @return vendor_specific_metadata_type
14079  * @note: btstack_type 2
14080  */
14081 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_vendor_specific_metadata_type(const uint8_t * event){
14082     return little_endian_read_16(event, 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u]);
14083 }
14084 /**
14085  * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14086  * @param event packet
14087  * @return vendor_specific_metadata_value_length
14088  * @note: btstack_type J
14089  */
14090 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_vendor_specific_metadata_value_length(const uint8_t * event){
14091     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u] + 2u];
14092 }
14093 /**
14094  * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP
14095  * @param event packet
14096  * @return vendor_specific_metadata_value
14097  * @note: btstack_type V
14098  */
14099 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_vendor_specific_metadata_value(const uint8_t * event){
14100     return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u] + 2u + 1u];
14101 }
14102 
14103 /**
14104  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFICATION_COMPLETE
14105  * @param event packet
14106  * @return bass_cid
14107  * @note: btstack_type 2
14108  */
14109 static inline uint16_t gattservice_subevent_bass_notification_complete_get_bass_cid(const uint8_t * event){
14110     return little_endian_read_16(event, 3);
14111 }
14112 /**
14113  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFICATION_COMPLETE
14114  * @param event packet
14115  * @return source_id
14116  * @note: btstack_type 1
14117  */
14118 static inline uint8_t gattservice_subevent_bass_notification_complete_get_source_id(const uint8_t * event){
14119     return event[5];
14120 }
14121 
14122 /**
14123  * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE
14124  * @param event packet
14125  * @return bass_cid
14126  * @note: btstack_type 2
14127  */
14128 static inline uint16_t gattservice_subevent_bass_source_operation_complete_get_bass_cid(const uint8_t * event){
14129     return little_endian_read_16(event, 3);
14130 }
14131 /**
14132  * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE
14133  * @param event packet
14134  * @return status
14135  * @note: btstack_type 1
14136  */
14137 static inline uint8_t gattservice_subevent_bass_source_operation_complete_get_status(const uint8_t * event){
14138     return event[5];
14139 }
14140 /**
14141  * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE
14142  * @param event packet
14143  * @return opcode
14144  * @note: btstack_type 1
14145  */
14146 static inline uint8_t gattservice_subevent_bass_source_operation_complete_get_opcode(const uint8_t * event){
14147     return event[6];
14148 }
14149 /**
14150  * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE
14151  * @param event packet
14152  * @return source_id
14153  * @note: btstack_type 1
14154  */
14155 static inline uint8_t gattservice_subevent_bass_source_operation_complete_get_source_id(const uint8_t * event){
14156     return event[7];
14157 }
14158 
14159 /**
14160  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_PACS_CONNECTED
14161  * @param event packet
14162  * @return con_handle
14163  * @note: btstack_type H
14164  */
14165 static inline hci_con_handle_t gattservice_subevent_pacs_connected_get_con_handle(const uint8_t * event){
14166     return little_endian_read_16(event, 3);
14167 }
14168 /**
14169  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_CONNECTED
14170  * @param event packet
14171  * @return pacs_cid
14172  * @note: btstack_type 2
14173  */
14174 static inline uint16_t gattservice_subevent_pacs_connected_get_pacs_cid(const uint8_t * event){
14175     return little_endian_read_16(event, 5);
14176 }
14177 /**
14178  * @brief Get field status from event GATTSERVICE_SUBEVENT_PACS_CONNECTED
14179  * @param event packet
14180  * @return status
14181  * @note: btstack_type 1
14182  */
14183 static inline uint8_t gattservice_subevent_pacs_connected_get_status(const uint8_t * event){
14184     return event[7];
14185 }
14186 
14187 /**
14188  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_OPERATION_DONE
14189  * @param event packet
14190  * @return pacs_cid
14191  * @note: btstack_type 2
14192  */
14193 static inline uint16_t gattservice_subevent_pacs_operation_done_get_pacs_cid(const uint8_t * event){
14194     return little_endian_read_16(event, 3);
14195 }
14196 /**
14197  * @brief Get field status from event GATTSERVICE_SUBEVENT_PACS_OPERATION_DONE
14198  * @param event packet
14199  * @return status
14200  * @note: btstack_type 1
14201  */
14202 static inline uint8_t gattservice_subevent_pacs_operation_done_get_status(const uint8_t * event){
14203     return event[5];
14204 }
14205 
14206 /**
14207  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATIONS
14208  * @param event packet
14209  * @return pacs_cid
14210  * @note: btstack_type 2
14211  */
14212 static inline uint16_t gattservice_subevent_pacs_audio_locations_get_pacs_cid(const uint8_t * event){
14213     return little_endian_read_16(event, 3);
14214 }
14215 /**
14216  * @brief Get field le_audio_role from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATIONS
14217  * @param event packet
14218  * @return le_audio_role
14219  * @note: btstack_type 1
14220  */
14221 static inline uint8_t gattservice_subevent_pacs_audio_locations_get_le_audio_role(const uint8_t * event){
14222     return event[5];
14223 }
14224 /**
14225  * @brief Get field audio_location_mask from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATIONS
14226  * @param event packet
14227  * @return audio_location_mask
14228  * @note: btstack_type 4
14229  */
14230 static inline uint32_t gattservice_subevent_pacs_audio_locations_get_audio_location_mask(const uint8_t * event){
14231     return little_endian_read_32(event, 6);
14232 }
14233 
14234 /**
14235  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_AVAILABLE_AUDIO_CONTEXTS
14236  * @param event packet
14237  * @return pacs_cid
14238  * @note: btstack_type 2
14239  */
14240 static inline uint16_t gattservice_subevent_pacs_available_audio_contexts_get_pacs_cid(const uint8_t * event){
14241     return little_endian_read_16(event, 3);
14242 }
14243 /**
14244  * @brief Get field sink_mask from event GATTSERVICE_SUBEVENT_PACS_AVAILABLE_AUDIO_CONTEXTS
14245  * @param event packet
14246  * @return sink_mask
14247  * @note: btstack_type 2
14248  */
14249 static inline uint16_t gattservice_subevent_pacs_available_audio_contexts_get_sink_mask(const uint8_t * event){
14250     return little_endian_read_16(event, 5);
14251 }
14252 /**
14253  * @brief Get field source_mask from event GATTSERVICE_SUBEVENT_PACS_AVAILABLE_AUDIO_CONTEXTS
14254  * @param event packet
14255  * @return source_mask
14256  * @note: btstack_type 2
14257  */
14258 static inline uint16_t gattservice_subevent_pacs_available_audio_contexts_get_source_mask(const uint8_t * event){
14259     return little_endian_read_16(event, 7);
14260 }
14261 
14262 /**
14263  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_SUPPORTED_AUDIO_CONTEXTS
14264  * @param event packet
14265  * @return pacs_cid
14266  * @note: btstack_type 2
14267  */
14268 static inline uint16_t gattservice_subevent_pacs_supported_audio_contexts_get_pacs_cid(const uint8_t * event){
14269     return little_endian_read_16(event, 3);
14270 }
14271 /**
14272  * @brief Get field sink_mask from event GATTSERVICE_SUBEVENT_PACS_SUPPORTED_AUDIO_CONTEXTS
14273  * @param event packet
14274  * @return sink_mask
14275  * @note: btstack_type 2
14276  */
14277 static inline uint16_t gattservice_subevent_pacs_supported_audio_contexts_get_sink_mask(const uint8_t * event){
14278     return little_endian_read_16(event, 5);
14279 }
14280 /**
14281  * @brief Get field source_mask from event GATTSERVICE_SUBEVENT_PACS_SUPPORTED_AUDIO_CONTEXTS
14282  * @param event packet
14283  * @return source_mask
14284  * @note: btstack_type 2
14285  */
14286 static inline uint16_t gattservice_subevent_pacs_supported_audio_contexts_get_source_mask(const uint8_t * event){
14287     return little_endian_read_16(event, 7);
14288 }
14289 
14290 /**
14291  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14292  * @param event packet
14293  * @return pacs_cid
14294  * @note: btstack_type 2
14295  */
14296 static inline uint16_t gattservice_subevent_pacs_pack_record_get_pacs_cid(const uint8_t * event){
14297     return little_endian_read_16(event, 3);
14298 }
14299 /**
14300  * @brief Get field le_audio_role from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14301  * @param event packet
14302  * @return le_audio_role
14303  * @note: btstack_type 1
14304  */
14305 static inline uint8_t gattservice_subevent_pacs_pack_record_get_le_audio_role(const uint8_t * event){
14306     return event[5];
14307 }
14308 /**
14309  * @brief Get field coding_format from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14310  * @param event packet
14311  * @return coding_format
14312  * @note: btstack_type 1
14313  */
14314 static inline uint8_t gattservice_subevent_pacs_pack_record_get_coding_format(const uint8_t * event){
14315     return event[6];
14316 }
14317 /**
14318  * @brief Get field company_id from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14319  * @param event packet
14320  * @return company_id
14321  * @note: btstack_type 2
14322  */
14323 static inline uint16_t gattservice_subevent_pacs_pack_record_get_company_id(const uint8_t * event){
14324     return little_endian_read_16(event, 7);
14325 }
14326 /**
14327  * @brief Get field vendor_specific_codec_id from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14328  * @param event packet
14329  * @return vendor_specific_codec_id
14330  * @note: btstack_type 2
14331  */
14332 static inline uint16_t gattservice_subevent_pacs_pack_record_get_vendor_specific_codec_id(const uint8_t * event){
14333     return little_endian_read_16(event, 9);
14334 }
14335 /**
14336  * @brief Get field codec_capability_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14337  * @param event packet
14338  * @return codec_capability_mask
14339  * @note: btstack_type 1
14340  */
14341 static inline uint8_t gattservice_subevent_pacs_pack_record_get_codec_capability_mask(const uint8_t * event){
14342     return event[11];
14343 }
14344 /**
14345  * @brief Get field supported_sampling_frequencies_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14346  * @param event packet
14347  * @return supported_sampling_frequencies_mask
14348  * @note: btstack_type 2
14349  */
14350 static inline uint16_t gattservice_subevent_pacs_pack_record_get_supported_sampling_frequencies_mask(const uint8_t * event){
14351     return little_endian_read_16(event, 12);
14352 }
14353 /**
14354  * @brief Get field supported_frame_durations_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14355  * @param event packet
14356  * @return supported_frame_durations_mask
14357  * @note: btstack_type 1
14358  */
14359 static inline uint8_t gattservice_subevent_pacs_pack_record_get_supported_frame_durations_mask(const uint8_t * event){
14360     return event[14];
14361 }
14362 /**
14363  * @brief Get field supported_audio_channel_counts_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14364  * @param event packet
14365  * @return supported_audio_channel_counts_mask
14366  * @note: btstack_type 1
14367  */
14368 static inline uint8_t gattservice_subevent_pacs_pack_record_get_supported_audio_channel_counts_mask(const uint8_t * event){
14369     return event[15];
14370 }
14371 /**
14372  * @brief Get field supported_octets_per_frame_min_num from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14373  * @param event packet
14374  * @return supported_octets_per_frame_min_num
14375  * @note: btstack_type 2
14376  */
14377 static inline uint16_t gattservice_subevent_pacs_pack_record_get_supported_octets_per_frame_min_num(const uint8_t * event){
14378     return little_endian_read_16(event, 16);
14379 }
14380 /**
14381  * @brief Get field supported_octets_per_frame_max_num from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14382  * @param event packet
14383  * @return supported_octets_per_frame_max_num
14384  * @note: btstack_type 2
14385  */
14386 static inline uint16_t gattservice_subevent_pacs_pack_record_get_supported_octets_per_frame_max_num(const uint8_t * event){
14387     return little_endian_read_16(event, 18);
14388 }
14389 /**
14390  * @brief Get field supported_max_codec_frames_per_sdu from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14391  * @param event packet
14392  * @return supported_max_codec_frames_per_sdu
14393  * @note: btstack_type 1
14394  */
14395 static inline uint8_t gattservice_subevent_pacs_pack_record_get_supported_max_codec_frames_per_sdu(const uint8_t * event){
14396     return event[20];
14397 }
14398 /**
14399  * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14400  * @param event packet
14401  * @return metadata_mask
14402  * @note: btstack_type 2
14403  */
14404 static inline uint16_t gattservice_subevent_pacs_pack_record_get_metadata_mask(const uint8_t * event){
14405     return little_endian_read_16(event, 21);
14406 }
14407 /**
14408  * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14409  * @param event packet
14410  * @return preferred_audio_contexts_mask
14411  * @note: btstack_type 2
14412  */
14413 static inline uint16_t gattservice_subevent_pacs_pack_record_get_preferred_audio_contexts_mask(const uint8_t * event){
14414     return little_endian_read_16(event, 23);
14415 }
14416 /**
14417  * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14418  * @param event packet
14419  * @return streaming_audio_contexts_mask
14420  * @note: btstack_type 2
14421  */
14422 static inline uint16_t gattservice_subevent_pacs_pack_record_get_streaming_audio_contexts_mask(const uint8_t * event){
14423     return little_endian_read_16(event, 25);
14424 }
14425 /**
14426  * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14427  * @param event packet
14428  * @return program_info_length
14429  * @note: btstack_type J
14430  */
14431 static inline uint8_t gattservice_subevent_pacs_pack_record_get_program_info_length(const uint8_t * event){
14432     return event[27];
14433 }
14434 /**
14435  * @brief Get field program_info from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14436  * @param event packet
14437  * @return program_info
14438  * @note: btstack_type V
14439  */
14440 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_program_info(const uint8_t * event){
14441     return &event[28];
14442 }
14443 /**
14444  * @brief Get field language_code from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14445  * @param event packet
14446  * @return language_code
14447  * @note: btstack_type 3
14448  */
14449 static inline uint32_t gattservice_subevent_pacs_pack_record_get_language_code(const uint8_t * event){
14450     return little_endian_read_24(event, 28u + event[27]);
14451 }
14452 /**
14453  * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14454  * @param event packet
14455  * @return ccids_num
14456  * @note: btstack_type J
14457  */
14458 static inline uint8_t gattservice_subevent_pacs_pack_record_get_ccids_num(const uint8_t * event){
14459     return event[28u + event[27] + 3u];
14460 }
14461 /**
14462  * @brief Get field ccids from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14463  * @param event packet
14464  * @return ccids
14465  * @note: btstack_type V
14466  */
14467 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_ccids(const uint8_t * event){
14468     return &event[28u + event[27] + 3u + 1u];
14469 }
14470 /**
14471  * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14472  * @param event packet
14473  * @return parental_rating
14474  * @note: btstack_type 1
14475  */
14476 static inline uint8_t gattservice_subevent_pacs_pack_record_get_parental_rating(const uint8_t * event){
14477     return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u]];
14478 }
14479 /**
14480  * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14481  * @param event packet
14482  * @return program_info_uri_length
14483  * @note: btstack_type J
14484  */
14485 static inline uint8_t gattservice_subevent_pacs_pack_record_get_program_info_uri_length(const uint8_t * event){
14486     return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u];
14487 }
14488 /**
14489  * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14490  * @param event packet
14491  * @return program_info_uri
14492  * @note: btstack_type V
14493  */
14494 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_program_info_uri(const uint8_t * event){
14495     return &event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u];
14496 }
14497 /**
14498  * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14499  * @param event packet
14500  * @return extended_metadata_type
14501  * @note: btstack_type 2
14502  */
14503 static inline uint16_t gattservice_subevent_pacs_pack_record_get_extended_metadata_type(const uint8_t * event){
14504     return little_endian_read_16(event, 28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u]);
14505 }
14506 /**
14507  * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14508  * @param event packet
14509  * @return extended_metadata_value_length
14510  * @note: btstack_type J
14511  */
14512 static inline uint8_t gattservice_subevent_pacs_pack_record_get_extended_metadata_value_length(const uint8_t * event){
14513     return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u];
14514 }
14515 /**
14516  * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14517  * @param event packet
14518  * @return extended_metadata_value
14519  * @note: btstack_type V
14520  */
14521 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_extended_metadata_value(const uint8_t * event){
14522     return &event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u];
14523 }
14524 /**
14525  * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14526  * @param event packet
14527  * @return vendor_specific_metadata_type
14528  * @note: btstack_type 2
14529  */
14530 static inline uint16_t gattservice_subevent_pacs_pack_record_get_vendor_specific_metadata_type(const uint8_t * event){
14531     return little_endian_read_16(event, 28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u]);
14532 }
14533 /**
14534  * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14535  * @param event packet
14536  * @return vendor_specific_metadata_value_length
14537  * @note: btstack_type J
14538  */
14539 static inline uint8_t gattservice_subevent_pacs_pack_record_get_vendor_specific_metadata_value_length(const uint8_t * event){
14540     return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u] + 2u];
14541 }
14542 /**
14543  * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD
14544  * @param event packet
14545  * @return vendor_specific_metadata_value
14546  * @note: btstack_type V
14547  */
14548 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_vendor_specific_metadata_value(const uint8_t * event){
14549     return &event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u] + 2u + 1u];
14550 }
14551 
14552 /**
14553  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD_DONE
14554  * @param event packet
14555  * @return pacs_cid
14556  * @note: btstack_type 2
14557  */
14558 static inline uint16_t gattservice_subevent_pacs_pack_record_done_get_pacs_cid(const uint8_t * event){
14559     return little_endian_read_16(event, 3);
14560 }
14561 /**
14562  * @brief Get field le_audio_role from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD_DONE
14563  * @param event packet
14564  * @return le_audio_role
14565  * @note: btstack_type 1
14566  */
14567 static inline uint8_t gattservice_subevent_pacs_pack_record_done_get_le_audio_role(const uint8_t * event){
14568     return event[5];
14569 }
14570 
14571 /**
14572  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CONNECTED
14573  * @param event packet
14574  * @return con_handle
14575  * @note: btstack_type H
14576  */
14577 static inline hci_con_handle_t gattservice_subevent_ascs_connected_get_con_handle(const uint8_t * event){
14578     return little_endian_read_16(event, 3);
14579 }
14580 /**
14581  * @brief Get field ascs_cid from event GATTSERVICE_SUBEVENT_ASCS_CONNECTED
14582  * @param event packet
14583  * @return ascs_cid
14584  * @note: btstack_type 2
14585  */
14586 static inline uint16_t gattservice_subevent_ascs_connected_get_ascs_cid(const uint8_t * event){
14587     return little_endian_read_16(event, 5);
14588 }
14589 /**
14590  * @brief Get field status from event GATTSERVICE_SUBEVENT_ASCS_CONNECTED
14591  * @param event packet
14592  * @return status
14593  * @note: btstack_type 1
14594  */
14595 static inline uint8_t gattservice_subevent_ascs_connected_get_status(const uint8_t * event){
14596     return event[7];
14597 }
14598 
14599 /**
14600  * @brief Get field ascs_cid from event GATTSERVICE_SUBEVENT_ASCS_DISCONNECTED
14601  * @param event packet
14602  * @return ascs_cid
14603  * @note: btstack_type 2
14604  */
14605 static inline uint16_t gattservice_subevent_ascs_disconnected_get_ascs_cid(const uint8_t * event){
14606     return little_endian_read_16(event, 3);
14607 }
14608 
14609 /**
14610  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14611  * @param event packet
14612  * @return con_handle
14613  * @note: btstack_type H
14614  */
14615 static inline hci_con_handle_t gattservice_subevent_ascs_codec_configuration_get_con_handle(const uint8_t * event){
14616     return little_endian_read_16(event, 3);
14617 }
14618 /**
14619  * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14620  * @param event packet
14621  * @return ase_id
14622  * @note: btstack_type 1
14623  */
14624 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_ase_id(const uint8_t * event){
14625     return event[5];
14626 }
14627 /**
14628  * @brief Get field framing from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14629  * @param event packet
14630  * @return framing
14631  * @note: btstack_type 1
14632  */
14633 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_framing(const uint8_t * event){
14634     return event[6];
14635 }
14636 /**
14637  * @brief Get field preferred_phy from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14638  * @param event packet
14639  * @return preferred_phy
14640  * @note: btstack_type 1
14641  */
14642 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_preferred_phy(const uint8_t * event){
14643     return event[7];
14644 }
14645 /**
14646  * @brief Get field preferred_retransmission_number from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14647  * @param event packet
14648  * @return preferred_retransmission_number
14649  * @note: btstack_type 1
14650  */
14651 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_preferred_retransmission_number(const uint8_t * event){
14652     return event[8];
14653 }
14654 /**
14655  * @brief Get field max_transport_latency from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14656  * @param event packet
14657  * @return max_transport_latency
14658  * @note: btstack_type 2
14659  */
14660 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_max_transport_latency(const uint8_t * event){
14661     return little_endian_read_16(event, 9);
14662 }
14663 /**
14664  * @brief Get field presentation_delay_min from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14665  * @param event packet
14666  * @return presentation_delay_min
14667  * @note: btstack_type 3
14668  */
14669 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_presentation_delay_min(const uint8_t * event){
14670     return little_endian_read_24(event, 11);
14671 }
14672 /**
14673  * @brief Get field presentation_delay_max from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14674  * @param event packet
14675  * @return presentation_delay_max
14676  * @note: btstack_type 3
14677  */
14678 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_presentation_delay_max(const uint8_t * event){
14679     return little_endian_read_24(event, 14);
14680 }
14681 /**
14682  * @brief Get field preferred_presentation_delay_min from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14683  * @param event packet
14684  * @return preferred_presentation_delay_min
14685  * @note: btstack_type 3
14686  */
14687 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_preferred_presentation_delay_min(const uint8_t * event){
14688     return little_endian_read_24(event, 17);
14689 }
14690 /**
14691  * @brief Get field preferred_presentation_delay_max from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14692  * @param event packet
14693  * @return preferred_presentation_delay_max
14694  * @note: btstack_type 3
14695  */
14696 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_preferred_presentation_delay_max(const uint8_t * event){
14697     return little_endian_read_24(event, 20);
14698 }
14699 /**
14700  * @brief Get field coding_format from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14701  * @param event packet
14702  * @return coding_format
14703  * @note: btstack_type 1
14704  */
14705 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_coding_format(const uint8_t * event){
14706     return event[23];
14707 }
14708 /**
14709  * @brief Get field company_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14710  * @param event packet
14711  * @return company_id
14712  * @note: btstack_type 2
14713  */
14714 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_company_id(const uint8_t * event){
14715     return little_endian_read_16(event, 24);
14716 }
14717 /**
14718  * @brief Get field vendor_specific_codec_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14719  * @param event packet
14720  * @return vendor_specific_codec_id
14721  * @note: btstack_type 2
14722  */
14723 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_vendor_specific_codec_id(const uint8_t * event){
14724     return little_endian_read_16(event, 26);
14725 }
14726 /**
14727  * @brief Get field specific_codec_configuration_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14728  * @param event packet
14729  * @return specific_codec_configuration_mask
14730  * @note: btstack_type 1
14731  */
14732 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_specific_codec_configuration_mask(const uint8_t * event){
14733     return event[28];
14734 }
14735 /**
14736  * @brief Get field sampling_frequency_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14737  * @param event packet
14738  * @return sampling_frequency_index
14739  * @note: btstack_type 1
14740  */
14741 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_sampling_frequency_index(const uint8_t * event){
14742     return event[29];
14743 }
14744 /**
14745  * @brief Get field frame_duration_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14746  * @param event packet
14747  * @return frame_duration_index
14748  * @note: btstack_type 1
14749  */
14750 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_frame_duration_index(const uint8_t * event){
14751     return event[30];
14752 }
14753 /**
14754  * @brief Get field audio_channel_allocation_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14755  * @param event packet
14756  * @return audio_channel_allocation_mask
14757  * @note: btstack_type 4
14758  */
14759 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_audio_channel_allocation_mask(const uint8_t * event){
14760     return little_endian_read_32(event, 31);
14761 }
14762 /**
14763  * @brief Get field octets_per_frame from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14764  * @param event packet
14765  * @return octets_per_frame
14766  * @note: btstack_type 2
14767  */
14768 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_octets_per_frame(const uint8_t * event){
14769     return little_endian_read_16(event, 35);
14770 }
14771 /**
14772  * @brief Get field frame_blocks_per_sdu from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION
14773  * @param event packet
14774  * @return frame_blocks_per_sdu
14775  * @note: btstack_type 1
14776  */
14777 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_frame_blocks_per_sdu(const uint8_t * event){
14778     return event[37];
14779 }
14780 
14781 /**
14782  * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_DISCONNECTED
14783  * @param event packet
14784  * @return pacs_cid
14785  * @note: btstack_type 2
14786  */
14787 static inline uint16_t gattservice_subevent_pacs_disconnected_get_pacs_cid(const uint8_t * event){
14788     return little_endian_read_16(event, 3);
14789 }
14790 
14791 /**
14792  * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED
14793  * @param event packet
14794  * @return map_cid
14795  * @note: btstack_type 2
14796  */
14797 static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){
14798     return little_endian_read_16(event, 3);
14799 }
14800 /**
14801  * @brief Get field status from event MAP_SUBEVENT_CONNECTION_OPENED
14802  * @param event packet
14803  * @return status
14804  * @note: btstack_type 1
14805  */
14806 static inline uint8_t map_subevent_connection_opened_get_status(const uint8_t * event){
14807     return event[5];
14808 }
14809 /**
14810  * @brief Get field bd_addr from event MAP_SUBEVENT_CONNECTION_OPENED
14811  * @param event packet
14812  * @param Pointer to storage for bd_addr
14813  * @note: btstack_type B
14814  */
14815 static inline void map_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
14816     reverse_bytes(&event[6], bd_addr, 6);
14817 }
14818 /**
14819  * @brief Get field con_handle from event MAP_SUBEVENT_CONNECTION_OPENED
14820  * @param event packet
14821  * @return con_handle
14822  * @note: btstack_type H
14823  */
14824 static inline hci_con_handle_t map_subevent_connection_opened_get_con_handle(const uint8_t * event){
14825     return little_endian_read_16(event, 12);
14826 }
14827 /**
14828  * @brief Get field incoming from event MAP_SUBEVENT_CONNECTION_OPENED
14829  * @param event packet
14830  * @return incoming
14831  * @note: btstack_type 1
14832  */
14833 static inline uint8_t map_subevent_connection_opened_get_incoming(const uint8_t * event){
14834     return event[14];
14835 }
14836 
14837 /**
14838  * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_CLOSED
14839  * @param event packet
14840  * @return map_cid
14841  * @note: btstack_type 2
14842  */
14843 static inline uint16_t map_subevent_connection_closed_get_map_cid(const uint8_t * event){
14844     return little_endian_read_16(event, 3);
14845 }
14846 
14847 /**
14848  * @brief Get field map_cid from event MAP_SUBEVENT_OPERATION_COMPLETED
14849  * @param event packet
14850  * @return map_cid
14851  * @note: btstack_type 2
14852  */
14853 static inline uint16_t map_subevent_operation_completed_get_map_cid(const uint8_t * event){
14854     return little_endian_read_16(event, 3);
14855 }
14856 /**
14857  * @brief Get field status from event MAP_SUBEVENT_OPERATION_COMPLETED
14858  * @param event packet
14859  * @return status
14860  * @note: btstack_type 1
14861  */
14862 static inline uint8_t map_subevent_operation_completed_get_status(const uint8_t * event){
14863     return event[5];
14864 }
14865 
14866 /**
14867  * @brief Get field map_cid from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
14868  * @param event packet
14869  * @return map_cid
14870  * @note: btstack_type 2
14871  */
14872 static inline uint16_t map_subevent_folder_listing_item_get_map_cid(const uint8_t * event){
14873     return little_endian_read_16(event, 3);
14874 }
14875 /**
14876  * @brief Get field name_len from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
14877  * @param event packet
14878  * @return name_len
14879  * @note: btstack_type L
14880  */
14881 static inline uint16_t map_subevent_folder_listing_item_get_name_len(const uint8_t * event){
14882     return little_endian_read_16(event, 5);
14883 }
14884 /**
14885  * @brief Get field name from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
14886  * @param event packet
14887  * @return name
14888  * @note: btstack_type V
14889  */
14890 static inline const uint8_t * map_subevent_folder_listing_item_get_name(const uint8_t * event){
14891     return &event[7];
14892 }
14893 
14894 /**
14895  * @brief Get field map_cid from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
14896  * @param event packet
14897  * @return map_cid
14898  * @note: btstack_type 2
14899  */
14900 static inline uint16_t map_subevent_message_listing_item_get_map_cid(const uint8_t * event){
14901     return little_endian_read_16(event, 3);
14902 }
14903 /**
14904  * @brief Get field handle from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
14905  * @param event packet
14906  * @return handle
14907  * @note: btstack_type D
14908  */
14909 static inline const uint8_t * map_subevent_message_listing_item_get_handle(const uint8_t * event){
14910     return (const uint8_t *) &event[5];
14911 }
14912 
14913 /**
14914  * @brief Get field map_cid from event MAP_SUBEVENT_PARSING_DONE
14915  * @param event packet
14916  * @return map_cid
14917  * @note: btstack_type 2
14918  */
14919 static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * event){
14920     return little_endian_read_16(event, 3);
14921 }
14922 
14923 
14924 /**
14925  * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT
14926  * @param event packet
14927  * @return status
14928  * @note: btstack_type 1
14929  */
14930 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){
14931     return event[3];
14932 }
14933 
14934 /**
14935  * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
14936  * @param event packet
14937  * @return status
14938  * @note: btstack_type 1
14939  */
14940 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){
14941     return event[3];
14942 }
14943 /**
14944  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
14945  * @param event packet
14946  * @return pb_transport_cid
14947  * @note: btstack_type 2
14948  */
14949 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){
14950     return little_endian_read_16(event, 4);
14951 }
14952 /**
14953  * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
14954  * @param event packet
14955  * @return pb_type
14956  * @note: btstack_type 1
14957  */
14958 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){
14959     return event[6];
14960 }
14961 
14962 /**
14963  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED
14964  * @param event packet
14965  * @return pb_transport_cid
14966  * @note: btstack_type 1
14967  */
14968 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){
14969     return event[3];
14970 }
14971 /**
14972  * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED
14973  * @param event packet
14974  * @return reason
14975  * @note: btstack_type 2
14976  */
14977 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){
14978     return little_endian_read_16(event, 4);
14979 }
14980 
14981 /**
14982  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER
14983  * @param event packet
14984  * @return pb_transport_cid
14985  * @note: btstack_type 2
14986  */
14987 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){
14988     return little_endian_read_16(event, 3);
14989 }
14990 /**
14991  * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER
14992  * @param event packet
14993  * @return attention_time
14994  * @note: btstack_type 1
14995  */
14996 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){
14997     return event[5];
14998 }
14999 
15000 /**
15001  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB
15002  * @param event packet
15003  * @return pb_transport_cid
15004  * @note: btstack_type 2
15005  */
15006 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){
15007     return little_endian_read_16(event, 3);
15008 }
15009 
15010 /**
15011  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB
15012  * @param event packet
15013  * @return pb_transport_cid
15014  * @note: btstack_type 2
15015  */
15016 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){
15017     return little_endian_read_16(event, 3);
15018 }
15019 
15020 /**
15021  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST
15022  * @param event packet
15023  * @return pb_transport_cid
15024  * @note: btstack_type 2
15025  */
15026 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){
15027     return little_endian_read_16(event, 3);
15028 }
15029 
15030 /**
15031  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB
15032  * @param event packet
15033  * @return pb_transport_cid
15034  * @note: btstack_type 2
15035  */
15036 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){
15037     return little_endian_read_16(event, 3);
15038 }
15039 /**
15040  * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB
15041  * @param event packet
15042  * @return output_oob
15043  * @note: btstack_type 4
15044  */
15045 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){
15046     return little_endian_read_32(event, 5);
15047 }
15048 
15049 /**
15050  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB
15051  * @param event packet
15052  * @return pb_transport_cid
15053  * @note: btstack_type 2
15054  */
15055 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){
15056     return little_endian_read_16(event, 3);
15057 }
15058 
15059 /**
15060  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB
15061  * @param event packet
15062  * @return pb_transport_cid
15063  * @note: btstack_type 2
15064  */
15065 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){
15066     return little_endian_read_16(event, 3);
15067 }
15068 
15069 /**
15070  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB
15071  * @param event packet
15072  * @return pb_transport_cid
15073  * @note: btstack_type 2
15074  */
15075 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){
15076     return little_endian_read_16(event, 3);
15077 }
15078 
15079 /**
15080  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST
15081  * @param event packet
15082  * @return pb_transport_cid
15083  * @note: btstack_type 2
15084  */
15085 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){
15086     return little_endian_read_16(event, 3);
15087 }
15088 
15089 /**
15090  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB
15091  * @param event packet
15092  * @return pb_transport_cid
15093  * @note: btstack_type 2
15094  */
15095 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){
15096     return little_endian_read_16(event, 3);
15097 }
15098 /**
15099  * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB
15100  * @param event packet
15101  * @return output_oob
15102  * @note: btstack_type 4
15103  */
15104 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){
15105     return little_endian_read_32(event, 5);
15106 }
15107 
15108 /**
15109  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB
15110  * @param event packet
15111  * @return pb_transport_cid
15112  * @note: btstack_type 2
15113  */
15114 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){
15115     return little_endian_read_16(event, 3);
15116 }
15117 
15118 /**
15119  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15120  * @param event packet
15121  * @return pb_transport_cid
15122  * @note: btstack_type 2
15123  */
15124 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){
15125     return little_endian_read_16(event, 3);
15126 }
15127 /**
15128  * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15129  * @param event packet
15130  * @return num_elements
15131  * @note: btstack_type 1
15132  */
15133 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){
15134     return event[5];
15135 }
15136 /**
15137  * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15138  * @param event packet
15139  * @return algorithms
15140  * @note: btstack_type 2
15141  */
15142 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){
15143     return little_endian_read_16(event, 6);
15144 }
15145 /**
15146  * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15147  * @param event packet
15148  * @return public_key
15149  * @note: btstack_type 1
15150  */
15151 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){
15152     return event[8];
15153 }
15154 /**
15155  * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15156  * @param event packet
15157  * @return static_oob_type
15158  * @note: btstack_type 1
15159  */
15160 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){
15161     return event[9];
15162 }
15163 /**
15164  * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15165  * @param event packet
15166  * @return output_oob_size
15167  * @note: btstack_type 1
15168  */
15169 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){
15170     return event[10];
15171 }
15172 /**
15173  * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15174  * @param event packet
15175  * @return output_oob_action
15176  * @note: btstack_type 2
15177  */
15178 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){
15179     return little_endian_read_16(event, 11);
15180 }
15181 /**
15182  * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15183  * @param event packet
15184  * @return input_oob_size
15185  * @note: btstack_type 1
15186  */
15187 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){
15188     return event[13];
15189 }
15190 /**
15191  * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15192  * @param event packet
15193  * @return input_oob_action
15194  * @note: btstack_type 2
15195  */
15196 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){
15197     return little_endian_read_16(event, 14);
15198 }
15199 
15200 /**
15201  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE
15202  * @param event packet
15203  * @return pb_transport_cid
15204  * @note: btstack_type 2
15205  */
15206 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){
15207     return little_endian_read_16(event, 3);
15208 }
15209 
15210 /**
15211  * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER
15212  * @param event packet
15213  * @return attention_time
15214  * @note: btstack_type 1
15215  */
15216 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){
15217     return event[3];
15218 }
15219 
15220 /**
15221  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED
15222  * @param event packet
15223  * @return con_handle
15224  * @note: btstack_type H
15225  */
15226 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){
15227     return little_endian_read_16(event, 3);
15228 }
15229 
15230 /**
15231  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT
15232  * @param event packet
15233  * @return con_handle
15234  * @note: btstack_type H
15235  */
15236 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){
15237     return little_endian_read_16(event, 3);
15238 }
15239 
15240 /**
15241  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED
15242  * @param event packet
15243  * @return con_handle
15244  * @note: btstack_type H
15245  */
15246 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){
15247     return little_endian_read_16(event, 3);
15248 }
15249 
15250 /**
15251  * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT
15252  * @param event packet
15253  * @return con_handle
15254  * @note: btstack_type H
15255  */
15256 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){
15257     return little_endian_read_16(event, 3);
15258 }
15259 
15260 /**
15261  * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15262  * @param event packet
15263  * @return element_index
15264  * @note: btstack_type 1
15265  */
15266 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){
15267     return event[3];
15268 }
15269 /**
15270  * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15271  * @param event packet
15272  * @return model_identifier
15273  * @note: btstack_type 4
15274  */
15275 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){
15276     return little_endian_read_32(event, 4);
15277 }
15278 /**
15279  * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15280  * @param event packet
15281  * @return state_identifier
15282  * @note: btstack_type 4
15283  */
15284 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){
15285     return little_endian_read_32(event, 8);
15286 }
15287 /**
15288  * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15289  * @param event packet
15290  * @return reason
15291  * @note: btstack_type 1
15292  */
15293 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){
15294     return event[12];
15295 }
15296 /**
15297  * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15298  * @param event packet
15299  * @return value
15300  * @note: btstack_type 1
15301  */
15302 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){
15303     return event[13];
15304 }
15305 
15306 /**
15307  * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16
15308  * @param event packet
15309  * @return element_index
15310  * @note: btstack_type 1
15311  */
15312 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){
15313     return event[3];
15314 }
15315 /**
15316  * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16
15317  * @param event packet
15318  * @return model_identifier
15319  * @note: btstack_type 4
15320  */
15321 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){
15322     return little_endian_read_32(event, 4);
15323 }
15324 /**
15325  * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16
15326  * @param event packet
15327  * @return state_identifier
15328  * @note: btstack_type 4
15329  */
15330 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){
15331     return little_endian_read_32(event, 8);
15332 }
15333 /**
15334  * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16
15335  * @param event packet
15336  * @return reason
15337  * @note: btstack_type 1
15338  */
15339 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){
15340     return event[12];
15341 }
15342 /**
15343  * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16
15344  * @param event packet
15345  * @return value
15346  * @note: btstack_type 2
15347  */
15348 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){
15349     return little_endian_read_16(event, 13);
15350 }
15351 
15352 /**
15353  * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15354  * @param event packet
15355  * @return element_index
15356  * @note: btstack_type 1
15357  */
15358 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){
15359     return event[3];
15360 }
15361 /**
15362  * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15363  * @param event packet
15364  * @return model_identifier
15365  * @note: btstack_type 4
15366  */
15367 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){
15368     return little_endian_read_32(event, 4);
15369 }
15370 /**
15371  * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15372  * @param event packet
15373  * @return opcode
15374  * @note: btstack_type 4
15375  */
15376 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){
15377     return little_endian_read_32(event, 8);
15378 }
15379 /**
15380  * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15381  * @param event packet
15382  * @return dest
15383  * @note: btstack_type 2
15384  */
15385 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){
15386     return little_endian_read_16(event, 12);
15387 }
15388 
15389 /**
15390  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF
15391  * @param event packet
15392  * @return dest
15393  * @note: btstack_type 2
15394  */
15395 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){
15396     return little_endian_read_16(event, 3);
15397 }
15398 /**
15399  * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF
15400  * @param event packet
15401  * @return status
15402  * @note: btstack_type 1
15403  */
15404 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){
15405     return event[5];
15406 }
15407 /**
15408  * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF
15409  * @param event packet
15410  * @return present_value
15411  * @note: btstack_type 1
15412  */
15413 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){
15414     return event[6];
15415 }
15416 /**
15417  * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF
15418  * @param event packet
15419  * @return target_value
15420  * @note: btstack_type 1
15421  */
15422 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){
15423     return event[7];
15424 }
15425 /**
15426  * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF
15427  * @param event packet
15428  * @return remaining_time_ms
15429  * @note: btstack_type 4
15430  */
15431 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){
15432     return little_endian_read_32(event, 8);
15433 }
15434 
15435 /**
15436  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL
15437  * @param event packet
15438  * @return dest
15439  * @note: btstack_type 2
15440  */
15441 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){
15442     return little_endian_read_16(event, 3);
15443 }
15444 /**
15445  * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL
15446  * @param event packet
15447  * @return status
15448  * @note: btstack_type 1
15449  */
15450 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){
15451     return event[5];
15452 }
15453 /**
15454  * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL
15455  * @param event packet
15456  * @return present_value
15457  * @note: btstack_type 2
15458  */
15459 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){
15460     return little_endian_read_16(event, 6);
15461 }
15462 /**
15463  * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL
15464  * @param event packet
15465  * @return target_value
15466  * @note: btstack_type 2
15467  */
15468 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){
15469     return little_endian_read_16(event, 8);
15470 }
15471 /**
15472  * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL
15473  * @param event packet
15474  * @return remaining_time_ms
15475  * @note: btstack_type 4
15476  */
15477 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){
15478     return little_endian_read_32(event, 10);
15479 }
15480 
15481 /**
15482  * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15483  * @param event packet
15484  * @return dest
15485  * @note: btstack_type 2
15486  */
15487 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){
15488     return little_endian_read_16(event, 3);
15489 }
15490 /**
15491  * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15492  * @param event packet
15493  * @return netkey_index
15494  * @note: btstack_type 2
15495  */
15496 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){
15497     return little_endian_read_16(event, 5);
15498 }
15499 /**
15500  * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15501  * @param event packet
15502  * @return appkey_index
15503  * @note: btstack_type 2
15504  */
15505 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){
15506     return little_endian_read_16(event, 7);
15507 }
15508 /**
15509  * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15510  * @param event packet
15511  * @return company_id
15512  * @note: btstack_type 2
15513  */
15514 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){
15515     return little_endian_read_16(event, 9);
15516 }
15517 /**
15518  * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15519  * @param event packet
15520  * @return test_id
15521  * @note: btstack_type 1
15522  */
15523 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){
15524     return event[11];
15525 }
15526 /**
15527  * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15528  * @param event packet
15529  * @return acknowledged
15530  * @note: btstack_type 1
15531  */
15532 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){
15533     return event[12];
15534 }
15535 
15536 /**
15537  * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED
15538  * @param event packet
15539  * @return element_index
15540  * @note: btstack_type 1
15541  */
15542 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){
15543     return event[3];
15544 }
15545 
15546 /**
15547  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
15548  * @param event packet
15549  * @return dest
15550  * @note: btstack_type 2
15551  */
15552 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){
15553     return little_endian_read_16(event, 3);
15554 }
15555 /**
15556  * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
15557  * @param event packet
15558  * @return status
15559  * @note: btstack_type 1
15560  */
15561 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){
15562     return event[5];
15563 }
15564 /**
15565  * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
15566  * @param event packet
15567  * @return transition_time_gdtt
15568  * @note: btstack_type 1
15569  */
15570 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){
15571     return event[6];
15572 }
15573 
15574 /**
15575  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON
15576  * @param event packet
15577  * @return dest
15578  * @note: btstack_type 2
15579  */
15580 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){
15581     return little_endian_read_16(event, 3);
15582 }
15583 /**
15584  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON
15585  * @param event packet
15586  * @return foundation_status
15587  * @note: btstack_type 1
15588  */
15589 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){
15590     return event[5];
15591 }
15592 /**
15593  * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON
15594  * @param event packet
15595  * @return secure_network_beacon_state
15596  * @note: btstack_type 1
15597  */
15598 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){
15599     return event[6];
15600 }
15601 
15602 /**
15603  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
15604  * @param event packet
15605  * @return dest
15606  * @note: btstack_type 2
15607  */
15608 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){
15609     return little_endian_read_16(event, 3);
15610 }
15611 /**
15612  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
15613  * @param event packet
15614  * @return foundation_status
15615  * @note: btstack_type 1
15616  */
15617 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){
15618     return event[5];
15619 }
15620 /**
15621  * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
15622  * @param event packet
15623  * @return default_ttl
15624  * @note: btstack_type 1
15625  */
15626 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){
15627     return event[6];
15628 }
15629 
15630 /**
15631  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
15632  * @param event packet
15633  * @return dest
15634  * @note: btstack_type 2
15635  */
15636 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){
15637     return little_endian_read_16(event, 3);
15638 }
15639 /**
15640  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
15641  * @param event packet
15642  * @return foundation_status
15643  * @note: btstack_type 1
15644  */
15645 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){
15646     return event[5];
15647 }
15648 /**
15649  * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
15650  * @param event packet
15651  * @return gatt_proxy_state
15652  * @note: btstack_type 1
15653  */
15654 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){
15655     return event[6];
15656 }
15657 
15658 /**
15659  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY
15660  * @param event packet
15661  * @return dest
15662  * @note: btstack_type 2
15663  */
15664 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){
15665     return little_endian_read_16(event, 3);
15666 }
15667 /**
15668  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY
15669  * @param event packet
15670  * @return foundation_status
15671  * @note: btstack_type 1
15672  */
15673 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){
15674     return event[5];
15675 }
15676 /**
15677  * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY
15678  * @param event packet
15679  * @return relay
15680  * @note: btstack_type 1
15681  */
15682 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){
15683     return event[6];
15684 }
15685 /**
15686  * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY
15687  * @param event packet
15688  * @return retransmit_count
15689  * @note: btstack_type 1
15690  */
15691 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){
15692     return event[7];
15693 }
15694 /**
15695  * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY
15696  * @param event packet
15697  * @return retransmit_interval_ms
15698  * @note: btstack_type 1
15699  */
15700 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){
15701     return event[8];
15702 }
15703 
15704 /**
15705  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15706  * @param event packet
15707  * @return dest
15708  * @note: btstack_type 2
15709  */
15710 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){
15711     return little_endian_read_16(event, 3);
15712 }
15713 /**
15714  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15715  * @param event packet
15716  * @return foundation_status
15717  * @note: btstack_type 1
15718  */
15719 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){
15720     return event[5];
15721 }
15722 /**
15723  * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15724  * @param event packet
15725  * @return publish_address
15726  * @note: btstack_type 2
15727  */
15728 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){
15729     return little_endian_read_16(event, 6);
15730 }
15731 /**
15732  * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15733  * @param event packet
15734  * @return appkey_index
15735  * @note: btstack_type 2
15736  */
15737 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){
15738     return little_endian_read_16(event, 8);
15739 }
15740 /**
15741  * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15742  * @param event packet
15743  * @return credential_flag
15744  * @note: btstack_type 1
15745  */
15746 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){
15747     return event[10];
15748 }
15749 /**
15750  * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15751  * @param event packet
15752  * @return publish_ttl
15753  * @note: btstack_type 1
15754  */
15755 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){
15756     return event[11];
15757 }
15758 /**
15759  * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15760  * @param event packet
15761  * @return publish_period
15762  * @note: btstack_type 1
15763  */
15764 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){
15765     return event[12];
15766 }
15767 /**
15768  * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15769  * @param event packet
15770  * @return publish_retransmit_count
15771  * @note: btstack_type 1
15772  */
15773 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){
15774     return event[13];
15775 }
15776 /**
15777  * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15778  * @param event packet
15779  * @return publish_retransmit_interval_steps
15780  * @note: btstack_type 1
15781  */
15782 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){
15783     return event[14];
15784 }
15785 /**
15786  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15787  * @param event packet
15788  * @return model_identifier
15789  * @note: btstack_type 4
15790  */
15791 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){
15792     return little_endian_read_32(event, 15);
15793 }
15794 
15795 /**
15796  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15797  * @param event packet
15798  * @return dest
15799  * @note: btstack_type 2
15800  */
15801 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){
15802     return little_endian_read_16(event, 3);
15803 }
15804 /**
15805  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15806  * @param event packet
15807  * @return foundation_status
15808  * @note: btstack_type 1
15809  */
15810 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){
15811     return event[5];
15812 }
15813 /**
15814  * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15815  * @param event packet
15816  * @return address
15817  * @note: btstack_type 2
15818  */
15819 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){
15820     return little_endian_read_16(event, 6);
15821 }
15822 /**
15823  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15824  * @param event packet
15825  * @return model_identifier
15826  * @note: btstack_type 4
15827  */
15828 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){
15829     return little_endian_read_32(event, 8);
15830 }
15831 
15832 /**
15833  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15834  * @param event packet
15835  * @return dest
15836  * @note: btstack_type 2
15837  */
15838 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){
15839     return little_endian_read_16(event, 3);
15840 }
15841 /**
15842  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15843  * @param event packet
15844  * @return foundation_status
15845  * @note: btstack_type 1
15846  */
15847 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){
15848     return event[5];
15849 }
15850 /**
15851  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15852  * @param event packet
15853  * @return model_identifier
15854  * @note: btstack_type 4
15855  */
15856 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){
15857     return little_endian_read_32(event, 6);
15858 }
15859 /**
15860  * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15861  * @param event packet
15862  * @return num_subscription_addresses
15863  * @note: btstack_type 1
15864  */
15865 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){
15866     return event[10];
15867 }
15868 /**
15869  * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15870  * @param event packet
15871  * @return subscription_address_pos
15872  * @note: btstack_type 1
15873  */
15874 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){
15875     return event[11];
15876 }
15877 /**
15878  * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15879  * @param event packet
15880  * @return subscription_address_item
15881  * @note: btstack_type 2
15882  */
15883 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){
15884     return little_endian_read_16(event, 12);
15885 }
15886 
15887 /**
15888  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX
15889  * @param event packet
15890  * @return dest
15891  * @note: btstack_type 2
15892  */
15893 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){
15894     return little_endian_read_16(event, 3);
15895 }
15896 /**
15897  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX
15898  * @param event packet
15899  * @return foundation_status
15900  * @note: btstack_type 1
15901  */
15902 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){
15903     return event[5];
15904 }
15905 
15906 /**
15907  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15908  * @param event packet
15909  * @return dest
15910  * @note: btstack_type 2
15911  */
15912 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){
15913     return little_endian_read_16(event, 3);
15914 }
15915 /**
15916  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15917  * @param event packet
15918  * @return foundation_status
15919  * @note: btstack_type 1
15920  */
15921 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){
15922     return event[5];
15923 }
15924 /**
15925  * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15926  * @param event packet
15927  * @return num_netkey_indexes
15928  * @note: btstack_type 1
15929  */
15930 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){
15931     return event[6];
15932 }
15933 /**
15934  * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15935  * @param event packet
15936  * @return netkey_index_pos
15937  * @note: btstack_type 1
15938  */
15939 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){
15940     return event[7];
15941 }
15942 /**
15943  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15944  * @param event packet
15945  * @return netkey_index_item
15946  * @note: btstack_type 2
15947  */
15948 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){
15949     return little_endian_read_16(event, 8);
15950 }
15951 
15952 /**
15953  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15954  * @param event packet
15955  * @return dest
15956  * @note: btstack_type 2
15957  */
15958 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){
15959     return little_endian_read_16(event, 3);
15960 }
15961 /**
15962  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15963  * @param event packet
15964  * @return foundation_status
15965  * @note: btstack_type 1
15966  */
15967 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){
15968     return event[5];
15969 }
15970 /**
15971  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15972  * @param event packet
15973  * @return netkey_index_item
15974  * @note: btstack_type 2
15975  */
15976 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){
15977     return little_endian_read_16(event, 6);
15978 }
15979 /**
15980  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15981  * @param event packet
15982  * @return appkey_index_item
15983  * @note: btstack_type 2
15984  */
15985 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){
15986     return little_endian_read_16(event, 8);
15987 }
15988 
15989 /**
15990  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15991  * @param event packet
15992  * @return dest
15993  * @note: btstack_type 2
15994  */
15995 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){
15996     return little_endian_read_16(event, 3);
15997 }
15998 /**
15999  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
16000  * @param event packet
16001  * @return foundation_status
16002  * @note: btstack_type 1
16003  */
16004 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){
16005     return event[5];
16006 }
16007 /**
16008  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
16009  * @param event packet
16010  * @return netkey_index
16011  * @note: btstack_type 2
16012  */
16013 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){
16014     return little_endian_read_16(event, 6);
16015 }
16016 /**
16017  * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
16018  * @param event packet
16019  * @return num_appkey_indexes
16020  * @note: btstack_type 1
16021  */
16022 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){
16023     return event[8];
16024 }
16025 /**
16026  * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
16027  * @param event packet
16028  * @return appkey_index_pos
16029  * @note: btstack_type 1
16030  */
16031 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){
16032     return event[9];
16033 }
16034 /**
16035  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
16036  * @param event packet
16037  * @return netkey_index_item
16038  * @note: btstack_type 2
16039  */
16040 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){
16041     return little_endian_read_16(event, 10);
16042 }
16043 /**
16044  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
16045  * @param event packet
16046  * @return appkey_index_item
16047  * @note: btstack_type 2
16048  */
16049 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){
16050     return little_endian_read_16(event, 12);
16051 }
16052 
16053 /**
16054  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
16055  * @param event packet
16056  * @return dest
16057  * @note: btstack_type 2
16058  */
16059 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){
16060     return little_endian_read_16(event, 3);
16061 }
16062 /**
16063  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
16064  * @param event packet
16065  * @return foundation_status
16066  * @note: btstack_type 1
16067  */
16068 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){
16069     return event[5];
16070 }
16071 /**
16072  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
16073  * @param event packet
16074  * @return netkey_index_item
16075  * @note: btstack_type 2
16076  */
16077 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){
16078     return little_endian_read_16(event, 6);
16079 }
16080 /**
16081  * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
16082  * @param event packet
16083  * @return identity_status
16084  * @note: btstack_type 1
16085  */
16086 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){
16087     return event[8];
16088 }
16089 
16090 /**
16091  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
16092  * @param event packet
16093  * @return dest
16094  * @note: btstack_type 2
16095  */
16096 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){
16097     return little_endian_read_16(event, 3);
16098 }
16099 /**
16100  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
16101  * @param event packet
16102  * @return foundation_status
16103  * @note: btstack_type 1
16104  */
16105 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){
16106     return event[5];
16107 }
16108 /**
16109  * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
16110  * @param event packet
16111  * @return appkey_index
16112  * @note: btstack_type 2
16113  */
16114 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){
16115     return little_endian_read_16(event, 6);
16116 }
16117 /**
16118  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
16119  * @param event packet
16120  * @return model_identifier
16121  * @note: btstack_type 4
16122  */
16123 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){
16124     return little_endian_read_32(event, 8);
16125 }
16126 
16127 /**
16128  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16129  * @param event packet
16130  * @return dest
16131  * @note: btstack_type 2
16132  */
16133 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){
16134     return little_endian_read_16(event, 3);
16135 }
16136 /**
16137  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16138  * @param event packet
16139  * @return foundation_status
16140  * @note: btstack_type 1
16141  */
16142 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){
16143     return event[5];
16144 }
16145 /**
16146  * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16147  * @param event packet
16148  * @return model_id
16149  * @note: btstack_type 4
16150  */
16151 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){
16152     return little_endian_read_32(event, 6);
16153 }
16154 /**
16155  * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16156  * @param event packet
16157  * @return num_appkey_indexes
16158  * @note: btstack_type 1
16159  */
16160 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){
16161     return event[10];
16162 }
16163 /**
16164  * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16165  * @param event packet
16166  * @return appkey_index_pos
16167  * @note: btstack_type 1
16168  */
16169 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){
16170     return event[11];
16171 }
16172 /**
16173  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16174  * @param event packet
16175  * @return appkey_index_item
16176  * @note: btstack_type 2
16177  */
16178 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){
16179     return little_endian_read_16(event, 12);
16180 }
16181 
16182 /**
16183  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET
16184  * @param event packet
16185  * @return dest
16186  * @note: btstack_type 2
16187  */
16188 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){
16189     return little_endian_read_16(event, 3);
16190 }
16191 /**
16192  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET
16193  * @param event packet
16194  * @return foundation_status
16195  * @note: btstack_type 1
16196  */
16197 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){
16198     return event[5];
16199 }
16200 
16201 /**
16202  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND
16203  * @param event packet
16204  * @return dest
16205  * @note: btstack_type 2
16206  */
16207 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){
16208     return little_endian_read_16(event, 3);
16209 }
16210 /**
16211  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND
16212  * @param event packet
16213  * @return foundation_status
16214  * @note: btstack_type 1
16215  */
16216 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){
16217     return event[5];
16218 }
16219 /**
16220  * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND
16221  * @param event packet
16222  * @return friend_state
16223  * @note: btstack_type 1
16224  */
16225 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){
16226     return event[6];
16227 }
16228 
16229 /**
16230  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16231  * @param event packet
16232  * @return dest
16233  * @note: btstack_type 2
16234  */
16235 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){
16236     return little_endian_read_16(event, 3);
16237 }
16238 /**
16239  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16240  * @param event packet
16241  * @return foundation_status
16242  * @note: btstack_type 1
16243  */
16244 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){
16245     return event[5];
16246 }
16247 /**
16248  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16249  * @param event packet
16250  * @return netkey_index
16251  * @note: btstack_type 2
16252  */
16253 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){
16254     return little_endian_read_16(event, 6);
16255 }
16256 /**
16257  * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16258  * @param event packet
16259  * @return phase
16260  * @note: btstack_type 1
16261  */
16262 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){
16263     return event[8];
16264 }
16265 
16266 /**
16267  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16268  * @param event packet
16269  * @return dest
16270  * @note: btstack_type 2
16271  */
16272 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){
16273     return little_endian_read_16(event, 3);
16274 }
16275 /**
16276  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16277  * @param event packet
16278  * @return foundation_status
16279  * @note: btstack_type 1
16280  */
16281 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){
16282     return event[5];
16283 }
16284 /**
16285  * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16286  * @param event packet
16287  * @return heartbeat_destination
16288  * @note: btstack_type 2
16289  */
16290 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){
16291     return little_endian_read_16(event, 6);
16292 }
16293 /**
16294  * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16295  * @param event packet
16296  * @return count_S
16297  * @note: btstack_type 2
16298  */
16299 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){
16300     return little_endian_read_16(event, 8);
16301 }
16302 /**
16303  * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16304  * @param event packet
16305  * @return period_S
16306  * @note: btstack_type 2
16307  */
16308 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){
16309     return little_endian_read_16(event, 10);
16310 }
16311 /**
16312  * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16313  * @param event packet
16314  * @return ttl
16315  * @note: btstack_type 1
16316  */
16317 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){
16318     return event[12];
16319 }
16320 /**
16321  * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16322  * @param event packet
16323  * @return features
16324  * @note: btstack_type 2
16325  */
16326 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){
16327     return little_endian_read_16(event, 13);
16328 }
16329 /**
16330  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16331  * @param event packet
16332  * @return netkey_index
16333  * @note: btstack_type 2
16334  */
16335 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){
16336     return little_endian_read_16(event, 15);
16337 }
16338 
16339 /**
16340  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16341  * @param event packet
16342  * @return dest
16343  * @note: btstack_type 2
16344  */
16345 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){
16346     return little_endian_read_16(event, 3);
16347 }
16348 /**
16349  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16350  * @param event packet
16351  * @return foundation_status
16352  * @note: btstack_type 1
16353  */
16354 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){
16355     return event[5];
16356 }
16357 /**
16358  * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16359  * @param event packet
16360  * @return heartbeat_destination
16361  * @note: btstack_type 2
16362  */
16363 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){
16364     return little_endian_read_16(event, 6);
16365 }
16366 /**
16367  * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16368  * @param event packet
16369  * @return heartbeat_source
16370  * @note: btstack_type 2
16371  */
16372 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){
16373     return little_endian_read_16(event, 8);
16374 }
16375 /**
16376  * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16377  * @param event packet
16378  * @return count_S
16379  * @note: btstack_type 2
16380  */
16381 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){
16382     return little_endian_read_16(event, 10);
16383 }
16384 /**
16385  * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16386  * @param event packet
16387  * @return period_S
16388  * @note: btstack_type 2
16389  */
16390 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){
16391     return little_endian_read_16(event, 12);
16392 }
16393 /**
16394  * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16395  * @param event packet
16396  * @return min_hops
16397  * @note: btstack_type 1
16398  */
16399 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){
16400     return event[14];
16401 }
16402 /**
16403  * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16404  * @param event packet
16405  * @return max_hops
16406  * @note: btstack_type 1
16407  */
16408 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){
16409     return event[15];
16410 }
16411 
16412 /**
16413  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16414  * @param event packet
16415  * @return dest
16416  * @note: btstack_type 2
16417  */
16418 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){
16419     return little_endian_read_16(event, 3);
16420 }
16421 /**
16422  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16423  * @param event packet
16424  * @return foundation_status
16425  * @note: btstack_type 1
16426  */
16427 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){
16428     return event[5];
16429 }
16430 /**
16431  * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16432  * @param event packet
16433  * @return lpn_address
16434  * @note: btstack_type 2
16435  */
16436 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){
16437     return little_endian_read_16(event, 6);
16438 }
16439 /**
16440  * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16441  * @param event packet
16442  * @return poll_timeout
16443  * @note: btstack_type 3
16444  */
16445 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){
16446     return little_endian_read_24(event, 8);
16447 }
16448 
16449 /**
16450  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16451  * @param event packet
16452  * @return dest
16453  * @note: btstack_type 2
16454  */
16455 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){
16456     return little_endian_read_16(event, 3);
16457 }
16458 /**
16459  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16460  * @param event packet
16461  * @return foundation_status
16462  * @note: btstack_type 1
16463  */
16464 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){
16465     return event[5];
16466 }
16467 /**
16468  * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16469  * @param event packet
16470  * @return transmit_count
16471  * @note: btstack_type 1
16472  */
16473 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){
16474     return event[6];
16475 }
16476 /**
16477  * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16478  * @param event packet
16479  * @return transmit_interval_steps_ms
16480  * @note: btstack_type 2
16481  */
16482 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){
16483     return little_endian_read_16(event, 7);
16484 }
16485 
16486 
16487 
16488 /* API_END */
16489 
16490 #if defined __cplusplus
16491 }
16492 #endif
16493 
16494 #endif // BTSTACK_EVENT_H
16495