xref: /btstack/src/btstack_event.h (revision 1544bae6a2482c60cd0bf4b783d55b1c78b3e209)
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 status from event HCI_EVENT_ROLE_CHANGE
603  * @param event packet
604  * @return status
605  * @note: btstack_type 1
606  */
607 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){
608     return event[2];
609 }
610 /**
611  * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE
612  * @param event packet
613  * @param Pointer to storage for bd_addr
614  * @note: btstack_type B
615  */
616 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
617     reverse_bytes(&event[3], bd_addr, 6);
618 }
619 /**
620  * @brief Get field role from event HCI_EVENT_ROLE_CHANGE
621  * @param event packet
622  * @return role
623  * @note: btstack_type 1
624  */
625 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){
626     return event[9];
627 }
628 
629 /**
630  * @brief Get field status from event HCI_EVENT_MODE_CHANGE
631  * @param event packet
632  * @return status
633  * @note: btstack_type 1
634  */
635 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){
636     return event[2];
637 }
638 /**
639  * @brief Get field handle from event HCI_EVENT_MODE_CHANGE
640  * @param event packet
641  * @return handle
642  * @note: btstack_type H
643  */
644 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){
645     return little_endian_read_16(event, 3);
646 }
647 /**
648  * @brief Get field mode from event HCI_EVENT_MODE_CHANGE
649  * @param event packet
650  * @return mode
651  * @note: btstack_type 1
652  */
653 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){
654     return event[5];
655 }
656 /**
657  * @brief Get field interval from event HCI_EVENT_MODE_CHANGE
658  * @param event packet
659  * @return interval
660  * @note: btstack_type 2
661  */
662 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){
663     return little_endian_read_16(event, 6);
664 }
665 
666 /**
667  * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST
668  * @param event packet
669  * @param Pointer to storage for bd_addr
670  * @note: btstack_type B
671  */
672 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
673     reverse_bytes(&event[2], bd_addr, 6);
674 }
675 
676 /**
677  * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_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_link_key_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 link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW
688  * @param event packet
689  * @return link_type
690  * @note: btstack_type 1
691  */
692 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){
693     return event[2];
694 }
695 
696 /**
697  * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED
698  * @param event packet
699  * @return handle
700  * @note: btstack_type H
701  */
702 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){
703     return little_endian_read_16(event, 2);
704 }
705 /**
706  * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED
707  * @param event packet
708  * @return lmp_max_slots
709  * @note: btstack_type 1
710  */
711 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){
712     return event[4];
713 }
714 
715 /**
716  * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
717  * @param event packet
718  * @return status
719  * @note: btstack_type 1
720  */
721 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){
722     return event[2];
723 }
724 /**
725  * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
726  * @param event packet
727  * @return handle
728  * @note: btstack_type H
729  */
730 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){
731     return little_endian_read_16(event, 3);
732 }
733 /**
734  * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
735  * @param event packet
736  * @return clock_offset
737  * @note: btstack_type 2
738  */
739 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){
740     return little_endian_read_16(event, 5);
741 }
742 
743 /**
744  * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
745  * @param event packet
746  * @return status
747  * @note: btstack_type 1
748  */
749 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){
750     return event[2];
751 }
752 /**
753  * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
754  * @param event packet
755  * @return handle
756  * @note: btstack_type H
757  */
758 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){
759     return little_endian_read_16(event, 3);
760 }
761 /**
762  * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
763  * @param event packet
764  * @return packet_types
765  * @note: btstack_type 2
766  */
767 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){
768     return little_endian_read_16(event, 5);
769 }
770 
771 /**
772  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
773  * @param event packet
774  * @return num_responses
775  * @note: btstack_type 1
776  */
777 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){
778     return event[2];
779 }
780 /**
781  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
782  * @param event packet
783  * @param Pointer to storage for bd_addr
784  * @note: btstack_type B
785  */
786 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
787     reverse_bytes(&event[3], bd_addr, 6);
788 }
789 /**
790  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
791  * @param event packet
792  * @return page_scan_repetition_mode
793  * @note: btstack_type 1
794  */
795 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){
796     return event[9];
797 }
798 /**
799  * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
800  * @param event packet
801  * @return reserved
802  * @note: btstack_type 1
803  */
804 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){
805     return event[10];
806 }
807 /**
808  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
809  * @param event packet
810  * @return class_of_device
811  * @note: btstack_type 3
812  */
813 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){
814     return little_endian_read_24(event, 11);
815 }
816 /**
817  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
818  * @param event packet
819  * @return clock_offset
820  * @note: btstack_type 2
821  */
822 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){
823     return little_endian_read_16(event, 14);
824 }
825 /**
826  * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
827  * @param event packet
828  * @return rssi
829  * @note: btstack_type 1
830  */
831 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){
832     return event[16];
833 }
834 
835 /**
836  * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
837  * @param event packet
838  * @return status
839  * @note: btstack_type 1
840  */
841 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){
842     return event[2];
843 }
844 /**
845  * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
846  * @param event packet
847  * @return handle
848  * @note: btstack_type H
849  */
850 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){
851     return little_endian_read_16(event, 3);
852 }
853 /**
854  * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
855  * @param event packet
856  * @param Pointer to storage for bd_addr
857  * @note: btstack_type B
858  */
859 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
860     reverse_bytes(&event[5], bd_addr, 6);
861 }
862 /**
863  * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
864  * @param event packet
865  * @return link_type
866  * @note: btstack_type 1
867  */
868 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){
869     return event[11];
870 }
871 /**
872  * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
873  * @param event packet
874  * @return transmission_interval
875  * @note: btstack_type 1
876  */
877 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){
878     return event[12];
879 }
880 /**
881  * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
882  * @param event packet
883  * @return retransmission_interval
884  * @note: btstack_type 1
885  */
886 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){
887     return event[13];
888 }
889 /**
890  * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
891  * @param event packet
892  * @return rx_packet_length
893  * @note: btstack_type 2
894  */
895 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){
896     return little_endian_read_16(event, 14);
897 }
898 /**
899  * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
900  * @param event packet
901  * @return tx_packet_length
902  * @note: btstack_type 2
903  */
904 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){
905     return little_endian_read_16(event, 16);
906 }
907 /**
908  * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
909  * @param event packet
910  * @return air_mode
911  * @note: btstack_type 1
912  */
913 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){
914     return event[18];
915 }
916 
917 /**
918  * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
919  * @param event packet
920  * @return num_responses
921  * @note: btstack_type 1
922  */
923 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){
924     return event[2];
925 }
926 /**
927  * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
928  * @param event packet
929  * @param Pointer to storage for bd_addr
930  * @note: btstack_type B
931  */
932 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
933     reverse_bytes(&event[3], bd_addr, 6);
934 }
935 /**
936  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
937  * @param event packet
938  * @return page_scan_repetition_mode
939  * @note: btstack_type 1
940  */
941 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){
942     return event[9];
943 }
944 /**
945  * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
946  * @param event packet
947  * @return reserved
948  * @note: btstack_type 1
949  */
950 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){
951     return event[10];
952 }
953 /**
954  * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
955  * @param event packet
956  * @return class_of_device
957  * @note: btstack_type 3
958  */
959 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){
960     return little_endian_read_24(event, 11);
961 }
962 /**
963  * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
964  * @param event packet
965  * @return clock_offset
966  * @note: btstack_type 2
967  */
968 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){
969     return little_endian_read_16(event, 14);
970 }
971 /**
972  * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
973  * @param event packet
974  * @return rssi
975  * @note: btstack_type 1
976  */
977 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){
978     return event[16];
979 }
980 
981 /**
982  * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
983  * @param event packet
984  * @return status
985  * @note: btstack_type 1
986  */
987 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){
988     return event[2];
989 }
990 /**
991  * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
992  * @param event packet
993  * @return handle
994  * @note: btstack_type H
995  */
996 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){
997     return little_endian_read_16(event, 3);
998 }
999 
1000 /**
1001  * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST
1002  * @param event packet
1003  * @param Pointer to storage for bd_addr
1004  * @note: btstack_type B
1005  */
1006 static inline void hci_event_io_capability_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1007     reverse_bytes(&event[2], bd_addr, 6);
1008 }
1009 
1010 /**
1011  * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1012  * @param event packet
1013  * @param Pointer to storage for bd_addr
1014  * @note: btstack_type B
1015  */
1016 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1017     reverse_bytes(&event[2], bd_addr, 6);
1018 }
1019 /**
1020  * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1021  * @param event packet
1022  * @return io_capability
1023  * @note: btstack_type 1
1024  */
1025 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){
1026     return event[8];
1027 }
1028 /**
1029  * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1030  * @param event packet
1031  * @return oob_data_present
1032  * @note: btstack_type 1
1033  */
1034 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){
1035     return event[9];
1036 }
1037 /**
1038  * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1039  * @param event packet
1040  * @return authentication_requirements
1041  * @note: btstack_type 1
1042  */
1043 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){
1044     return event[10];
1045 }
1046 
1047 /**
1048  * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST
1049  * @param event packet
1050  * @param Pointer to storage for bd_addr
1051  * @note: btstack_type B
1052  */
1053 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1054     reverse_bytes(&event[2], bd_addr, 6);
1055 }
1056 /**
1057  * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST
1058  * @param event packet
1059  * @return numeric_value
1060  * @note: btstack_type 4
1061  */
1062 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){
1063     return little_endian_read_32(event, 8);
1064 }
1065 
1066 /**
1067  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST
1068  * @param event packet
1069  * @param Pointer to storage for bd_addr
1070  * @note: btstack_type B
1071  */
1072 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1073     reverse_bytes(&event[2], bd_addr, 6);
1074 }
1075 
1076 /**
1077  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST
1078  * @param event packet
1079  * @param Pointer to storage for bd_addr
1080  * @note: btstack_type B
1081  */
1082 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1083     reverse_bytes(&event[2], bd_addr, 6);
1084 }
1085 
1086 /**
1087  * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
1088  * @param event packet
1089  * @return status
1090  * @note: btstack_type 1
1091  */
1092 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){
1093     return event[2];
1094 }
1095 /**
1096  * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
1097  * @param event packet
1098  * @param Pointer to storage for bd_addr
1099  * @note: btstack_type B
1100  */
1101 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1102     reverse_bytes(&event[3], bd_addr, 6);
1103 }
1104 
1105 /**
1106  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION
1107  * @param event packet
1108  * @param Pointer to storage for bd_addr
1109  * @note: btstack_type B
1110  */
1111 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1112     reverse_bytes(&event[2], bd_addr, 6);
1113 }
1114 /**
1115  * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION
1116  * @param event packet
1117  * @return numeric_value
1118  * @note: btstack_type 4
1119  */
1120 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){
1121     return little_endian_read_32(event, 8);
1122 }
1123 
1124 /**
1125  * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION
1126  * @param event packet
1127  * @param Pointer to storage for bd_addr
1128  * @note: btstack_type B
1129  */
1130 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1131     reverse_bytes(&event[2], bd_addr, 6);
1132 }
1133 /**
1134  * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION
1135  * @param event packet
1136  * @return notification_type
1137  * @note: btstack_type 1
1138  */
1139 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){
1140     return event[8];
1141 }
1142 
1143 /**
1144  * @brief Get field state from event BTSTACK_EVENT_STATE
1145  * @param event packet
1146  * @return state
1147  * @note: btstack_type 1
1148  */
1149 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){
1150     return event[2];
1151 }
1152 
1153 /**
1154  * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED
1155  * @param event packet
1156  * @return number_connections
1157  * @note: btstack_type 1
1158  */
1159 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){
1160     return event[2];
1161 }
1162 
1163 
1164 /**
1165  * @brief Get field discoverable from event BTSTACK_EVENT_DISCOVERABLE_ENABLED
1166  * @param event packet
1167  * @return discoverable
1168  * @note: btstack_type 1
1169  */
1170 static inline uint8_t btstack_event_discoverable_enabled_get_discoverable(const uint8_t * event){
1171     return event[2];
1172 }
1173 
1174 /**
1175  * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE
1176  * @param event packet
1177  * @return active
1178  * @note: btstack_type 1
1179  */
1180 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){
1181     return event[2];
1182 }
1183 
1184 /**
1185  * @brief Get field handle from event HCI_EVENT_SCO_CAN_SEND_NOW
1186  * @param event packet
1187  * @param Pointer to storage for handle
1188  * @note: btstack_type B
1189  */
1190 static inline void hci_event_sco_can_send_now_get_handle(const uint8_t * event, bd_addr_t handle){
1191     reverse_bytes(&event[2], handle, 6);
1192 }
1193 
1194 /**
1195  * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED
1196  * @param event packet
1197  * @return status
1198  * @note: btstack_type 1
1199  */
1200 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){
1201     return event[2];
1202 }
1203 /**
1204  * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED
1205  * @param event packet
1206  * @param Pointer to storage for address
1207  * @note: btstack_type B
1208  */
1209 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1210     reverse_bytes(&event[3], address, 6);
1211 }
1212 /**
1213  * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED
1214  * @param event packet
1215  * @return handle
1216  * @note: btstack_type H
1217  */
1218 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){
1219     return little_endian_read_16(event, 9);
1220 }
1221 /**
1222  * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED
1223  * @param event packet
1224  * @return psm
1225  * @note: btstack_type 2
1226  */
1227 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){
1228     return little_endian_read_16(event, 11);
1229 }
1230 /**
1231  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED
1232  * @param event packet
1233  * @return local_cid
1234  * @note: btstack_type 2
1235  */
1236 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){
1237     return little_endian_read_16(event, 13);
1238 }
1239 /**
1240  * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED
1241  * @param event packet
1242  * @return remote_cid
1243  * @note: btstack_type 2
1244  */
1245 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){
1246     return little_endian_read_16(event, 15);
1247 }
1248 /**
1249  * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1250  * @param event packet
1251  * @return local_mtu
1252  * @note: btstack_type 2
1253  */
1254 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){
1255     return little_endian_read_16(event, 17);
1256 }
1257 /**
1258  * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1259  * @param event packet
1260  * @return remote_mtu
1261  * @note: btstack_type 2
1262  */
1263 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){
1264     return little_endian_read_16(event, 19);
1265 }
1266 /**
1267  * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED
1268  * @param event packet
1269  * @return flush_timeout
1270  * @note: btstack_type 2
1271  */
1272 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){
1273     return little_endian_read_16(event, 21);
1274 }
1275 /**
1276  * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED
1277  * @param event packet
1278  * @return incoming
1279  * @note: btstack_type 1
1280  */
1281 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){
1282     return event[23];
1283 }
1284 /**
1285  * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED
1286  * @param event packet
1287  * @return mode
1288  * @note: btstack_type 1
1289  */
1290 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){
1291     return event[24];
1292 }
1293 /**
1294  * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED
1295  * @param event packet
1296  * @return fcs
1297  * @note: btstack_type 1
1298  */
1299 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){
1300     return event[25];
1301 }
1302 
1303 /**
1304  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED
1305  * @param event packet
1306  * @return local_cid
1307  * @note: btstack_type 2
1308  */
1309 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){
1310     return little_endian_read_16(event, 2);
1311 }
1312 
1313 /**
1314  * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION
1315  * @param event packet
1316  * @param Pointer to storage for address
1317  * @note: btstack_type B
1318  */
1319 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1320     reverse_bytes(&event[2], address, 6);
1321 }
1322 /**
1323  * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION
1324  * @param event packet
1325  * @return handle
1326  * @note: btstack_type H
1327  */
1328 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){
1329     return little_endian_read_16(event, 8);
1330 }
1331 /**
1332  * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION
1333  * @param event packet
1334  * @return psm
1335  * @note: btstack_type 2
1336  */
1337 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){
1338     return little_endian_read_16(event, 10);
1339 }
1340 /**
1341  * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1342  * @param event packet
1343  * @return local_cid
1344  * @note: btstack_type 2
1345  */
1346 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){
1347     return little_endian_read_16(event, 12);
1348 }
1349 /**
1350  * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1351  * @param event packet
1352  * @return remote_cid
1353  * @note: btstack_type 2
1354  */
1355 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){
1356     return little_endian_read_16(event, 14);
1357 }
1358 
1359 /**
1360  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1361  * @param event packet
1362  * @return handle
1363  * @note: btstack_type H
1364  */
1365 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){
1366     return little_endian_read_16(event, 2);
1367 }
1368 /**
1369  * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1370  * @param event packet
1371  * @return interval_min
1372  * @note: btstack_type 2
1373  */
1374 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){
1375     return little_endian_read_16(event, 4);
1376 }
1377 /**
1378  * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1379  * @param event packet
1380  * @return interval_max
1381  * @note: btstack_type 2
1382  */
1383 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){
1384     return little_endian_read_16(event, 6);
1385 }
1386 /**
1387  * @brief Get field latencey from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1388  * @param event packet
1389  * @return latencey
1390  * @note: btstack_type 2
1391  */
1392 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latencey(const uint8_t * event){
1393     return little_endian_read_16(event, 8);
1394 }
1395 /**
1396  * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1397  * @param event packet
1398  * @return timeout_multiplier
1399  * @note: btstack_type 2
1400  */
1401 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){
1402     return little_endian_read_16(event, 10);
1403 }
1404 
1405 /**
1406  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1407  * @param event packet
1408  * @return handle
1409  * @note: btstack_type H
1410  */
1411 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){
1412     return little_endian_read_16(event, 2);
1413 }
1414 /**
1415  * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1416  * @param event packet
1417  * @return result
1418  * @note: btstack_type 2
1419  */
1420 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){
1421     return little_endian_read_16(event, 4);
1422 }
1423 
1424 /**
1425  * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE
1426  * @param event packet
1427  * @return con_handle
1428  * @note: btstack_type H
1429  */
1430 static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){
1431     return little_endian_read_16(event, 2);
1432 }
1433 /**
1434  * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE
1435  * @param event packet
1436  * @return extended_feature_mask
1437  * @note: btstack_type 2
1438  */
1439 static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){
1440     return little_endian_read_16(event, 4);
1441 }
1442 /**
1443  * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE
1444  * @param event packet
1445  * @return fixed_channels_supported
1446  * @note: btstack_type 2
1447  */
1448 static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){
1449     return little_endian_read_16(event, 6);
1450 }
1451 
1452 /**
1453  * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW
1454  * @param event packet
1455  * @return local_cid
1456  * @note: btstack_type 2
1457  */
1458 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){
1459     return little_endian_read_16(event, 2);
1460 }
1461 
1462 /**
1463  * @brief Get field local_cid from event L2CAP_EVENT_PACKET_SENT
1464  * @param event packet
1465  * @return local_cid
1466  * @note: btstack_type 2
1467  */
1468 static inline uint16_t l2cap_event_packet_sent_get_local_cid(const uint8_t * event){
1469     return little_endian_read_16(event, 2);
1470 }
1471 
1472 /**
1473  * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED
1474  * @param event packet
1475  * @return local_cid
1476  * @note: btstack_type 2
1477  */
1478 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){
1479     return little_endian_read_16(event, 2);
1480 }
1481 
1482 /**
1483  * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1484  * @param event packet
1485  * @return address_type
1486  * @note: btstack_type 1
1487  */
1488 static inline uint8_t l2cap_event_cbm_incoming_connection_get_address_type(const uint8_t * event){
1489     return event[2];
1490 }
1491 /**
1492  * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1493  * @param event packet
1494  * @param Pointer to storage for address
1495  * @note: btstack_type B
1496  */
1497 static inline void l2cap_event_cbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1498     reverse_bytes(&event[3], address, 6);
1499 }
1500 /**
1501  * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1502  * @param event packet
1503  * @return handle
1504  * @note: btstack_type H
1505  */
1506 static inline hci_con_handle_t l2cap_event_cbm_incoming_connection_get_handle(const uint8_t * event){
1507     return little_endian_read_16(event, 9);
1508 }
1509 /**
1510  * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1511  * @param event packet
1512  * @return psm
1513  * @note: btstack_type 2
1514  */
1515 static inline uint16_t l2cap_event_cbm_incoming_connection_get_psm(const uint8_t * event){
1516     return little_endian_read_16(event, 11);
1517 }
1518 /**
1519  * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1520  * @param event packet
1521  * @return local_cid
1522  * @note: btstack_type 2
1523  */
1524 static inline uint16_t l2cap_event_cbm_incoming_connection_get_local_cid(const uint8_t * event){
1525     return little_endian_read_16(event, 13);
1526 }
1527 /**
1528  * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1529  * @param event packet
1530  * @return remote_cid
1531  * @note: btstack_type 2
1532  */
1533 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_cid(const uint8_t * event){
1534     return little_endian_read_16(event, 15);
1535 }
1536 /**
1537  * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
1538  * @param event packet
1539  * @return remote_mtu
1540  * @note: btstack_type 2
1541  */
1542 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_mtu(const uint8_t * event){
1543     return little_endian_read_16(event, 17);
1544 }
1545 
1546 /**
1547  * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1548  * @param event packet
1549  * @return status
1550  * @note: btstack_type 1
1551  */
1552 static inline uint8_t l2cap_event_cbm_channel_opened_get_status(const uint8_t * event){
1553     return event[2];
1554 }
1555 /**
1556  * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1557  * @param event packet
1558  * @return address_type
1559  * @note: btstack_type 1
1560  */
1561 static inline uint8_t l2cap_event_cbm_channel_opened_get_address_type(const uint8_t * event){
1562     return event[3];
1563 }
1564 /**
1565  * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1566  * @param event packet
1567  * @param Pointer to storage for address
1568  * @note: btstack_type B
1569  */
1570 static inline void l2cap_event_cbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1571     reverse_bytes(&event[4], address, 6);
1572 }
1573 /**
1574  * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1575  * @param event packet
1576  * @return handle
1577  * @note: btstack_type H
1578  */
1579 static inline hci_con_handle_t l2cap_event_cbm_channel_opened_get_handle(const uint8_t * event){
1580     return little_endian_read_16(event, 10);
1581 }
1582 /**
1583  * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1584  * @param event packet
1585  * @return incoming
1586  * @note: btstack_type 1
1587  */
1588 static inline uint8_t l2cap_event_cbm_channel_opened_get_incoming(const uint8_t * event){
1589     return event[12];
1590 }
1591 /**
1592  * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1593  * @param event packet
1594  * @return psm
1595  * @note: btstack_type 2
1596  */
1597 static inline uint16_t l2cap_event_cbm_channel_opened_get_psm(const uint8_t * event){
1598     return little_endian_read_16(event, 13);
1599 }
1600 /**
1601  * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1602  * @param event packet
1603  * @return local_cid
1604  * @note: btstack_type 2
1605  */
1606 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_cid(const uint8_t * event){
1607     return little_endian_read_16(event, 15);
1608 }
1609 /**
1610  * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1611  * @param event packet
1612  * @return remote_cid
1613  * @note: btstack_type 2
1614  */
1615 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_cid(const uint8_t * event){
1616     return little_endian_read_16(event, 17);
1617 }
1618 /**
1619  * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1620  * @param event packet
1621  * @return local_mtu
1622  * @note: btstack_type 2
1623  */
1624 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_mtu(const uint8_t * event){
1625     return little_endian_read_16(event, 19);
1626 }
1627 /**
1628  * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED
1629  * @param event packet
1630  * @return remote_mtu
1631  * @note: btstack_type 2
1632  */
1633 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_mtu(const uint8_t * event){
1634     return little_endian_read_16(event, 21);
1635 }
1636 
1637 
1638 /**
1639  * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
1640  * @param event packet
1641  * @return address_type
1642  * @note: btstack_type 1
1643  */
1644 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_address_type(const uint8_t * event){
1645     return event[2];
1646 }
1647 /**
1648  * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
1649  * @param event packet
1650  * @param Pointer to storage for address
1651  * @note: btstack_type B
1652  */
1653 static inline void l2cap_event_ecbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1654     reverse_bytes(&event[3], address, 6);
1655 }
1656 /**
1657  * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
1658  * @param event packet
1659  * @return handle
1660  * @note: btstack_type H
1661  */
1662 static inline hci_con_handle_t l2cap_event_ecbm_incoming_connection_get_handle(const uint8_t * event){
1663     return little_endian_read_16(event, 9);
1664 }
1665 /**
1666  * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
1667  * @param event packet
1668  * @return psm
1669  * @note: btstack_type 2
1670  */
1671 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_psm(const uint8_t * event){
1672     return little_endian_read_16(event, 11);
1673 }
1674 /**
1675  * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
1676  * @param event packet
1677  * @return num_channels
1678  * @note: btstack_type 1
1679  */
1680 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_num_channels(const uint8_t * event){
1681     return event[13];
1682 }
1683 /**
1684  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
1685  * @param event packet
1686  * @return local_cid
1687  * @note: btstack_type 2
1688  */
1689 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_local_cid(const uint8_t * event){
1690     return little_endian_read_16(event, 14);
1691 }
1692 
1693 /**
1694  * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1695  * @param event packet
1696  * @return status
1697  * @note: btstack_type 1
1698  */
1699 static inline uint8_t l2cap_event_ecbm_channel_opened_get_status(const uint8_t * event){
1700     return event[2];
1701 }
1702 /**
1703  * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1704  * @param event packet
1705  * @return address_type
1706  * @note: btstack_type 1
1707  */
1708 static inline uint8_t l2cap_event_ecbm_channel_opened_get_address_type(const uint8_t * event){
1709     return event[3];
1710 }
1711 /**
1712  * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1713  * @param event packet
1714  * @param Pointer to storage for address
1715  * @note: btstack_type B
1716  */
1717 static inline void l2cap_event_ecbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1718     reverse_bytes(&event[4], address, 6);
1719 }
1720 /**
1721  * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1722  * @param event packet
1723  * @return handle
1724  * @note: btstack_type H
1725  */
1726 static inline hci_con_handle_t l2cap_event_ecbm_channel_opened_get_handle(const uint8_t * event){
1727     return little_endian_read_16(event, 10);
1728 }
1729 /**
1730  * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1731  * @param event packet
1732  * @return incoming
1733  * @note: btstack_type 1
1734  */
1735 static inline uint8_t l2cap_event_ecbm_channel_opened_get_incoming(const uint8_t * event){
1736     return event[12];
1737 }
1738 /**
1739  * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1740  * @param event packet
1741  * @return psm
1742  * @note: btstack_type 2
1743  */
1744 static inline uint16_t l2cap_event_ecbm_channel_opened_get_psm(const uint8_t * event){
1745     return little_endian_read_16(event, 13);
1746 }
1747 /**
1748  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1749  * @param event packet
1750  * @return local_cid
1751  * @note: btstack_type 2
1752  */
1753 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_cid(const uint8_t * event){
1754     return little_endian_read_16(event, 15);
1755 }
1756 /**
1757  * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1758  * @param event packet
1759  * @return remote_cid
1760  * @note: btstack_type 2
1761  */
1762 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_cid(const uint8_t * event){
1763     return little_endian_read_16(event, 17);
1764 }
1765 /**
1766  * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1767  * @param event packet
1768  * @return local_mtu
1769  * @note: btstack_type 2
1770  */
1771 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_mtu(const uint8_t * event){
1772     return little_endian_read_16(event, 19);
1773 }
1774 /**
1775  * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
1776  * @param event packet
1777  * @return remote_mtu
1778  * @note: btstack_type 2
1779  */
1780 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_mtu(const uint8_t * event){
1781     return little_endian_read_16(event, 21);
1782 }
1783 
1784 /**
1785  * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED
1786  * @param event packet
1787  * @return remote_cid
1788  * @note: btstack_type 2
1789  */
1790 static inline uint16_t l2cap_event_ecbm_reconfigured_get_remote_cid(const uint8_t * event){
1791     return little_endian_read_16(event, 2);
1792 }
1793 /**
1794  * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED
1795  * @param event packet
1796  * @return mtu
1797  * @note: btstack_type 2
1798  */
1799 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mtu(const uint8_t * event){
1800     return little_endian_read_16(event, 4);
1801 }
1802 /**
1803  * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED
1804  * @param event packet
1805  * @return mps
1806  * @note: btstack_type 2
1807  */
1808 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mps(const uint8_t * event){
1809     return little_endian_read_16(event, 6);
1810 }
1811 
1812 /**
1813  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE
1814  * @param event packet
1815  * @return local_cid
1816  * @note: btstack_type 2
1817  */
1818 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_local_cid(const uint8_t * event){
1819     return little_endian_read_16(event, 2);
1820 }
1821 /**
1822  * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE
1823  * @param event packet
1824  * @return reconfigure_result
1825  * @note: btstack_type 2
1826  */
1827 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){
1828     return little_endian_read_16(event, 4);
1829 }
1830 
1831 /**
1832  * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED
1833  * @param event packet
1834  * @return status
1835  * @note: btstack_type 1
1836  */
1837 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){
1838     return event[2];
1839 }
1840 /**
1841  * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED
1842  * @param event packet
1843  * @param Pointer to storage for bd_addr
1844  * @note: btstack_type B
1845  */
1846 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1847     reverse_bytes(&event[3], bd_addr, 6);
1848 }
1849 /**
1850  * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED
1851  * @param event packet
1852  * @return con_handle
1853  * @note: btstack_type 2
1854  */
1855 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){
1856     return little_endian_read_16(event, 9);
1857 }
1858 /**
1859  * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED
1860  * @param event packet
1861  * @return server_channel
1862  * @note: btstack_type 1
1863  */
1864 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){
1865     return event[11];
1866 }
1867 /**
1868  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED
1869  * @param event packet
1870  * @return rfcomm_cid
1871  * @note: btstack_type 2
1872  */
1873 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){
1874     return little_endian_read_16(event, 12);
1875 }
1876 /**
1877  * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED
1878  * @param event packet
1879  * @return max_frame_size
1880  * @note: btstack_type 2
1881  */
1882 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){
1883     return little_endian_read_16(event, 14);
1884 }
1885 /**
1886  * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED
1887  * @param event packet
1888  * @return incoming
1889  * @note: btstack_type 1
1890  */
1891 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){
1892     return event[16];
1893 }
1894 
1895 /**
1896  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED
1897  * @param event packet
1898  * @return rfcomm_cid
1899  * @note: btstack_type 2
1900  */
1901 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){
1902     return little_endian_read_16(event, 2);
1903 }
1904 
1905 /**
1906  * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION
1907  * @param event packet
1908  * @param Pointer to storage for bd_addr
1909  * @note: btstack_type B
1910  */
1911 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1912     reverse_bytes(&event[2], bd_addr, 6);
1913 }
1914 /**
1915  * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION
1916  * @param event packet
1917  * @return server_channel
1918  * @note: btstack_type 1
1919  */
1920 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){
1921     return event[8];
1922 }
1923 /**
1924  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION
1925  * @param event packet
1926  * @return rfcomm_cid
1927  * @note: btstack_type 2
1928  */
1929 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){
1930     return little_endian_read_16(event, 9);
1931 }
1932 /**
1933  * @brief Get field con_handle from event RFCOMM_EVENT_INCOMING_CONNECTION
1934  * @param event packet
1935  * @return con_handle
1936  * @note: btstack_type H
1937  */
1938 static inline hci_con_handle_t rfcomm_event_incoming_connection_get_con_handle(const uint8_t * event){
1939     return little_endian_read_16(event, 11);
1940 }
1941 
1942 /**
1943  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS
1944  * @param event packet
1945  * @return rfcomm_cid
1946  * @note: btstack_type 2
1947  */
1948 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){
1949     return little_endian_read_16(event, 2);
1950 }
1951 /**
1952  * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS
1953  * @param event packet
1954  * @return line_status
1955  * @note: btstack_type 1
1956  */
1957 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){
1958     return event[4];
1959 }
1960 
1961 /**
1962  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
1963  * @param event packet
1964  * @return rfcomm_cid
1965  * @note: btstack_type 2
1966  */
1967 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){
1968     return little_endian_read_16(event, 2);
1969 }
1970 /**
1971  * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
1972  * @param event packet
1973  * @return modem_status
1974  * @note: btstack_type 1
1975  */
1976 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){
1977     return event[4];
1978 }
1979 
1980 /**
1981  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW
1982  * @param event packet
1983  * @return rfcomm_cid
1984  * @note: btstack_type 2
1985  */
1986 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){
1987     return little_endian_read_16(event, 2);
1988 }
1989 
1990 /**
1991  * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE
1992  * @param event packet
1993  * @return status
1994  * @note: btstack_type 1
1995  */
1996 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){
1997     return event[2];
1998 }
1999 
2000 /**
2001  * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE
2002  * @param event packet
2003  * @return rfcomm_channel
2004  * @note: btstack_type 1
2005  */
2006 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){
2007     return event[2];
2008 }
2009 /**
2010  * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE
2011  * @param event packet
2012  * @return name
2013  * @note: btstack_type T
2014  */
2015 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){
2016     return (const char *) &event[3];
2017 }
2018 
2019 /**
2020  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2021  * @param event packet
2022  * @return record_id
2023  * @note: btstack_type 2
2024  */
2025 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){
2026     return little_endian_read_16(event, 2);
2027 }
2028 /**
2029  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2030  * @param event packet
2031  * @return attribute_id
2032  * @note: btstack_type 2
2033  */
2034 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){
2035     return little_endian_read_16(event, 4);
2036 }
2037 /**
2038  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2039  * @param event packet
2040  * @return attribute_length
2041  * @note: btstack_type 2
2042  */
2043 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){
2044     return little_endian_read_16(event, 6);
2045 }
2046 /**
2047  * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2048  * @param event packet
2049  * @return data_offset
2050  * @note: btstack_type 2
2051  */
2052 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){
2053     return little_endian_read_16(event, 8);
2054 }
2055 /**
2056  * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2057  * @param event packet
2058  * @return data
2059  * @note: btstack_type 1
2060  */
2061 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){
2062     return event[10];
2063 }
2064 
2065 /**
2066  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2067  * @param event packet
2068  * @return record_id
2069  * @note: btstack_type 2
2070  */
2071 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){
2072     return little_endian_read_16(event, 2);
2073 }
2074 /**
2075  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2076  * @param event packet
2077  * @return attribute_id
2078  * @note: btstack_type 2
2079  */
2080 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){
2081     return little_endian_read_16(event, 4);
2082 }
2083 /**
2084  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2085  * @param event packet
2086  * @return attribute_length
2087  * @note: btstack_type L
2088  */
2089 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){
2090     return little_endian_read_16(event, 6);
2091 }
2092 /**
2093  * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2094  * @param event packet
2095  * @return attribute_value
2096  * @note: btstack_type V
2097  */
2098 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){
2099     return &event[8];
2100 }
2101 
2102 /**
2103  * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2104  * @param event packet
2105  * @return total_count
2106  * @note: btstack_type 2
2107  */
2108 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){
2109     return little_endian_read_16(event, 2);
2110 }
2111 /**
2112  * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2113  * @param event packet
2114  * @return record_index
2115  * @note: btstack_type 2
2116  */
2117 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){
2118     return little_endian_read_16(event, 4);
2119 }
2120 /**
2121  * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2122  * @param event packet
2123  * @return record_handle
2124  * @note: btstack_type 4
2125  */
2126 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){
2127     return little_endian_read_32(event, 6);
2128 }
2129 
2130 #ifdef ENABLE_BLE
2131 /**
2132  * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE
2133  * @param event packet
2134  * @return handle
2135  * @note: btstack_type H
2136  */
2137 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){
2138     return little_endian_read_16(event, 2);
2139 }
2140 /**
2141  * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE
2142  * @param event packet
2143  * @return att_status
2144  * @note: btstack_type 1
2145  */
2146 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){
2147     return event[4];
2148 }
2149 #endif
2150 
2151 #ifdef ENABLE_BLE
2152 /**
2153  * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT
2154  * @param event packet
2155  * @return handle
2156  * @note: btstack_type H
2157  */
2158 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){
2159     return little_endian_read_16(event, 2);
2160 }
2161 /**
2162  * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT
2163  * @param event packet
2164  * @param Pointer to storage for service
2165  * @note: btstack_type X
2166  */
2167 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
2168     gatt_client_deserialize_service(event, 4, service);
2169 }
2170 #endif
2171 
2172 #ifdef ENABLE_BLE
2173 /**
2174  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2175  * @param event packet
2176  * @return handle
2177  * @note: btstack_type H
2178  */
2179 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){
2180     return little_endian_read_16(event, 2);
2181 }
2182 /**
2183  * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2184  * @param event packet
2185  * @param Pointer to storage for characteristic
2186  * @note: btstack_type Y
2187  */
2188 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){
2189     gatt_client_deserialize_characteristic(event, 4, characteristic);
2190 }
2191 #endif
2192 
2193 #ifdef ENABLE_BLE
2194 /**
2195  * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2196  * @param event packet
2197  * @return handle
2198  * @note: btstack_type H
2199  */
2200 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){
2201     return little_endian_read_16(event, 2);
2202 }
2203 /**
2204  * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2205  * @param event packet
2206  * @return include_handle
2207  * @note: btstack_type 2
2208  */
2209 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){
2210     return little_endian_read_16(event, 4);
2211 }
2212 /**
2213  * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2214  * @param event packet
2215  * @param Pointer to storage for service
2216  * @note: btstack_type X
2217  */
2218 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
2219     gatt_client_deserialize_service(event, 6, service);
2220 }
2221 #endif
2222 
2223 #ifdef ENABLE_BLE
2224 /**
2225  * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2226  * @param event packet
2227  * @return handle
2228  * @note: btstack_type H
2229  */
2230 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){
2231     return little_endian_read_16(event, 2);
2232 }
2233 /**
2234  * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2235  * @param event packet
2236  * @param Pointer to storage for characteristic_descriptor
2237  * @note: btstack_type Z
2238  */
2239 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){
2240     gatt_client_deserialize_characteristic_descriptor(event, 4, characteristic_descriptor);
2241 }
2242 #endif
2243 
2244 #ifdef ENABLE_BLE
2245 /**
2246  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2247  * @param event packet
2248  * @return handle
2249  * @note: btstack_type H
2250  */
2251 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){
2252     return little_endian_read_16(event, 2);
2253 }
2254 /**
2255  * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2256  * @param event packet
2257  * @return value_handle
2258  * @note: btstack_type 2
2259  */
2260 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){
2261     return little_endian_read_16(event, 4);
2262 }
2263 /**
2264  * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2265  * @param event packet
2266  * @return value_length
2267  * @note: btstack_type L
2268  */
2269 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){
2270     return little_endian_read_16(event, 6);
2271 }
2272 /**
2273  * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2274  * @param event packet
2275  * @return value
2276  * @note: btstack_type V
2277  */
2278 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){
2279     return &event[8];
2280 }
2281 #endif
2282 
2283 #ifdef ENABLE_BLE
2284 /**
2285  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2286  * @param event packet
2287  * @return handle
2288  * @note: btstack_type H
2289  */
2290 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){
2291     return little_endian_read_16(event, 2);
2292 }
2293 /**
2294  * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2295  * @param event packet
2296  * @return value_handle
2297  * @note: btstack_type 2
2298  */
2299 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){
2300     return little_endian_read_16(event, 4);
2301 }
2302 /**
2303  * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2304  * @param event packet
2305  * @return value_offset
2306  * @note: btstack_type 2
2307  */
2308 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){
2309     return little_endian_read_16(event, 6);
2310 }
2311 /**
2312  * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2313  * @param event packet
2314  * @return value_length
2315  * @note: btstack_type L
2316  */
2317 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){
2318     return little_endian_read_16(event, 8);
2319 }
2320 /**
2321  * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2322  * @param event packet
2323  * @return value
2324  * @note: btstack_type V
2325  */
2326 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){
2327     return &event[10];
2328 }
2329 #endif
2330 
2331 #ifdef ENABLE_BLE
2332 /**
2333  * @brief Get field handle from event GATT_EVENT_NOTIFICATION
2334  * @param event packet
2335  * @return handle
2336  * @note: btstack_type H
2337  */
2338 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){
2339     return little_endian_read_16(event, 2);
2340 }
2341 /**
2342  * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION
2343  * @param event packet
2344  * @return value_handle
2345  * @note: btstack_type 2
2346  */
2347 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){
2348     return little_endian_read_16(event, 4);
2349 }
2350 /**
2351  * @brief Get field value_length from event GATT_EVENT_NOTIFICATION
2352  * @param event packet
2353  * @return value_length
2354  * @note: btstack_type L
2355  */
2356 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){
2357     return little_endian_read_16(event, 6);
2358 }
2359 /**
2360  * @brief Get field value from event GATT_EVENT_NOTIFICATION
2361  * @param event packet
2362  * @return value
2363  * @note: btstack_type V
2364  */
2365 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){
2366     return &event[8];
2367 }
2368 #endif
2369 
2370 #ifdef ENABLE_BLE
2371 /**
2372  * @brief Get field handle from event GATT_EVENT_INDICATION
2373  * @param event packet
2374  * @return handle
2375  * @note: btstack_type H
2376  */
2377 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){
2378     return little_endian_read_16(event, 2);
2379 }
2380 /**
2381  * @brief Get field value_handle from event GATT_EVENT_INDICATION
2382  * @param event packet
2383  * @return value_handle
2384  * @note: btstack_type 2
2385  */
2386 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){
2387     return little_endian_read_16(event, 4);
2388 }
2389 /**
2390  * @brief Get field value_length from event GATT_EVENT_INDICATION
2391  * @param event packet
2392  * @return value_length
2393  * @note: btstack_type L
2394  */
2395 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){
2396     return little_endian_read_16(event, 6);
2397 }
2398 /**
2399  * @brief Get field value from event GATT_EVENT_INDICATION
2400  * @param event packet
2401  * @return value
2402  * @note: btstack_type V
2403  */
2404 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){
2405     return &event[8];
2406 }
2407 #endif
2408 
2409 #ifdef ENABLE_BLE
2410 /**
2411  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2412  * @param event packet
2413  * @return handle
2414  * @note: btstack_type H
2415  */
2416 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2417     return little_endian_read_16(event, 2);
2418 }
2419 /**
2420  * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2421  * @param event packet
2422  * @return descriptor_handle
2423  * @note: btstack_type 2
2424  */
2425 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){
2426     return little_endian_read_16(event, 4);
2427 }
2428 /**
2429  * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2430  * @param event packet
2431  * @return descriptor_length
2432  * @note: btstack_type L
2433  */
2434 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2435     return little_endian_read_16(event, 6);
2436 }
2437 /**
2438  * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2439  * @param event packet
2440  * @return descriptor
2441  * @note: btstack_type V
2442  */
2443 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2444     return &event[8];
2445 }
2446 #endif
2447 
2448 #ifdef ENABLE_BLE
2449 /**
2450  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2451  * @param event packet
2452  * @return handle
2453  * @note: btstack_type H
2454  */
2455 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2456     return little_endian_read_16(event, 2);
2457 }
2458 /**
2459  * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2460  * @param event packet
2461  * @return descriptor_offset
2462  * @note: btstack_type 2
2463  */
2464 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){
2465     return little_endian_read_16(event, 4);
2466 }
2467 /**
2468  * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2469  * @param event packet
2470  * @return descriptor_length
2471  * @note: btstack_type L
2472  */
2473 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2474     return little_endian_read_16(event, 6);
2475 }
2476 /**
2477  * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2478  * @param event packet
2479  * @return descriptor
2480  * @note: btstack_type V
2481  */
2482 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2483     return &event[8];
2484 }
2485 #endif
2486 
2487 #ifdef ENABLE_BLE
2488 /**
2489  * @brief Get field handle from event GATT_EVENT_MTU
2490  * @param event packet
2491  * @return handle
2492  * @note: btstack_type H
2493  */
2494 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){
2495     return little_endian_read_16(event, 2);
2496 }
2497 /**
2498  * @brief Get field MTU from event GATT_EVENT_MTU
2499  * @param event packet
2500  * @return MTU
2501  * @note: btstack_type 2
2502  */
2503 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){
2504     return little_endian_read_16(event, 4);
2505 }
2506 #endif
2507 
2508 #ifdef ENABLE_BLE
2509 /**
2510  * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE
2511  * @param event packet
2512  * @return handle
2513  * @note: btstack_type H
2514  */
2515 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){
2516     return little_endian_read_16(event, 2);
2517 }
2518 #endif
2519 
2520 /**
2521  * @brief Get field address_type from event ATT_EVENT_CONNECTED
2522  * @param event packet
2523  * @return address_type
2524  * @note: btstack_type 1
2525  */
2526 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){
2527     return event[2];
2528 }
2529 /**
2530  * @brief Get field address from event ATT_EVENT_CONNECTED
2531  * @param event packet
2532  * @param Pointer to storage for address
2533  * @note: btstack_type B
2534  */
2535 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){
2536     reverse_bytes(&event[3], address, 6);
2537 }
2538 /**
2539  * @brief Get field handle from event ATT_EVENT_CONNECTED
2540  * @param event packet
2541  * @return handle
2542  * @note: btstack_type H
2543  */
2544 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){
2545     return little_endian_read_16(event, 9);
2546 }
2547 
2548 /**
2549  * @brief Get field handle from event ATT_EVENT_DISCONNECTED
2550  * @param event packet
2551  * @return handle
2552  * @note: btstack_type H
2553  */
2554 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){
2555     return little_endian_read_16(event, 2);
2556 }
2557 
2558 /**
2559  * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
2560  * @param event packet
2561  * @return handle
2562  * @note: btstack_type H
2563  */
2564 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){
2565     return little_endian_read_16(event, 2);
2566 }
2567 /**
2568  * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
2569  * @param event packet
2570  * @return MTU
2571  * @note: btstack_type 2
2572  */
2573 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){
2574     return little_endian_read_16(event, 4);
2575 }
2576 
2577 /**
2578  * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2579  * @param event packet
2580  * @return status
2581  * @note: btstack_type 1
2582  */
2583 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){
2584     return event[2];
2585 }
2586 /**
2587  * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2588  * @param event packet
2589  * @return conn_handle
2590  * @note: btstack_type H
2591  */
2592 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){
2593     return little_endian_read_16(event, 3);
2594 }
2595 /**
2596  * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2597  * @param event packet
2598  * @return attribute_handle
2599  * @note: btstack_type 2
2600  */
2601 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){
2602     return little_endian_read_16(event, 5);
2603 }
2604 
2605 
2606 /**
2607  * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED
2608  * @param event packet
2609  * @return status
2610  * @note: btstack_type 1
2611  */
2612 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){
2613     return event[2];
2614 }
2615 /**
2616  * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED
2617  * @param event packet
2618  * @return service_uuid
2619  * @note: btstack_type 2
2620  */
2621 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){
2622     return little_endian_read_16(event, 3);
2623 }
2624 
2625 /**
2626  * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED
2627  * @param event packet
2628  * @return status
2629  * @note: btstack_type 1
2630  */
2631 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){
2632     return event[2];
2633 }
2634 /**
2635  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED
2636  * @param event packet
2637  * @return bnep_cid
2638  * @note: btstack_type 2
2639  */
2640 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){
2641     return little_endian_read_16(event, 3);
2642 }
2643 /**
2644  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED
2645  * @param event packet
2646  * @return source_uuid
2647  * @note: btstack_type 2
2648  */
2649 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){
2650     return little_endian_read_16(event, 5);
2651 }
2652 /**
2653  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED
2654  * @param event packet
2655  * @return destination_uuid
2656  * @note: btstack_type 2
2657  */
2658 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){
2659     return little_endian_read_16(event, 7);
2660 }
2661 /**
2662  * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED
2663  * @param event packet
2664  * @return mtu
2665  * @note: btstack_type 2
2666  */
2667 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){
2668     return little_endian_read_16(event, 9);
2669 }
2670 /**
2671  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED
2672  * @param event packet
2673  * @param Pointer to storage for remote_address
2674  * @note: btstack_type B
2675  */
2676 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2677     reverse_bytes(&event[11], remote_address, 6);
2678 }
2679 /**
2680  * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED
2681  * @param event packet
2682  * @return con_handle
2683  * @note: btstack_type H
2684  */
2685 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){
2686     return little_endian_read_16(event, 17);
2687 }
2688 
2689 /**
2690  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED
2691  * @param event packet
2692  * @return bnep_cid
2693  * @note: btstack_type 2
2694  */
2695 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){
2696     return little_endian_read_16(event, 2);
2697 }
2698 /**
2699  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED
2700  * @param event packet
2701  * @return source_uuid
2702  * @note: btstack_type 2
2703  */
2704 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){
2705     return little_endian_read_16(event, 4);
2706 }
2707 /**
2708  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED
2709  * @param event packet
2710  * @return destination_uuid
2711  * @note: btstack_type 2
2712  */
2713 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){
2714     return little_endian_read_16(event, 6);
2715 }
2716 /**
2717  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED
2718  * @param event packet
2719  * @param Pointer to storage for remote_address
2720  * @note: btstack_type B
2721  */
2722 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2723     reverse_bytes(&event[8], remote_address, 6);
2724 }
2725 
2726 /**
2727  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT
2728  * @param event packet
2729  * @return bnep_cid
2730  * @note: btstack_type 2
2731  */
2732 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){
2733     return little_endian_read_16(event, 2);
2734 }
2735 /**
2736  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
2737  * @param event packet
2738  * @return source_uuid
2739  * @note: btstack_type 2
2740  */
2741 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){
2742     return little_endian_read_16(event, 4);
2743 }
2744 /**
2745  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
2746  * @param event packet
2747  * @return destination_uuid
2748  * @note: btstack_type 2
2749  */
2750 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){
2751     return little_endian_read_16(event, 6);
2752 }
2753 /**
2754  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT
2755  * @param event packet
2756  * @param Pointer to storage for remote_address
2757  * @note: btstack_type B
2758  */
2759 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2760     reverse_bytes(&event[8], remote_address, 6);
2761 }
2762 /**
2763  * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT
2764  * @param event packet
2765  * @return channel_state
2766  * @note: btstack_type 1
2767  */
2768 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){
2769     return event[14];
2770 }
2771 
2772 /**
2773  * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW
2774  * @param event packet
2775  * @return bnep_cid
2776  * @note: btstack_type 2
2777  */
2778 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){
2779     return little_endian_read_16(event, 2);
2780 }
2781 /**
2782  * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW
2783  * @param event packet
2784  * @return source_uuid
2785  * @note: btstack_type 2
2786  */
2787 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){
2788     return little_endian_read_16(event, 4);
2789 }
2790 /**
2791  * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW
2792  * @param event packet
2793  * @return destination_uuid
2794  * @note: btstack_type 2
2795  */
2796 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){
2797     return little_endian_read_16(event, 6);
2798 }
2799 /**
2800  * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW
2801  * @param event packet
2802  * @param Pointer to storage for remote_address
2803  * @note: btstack_type B
2804  */
2805 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2806     reverse_bytes(&event[8], remote_address, 6);
2807 }
2808 
2809 #ifdef ENABLE_BLE
2810 /**
2811  * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST
2812  * @param event packet
2813  * @return handle
2814  * @note: btstack_type H
2815  */
2816 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){
2817     return little_endian_read_16(event, 2);
2818 }
2819 /**
2820  * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST
2821  * @param event packet
2822  * @return addr_type
2823  * @note: btstack_type 1
2824  */
2825 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){
2826     return event[4];
2827 }
2828 /**
2829  * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST
2830  * @param event packet
2831  * @param Pointer to storage for address
2832  * @note: btstack_type B
2833  */
2834 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){
2835     reverse_bytes(&event[5], address, 6);
2836 }
2837 #endif
2838 
2839 #ifdef ENABLE_BLE
2840 /**
2841  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2842  * @param event packet
2843  * @return handle
2844  * @note: btstack_type H
2845  */
2846 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){
2847     return little_endian_read_16(event, 2);
2848 }
2849 /**
2850  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2851  * @param event packet
2852  * @return addr_type
2853  * @note: btstack_type 1
2854  */
2855 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){
2856     return event[4];
2857 }
2858 /**
2859  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2860  * @param event packet
2861  * @param Pointer to storage for address
2862  * @note: btstack_type B
2863  */
2864 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){
2865     reverse_bytes(&event[5], address, 6);
2866 }
2867 /**
2868  * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2869  * @param event packet
2870  * @return passkey
2871  * @note: btstack_type 4
2872  */
2873 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){
2874     return little_endian_read_32(event, 11);
2875 }
2876 #endif
2877 
2878 #ifdef ENABLE_BLE
2879 /**
2880  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
2881  * @param event packet
2882  * @return handle
2883  * @note: btstack_type H
2884  */
2885 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){
2886     return little_endian_read_16(event, 2);
2887 }
2888 /**
2889  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
2890  * @param event packet
2891  * @return addr_type
2892  * @note: btstack_type 1
2893  */
2894 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){
2895     return event[4];
2896 }
2897 /**
2898  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
2899  * @param event packet
2900  * @param Pointer to storage for address
2901  * @note: btstack_type B
2902  */
2903 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){
2904     reverse_bytes(&event[5], address, 6);
2905 }
2906 #endif
2907 
2908 #ifdef ENABLE_BLE
2909 /**
2910  * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER
2911  * @param event packet
2912  * @return handle
2913  * @note: btstack_type H
2914  */
2915 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){
2916     return little_endian_read_16(event, 2);
2917 }
2918 /**
2919  * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER
2920  * @param event packet
2921  * @return addr_type
2922  * @note: btstack_type 1
2923  */
2924 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){
2925     return event[4];
2926 }
2927 /**
2928  * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER
2929  * @param event packet
2930  * @param Pointer to storage for address
2931  * @note: btstack_type B
2932  */
2933 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){
2934     reverse_bytes(&event[5], address, 6);
2935 }
2936 #endif
2937 
2938 #ifdef ENABLE_BLE
2939 /**
2940  * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2941  * @param event packet
2942  * @return handle
2943  * @note: btstack_type H
2944  */
2945 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){
2946     return little_endian_read_16(event, 2);
2947 }
2948 /**
2949  * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2950  * @param event packet
2951  * @return addr_type
2952  * @note: btstack_type 1
2953  */
2954 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){
2955     return event[4];
2956 }
2957 /**
2958  * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2959  * @param event packet
2960  * @param Pointer to storage for address
2961  * @note: btstack_type B
2962  */
2963 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){
2964     reverse_bytes(&event[5], address, 6);
2965 }
2966 /**
2967  * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2968  * @param event packet
2969  * @return passkey
2970  * @note: btstack_type 4
2971  */
2972 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){
2973     return little_endian_read_32(event, 11);
2974 }
2975 #endif
2976 
2977 #ifdef ENABLE_BLE
2978 /**
2979  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED
2980  * @param event packet
2981  * @return handle
2982  * @note: btstack_type H
2983  */
2984 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){
2985     return little_endian_read_16(event, 2);
2986 }
2987 /**
2988  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED
2989  * @param event packet
2990  * @return addr_type
2991  * @note: btstack_type 1
2992  */
2993 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){
2994     return event[4];
2995 }
2996 /**
2997  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED
2998  * @param event packet
2999  * @param Pointer to storage for address
3000  * @note: btstack_type B
3001  */
3002 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){
3003     reverse_bytes(&event[5], address, 6);
3004 }
3005 #endif
3006 
3007 #ifdef ENABLE_BLE
3008 /**
3009  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3010  * @param event packet
3011  * @return handle
3012  * @note: btstack_type H
3013  */
3014 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){
3015     return little_endian_read_16(event, 2);
3016 }
3017 /**
3018  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3019  * @param event packet
3020  * @return addr_type
3021  * @note: btstack_type 1
3022  */
3023 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){
3024     return event[4];
3025 }
3026 /**
3027  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3028  * @param event packet
3029  * @param Pointer to storage for address
3030  * @note: btstack_type B
3031  */
3032 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){
3033     reverse_bytes(&event[5], address, 6);
3034 }
3035 #endif
3036 
3037 #ifdef ENABLE_BLE
3038 /**
3039  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3040  * @param event packet
3041  * @return handle
3042  * @note: btstack_type H
3043  */
3044 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){
3045     return little_endian_read_16(event, 2);
3046 }
3047 /**
3048  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3049  * @param event packet
3050  * @return addr_type
3051  * @note: btstack_type 1
3052  */
3053 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){
3054     return event[4];
3055 }
3056 /**
3057  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3058  * @param event packet
3059  * @param Pointer to storage for address
3060  * @note: btstack_type B
3061  */
3062 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){
3063     reverse_bytes(&event[5], address, 6);
3064 }
3065 /**
3066  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3067  * @param event packet
3068  * @return identity_addr_type
3069  * @note: btstack_type 1
3070  */
3071 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){
3072     return event[11];
3073 }
3074 /**
3075  * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3076  * @param event packet
3077  * @param Pointer to storage for identity_address
3078  * @note: btstack_type B
3079  */
3080 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
3081     reverse_bytes(&event[12], identity_address, 6);
3082 }
3083 /**
3084  * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3085  * @param event packet
3086  * @return index
3087  * @note: btstack_type 2
3088  */
3089 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){
3090     return little_endian_read_16(event, 18);
3091 }
3092 #endif
3093 
3094 #ifdef ENABLE_BLE
3095 /**
3096  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST
3097  * @param event packet
3098  * @return handle
3099  * @note: btstack_type H
3100  */
3101 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){
3102     return little_endian_read_16(event, 2);
3103 }
3104 /**
3105  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST
3106  * @param event packet
3107  * @return addr_type
3108  * @note: btstack_type 1
3109  */
3110 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){
3111     return event[4];
3112 }
3113 /**
3114  * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST
3115  * @param event packet
3116  * @param Pointer to storage for address
3117  * @note: btstack_type B
3118  */
3119 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){
3120     reverse_bytes(&event[5], address, 6);
3121 }
3122 #endif
3123 
3124 #ifdef ENABLE_BLE
3125 /**
3126  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT
3127  * @param event packet
3128  * @return handle
3129  * @note: btstack_type H
3130  */
3131 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){
3132     return little_endian_read_16(event, 2);
3133 }
3134 /**
3135  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT
3136  * @param event packet
3137  * @return addr_type
3138  * @note: btstack_type 1
3139  */
3140 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){
3141     return event[4];
3142 }
3143 /**
3144  * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT
3145  * @param event packet
3146  * @param Pointer to storage for address
3147  * @note: btstack_type B
3148  */
3149 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){
3150     reverse_bytes(&event[5], address, 6);
3151 }
3152 /**
3153  * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT
3154  * @param event packet
3155  * @return authorization_result
3156  * @note: btstack_type 1
3157  */
3158 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){
3159     return event[11];
3160 }
3161 #endif
3162 
3163 #ifdef ENABLE_BLE
3164 /**
3165  * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION
3166  * @param event packet
3167  * @return handle
3168  * @note: btstack_type H
3169  */
3170 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){
3171     return little_endian_read_16(event, 2);
3172 }
3173 /**
3174  * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION
3175  * @param event packet
3176  * @return action
3177  * @note: btstack_type 1
3178  */
3179 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){
3180     return event[4];
3181 }
3182 #endif
3183 
3184 #ifdef ENABLE_BLE
3185 /**
3186  * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED
3187  * @param event packet
3188  * @return handle
3189  * @note: btstack_type H
3190  */
3191 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){
3192     return little_endian_read_16(event, 2);
3193 }
3194 /**
3195  * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED
3196  * @param event packet
3197  * @return addr_type
3198  * @note: btstack_type 1
3199  */
3200 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){
3201     return event[4];
3202 }
3203 /**
3204  * @brief Get field address from event SM_EVENT_IDENTITY_CREATED
3205  * @param event packet
3206  * @param Pointer to storage for address
3207  * @note: btstack_type B
3208  */
3209 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){
3210     reverse_bytes(&event[5], address, 6);
3211 }
3212 /**
3213  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED
3214  * @param event packet
3215  * @return identity_addr_type
3216  * @note: btstack_type 1
3217  */
3218 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){
3219     return event[11];
3220 }
3221 /**
3222  * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED
3223  * @param event packet
3224  * @param Pointer to storage for identity_address
3225  * @note: btstack_type B
3226  */
3227 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
3228     reverse_bytes(&event[12], identity_address, 6);
3229 }
3230 /**
3231  * @brief Get field index from event SM_EVENT_IDENTITY_CREATED
3232  * @param event packet
3233  * @return index
3234  * @note: btstack_type 2
3235  */
3236 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){
3237     return little_endian_read_16(event, 18);
3238 }
3239 #endif
3240 
3241 #ifdef ENABLE_BLE
3242 /**
3243  * @brief Get field handle from event SM_EVENT_PAIRING_STARTED
3244  * @param event packet
3245  * @return handle
3246  * @note: btstack_type H
3247  */
3248 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){
3249     return little_endian_read_16(event, 2);
3250 }
3251 /**
3252  * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED
3253  * @param event packet
3254  * @return addr_type
3255  * @note: btstack_type 1
3256  */
3257 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){
3258     return event[4];
3259 }
3260 /**
3261  * @brief Get field address from event SM_EVENT_PAIRING_STARTED
3262  * @param event packet
3263  * @param Pointer to storage for address
3264  * @note: btstack_type B
3265  */
3266 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){
3267     reverse_bytes(&event[5], address, 6);
3268 }
3269 #endif
3270 
3271 #ifdef ENABLE_BLE
3272 /**
3273  * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE
3274  * @param event packet
3275  * @return handle
3276  * @note: btstack_type H
3277  */
3278 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){
3279     return little_endian_read_16(event, 2);
3280 }
3281 /**
3282  * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE
3283  * @param event packet
3284  * @return addr_type
3285  * @note: btstack_type 1
3286  */
3287 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){
3288     return event[4];
3289 }
3290 /**
3291  * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE
3292  * @param event packet
3293  * @param Pointer to storage for address
3294  * @note: btstack_type B
3295  */
3296 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){
3297     reverse_bytes(&event[5], address, 6);
3298 }
3299 /**
3300  * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE
3301  * @param event packet
3302  * @return status
3303  * @note: btstack_type 1
3304  */
3305 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){
3306     return event[11];
3307 }
3308 /**
3309  * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE
3310  * @param event packet
3311  * @return reason
3312  * @note: btstack_type 1
3313  */
3314 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){
3315     return event[12];
3316 }
3317 #endif
3318 
3319 #ifdef ENABLE_BLE
3320 /**
3321  * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED
3322  * @param event packet
3323  * @return handle
3324  * @note: btstack_type H
3325  */
3326 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){
3327     return little_endian_read_16(event, 2);
3328 }
3329 /**
3330  * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED
3331  * @param event packet
3332  * @return addr_type
3333  * @note: btstack_type 1
3334  */
3335 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){
3336     return event[4];
3337 }
3338 /**
3339  * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED
3340  * @param event packet
3341  * @param Pointer to storage for address
3342  * @note: btstack_type B
3343  */
3344 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){
3345     reverse_bytes(&event[5], address, 6);
3346 }
3347 #endif
3348 
3349 #ifdef ENABLE_BLE
3350 /**
3351  * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE
3352  * @param event packet
3353  * @return handle
3354  * @note: btstack_type H
3355  */
3356 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){
3357     return little_endian_read_16(event, 2);
3358 }
3359 /**
3360  * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE
3361  * @param event packet
3362  * @return addr_type
3363  * @note: btstack_type 1
3364  */
3365 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){
3366     return event[4];
3367 }
3368 /**
3369  * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE
3370  * @param event packet
3371  * @param Pointer to storage for address
3372  * @note: btstack_type B
3373  */
3374 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){
3375     reverse_bytes(&event[5], address, 6);
3376 }
3377 /**
3378  * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE
3379  * @param event packet
3380  * @return status
3381  * @note: btstack_type 1
3382  */
3383 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){
3384     return event[11];
3385 }
3386 #endif
3387 
3388 /**
3389  * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL
3390  * @param event packet
3391  * @return handle
3392  * @note: btstack_type H
3393  */
3394 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){
3395     return little_endian_read_16(event, 2);
3396 }
3397 /**
3398  * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL
3399  * @param event packet
3400  * @return security_level
3401  * @note: btstack_type 1
3402  */
3403 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){
3404     return event[4];
3405 }
3406 
3407 /**
3408  * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
3409  * @param event packet
3410  * @return status
3411  * @note: btstack_type 1
3412  */
3413 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){
3414     return event[2];
3415 }
3416 /**
3417  * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
3418  * @param event packet
3419  * @param Pointer to storage for address
3420  * @note: btstack_type B
3421  */
3422 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){
3423     reverse_bytes(&event[3], address, 6);
3424 }
3425 
3426 /**
3427  * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT
3428  * @param event packet
3429  * @return advertising_event_type
3430  * @note: btstack_type 1
3431  */
3432 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){
3433     return event[2];
3434 }
3435 /**
3436  * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT
3437  * @param event packet
3438  * @return address_type
3439  * @note: btstack_type 1
3440  */
3441 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){
3442     return event[3];
3443 }
3444 /**
3445  * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT
3446  * @param event packet
3447  * @param Pointer to storage for address
3448  * @note: btstack_type B
3449  */
3450 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
3451     reverse_bytes(&event[4], address, 6);
3452 }
3453 /**
3454  * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT
3455  * @param event packet
3456  * @return rssi
3457  * @note: btstack_type 1
3458  */
3459 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){
3460     return event[10];
3461 }
3462 /**
3463  * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT
3464  * @param event packet
3465  * @return data_length
3466  * @note: btstack_type J
3467  */
3468 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){
3469     return event[11];
3470 }
3471 /**
3472  * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT
3473  * @param event packet
3474  * @return data
3475  * @note: btstack_type V
3476  */
3477 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){
3478     return &event[12];
3479 }
3480 
3481 /**
3482  * @brief Get field advertising_event_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3483  * @param event packet
3484  * @return advertising_event_type
3485  * @note: btstack_type 2
3486  */
3487 static inline uint16_t gap_event_extended_advertising_report_get_advertising_event_type(const uint8_t * event){
3488     return little_endian_read_16(event, 2);
3489 }
3490 /**
3491  * @brief Get field address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3492  * @param event packet
3493  * @return address_type
3494  * @note: btstack_type 1
3495  */
3496 static inline uint8_t gap_event_extended_advertising_report_get_address_type(const uint8_t * event){
3497     return event[4];
3498 }
3499 /**
3500  * @brief Get field address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3501  * @param event packet
3502  * @param Pointer to storage for address
3503  * @note: btstack_type B
3504  */
3505 static inline void gap_event_extended_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
3506     reverse_bytes(&event[5], address, 6);
3507 }
3508 /**
3509  * @brief Get field primary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3510  * @param event packet
3511  * @return primary_phy
3512  * @note: btstack_type 1
3513  */
3514 static inline uint8_t gap_event_extended_advertising_report_get_primary_phy(const uint8_t * event){
3515     return event[11];
3516 }
3517 /**
3518  * @brief Get field secondary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3519  * @param event packet
3520  * @return secondary_phy
3521  * @note: btstack_type 1
3522  */
3523 static inline uint8_t gap_event_extended_advertising_report_get_secondary_phy(const uint8_t * event){
3524     return event[12];
3525 }
3526 /**
3527  * @brief Get field advertising_sid from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3528  * @param event packet
3529  * @return advertising_sid
3530  * @note: btstack_type 1
3531  */
3532 static inline uint8_t gap_event_extended_advertising_report_get_advertising_sid(const uint8_t * event){
3533     return event[13];
3534 }
3535 /**
3536  * @brief Get field tx_power from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3537  * @param event packet
3538  * @return tx_power
3539  * @note: btstack_type 1
3540  */
3541 static inline uint8_t gap_event_extended_advertising_report_get_tx_power(const uint8_t * event){
3542     return event[14];
3543 }
3544 /**
3545  * @brief Get field rssi from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3546  * @param event packet
3547  * @return rssi
3548  * @note: btstack_type 1
3549  */
3550 static inline uint8_t gap_event_extended_advertising_report_get_rssi(const uint8_t * event){
3551     return event[15];
3552 }
3553 /**
3554  * @brief Get field periodic_advertising_interval from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3555  * @param event packet
3556  * @return periodic_advertising_interval
3557  * @note: btstack_type 2
3558  */
3559 static inline uint16_t gap_event_extended_advertising_report_get_periodic_advertising_interval(const uint8_t * event){
3560     return little_endian_read_16(event, 16);
3561 }
3562 /**
3563  * @brief Get field direct_address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3564  * @param event packet
3565  * @return direct_address_type
3566  * @note: btstack_type 1
3567  */
3568 static inline uint8_t gap_event_extended_advertising_report_get_direct_address_type(const uint8_t * event){
3569     return event[18];
3570 }
3571 /**
3572  * @brief Get field direct_address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3573  * @param event packet
3574  * @param Pointer to storage for direct_address
3575  * @note: btstack_type B
3576  */
3577 static inline void gap_event_extended_advertising_report_get_direct_address(const uint8_t * event, bd_addr_t direct_address){
3578     reverse_bytes(&event[19], direct_address, 6);
3579 }
3580 /**
3581  * @brief Get field data_length from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3582  * @param event packet
3583  * @return data_length
3584  * @note: btstack_type J
3585  */
3586 static inline uint8_t gap_event_extended_advertising_report_get_data_length(const uint8_t * event){
3587     return event[25];
3588 }
3589 /**
3590  * @brief Get field data from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
3591  * @param event packet
3592  * @return data
3593  * @note: btstack_type V
3594  */
3595 static inline const uint8_t * gap_event_extended_advertising_report_get_data(const uint8_t * event){
3596     return &event[26];
3597 }
3598 
3599 /**
3600  * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT
3601  * @param event packet
3602  * @param Pointer to storage for bd_addr
3603  * @note: btstack_type B
3604  */
3605 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
3606     reverse_bytes(&event[2], bd_addr, 6);
3607 }
3608 /**
3609  * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT
3610  * @param event packet
3611  * @return page_scan_repetition_mode
3612  * @note: btstack_type 1
3613  */
3614 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
3615     return event[8];
3616 }
3617 /**
3618  * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT
3619  * @param event packet
3620  * @return class_of_device
3621  * @note: btstack_type 3
3622  */
3623 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){
3624     return little_endian_read_24(event, 9);
3625 }
3626 /**
3627  * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT
3628  * @param event packet
3629  * @return clock_offset
3630  * @note: btstack_type 2
3631  */
3632 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){
3633     return little_endian_read_16(event, 12);
3634 }
3635 /**
3636  * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT
3637  * @param event packet
3638  * @return rssi_available
3639  * @note: btstack_type 1
3640  */
3641 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){
3642     return event[14];
3643 }
3644 /**
3645  * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT
3646  * @param event packet
3647  * @return rssi
3648  * @note: btstack_type 1
3649  */
3650 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){
3651     return event[15];
3652 }
3653 /**
3654  * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT
3655  * @param event packet
3656  * @return device_id_available
3657  * @note: btstack_type 1
3658  */
3659 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){
3660     return event[16];
3661 }
3662 /**
3663  * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT
3664  * @param event packet
3665  * @return device_id_vendor_id_source
3666  * @note: btstack_type 2
3667  */
3668 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){
3669     return little_endian_read_16(event, 17);
3670 }
3671 /**
3672  * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT
3673  * @param event packet
3674  * @return device_id_vendor_id
3675  * @note: btstack_type 2
3676  */
3677 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){
3678     return little_endian_read_16(event, 19);
3679 }
3680 /**
3681  * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT
3682  * @param event packet
3683  * @return device_id_product_id
3684  * @note: btstack_type 2
3685  */
3686 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){
3687     return little_endian_read_16(event, 21);
3688 }
3689 /**
3690  * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT
3691  * @param event packet
3692  * @return device_id_version
3693  * @note: btstack_type 2
3694  */
3695 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){
3696     return little_endian_read_16(event, 23);
3697 }
3698 /**
3699  * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT
3700  * @param event packet
3701  * @return name_available
3702  * @note: btstack_type 1
3703  */
3704 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){
3705     return event[25];
3706 }
3707 /**
3708  * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT
3709  * @param event packet
3710  * @return name_len
3711  * @note: btstack_type J
3712  */
3713 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){
3714     return event[26];
3715 }
3716 /**
3717  * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT
3718  * @param event packet
3719  * @return name
3720  * @note: btstack_type V
3721  */
3722 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){
3723     return &event[27];
3724 }
3725 
3726 /**
3727  * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE
3728  * @param event packet
3729  * @return status
3730  * @note: btstack_type 1
3731  */
3732 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){
3733     return event[2];
3734 }
3735 
3736 /**
3737  * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT
3738  * @param event packet
3739  * @return con_handle
3740  * @note: btstack_type H
3741  */
3742 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){
3743     return little_endian_read_16(event, 2);
3744 }
3745 /**
3746  * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT
3747  * @param event packet
3748  * @return rssi
3749  * @note: btstack_type 1
3750  */
3751 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){
3752     return event[4];
3753 }
3754 
3755 /**
3756  * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA
3757  * @param event packet
3758  * @return oob_data_present
3759  * @note: btstack_type 1
3760  */
3761 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){
3762     return event[2];
3763 }
3764 /**
3765  * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA
3766  * @param event packet
3767  * @param Pointer to storage for c_192
3768  * @note: btstack_type K
3769  */
3770 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){
3771     reverse_bytes(&event[3], c_192, 16);
3772 }
3773 /**
3774  * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA
3775  * @param event packet
3776  * @param Pointer to storage for r_192
3777  * @note: btstack_type K
3778  */
3779 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){
3780     reverse_bytes(&event[19], r_192, 16);
3781 }
3782 /**
3783  * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA
3784  * @param event packet
3785  * @param Pointer to storage for c_256
3786  * @note: btstack_type K
3787  */
3788 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){
3789     reverse_bytes(&event[35], c_256, 16);
3790 }
3791 /**
3792  * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA
3793  * @param event packet
3794  * @param Pointer to storage for r_256
3795  * @note: btstack_type K
3796  */
3797 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){
3798     reverse_bytes(&event[51], r_256, 16);
3799 }
3800 
3801 /**
3802  * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED
3803  * @param event packet
3804  * @return con_handle
3805  * @note: btstack_type H
3806  */
3807 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){
3808     return little_endian_read_16(event, 2);
3809 }
3810 /**
3811  * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED
3812  * @param event packet
3813  * @param Pointer to storage for bd_addr
3814  * @note: btstack_type B
3815  */
3816 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
3817     reverse_bytes(&event[4], bd_addr, 6);
3818 }
3819 /**
3820  * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED
3821  * @param event packet
3822  * @return ssp
3823  * @note: btstack_type 1
3824  */
3825 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){
3826     return event[10];
3827 }
3828 /**
3829  * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED
3830  * @param event packet
3831  * @return initiator
3832  * @note: btstack_type 1
3833  */
3834 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){
3835     return event[11];
3836 }
3837 
3838 /**
3839  * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE
3840  * @param event packet
3841  * @return con_handle
3842  * @note: btstack_type H
3843  */
3844 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){
3845     return little_endian_read_16(event, 2);
3846 }
3847 /**
3848  * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE
3849  * @param event packet
3850  * @param Pointer to storage for bd_addr
3851  * @note: btstack_type B
3852  */
3853 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
3854     reverse_bytes(&event[4], bd_addr, 6);
3855 }
3856 /**
3857  * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE
3858  * @param event packet
3859  * @return status
3860  * @note: btstack_type 1
3861  */
3862 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){
3863     return event[10];
3864 }
3865 
3866 /**
3867  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3868  * @param event packet
3869  * @return status
3870  * @note: btstack_type 1
3871  */
3872 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
3873     return event[3];
3874 }
3875 /**
3876  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3877  * @param event packet
3878  * @return connection_handle
3879  * @note: btstack_type H
3880  */
3881 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){
3882     return little_endian_read_16(event, 4);
3883 }
3884 /**
3885  * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3886  * @param event packet
3887  * @return role
3888  * @note: btstack_type 1
3889  */
3890 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){
3891     return event[6];
3892 }
3893 /**
3894  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3895  * @param event packet
3896  * @return peer_address_type
3897  * @note: btstack_type 1
3898  */
3899 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){
3900     return event[7];
3901 }
3902 /**
3903  * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3904  * @param event packet
3905  * @param Pointer to storage for peer_address
3906  * @note: btstack_type B
3907  */
3908 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){
3909     reverse_bytes(&event[8], peer_address, 6);
3910 }
3911 /**
3912  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3913  * @param event packet
3914  * @return conn_interval
3915  * @note: btstack_type 2
3916  */
3917 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){
3918     return little_endian_read_16(event, 14);
3919 }
3920 /**
3921  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3922  * @param event packet
3923  * @return conn_latency
3924  * @note: btstack_type 2
3925  */
3926 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){
3927     return little_endian_read_16(event, 16);
3928 }
3929 /**
3930  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3931  * @param event packet
3932  * @return supervision_timeout
3933  * @note: btstack_type 2
3934  */
3935 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){
3936     return little_endian_read_16(event, 18);
3937 }
3938 /**
3939  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3940  * @param event packet
3941  * @return master_clock_accuracy
3942  * @note: btstack_type 1
3943  */
3944 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){
3945     return event[20];
3946 }
3947 
3948 /**
3949  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3950  * @param event packet
3951  * @return status
3952  * @note: btstack_type 1
3953  */
3954 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){
3955     return event[3];
3956 }
3957 /**
3958  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3959  * @param event packet
3960  * @return connection_handle
3961  * @note: btstack_type H
3962  */
3963 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){
3964     return little_endian_read_16(event, 4);
3965 }
3966 /**
3967  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3968  * @param event packet
3969  * @return conn_interval
3970  * @note: btstack_type 2
3971  */
3972 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){
3973     return little_endian_read_16(event, 6);
3974 }
3975 /**
3976  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3977  * @param event packet
3978  * @return conn_latency
3979  * @note: btstack_type 2
3980  */
3981 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){
3982     return little_endian_read_16(event, 8);
3983 }
3984 /**
3985  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3986  * @param event packet
3987  * @return supervision_timeout
3988  * @note: btstack_type 2
3989  */
3990 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){
3991     return little_endian_read_16(event, 10);
3992 }
3993 
3994 /**
3995  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE
3996  * @param event packet
3997  * @return connection_handle
3998  * @note: btstack_type H
3999  */
4000 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){
4001     return little_endian_read_16(event, 3);
4002 }
4003 /**
4004  * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE
4005  * @param event packet
4006  * @return le_features
4007  * @note: btstack_type D
4008  */
4009 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){
4010     return (const uint8_t *) &event[5];
4011 }
4012 
4013 /**
4014  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4015  * @param event packet
4016  * @return connection_handle
4017  * @note: btstack_type H
4018  */
4019 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){
4020     return little_endian_read_16(event, 3);
4021 }
4022 /**
4023  * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4024  * @param event packet
4025  * @return random_number
4026  * @note: btstack_type D
4027  */
4028 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){
4029     return (const uint8_t *) &event[5];
4030 }
4031 /**
4032  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4033  * @param event packet
4034  * @return encryption_diversifier
4035  * @note: btstack_type 2
4036  */
4037 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){
4038     return little_endian_read_16(event, 13);
4039 }
4040 
4041 /**
4042  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4043  * @param event packet
4044  * @return connection_handle
4045  * @note: btstack_type H
4046  */
4047 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){
4048     return little_endian_read_16(event, 3);
4049 }
4050 /**
4051  * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4052  * @param event packet
4053  * @return interval_min
4054  * @note: btstack_type 2
4055  */
4056 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){
4057     return little_endian_read_16(event, 5);
4058 }
4059 /**
4060  * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4061  * @param event packet
4062  * @return interval_max
4063  * @note: btstack_type 2
4064  */
4065 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){
4066     return little_endian_read_16(event, 7);
4067 }
4068 /**
4069  * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4070  * @param event packet
4071  * @return latency
4072  * @note: btstack_type 2
4073  */
4074 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){
4075     return little_endian_read_16(event, 9);
4076 }
4077 /**
4078  * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4079  * @param event packet
4080  * @return timeout
4081  * @note: btstack_type 2
4082  */
4083 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){
4084     return little_endian_read_16(event, 11);
4085 }
4086 
4087 /**
4088  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4089  * @param event packet
4090  * @return connection_handle
4091  * @note: btstack_type H
4092  */
4093 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){
4094     return little_endian_read_16(event, 3);
4095 }
4096 /**
4097  * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4098  * @param event packet
4099  * @return max_tx_octets
4100  * @note: btstack_type 2
4101  */
4102 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){
4103     return little_endian_read_16(event, 5);
4104 }
4105 /**
4106  * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4107  * @param event packet
4108  * @return max_tx_time
4109  * @note: btstack_type 2
4110  */
4111 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){
4112     return little_endian_read_16(event, 7);
4113 }
4114 /**
4115  * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4116  * @param event packet
4117  * @return max_rx_octets
4118  * @note: btstack_type 2
4119  */
4120 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){
4121     return little_endian_read_16(event, 9);
4122 }
4123 /**
4124  * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4125  * @param event packet
4126  * @return max_rx_time
4127  * @note: btstack_type 2
4128  */
4129 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){
4130     return little_endian_read_16(event, 11);
4131 }
4132 
4133 /**
4134  * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4135  * @param event packet
4136  * @return status
4137  * @note: btstack_type 1
4138  */
4139 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){
4140     return event[3];
4141 }
4142 /**
4143  * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4144  * @param event packet
4145  * @param Pointer to storage for dhkey_x
4146  * @note: btstack_type Q
4147  */
4148 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){
4149     reverse_bytes(&event[4], dhkey_x, 32);
4150 }
4151 /**
4152  * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4153  * @param event packet
4154  * @param Pointer to storage for dhkey_y
4155  * @note: btstack_type Q
4156  */
4157 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){
4158     reverse_bytes(&event[36], dhkey_y, 32);
4159 }
4160 
4161 /**
4162  * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
4163  * @param event packet
4164  * @return status
4165  * @note: btstack_type 1
4166  */
4167 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){
4168     return event[3];
4169 }
4170 /**
4171  * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
4172  * @param event packet
4173  * @param Pointer to storage for dhkey
4174  * @note: btstack_type Q
4175  */
4176 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){
4177     reverse_bytes(&event[4], dhkey, 32);
4178 }
4179 
4180 /**
4181  * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4182  * @param event packet
4183  * @return status
4184  * @note: btstack_type 1
4185  */
4186 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){
4187     return event[3];
4188 }
4189 /**
4190  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4191  * @param event packet
4192  * @return connection_handle
4193  * @note: btstack_type H
4194  */
4195 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){
4196     return little_endian_read_16(event, 4);
4197 }
4198 /**
4199  * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4200  * @param event packet
4201  * @return role
4202  * @note: btstack_type 1
4203  */
4204 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){
4205     return event[6];
4206 }
4207 /**
4208  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4209  * @param event packet
4210  * @return peer_address_type
4211  * @note: btstack_type 1
4212  */
4213 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){
4214     return event[7];
4215 }
4216 /**
4217  * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4218  * @param event packet
4219  * @param Pointer to storage for peer_addresss
4220  * @note: btstack_type B
4221  */
4222 static inline void hci_subevent_le_enhanced_connection_complete_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){
4223     reverse_bytes(&event[8], peer_addresss, 6);
4224 }
4225 /**
4226  * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4227  * @param event packet
4228  * @param Pointer to storage for local_resolvable_private_addres
4229  * @note: btstack_type B
4230  */
4231 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){
4232     reverse_bytes(&event[14], local_resolvable_private_addres, 6);
4233 }
4234 /**
4235  * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4236  * @param event packet
4237  * @param Pointer to storage for peer_resolvable_private_addres
4238  * @note: btstack_type B
4239  */
4240 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){
4241     reverse_bytes(&event[20], peer_resolvable_private_addres, 6);
4242 }
4243 /**
4244  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4245  * @param event packet
4246  * @return conn_interval
4247  * @note: btstack_type 2
4248  */
4249 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){
4250     return little_endian_read_16(event, 26);
4251 }
4252 /**
4253  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4254  * @param event packet
4255  * @return conn_latency
4256  * @note: btstack_type 2
4257  */
4258 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){
4259     return little_endian_read_16(event, 28);
4260 }
4261 /**
4262  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4263  * @param event packet
4264  * @return supervision_timeout
4265  * @note: btstack_type 2
4266  */
4267 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){
4268     return little_endian_read_16(event, 30);
4269 }
4270 /**
4271  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
4272  * @param event packet
4273  * @return master_clock_accuracy
4274  * @note: btstack_type 1
4275  */
4276 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){
4277     return event[32];
4278 }
4279 
4280 /**
4281  * @brief Get field status from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
4282  * @param event packet
4283  * @return status
4284  * @note: btstack_type 1
4285  */
4286 static inline uint8_t hci_subevent_le_phy_update_complete_get_status(const uint8_t * event){
4287     return event[3];
4288 }
4289 /**
4290  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
4291  * @param event packet
4292  * @return connection_handle
4293  * @note: btstack_type H
4294  */
4295 static inline hci_con_handle_t hci_subevent_le_phy_update_complete_get_connection_handle(const uint8_t * event){
4296     return little_endian_read_16(event, 4);
4297 }
4298 /**
4299  * @brief Get field tx_phy from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
4300  * @param event packet
4301  * @return tx_phy
4302  * @note: btstack_type 1
4303  */
4304 static inline uint8_t hci_subevent_le_phy_update_complete_get_tx_phy(const uint8_t * event){
4305     return event[6];
4306 }
4307 
4308 /**
4309  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4310  * @param event packet
4311  * @return status
4312  * @note: btstack_type 1
4313  */
4314 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_status(const uint8_t * event){
4315     return event[3];
4316 }
4317 /**
4318  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4319  * @param event packet
4320  * @return sync_handle
4321  * @note: btstack_type H
4322  */
4323 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_establishment_get_sync_handle(const uint8_t * event){
4324     return little_endian_read_16(event, 4);
4325 }
4326 /**
4327  * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4328  * @param event packet
4329  * @return advertising_sid
4330  * @note: btstack_type 1
4331  */
4332 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertising_sid(const uint8_t * event){
4333     return event[6];
4334 }
4335 /**
4336  * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4337  * @param event packet
4338  * @return advertiser_address_type
4339  * @note: btstack_type 1
4340  */
4341 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address_type(const uint8_t * event){
4342     return event[7];
4343 }
4344 /**
4345  * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4346  * @param event packet
4347  * @param Pointer to storage for advertiser_address
4348  * @note: btstack_type B
4349  */
4350 static inline void hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){
4351     reverse_bytes(&event[8], advertiser_address, 6);
4352 }
4353 /**
4354  * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4355  * @param event packet
4356  * @return advertiser_phy
4357  * @note: btstack_type 1
4358  */
4359 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_phy(const uint8_t * event){
4360     return event[14];
4361 }
4362 /**
4363  * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4364  * @param event packet
4365  * @return periodic_advertising_interval
4366  * @note: btstack_type 2
4367  */
4368 static inline uint16_t hci_subevent_le_periodic_advertising_sync_establishment_get_periodic_advertising_interval(const uint8_t * event){
4369     return little_endian_read_16(event, 15);
4370 }
4371 /**
4372  * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
4373  * @param event packet
4374  * @return advertiser_clock_accuracy
4375  * @note: btstack_type 1
4376  */
4377 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_clock_accuracy(const uint8_t * event){
4378     return event[17];
4379 }
4380 
4381 /**
4382  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4383  * @param event packet
4384  * @return status
4385  * @note: btstack_type 1
4386  */
4387 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_status(const uint8_t * event){
4388     return event[3];
4389 }
4390 /**
4391  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4392  * @param event packet
4393  * @return sync_handle
4394  * @note: btstack_type H
4395  */
4396 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_report_get_sync_handle(const uint8_t * event){
4397     return little_endian_read_16(event, 4);
4398 }
4399 /**
4400  * @brief Get field tx_power from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4401  * @param event packet
4402  * @return tx_power
4403  * @note: btstack_type 1
4404  */
4405 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_tx_power(const uint8_t * event){
4406     return event[6];
4407 }
4408 /**
4409  * @brief Get field rssi from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4410  * @param event packet
4411  * @return rssi
4412  * @note: btstack_type 1
4413  */
4414 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_rssi(const uint8_t * event){
4415     return event[7];
4416 }
4417 /**
4418  * @brief Get field cte_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4419  * @param event packet
4420  * @return cte_type
4421  * @note: btstack_type 1
4422  */
4423 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_cte_type(const uint8_t * event){
4424     return event[8];
4425 }
4426 /**
4427  * @brief Get field data_status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4428  * @param event packet
4429  * @return data_status
4430  * @note: btstack_type 1
4431  */
4432 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_status(const uint8_t * event){
4433     return event[9];
4434 }
4435 /**
4436  * @brief Get field data_length from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4437  * @param event packet
4438  * @return data_length
4439  * @note: btstack_type J
4440  */
4441 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_length(const uint8_t * event){
4442     return event[10];
4443 }
4444 /**
4445  * @brief Get field data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
4446  * @param event packet
4447  * @return data
4448  * @note: btstack_type V
4449  */
4450 static inline const uint8_t * hci_subevent_le_periodic_advertising_report_get_data(const uint8_t * event){
4451     return &event[11];
4452 }
4453 
4454 /**
4455  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_LOST
4456  * @param event packet
4457  * @return sync_handle
4458  * @note: btstack_type H
4459  */
4460 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_lost_get_sync_handle(const uint8_t * event){
4461     return little_endian_read_16(event, 3);
4462 }
4463 
4464 
4465 /**
4466  * @brief Get field status from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4467  * @param event packet
4468  * @return status
4469  * @note: btstack_type 1
4470  */
4471 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_status(const uint8_t * event){
4472     return event[3];
4473 }
4474 /**
4475  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4476  * @param event packet
4477  * @return advertising_handle
4478  * @note: btstack_type 1
4479  */
4480 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_advertising_handle(const uint8_t * event){
4481     return event[4];
4482 }
4483 /**
4484  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4485  * @param event packet
4486  * @return connection_handle
4487  * @note: btstack_type H
4488  */
4489 static inline hci_con_handle_t hci_subevent_le_advertising_set_terminated_get_connection_handle(const uint8_t * event){
4490     return little_endian_read_16(event, 5);
4491 }
4492 /**
4493  * @brief Get field num_completed_exteneded_advertising_events from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
4494  * @param event packet
4495  * @return num_completed_exteneded_advertising_events
4496  * @note: btstack_type 1
4497  */
4498 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_num_completed_exteneded_advertising_events(const uint8_t * event){
4499     return event[7];
4500 }
4501 
4502 /**
4503  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
4504  * @param event packet
4505  * @return advertising_handle
4506  * @note: btstack_type 1
4507  */
4508 static inline uint8_t hci_subevent_le_scan_request_received_get_advertising_handle(const uint8_t * event){
4509     return event[3];
4510 }
4511 /**
4512  * @brief Get field scanner_address_type from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
4513  * @param event packet
4514  * @return scanner_address_type
4515  * @note: btstack_type 1
4516  */
4517 static inline uint8_t hci_subevent_le_scan_request_received_get_scanner_address_type(const uint8_t * event){
4518     return event[4];
4519 }
4520 /**
4521  * @brief Get field scanner_address from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
4522  * @param event packet
4523  * @param Pointer to storage for scanner_address
4524  * @note: btstack_type B
4525  */
4526 static inline void hci_subevent_le_scan_request_received_get_scanner_address(const uint8_t * event, bd_addr_t scanner_address){
4527     reverse_bytes(&event[5], scanner_address, 6);
4528 }
4529 
4530 /**
4531  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM
4532  * @param event packet
4533  * @return connection_handle
4534  * @note: btstack_type H
4535  */
4536 static inline hci_con_handle_t hci_subevent_le_channel_selection_algorithm_get_connection_handle(const uint8_t * event){
4537     return little_endian_read_16(event, 3);
4538 }
4539 /**
4540  * @brief Get field channel_selection_algorithm from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM
4541  * @param event packet
4542  * @return channel_selection_algorithm
4543  * @note: btstack_type 1
4544  */
4545 static inline uint8_t hci_subevent_le_channel_selection_algorithm_get_channel_selection_algorithm(const uint8_t * event){
4546     return event[5];
4547 }
4548 
4549 /**
4550  * @brief Get field status from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED
4551  * @param event packet
4552  * @return status
4553  * @note: btstack_type 1
4554  */
4555 static inline uint8_t hci_subevent_le_le_cte_request_failed_get_status(const uint8_t * event){
4556     return event[3];
4557 }
4558 /**
4559  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED
4560  * @param event packet
4561  * @return connection_handle
4562  * @note: btstack_type H
4563  */
4564 static inline hci_con_handle_t hci_subevent_le_le_cte_request_failed_get_connection_handle(const uint8_t * event){
4565     return little_endian_read_16(event, 4);
4566 }
4567 
4568 /**
4569  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4570  * @param event packet
4571  * @return status
4572  * @note: btstack_type 1
4573  */
4574 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_status(const uint8_t * event){
4575     return event[3];
4576 }
4577 /**
4578  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4579  * @param event packet
4580  * @return connection_handle
4581  * @note: btstack_type H
4582  */
4583 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_connection_handle(const uint8_t * event){
4584     return little_endian_read_16(event, 4);
4585 }
4586 /**
4587  * @brief Get field service_data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4588  * @param event packet
4589  * @return service_data
4590  * @note: btstack_type 2
4591  */
4592 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_service_data(const uint8_t * event){
4593     return little_endian_read_16(event, 6);
4594 }
4595 /**
4596  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4597  * @param event packet
4598  * @return sync_handle
4599  * @note: btstack_type H
4600  */
4601 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_sync_handle(const uint8_t * event){
4602     return little_endian_read_16(event, 8);
4603 }
4604 /**
4605  * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4606  * @param event packet
4607  * @return advertising_sid
4608  * @note: btstack_type 1
4609  */
4610 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertising_sid(const uint8_t * event){
4611     return event[10];
4612 }
4613 /**
4614  * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4615  * @param event packet
4616  * @return advertiser_address_type
4617  * @note: btstack_type 1
4618  */
4619 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address_type(const uint8_t * event){
4620     return event[11];
4621 }
4622 /**
4623  * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4624  * @param event packet
4625  * @param Pointer to storage for advertiser_address
4626  * @note: btstack_type B
4627  */
4628 static inline void hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){
4629     reverse_bytes(&event[12], advertiser_address, 6);
4630 }
4631 /**
4632  * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4633  * @param event packet
4634  * @return advertiser_phy
4635  * @note: btstack_type 1
4636  */
4637 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_phy(const uint8_t * event){
4638     return event[18];
4639 }
4640 /**
4641  * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4642  * @param event packet
4643  * @return periodic_advertising_interval
4644  * @note: btstack_type 2
4645  */
4646 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_periodic_advertising_interval(const uint8_t * event){
4647     return little_endian_read_16(event, 19);
4648 }
4649 /**
4650  * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
4651  * @param event packet
4652  * @return advertiser_clock_accuracy
4653  * @note: btstack_type 1
4654  */
4655 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_clock_accuracy(const uint8_t * event){
4656     return event[21];
4657 }
4658 
4659 /**
4660  * @brief Get field status from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4661  * @param event packet
4662  * @return status
4663  * @note: btstack_type 1
4664  */
4665 static inline uint8_t hci_subevent_le_cis_established_get_status(const uint8_t * event){
4666     return event[3];
4667 }
4668 /**
4669  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4670  * @param event packet
4671  * @return connection_handle
4672  * @note: btstack_type H
4673  */
4674 static inline hci_con_handle_t hci_subevent_le_cis_established_get_connection_handle(const uint8_t * event){
4675     return little_endian_read_16(event, 4);
4676 }
4677 /**
4678  * @brief Get field cig_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4679  * @param event packet
4680  * @return cig_sync_delay
4681  * @note: btstack_type 3
4682  */
4683 static inline uint32_t hci_subevent_le_cis_established_get_cig_sync_delay(const uint8_t * event){
4684     return little_endian_read_24(event, 6);
4685 }
4686 /**
4687  * @brief Get field cis_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4688  * @param event packet
4689  * @return cis_sync_delay
4690  * @note: btstack_type 3
4691  */
4692 static inline uint32_t hci_subevent_le_cis_established_get_cis_sync_delay(const uint8_t * event){
4693     return little_endian_read_24(event, 9);
4694 }
4695 /**
4696  * @brief Get field transport_latency_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4697  * @param event packet
4698  * @return transport_latency_c_to_p
4699  * @note: btstack_type 3
4700  */
4701 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_c_to_p(const uint8_t * event){
4702     return little_endian_read_24(event, 12);
4703 }
4704 /**
4705  * @brief Get field transport_latency_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4706  * @param event packet
4707  * @return transport_latency_p_to_c
4708  * @note: btstack_type 3
4709  */
4710 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_p_to_c(const uint8_t * event){
4711     return little_endian_read_24(event, 15);
4712 }
4713 /**
4714  * @brief Get field phy_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4715  * @param event packet
4716  * @return phy_c_to_p
4717  * @note: btstack_type 1
4718  */
4719 static inline uint8_t hci_subevent_le_cis_established_get_phy_c_to_p(const uint8_t * event){
4720     return event[18];
4721 }
4722 /**
4723  * @brief Get field phy_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4724  * @param event packet
4725  * @return phy_p_to_c
4726  * @note: btstack_type 1
4727  */
4728 static inline uint8_t hci_subevent_le_cis_established_get_phy_p_to_c(const uint8_t * event){
4729     return event[19];
4730 }
4731 /**
4732  * @brief Get field nse from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4733  * @param event packet
4734  * @return nse
4735  * @note: btstack_type 1
4736  */
4737 static inline uint8_t hci_subevent_le_cis_established_get_nse(const uint8_t * event){
4738     return event[20];
4739 }
4740 /**
4741  * @brief Get field bn_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4742  * @param event packet
4743  * @return bn_c_to_p
4744  * @note: btstack_type 1
4745  */
4746 static inline uint8_t hci_subevent_le_cis_established_get_bn_c_to_p(const uint8_t * event){
4747     return event[21];
4748 }
4749 /**
4750  * @brief Get field bn_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4751  * @param event packet
4752  * @return bn_p_to_c
4753  * @note: btstack_type 1
4754  */
4755 static inline uint8_t hci_subevent_le_cis_established_get_bn_p_to_c(const uint8_t * event){
4756     return event[22];
4757 }
4758 /**
4759  * @brief Get field ft_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4760  * @param event packet
4761  * @return ft_c_to_p
4762  * @note: btstack_type 1
4763  */
4764 static inline uint8_t hci_subevent_le_cis_established_get_ft_c_to_p(const uint8_t * event){
4765     return event[23];
4766 }
4767 /**
4768  * @brief Get field ft_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4769  * @param event packet
4770  * @return ft_p_to_c
4771  * @note: btstack_type 1
4772  */
4773 static inline uint8_t hci_subevent_le_cis_established_get_ft_p_to_c(const uint8_t * event){
4774     return event[24];
4775 }
4776 /**
4777  * @brief Get field max_pdu_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4778  * @param event packet
4779  * @return max_pdu_c_to_p
4780  * @note: btstack_type 2
4781  */
4782 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_c_to_p(const uint8_t * event){
4783     return little_endian_read_16(event, 25);
4784 }
4785 /**
4786  * @brief Get field max_pdu_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4787  * @param event packet
4788  * @return max_pdu_p_to_c
4789  * @note: btstack_type 2
4790  */
4791 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_p_to_c(const uint8_t * event){
4792     return little_endian_read_16(event, 27);
4793 }
4794 /**
4795  * @brief Get field iso_interval from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
4796  * @param event packet
4797  * @return iso_interval
4798  * @note: btstack_type 2
4799  */
4800 static inline uint16_t hci_subevent_le_cis_established_get_iso_interval(const uint8_t * event){
4801     return little_endian_read_16(event, 29);
4802 }
4803 
4804 /**
4805  * @brief Get field acl_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST
4806  * @param event packet
4807  * @return acl_connection_handle
4808  * @note: btstack_type H
4809  */
4810 static inline hci_con_handle_t hci_subevent_le_cis_request_get_acl_connection_handle(const uint8_t * event){
4811     return little_endian_read_16(event, 3);
4812 }
4813 /**
4814  * @brief Get field cis_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST
4815  * @param event packet
4816  * @return cis_connection_handle
4817  * @note: btstack_type H
4818  */
4819 static inline hci_con_handle_t hci_subevent_le_cis_request_get_cis_connection_handle(const uint8_t * event){
4820     return little_endian_read_16(event, 5);
4821 }
4822 /**
4823  * @brief Get field cig_id from event HCI_SUBEVENT_LE_CIS_REQUEST
4824  * @param event packet
4825  * @return cig_id
4826  * @note: btstack_type 1
4827  */
4828 static inline uint8_t hci_subevent_le_cis_request_get_cig_id(const uint8_t * event){
4829     return event[7];
4830 }
4831 /**
4832  * @brief Get field cis_id from event HCI_SUBEVENT_LE_CIS_REQUEST
4833  * @param event packet
4834  * @return cis_id
4835  * @note: btstack_type 1
4836  */
4837 static inline uint8_t hci_subevent_le_cis_request_get_cis_id(const uint8_t * event){
4838     return event[8];
4839 }
4840 
4841 /**
4842  * @brief Get field big_handle from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE
4843  * @param event packet
4844  * @return big_handle
4845  * @note: btstack_type 1
4846  */
4847 static inline uint8_t hci_subevent_le_terminate_big_complete_get_big_handle(const uint8_t * event){
4848     return event[3];
4849 }
4850 /**
4851  * @brief Get field reason from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE
4852  * @param event packet
4853  * @return reason
4854  * @note: btstack_type 1
4855  */
4856 static inline uint8_t hci_subevent_le_terminate_big_complete_get_reason(const uint8_t * event){
4857     return event[4];
4858 }
4859 
4860 /**
4861  * @brief Get field big_handle from event HCI_SUBEVENT_LE_BIG_SYNC_LOST
4862  * @param event packet
4863  * @return big_handle
4864  * @note: btstack_type 1
4865  */
4866 static inline uint8_t hci_subevent_le_big_sync_lost_get_big_handle(const uint8_t * event){
4867     return event[3];
4868 }
4869 /**
4870  * @brief Get field reason from event HCI_SUBEVENT_LE_BIG_SYNC_LOST
4871  * @param event packet
4872  * @return reason
4873  * @note: btstack_type 1
4874  */
4875 static inline uint8_t hci_subevent_le_big_sync_lost_get_reason(const uint8_t * event){
4876     return event[4];
4877 }
4878 
4879 /**
4880  * @brief Get field status from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
4881  * @param event packet
4882  * @return status
4883  * @note: btstack_type 1
4884  */
4885 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_status(const uint8_t * event){
4886     return event[3];
4887 }
4888 /**
4889  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
4890  * @param event packet
4891  * @return connection_handle
4892  * @note: btstack_type H
4893  */
4894 static inline hci_con_handle_t hci_subevent_le_request_peer_sca_complete_get_connection_handle(const uint8_t * event){
4895     return little_endian_read_16(event, 4);
4896 }
4897 /**
4898  * @brief Get field peer_clock_accuracy from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
4899  * @param event packet
4900  * @return peer_clock_accuracy
4901  * @note: btstack_type 1
4902  */
4903 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_peer_clock_accuracy(const uint8_t * event){
4904     return event[6];
4905 }
4906 
4907 /**
4908  * @brief Get field status from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4909  * @param event packet
4910  * @return status
4911  * @note: btstack_type 1
4912  */
4913 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_status(const uint8_t * event){
4914     return event[3];
4915 }
4916 /**
4917  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4918  * @param event packet
4919  * @return connection_handle
4920  * @note: btstack_type H
4921  */
4922 static inline hci_con_handle_t hci_subevent_le_transmit_power_reporting_get_connection_handle(const uint8_t * event){
4923     return little_endian_read_16(event, 4);
4924 }
4925 /**
4926  * @brief Get field reason from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4927  * @param event packet
4928  * @return reason
4929  * @note: btstack_type 1
4930  */
4931 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_reason(const uint8_t * event){
4932     return event[6];
4933 }
4934 /**
4935  * @brief Get field phy from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4936  * @param event packet
4937  * @return phy
4938  * @note: btstack_type 1
4939  */
4940 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_phy(const uint8_t * event){
4941     return event[7];
4942 }
4943 /**
4944  * @brief Get field tx_power_level from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4945  * @param event packet
4946  * @return tx_power_level
4947  * @note: btstack_type 1
4948  */
4949 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level(const uint8_t * event){
4950     return event[8];
4951 }
4952 /**
4953  * @brief Get field tx_power_level_flag from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4954  * @param event packet
4955  * @return tx_power_level_flag
4956  * @note: btstack_type 1
4957  */
4958 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level_flag(const uint8_t * event){
4959     return event[9];
4960 }
4961 /**
4962  * @brief Get field delta from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
4963  * @param event packet
4964  * @return delta
4965  * @note: btstack_type 1
4966  */
4967 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_delta(const uint8_t * event){
4968     return event[10];
4969 }
4970 
4971 /**
4972  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
4973  * @param event packet
4974  * @return sync_handle
4975  * @note: btstack_type H
4976  */
4977 static inline hci_con_handle_t hci_subevent_le_biginfo_advertising_report_get_sync_handle(const uint8_t * event){
4978     return little_endian_read_16(event, 3);
4979 }
4980 /**
4981  * @brief Get field num_bis from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
4982  * @param event packet
4983  * @return num_bis
4984  * @note: btstack_type 1
4985  */
4986 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_num_bis(const uint8_t * event){
4987     return event[5];
4988 }
4989 /**
4990  * @brief Get field nse from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
4991  * @param event packet
4992  * @return nse
4993  * @note: btstack_type 1
4994  */
4995 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_nse(const uint8_t * event){
4996     return event[6];
4997 }
4998 /**
4999  * @brief Get field iso_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5000  * @param event packet
5001  * @return iso_interval
5002  * @note: btstack_type 2
5003  */
5004 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_iso_interval(const uint8_t * event){
5005     return little_endian_read_16(event, 7);
5006 }
5007 /**
5008  * @brief Get field bn from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5009  * @param event packet
5010  * @return bn
5011  * @note: btstack_type 1
5012  */
5013 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_bn(const uint8_t * event){
5014     return event[9];
5015 }
5016 /**
5017  * @brief Get field pto from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5018  * @param event packet
5019  * @return pto
5020  * @note: btstack_type 1
5021  */
5022 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_pto(const uint8_t * event){
5023     return event[10];
5024 }
5025 /**
5026  * @brief Get field irc from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5027  * @param event packet
5028  * @return irc
5029  * @note: btstack_type 1
5030  */
5031 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_irc(const uint8_t * event){
5032     return event[11];
5033 }
5034 /**
5035  * @brief Get field max_pdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5036  * @param event packet
5037  * @return max_pdu
5038  * @note: btstack_type 2
5039  */
5040 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_pdu(const uint8_t * event){
5041     return little_endian_read_16(event, 12);
5042 }
5043 /**
5044  * @brief Get field sdu_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5045  * @param event packet
5046  * @return sdu_interval
5047  * @note: btstack_type 3
5048  */
5049 static inline uint32_t hci_subevent_le_biginfo_advertising_report_get_sdu_interval(const uint8_t * event){
5050     return little_endian_read_24(event, 14);
5051 }
5052 /**
5053  * @brief Get field max_sdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5054  * @param event packet
5055  * @return max_sdu
5056  * @note: btstack_type 2
5057  */
5058 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_sdu(const uint8_t * event){
5059     return little_endian_read_16(event, 17);
5060 }
5061 /**
5062  * @brief Get field phy from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5063  * @param event packet
5064  * @return phy
5065  * @note: btstack_type 1
5066  */
5067 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_phy(const uint8_t * event){
5068     return event[19];
5069 }
5070 /**
5071  * @brief Get field framing from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5072  * @param event packet
5073  * @return framing
5074  * @note: btstack_type 1
5075  */
5076 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_framing(const uint8_t * event){
5077     return event[20];
5078 }
5079 /**
5080  * @brief Get field encryption from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5081  * @param event packet
5082  * @return encryption
5083  * @note: btstack_type 1
5084  */
5085 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_encryption(const uint8_t * event){
5086     return event[21];
5087 }
5088 
5089 /**
5090  * @brief Get field status from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5091  * @param event packet
5092  * @return status
5093  * @note: btstack_type 1
5094  */
5095 static inline uint8_t hci_subevent_le_subrate_change_get_status(const uint8_t * event){
5096     return event[3];
5097 }
5098 /**
5099  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5100  * @param event packet
5101  * @return connection_handle
5102  * @note: btstack_type H
5103  */
5104 static inline hci_con_handle_t hci_subevent_le_subrate_change_get_connection_handle(const uint8_t * event){
5105     return little_endian_read_16(event, 4);
5106 }
5107 /**
5108  * @brief Get field subrate_factor from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5109  * @param event packet
5110  * @return subrate_factor
5111  * @note: btstack_type 2
5112  */
5113 static inline uint16_t hci_subevent_le_subrate_change_get_subrate_factor(const uint8_t * event){
5114     return little_endian_read_16(event, 6);
5115 }
5116 /**
5117  * @brief Get field peripheral_latency from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5118  * @param event packet
5119  * @return peripheral_latency
5120  * @note: btstack_type 2
5121  */
5122 static inline uint16_t hci_subevent_le_subrate_change_get_peripheral_latency(const uint8_t * event){
5123     return little_endian_read_16(event, 8);
5124 }
5125 /**
5126  * @brief Get field continuation_number from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5127  * @param event packet
5128  * @return continuation_number
5129  * @note: btstack_type 2
5130  */
5131 static inline uint16_t hci_subevent_le_subrate_change_get_continuation_number(const uint8_t * event){
5132     return little_endian_read_16(event, 10);
5133 }
5134 /**
5135  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5136  * @param event packet
5137  * @return supervision_timeout
5138  * @note: btstack_type 2
5139  */
5140 static inline uint16_t hci_subevent_le_subrate_change_get_supervision_timeout(const uint8_t * event){
5141     return little_endian_read_16(event, 12);
5142 }
5143 
5144 /**
5145  * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
5146  * @param event packet
5147  * @return advertisement_handle
5148  * @note: btstack_type 1
5149  */
5150 static inline uint8_t gap_subevent_advertising_set_installed_get_advertisement_handle(const uint8_t * event){
5151     return event[3];
5152 }
5153 /**
5154  * @brief Get field status from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
5155  * @param event packet
5156  * @return status
5157  * @note: btstack_type 1
5158  */
5159 static inline uint8_t gap_subevent_advertising_set_installed_get_status(const uint8_t * event){
5160     return event[4];
5161 }
5162 /**
5163  * @brief Get field selected_tx_power from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
5164  * @param event packet
5165  * @return selected_tx_power
5166  * @note: btstack_type 1
5167  */
5168 static inline uint8_t gap_subevent_advertising_set_installed_get_selected_tx_power(const uint8_t * event){
5169     return event[5];
5170 }
5171 
5172 /**
5173  * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_REMOVED
5174  * @param event packet
5175  * @return advertisement_handle
5176  * @note: btstack_type 1
5177  */
5178 static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_handle(const uint8_t * event){
5179     return event[3];
5180 }
5181 
5182 /**
5183  * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
5184  * @param event packet
5185  * @return acl_handle
5186  * @note: btstack_type H
5187  */
5188 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){
5189     return little_endian_read_16(event, 3);
5190 }
5191 /**
5192  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
5193  * @param event packet
5194  * @return status
5195  * @note: btstack_type 1
5196  */
5197 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){
5198     return event[5];
5199 }
5200 /**
5201  * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
5202  * @param event packet
5203  * @param Pointer to storage for bd_addr
5204  * @note: btstack_type B
5205  */
5206 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5207     reverse_bytes(&event[6], bd_addr, 6);
5208 }
5209 
5210 /**
5211  * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE
5212  * @param event packet
5213  * @return acl_handle
5214  * @note: btstack_type H
5215  */
5216 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){
5217     return little_endian_read_16(event, 3);
5218 }
5219 
5220 /**
5221  * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
5222  * @param event packet
5223  * @return acl_handle
5224  * @note: btstack_type H
5225  */
5226 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){
5227     return little_endian_read_16(event, 3);
5228 }
5229 /**
5230  * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
5231  * @param event packet
5232  * @return status
5233  * @note: btstack_type 1
5234  */
5235 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){
5236     return event[5];
5237 }
5238 /**
5239  * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
5240  * @param event packet
5241  * @return sco_handle
5242  * @note: btstack_type H
5243  */
5244 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){
5245     return little_endian_read_16(event, 6);
5246 }
5247 
5248 /**
5249  * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
5250  * @param event packet
5251  * @return acl_handle
5252  * @note: btstack_type H
5253  */
5254 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){
5255     return little_endian_read_16(event, 3);
5256 }
5257 /**
5258  * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
5259  * @param event packet
5260  * @return sco_handle
5261  * @note: btstack_type H
5262  */
5263 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){
5264     return little_endian_read_16(event, 5);
5265 }
5266 
5267 /**
5268  * @brief Get field acl_handle from event HSP_SUBEVENT_RING
5269  * @param event packet
5270  * @return acl_handle
5271  * @note: btstack_type H
5272  */
5273 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){
5274     return little_endian_read_16(event, 3);
5275 }
5276 
5277 /**
5278  * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
5279  * @param event packet
5280  * @return acl_handle
5281  * @note: btstack_type H
5282  */
5283 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){
5284     return little_endian_read_16(event, 3);
5285 }
5286 /**
5287  * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
5288  * @param event packet
5289  * @return gain
5290  * @note: btstack_type 1
5291  */
5292 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){
5293     return event[5];
5294 }
5295 
5296 /**
5297  * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
5298  * @param event packet
5299  * @return acl_handle
5300  * @note: btstack_type H
5301  */
5302 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){
5303     return little_endian_read_16(event, 3);
5304 }
5305 /**
5306  * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
5307  * @param event packet
5308  * @return gain
5309  * @note: btstack_type 1
5310  */
5311 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){
5312     return event[5];
5313 }
5314 
5315 /**
5316  * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND
5317  * @param event packet
5318  * @return acl_handle
5319  * @note: btstack_type H
5320  */
5321 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){
5322     return little_endian_read_16(event, 3);
5323 }
5324 /**
5325  * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND
5326  * @param event packet
5327  * @return value_length
5328  * @note: btstack_type J
5329  */
5330 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){
5331     return event[5];
5332 }
5333 /**
5334  * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND
5335  * @param event packet
5336  * @return value
5337  * @note: btstack_type V
5338  */
5339 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){
5340     return &event[6];
5341 }
5342 
5343 /**
5344  * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION
5345  * @param event packet
5346  * @return acl_handle
5347  * @note: btstack_type H
5348  */
5349 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){
5350     return little_endian_read_16(event, 3);
5351 }
5352 /**
5353  * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION
5354  * @param event packet
5355  * @return value_length
5356  * @note: btstack_type J
5357  */
5358 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){
5359     return event[5];
5360 }
5361 /**
5362  * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION
5363  * @param event packet
5364  * @return value
5365  * @note: btstack_type V
5366  */
5367 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){
5368     return &event[6];
5369 }
5370 
5371 /**
5372  * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED
5373  * @param event packet
5374  * @return acl_handle
5375  * @note: btstack_type H
5376  */
5377 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){
5378     return little_endian_read_16(event, 3);
5379 }
5380 
5381 /**
5382  * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
5383  * @param event packet
5384  * @return acl_handle
5385  * @note: btstack_type H
5386  */
5387 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){
5388     return little_endian_read_16(event, 3);
5389 }
5390 /**
5391  * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
5392  * @param event packet
5393  * @return status
5394  * @note: btstack_type 1
5395  */
5396 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){
5397     return event[5];
5398 }
5399 /**
5400  * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
5401  * @param event packet
5402  * @param Pointer to storage for bd_addr
5403  * @note: btstack_type B
5404  */
5405 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5406     reverse_bytes(&event[6], bd_addr, 6);
5407 }
5408 
5409 /**
5410  * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED
5411  * @param event packet
5412  * @return acl_handle
5413  * @note: btstack_type H
5414  */
5415 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){
5416     return little_endian_read_16(event, 3);
5417 }
5418 
5419 /**
5420  * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5421  * @param event packet
5422  * @return acl_handle
5423  * @note: btstack_type H
5424  */
5425 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){
5426     return little_endian_read_16(event, 3);
5427 }
5428 /**
5429  * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5430  * @param event packet
5431  * @return status
5432  * @note: btstack_type 1
5433  */
5434 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){
5435     return event[5];
5436 }
5437 /**
5438  * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5439  * @param event packet
5440  * @return sco_handle
5441  * @note: btstack_type H
5442  */
5443 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){
5444     return little_endian_read_16(event, 6);
5445 }
5446 /**
5447  * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5448  * @param event packet
5449  * @param Pointer to storage for bd_addr
5450  * @note: btstack_type B
5451  */
5452 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5453     reverse_bytes(&event[8], bd_addr, 6);
5454 }
5455 /**
5456  * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
5457  * @param event packet
5458  * @return negotiated_codec
5459  * @note: btstack_type 1
5460  */
5461 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
5462     return event[14];
5463 }
5464 
5465 /**
5466  * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
5467  * @param event packet
5468  * @return acl_handle
5469  * @note: btstack_type H
5470  */
5471 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){
5472     return little_endian_read_16(event, 3);
5473 }
5474 /**
5475  * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
5476  * @param event packet
5477  * @return sco_handle
5478  * @note: btstack_type H
5479  */
5480 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){
5481     return little_endian_read_16(event, 5);
5482 }
5483 
5484 /**
5485  * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE
5486  * @param event packet
5487  * @return acl_handle
5488  * @note: btstack_type H
5489  */
5490 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){
5491     return little_endian_read_16(event, 3);
5492 }
5493 /**
5494  * @brief Get field status from event HFP_SUBEVENT_COMPLETE
5495  * @param event packet
5496  * @return status
5497  * @note: btstack_type 1
5498  */
5499 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){
5500     return event[5];
5501 }
5502 
5503 /**
5504  * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
5505  * @param event packet
5506  * @return acl_handle
5507  * @note: btstack_type H
5508  */
5509 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){
5510     return little_endian_read_16(event, 3);
5511 }
5512 /**
5513  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
5514  * @param event packet
5515  * @return indicator_index
5516  * @note: btstack_type 1
5517  */
5518 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){
5519     return event[5];
5520 }
5521 /**
5522  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
5523  * @param event packet
5524  * @return indicator_min_range
5525  * @note: btstack_type 1
5526  */
5527 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){
5528     return event[6];
5529 }
5530 /**
5531  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
5532  * @param event packet
5533  * @return indicator_max_range
5534  * @note: btstack_type 1
5535  */
5536 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){
5537     return event[7];
5538 }
5539 /**
5540  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
5541  * @param event packet
5542  * @return indicator_name
5543  * @note: btstack_type T
5544  */
5545 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){
5546     return (const char *) &event[8];
5547 }
5548 
5549 /**
5550  * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5551  * @param event packet
5552  * @return acl_handle
5553  * @note: btstack_type H
5554  */
5555 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){
5556     return little_endian_read_16(event, 3);
5557 }
5558 /**
5559  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5560  * @param event packet
5561  * @return indicator_index
5562  * @note: btstack_type 1
5563  */
5564 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){
5565     return event[5];
5566 }
5567 /**
5568  * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5569  * @param event packet
5570  * @return indicator_status
5571  * @note: btstack_type 1
5572  */
5573 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){
5574     return event[6];
5575 }
5576 /**
5577  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5578  * @param event packet
5579  * @return indicator_min_range
5580  * @note: btstack_type 1
5581  */
5582 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){
5583     return event[7];
5584 }
5585 /**
5586  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5587  * @param event packet
5588  * @return indicator_max_range
5589  * @note: btstack_type 1
5590  */
5591 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){
5592     return event[8];
5593 }
5594 /**
5595  * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5596  * @param event packet
5597  * @return indicator_mandatory
5598  * @note: btstack_type 1
5599  */
5600 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){
5601     return event[9];
5602 }
5603 /**
5604  * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5605  * @param event packet
5606  * @return indicator_enabled
5607  * @note: btstack_type 1
5608  */
5609 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){
5610     return event[10];
5611 }
5612 /**
5613  * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5614  * @param event packet
5615  * @return indicator_status_changed
5616  * @note: btstack_type 1
5617  */
5618 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){
5619     return event[11];
5620 }
5621 /**
5622  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
5623  * @param event packet
5624  * @return indicator_name
5625  * @note: btstack_type T
5626  */
5627 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){
5628     return (const char *) &event[12];
5629 }
5630 
5631 /**
5632  * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
5633  * @param event packet
5634  * @return acl_handle
5635  * @note: btstack_type H
5636  */
5637 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){
5638     return little_endian_read_16(event, 3);
5639 }
5640 /**
5641  * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
5642  * @param event packet
5643  * @return network_operator_mode
5644  * @note: btstack_type 1
5645  */
5646 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){
5647     return event[5];
5648 }
5649 /**
5650  * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
5651  * @param event packet
5652  * @return network_operator_format
5653  * @note: btstack_type 1
5654  */
5655 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){
5656     return event[6];
5657 }
5658 /**
5659  * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
5660  * @param event packet
5661  * @return network_operator_name
5662  * @note: btstack_type T
5663  */
5664 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){
5665     return (const char *) &event[7];
5666 }
5667 
5668 /**
5669  * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
5670  * @param event packet
5671  * @return acl_handle
5672  * @note: btstack_type H
5673  */
5674 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){
5675     return little_endian_read_16(event, 3);
5676 }
5677 /**
5678  * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
5679  * @param event packet
5680  * @return error
5681  * @note: btstack_type 1
5682  */
5683 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){
5684     return event[5];
5685 }
5686 
5687 /**
5688  * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING
5689  * @param event packet
5690  * @return acl_handle
5691  * @note: btstack_type H
5692  */
5693 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){
5694     return little_endian_read_16(event, 3);
5695 }
5696 
5697 /**
5698  * @brief Get field acl_handle from event HFP_SUBEVENT_RING
5699  * @param event packet
5700  * @return acl_handle
5701  * @note: btstack_type H
5702  */
5703 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){
5704     return little_endian_read_16(event, 3);
5705 }
5706 
5707 /**
5708  * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING
5709  * @param event packet
5710  * @return acl_handle
5711  * @note: btstack_type H
5712  */
5713 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){
5714     return little_endian_read_16(event, 3);
5715 }
5716 
5717 /**
5718  * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
5719  * @param event packet
5720  * @return acl_handle
5721  * @note: btstack_type H
5722  */
5723 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){
5724     return little_endian_read_16(event, 3);
5725 }
5726 /**
5727  * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
5728  * @param event packet
5729  * @return number
5730  * @note: btstack_type T
5731  */
5732 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){
5733     return (const char *) &event[5];
5734 }
5735 
5736 /**
5737  * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG
5738  * @param event packet
5739  * @return acl_handle
5740  * @note: btstack_type H
5741  */
5742 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){
5743     return little_endian_read_16(event, 3);
5744 }
5745 
5746 /**
5747  * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
5748  * @param event packet
5749  * @return acl_handle
5750  * @note: btstack_type H
5751  */
5752 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){
5753     return little_endian_read_16(event, 3);
5754 }
5755 /**
5756  * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
5757  * @param event packet
5758  * @return number
5759  * @note: btstack_type T
5760  */
5761 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){
5762     return (const char *) &event[5];
5763 }
5764 
5765 /**
5766  * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
5767  * @param event packet
5768  * @return acl_handle
5769  * @note: btstack_type H
5770  */
5771 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){
5772     return little_endian_read_16(event, 3);
5773 }
5774 /**
5775  * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
5776  * @param event packet
5777  * @return dtmf
5778  * @note: btstack_type T
5779  */
5780 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){
5781     return (const char *) &event[5];
5782 }
5783 
5784 /**
5785  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED
5786  * @param event packet
5787  * @return acl_handle
5788  * @note: btstack_type H
5789  */
5790 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){
5791     return little_endian_read_16(event, 3);
5792 }
5793 
5794 /**
5795  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED
5796  * @param event packet
5797  * @return acl_handle
5798  * @note: btstack_type H
5799  */
5800 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){
5801     return little_endian_read_16(event, 3);
5802 }
5803 
5804 /**
5805  * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL
5806  * @param event packet
5807  * @return acl_handle
5808  * @note: btstack_type H
5809  */
5810 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){
5811     return little_endian_read_16(event, 3);
5812 }
5813 
5814 /**
5815  * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME
5816  * @param event packet
5817  * @return acl_handle
5818  * @note: btstack_type H
5819  */
5820 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){
5821     return little_endian_read_16(event, 3);
5822 }
5823 /**
5824  * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME
5825  * @param event packet
5826  * @return gain
5827  * @note: btstack_type 1
5828  */
5829 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){
5830     return event[5];
5831 }
5832 
5833 /**
5834  * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME
5835  * @param event packet
5836  * @return acl_handle
5837  * @note: btstack_type H
5838  */
5839 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){
5840     return little_endian_read_16(event, 3);
5841 }
5842 /**
5843  * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME
5844  * @param event packet
5845  * @return gain
5846  * @note: btstack_type 1
5847  */
5848 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){
5849     return event[5];
5850 }
5851 
5852 /**
5853  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
5854  * @param event packet
5855  * @return acl_handle
5856  * @note: btstack_type H
5857  */
5858 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){
5859     return little_endian_read_16(event, 3);
5860 }
5861 /**
5862  * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
5863  * @param event packet
5864  * @return type
5865  * @note: btstack_type 1
5866  */
5867 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
5868     return event[5];
5869 }
5870 /**
5871  * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
5872  * @param event packet
5873  * @return number
5874  * @note: btstack_type T
5875  */
5876 static inline const char * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
5877     return (const char *) &event[6];
5878 }
5879 
5880 /**
5881  * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
5882  * @param event packet
5883  * @return acl_handle
5884  * @note: btstack_type H
5885  */
5886 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){
5887     return little_endian_read_16(event, 3);
5888 }
5889 /**
5890  * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
5891  * @param event packet
5892  * @return type
5893  * @note: btstack_type 1
5894  */
5895 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
5896     return event[5];
5897 }
5898 /**
5899  * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
5900  * @param event packet
5901  * @return number
5902  * @note: btstack_type T
5903  */
5904 static inline const char * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
5905     return (const char *) &event[6];
5906 }
5907 
5908 /**
5909  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5910  * @param event packet
5911  * @return acl_handle
5912  * @note: btstack_type H
5913  */
5914 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){
5915     return little_endian_read_16(event, 3);
5916 }
5917 /**
5918  * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5919  * @param event packet
5920  * @return clcc_idx
5921  * @note: btstack_type 1
5922  */
5923 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){
5924     return event[5];
5925 }
5926 /**
5927  * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5928  * @param event packet
5929  * @return clcc_dir
5930  * @note: btstack_type 1
5931  */
5932 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){
5933     return event[6];
5934 }
5935 /**
5936  * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5937  * @param event packet
5938  * @return clcc_status
5939  * @note: btstack_type 1
5940  */
5941 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){
5942     return event[7];
5943 }
5944 /**
5945  * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5946  * @param event packet
5947  * @return clcc_mode
5948  * @note: btstack_type 1
5949  */
5950 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){
5951     return event[8];
5952 }
5953 /**
5954  * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5955  * @param event packet
5956  * @return clcc_mpty
5957  * @note: btstack_type 1
5958  */
5959 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){
5960     return event[9];
5961 }
5962 /**
5963  * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5964  * @param event packet
5965  * @return bnip_type
5966  * @note: btstack_type 1
5967  */
5968 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){
5969     return event[10];
5970 }
5971 /**
5972  * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
5973  * @param event packet
5974  * @return bnip_number
5975  * @note: btstack_type T
5976  */
5977 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){
5978     return (const char *) &event[11];
5979 }
5980 
5981 /**
5982  * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
5983  * @param event packet
5984  * @return acl_handle
5985  * @note: btstack_type H
5986  */
5987 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){
5988     return little_endian_read_16(event, 3);
5989 }
5990 /**
5991  * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
5992  * @param event packet
5993  * @return status
5994  * @note: btstack_type 1
5995  */
5996 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){
5997     return event[5];
5998 }
5999 /**
6000  * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
6001  * @param event packet
6002  * @return bnip_type
6003  * @note: btstack_type 1
6004  */
6005 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){
6006     return event[6];
6007 }
6008 /**
6009  * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
6010  * @param event packet
6011  * @return bnip_number
6012  * @note: btstack_type T
6013  */
6014 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){
6015     return (const char *) &event[7];
6016 }
6017 
6018 /**
6019  * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
6020  * @param event packet
6021  * @return acl_handle
6022  * @note: btstack_type H
6023  */
6024 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){
6025     return little_endian_read_16(event, 3);
6026 }
6027 /**
6028  * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
6029  * @param event packet
6030  * @return value
6031  * @note: btstack_type T
6032  */
6033 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){
6034     return (const char *) &event[5];
6035 }
6036 
6037 /**
6038  * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT
6039  * @param event packet
6040  * @return acl_handle
6041  * @note: btstack_type H
6042  */
6043 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){
6044     return little_endian_read_16(event, 3);
6045 }
6046 /**
6047  * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT
6048  * @param event packet
6049  * @return command
6050  * @note: btstack_type T
6051  */
6052 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){
6053     return (const char *) &event[5];
6054 }
6055 
6056 /**
6057  * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED
6058  * @param event packet
6059  * @return acl_handle
6060  * @note: btstack_type H
6061  */
6062 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){
6063     return little_endian_read_16(event, 3);
6064 }
6065 /**
6066  * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED
6067  * @param event packet
6068  * @return command
6069  * @note: btstack_type T
6070  */
6071 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){
6072     return (const char *) &event[5];
6073 }
6074 
6075 /**
6076  * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE
6077  * @param event packet
6078  * @return acl_handle
6079  * @note: btstack_type H
6080  */
6081 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){
6082     return little_endian_read_16(event, 3);
6083 }
6084 /**
6085  * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE
6086  * @param event packet
6087  * @return status
6088  * @note: btstack_type 1
6089  */
6090 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
6091     return event[5];
6092 }
6093 
6094 /**
6095  * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
6096  * @param event packet
6097  * @return acl_handle
6098  * @note: btstack_type H
6099  */
6100 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){
6101     return little_endian_read_16(event, 3);
6102 }
6103 /**
6104  * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
6105  * @param event packet
6106  * @return status
6107  * @note: btstack_type 1
6108  */
6109 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){
6110     return event[5];
6111 }
6112 /**
6113  * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
6114  * @param event packet
6115  * @return enhanced
6116  * @note: btstack_type 1
6117  */
6118 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){
6119     return event[6];
6120 }
6121 
6122 /**
6123  * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED
6124  * @param event packet
6125  * @return acl_handle
6126  * @note: btstack_type H
6127  */
6128 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){
6129     return little_endian_read_16(event, 3);
6130 }
6131 /**
6132  * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED
6133  * @param event packet
6134  * @return status
6135  * @note: btstack_type 1
6136  */
6137 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){
6138     return event[5];
6139 }
6140 
6141 /**
6142  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
6143  * @param event packet
6144  * @return acl_handle
6145  * @note: btstack_type H
6146  */
6147 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){
6148     return little_endian_read_16(event, 3);
6149 }
6150 /**
6151  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
6152  * @param event packet
6153  * @return status
6154  * @note: btstack_type 1
6155  */
6156 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){
6157     return event[5];
6158 }
6159 
6160 /**
6161  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT
6162  * @param event packet
6163  * @return acl_handle
6164  * @note: btstack_type H
6165  */
6166 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){
6167     return little_endian_read_16(event, 3);
6168 }
6169 /**
6170  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT
6171  * @param event packet
6172  * @return status
6173  * @note: btstack_type 1
6174  */
6175 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){
6176     return event[5];
6177 }
6178 
6179 /**
6180  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND
6181  * @param event packet
6182  * @return acl_handle
6183  * @note: btstack_type H
6184  */
6185 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){
6186     return little_endian_read_16(event, 3);
6187 }
6188 /**
6189  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND
6190  * @param event packet
6191  * @return status
6192  * @note: btstack_type 1
6193  */
6194 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){
6195     return event[5];
6196 }
6197 
6198 /**
6199  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT
6200  * @param event packet
6201  * @return acl_handle
6202  * @note: btstack_type H
6203  */
6204 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){
6205     return little_endian_read_16(event, 3);
6206 }
6207 /**
6208  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT
6209  * @param event packet
6210  * @return status
6211  * @note: btstack_type 1
6212  */
6213 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){
6214     return event[5];
6215 }
6216 
6217 /**
6218  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT
6219  * @param event packet
6220  * @return acl_handle
6221  * @note: btstack_type H
6222  */
6223 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){
6224     return little_endian_read_16(event, 3);
6225 }
6226 /**
6227  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT
6228  * @param event packet
6229  * @return status
6230  * @note: btstack_type 1
6231  */
6232 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){
6233     return event[5];
6234 }
6235 
6236 /**
6237  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6238  * @param event packet
6239  * @return acl_handle
6240  * @note: btstack_type H
6241  */
6242 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){
6243     return little_endian_read_16(event, 3);
6244 }
6245 /**
6246  * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6247  * @param event packet
6248  * @return text_id
6249  * @note: btstack_type 2
6250  */
6251 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){
6252     return little_endian_read_16(event, 5);
6253 }
6254 /**
6255  * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6256  * @param event packet
6257  * @return text_type
6258  * @note: btstack_type 1
6259  */
6260 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){
6261     return event[7];
6262 }
6263 /**
6264  * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6265  * @param event packet
6266  * @return text_operation
6267  * @note: btstack_type 1
6268  */
6269 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){
6270     return event[8];
6271 }
6272 /**
6273  * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6274  * @param event packet
6275  * @return text_length
6276  * @note: btstack_type L
6277  */
6278 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){
6279     return little_endian_read_16(event, 9);
6280 }
6281 /**
6282  * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
6283  * @param event packet
6284  * @return text
6285  * @note: btstack_type V
6286  */
6287 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){
6288     return &event[11];
6289 }
6290 
6291 /**
6292  * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
6293  * @param event packet
6294  * @return acl_handle
6295  * @note: btstack_type H
6296  */
6297 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){
6298     return little_endian_read_16(event, 3);
6299 }
6300 /**
6301  * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
6302  * @param event packet
6303  * @return status
6304  * @note: btstack_type 1
6305  */
6306 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){
6307     return event[5];
6308 }
6309 
6310 /**
6311  * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR
6312  * @param event packet
6313  * @return acl_handle
6314  * @note: btstack_type H
6315  */
6316 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){
6317     return little_endian_read_16(event, 3);
6318 }
6319 /**
6320  * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR
6321  * @param event packet
6322  * @return uuid
6323  * @note: btstack_type 2
6324  */
6325 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){
6326     return little_endian_read_16(event, 5);
6327 }
6328 /**
6329  * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR
6330  * @param event packet
6331  * @return value
6332  * @note: btstack_type 1
6333  */
6334 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){
6335     return event[7];
6336 }
6337 
6338 #ifdef ENABLE_BLE
6339 /**
6340  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
6341  * @param event packet
6342  * @return handle
6343  * @note: btstack_type H
6344  */
6345 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){
6346     return little_endian_read_16(event, 3);
6347 }
6348 #endif
6349 
6350 #ifdef ENABLE_BLE
6351 /**
6352  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
6353  * @param event packet
6354  * @return handle
6355  * @note: btstack_type H
6356  */
6357 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){
6358     return little_endian_read_16(event, 3);
6359 }
6360 /**
6361  * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
6362  * @param event packet
6363  * @return attribute_id
6364  * @note: btstack_type 2
6365  */
6366 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){
6367     return little_endian_read_16(event, 5);
6368 }
6369 /**
6370  * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
6371  * @param event packet
6372  * @return text
6373  * @note: btstack_type T
6374  */
6375 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){
6376     return (const char *) &event[7];
6377 }
6378 #endif
6379 
6380 #ifdef ENABLE_BLE
6381 /**
6382  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED
6383  * @param event packet
6384  * @return handle
6385  * @note: btstack_type H
6386  */
6387 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){
6388     return little_endian_read_16(event, 3);
6389 }
6390 #endif
6391 
6392 /**
6393  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
6394  * @param event packet
6395  * @return avdtp_cid
6396  * @note: btstack_type 2
6397  */
6398 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){
6399     return little_endian_read_16(event, 3);
6400 }
6401 /**
6402  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
6403  * @param event packet
6404  * @return local_seid
6405  * @note: btstack_type 1
6406  */
6407 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){
6408     return event[5];
6409 }
6410 /**
6411  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
6412  * @param event packet
6413  * @return is_initiator
6414  * @note: btstack_type 1
6415  */
6416 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){
6417     return event[6];
6418 }
6419 /**
6420  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
6421  * @param event packet
6422  * @return signal_identifier
6423  * @note: btstack_type 1
6424  */
6425 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){
6426     return event[7];
6427 }
6428 
6429 /**
6430  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT
6431  * @param event packet
6432  * @return avdtp_cid
6433  * @note: btstack_type 2
6434  */
6435 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){
6436     return little_endian_read_16(event, 3);
6437 }
6438 /**
6439  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT
6440  * @param event packet
6441  * @return local_seid
6442  * @note: btstack_type 1
6443  */
6444 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){
6445     return event[5];
6446 }
6447 /**
6448  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT
6449  * @param event packet
6450  * @return is_initiator
6451  * @note: btstack_type 1
6452  */
6453 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){
6454     return event[6];
6455 }
6456 /**
6457  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT
6458  * @param event packet
6459  * @return signal_identifier
6460  * @note: btstack_type 1
6461  */
6462 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){
6463     return event[7];
6464 }
6465 
6466 /**
6467  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
6468  * @param event packet
6469  * @return avdtp_cid
6470  * @note: btstack_type 2
6471  */
6472 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){
6473     return little_endian_read_16(event, 3);
6474 }
6475 /**
6476  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
6477  * @param event packet
6478  * @return local_seid
6479  * @note: btstack_type 1
6480  */
6481 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){
6482     return event[5];
6483 }
6484 /**
6485  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
6486  * @param event packet
6487  * @return is_initiator
6488  * @note: btstack_type 1
6489  */
6490 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){
6491     return event[6];
6492 }
6493 /**
6494  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
6495  * @param event packet
6496  * @return signal_identifier
6497  * @note: btstack_type 1
6498  */
6499 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){
6500     return event[7];
6501 }
6502 
6503 /**
6504  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
6505  * @param event packet
6506  * @return avdtp_cid
6507  * @note: btstack_type 2
6508  */
6509 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){
6510     return little_endian_read_16(event, 3);
6511 }
6512 /**
6513  * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
6514  * @param event packet
6515  * @param Pointer to storage for bd_addr
6516  * @note: btstack_type B
6517  */
6518 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6519     reverse_bytes(&event[5], bd_addr, 6);
6520 }
6521 /**
6522  * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
6523  * @param event packet
6524  * @return con_handle
6525  * @note: btstack_type 2
6526  */
6527 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){
6528     return little_endian_read_16(event, 11);
6529 }
6530 /**
6531  * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
6532  * @param event packet
6533  * @return status
6534  * @note: btstack_type 1
6535  */
6536 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){
6537     return event[13];
6538 }
6539 
6540 /**
6541  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
6542  * @param event packet
6543  * @return avdtp_cid
6544  * @note: btstack_type 2
6545  */
6546 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){
6547     return little_endian_read_16(event, 3);
6548 }
6549 
6550 /**
6551  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
6552  * @param event packet
6553  * @return avdtp_cid
6554  * @note: btstack_type 2
6555  */
6556 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){
6557     return little_endian_read_16(event, 3);
6558 }
6559 /**
6560  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
6561  * @param event packet
6562  * @return remote_seid
6563  * @note: btstack_type 1
6564  */
6565 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){
6566     return event[5];
6567 }
6568 /**
6569  * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
6570  * @param event packet
6571  * @return in_use
6572  * @note: btstack_type 1
6573  */
6574 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){
6575     return event[6];
6576 }
6577 /**
6578  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
6579  * @param event packet
6580  * @return media_type
6581  * @note: btstack_type 1
6582  */
6583 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){
6584     return event[7];
6585 }
6586 /**
6587  * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
6588  * @param event packet
6589  * @return sep_type
6590  * @note: btstack_type 1
6591  */
6592 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){
6593     return event[8];
6594 }
6595 
6596 /**
6597  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6598  * @param event packet
6599  * @return avdtp_cid
6600  * @note: btstack_type 2
6601  */
6602 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){
6603     return little_endian_read_16(event, 3);
6604 }
6605 /**
6606  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6607  * @param event packet
6608  * @return remote_seid
6609  * @note: btstack_type 1
6610  */
6611 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
6612     return event[5];
6613 }
6614 /**
6615  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6616  * @param event packet
6617  * @return media_type
6618  * @note: btstack_type 1
6619  */
6620 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
6621     return event[6];
6622 }
6623 /**
6624  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6625  * @param event packet
6626  * @return sampling_frequency_bitmap
6627  * @note: btstack_type 1
6628  */
6629 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
6630     return event[7];
6631 }
6632 /**
6633  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6634  * @param event packet
6635  * @return channel_mode_bitmap
6636  * @note: btstack_type 1
6637  */
6638 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
6639     return event[8];
6640 }
6641 /**
6642  * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6643  * @param event packet
6644  * @return block_length_bitmap
6645  * @note: btstack_type 1
6646  */
6647 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
6648     return event[9];
6649 }
6650 /**
6651  * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6652  * @param event packet
6653  * @return subbands_bitmap
6654  * @note: btstack_type 1
6655  */
6656 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
6657     return event[10];
6658 }
6659 /**
6660  * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6661  * @param event packet
6662  * @return allocation_method_bitmap
6663  * @note: btstack_type 1
6664  */
6665 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
6666     return event[11];
6667 }
6668 /**
6669  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6670  * @param event packet
6671  * @return min_bitpool_value
6672  * @note: btstack_type 1
6673  */
6674 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
6675     return event[12];
6676 }
6677 /**
6678  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
6679  * @param event packet
6680  * @return max_bitpool_value
6681  * @note: btstack_type 1
6682  */
6683 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
6684     return event[13];
6685 }
6686 
6687 /**
6688  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6689  * @param event packet
6690  * @return avdtp_cid
6691  * @note: btstack_type 2
6692  */
6693 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){
6694     return little_endian_read_16(event, 3);
6695 }
6696 /**
6697  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6698  * @param event packet
6699  * @return remote_seid
6700  * @note: btstack_type 1
6701  */
6702 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){
6703     return event[5];
6704 }
6705 /**
6706  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6707  * @param event packet
6708  * @return media_type
6709  * @note: btstack_type 1
6710  */
6711 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){
6712     return event[6];
6713 }
6714 /**
6715  * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6716  * @param event packet
6717  * @return layer_bitmap
6718  * @note: btstack_type 1
6719  */
6720 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){
6721     return event[7];
6722 }
6723 /**
6724  * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6725  * @param event packet
6726  * @return crc
6727  * @note: btstack_type 1
6728  */
6729 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){
6730     return event[8];
6731 }
6732 /**
6733  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6734  * @param event packet
6735  * @return channel_mode_bitmap
6736  * @note: btstack_type 1
6737  */
6738 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){
6739     return event[9];
6740 }
6741 /**
6742  * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6743  * @param event packet
6744  * @return media_payload_format
6745  * @note: btstack_type 1
6746  */
6747 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){
6748     return event[10];
6749 }
6750 /**
6751  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6752  * @param event packet
6753  * @return sampling_frequency_bitmap
6754  * @note: btstack_type 1
6755  */
6756 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){
6757     return event[11];
6758 }
6759 /**
6760  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6761  * @param event packet
6762  * @return vbr
6763  * @note: btstack_type 1
6764  */
6765 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){
6766     return event[12];
6767 }
6768 /**
6769  * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
6770  * @param event packet
6771  * @return bit_rate_index_bitmap
6772  * @note: btstack_type 2
6773  */
6774 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){
6775     return little_endian_read_16(event, 13);
6776 }
6777 
6778 /**
6779  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6780  * @param event packet
6781  * @return avdtp_cid
6782  * @note: btstack_type 2
6783  */
6784 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){
6785     return little_endian_read_16(event, 3);
6786 }
6787 /**
6788  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6789  * @param event packet
6790  * @return remote_seid
6791  * @note: btstack_type 1
6792  */
6793 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){
6794     return event[5];
6795 }
6796 /**
6797  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6798  * @param event packet
6799  * @return media_type
6800  * @note: btstack_type 1
6801  */
6802 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){
6803     return event[6];
6804 }
6805 /**
6806  * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6807  * @param event packet
6808  * @return object_type_bitmap
6809  * @note: btstack_type 1
6810  */
6811 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){
6812     return event[7];
6813 }
6814 /**
6815  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6816  * @param event packet
6817  * @return sampling_frequency_bitmap
6818  * @note: btstack_type 2
6819  */
6820 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
6821     return little_endian_read_16(event, 8);
6822 }
6823 /**
6824  * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6825  * @param event packet
6826  * @return channels_bitmap
6827  * @note: btstack_type 1
6828  */
6829 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){
6830     return event[10];
6831 }
6832 /**
6833  * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6834  * @param event packet
6835  * @return bit_rate
6836  * @note: btstack_type 3
6837  */
6838 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){
6839     return little_endian_read_24(event, 11);
6840 }
6841 /**
6842  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
6843  * @param event packet
6844  * @return vbr
6845  * @note: btstack_type 1
6846  */
6847 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){
6848     return event[14];
6849 }
6850 
6851 /**
6852  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6853  * @param event packet
6854  * @return avdtp_cid
6855  * @note: btstack_type 2
6856  */
6857 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){
6858     return little_endian_read_16(event, 3);
6859 }
6860 /**
6861  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6862  * @param event packet
6863  * @return remote_seid
6864  * @note: btstack_type 1
6865  */
6866 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){
6867     return event[5];
6868 }
6869 /**
6870  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6871  * @param event packet
6872  * @return media_type
6873  * @note: btstack_type 1
6874  */
6875 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){
6876     return event[6];
6877 }
6878 /**
6879  * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6880  * @param event packet
6881  * @return version
6882  * @note: btstack_type 1
6883  */
6884 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){
6885     return event[7];
6886 }
6887 /**
6888  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6889  * @param event packet
6890  * @return channel_mode_bitmap
6891  * @note: btstack_type 1
6892  */
6893 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){
6894     return event[8];
6895 }
6896 /**
6897  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6898  * @param event packet
6899  * @return sampling_frequency_bitmap
6900  * @note: btstack_type 1
6901  */
6902 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
6903     return event[9];
6904 }
6905 /**
6906  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6907  * @param event packet
6908  * @return vbr
6909  * @note: btstack_type 1
6910  */
6911 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){
6912     return event[10];
6913 }
6914 /**
6915  * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6916  * @param event packet
6917  * @return bit_rate_index_bitmap
6918  * @note: btstack_type 3
6919  */
6920 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){
6921     return little_endian_read_24(event, 11);
6922 }
6923 /**
6924  * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
6925  * @param event packet
6926  * @return maximum_sul
6927  * @note: btstack_type 2
6928  */
6929 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){
6930     return little_endian_read_16(event, 14);
6931 }
6932 
6933 /**
6934  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
6935  * @param event packet
6936  * @return avdtp_cid
6937  * @note: btstack_type 2
6938  */
6939 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){
6940     return little_endian_read_16(event, 3);
6941 }
6942 /**
6943  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
6944  * @param event packet
6945  * @return remote_seid
6946  * @note: btstack_type 1
6947  */
6948 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
6949     return event[5];
6950 }
6951 /**
6952  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
6953  * @param event packet
6954  * @return media_type
6955  * @note: btstack_type 1
6956  */
6957 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
6958     return event[6];
6959 }
6960 /**
6961  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
6962  * @param event packet
6963  * @return media_codec_type
6964  * @note: btstack_type 2
6965  */
6966 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
6967     return little_endian_read_16(event, 7);
6968 }
6969 /**
6970  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
6971  * @param event packet
6972  * @return media_codec_information_len
6973  * @note: btstack_type L
6974  */
6975 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
6976     return little_endian_read_16(event, 9);
6977 }
6978 /**
6979  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
6980  * @param event packet
6981  * @return media_codec_information
6982  * @note: btstack_type V
6983  */
6984 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
6985     return &event[11];
6986 }
6987 
6988 /**
6989  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
6990  * @param event packet
6991  * @return avdtp_cid
6992  * @note: btstack_type 2
6993  */
6994 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){
6995     return little_endian_read_16(event, 3);
6996 }
6997 /**
6998  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
6999  * @param event packet
7000  * @return remote_seid
7001  * @note: btstack_type 1
7002  */
7003 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){
7004     return event[5];
7005 }
7006 
7007 /**
7008  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
7009  * @param event packet
7010  * @return avdtp_cid
7011  * @note: btstack_type 2
7012  */
7013 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){
7014     return little_endian_read_16(event, 3);
7015 }
7016 /**
7017  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
7018  * @param event packet
7019  * @return remote_seid
7020  * @note: btstack_type 1
7021  */
7022 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){
7023     return event[5];
7024 }
7025 
7026 /**
7027  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7028  * @param event packet
7029  * @return avdtp_cid
7030  * @note: btstack_type 2
7031  */
7032 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){
7033     return little_endian_read_16(event, 3);
7034 }
7035 /**
7036  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7037  * @param event packet
7038  * @return remote_seid
7039  * @note: btstack_type 1
7040  */
7041 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){
7042     return event[5];
7043 }
7044 /**
7045  * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7046  * @param event packet
7047  * @return recovery_type
7048  * @note: btstack_type 1
7049  */
7050 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){
7051     return event[6];
7052 }
7053 /**
7054  * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7055  * @param event packet
7056  * @return maximum_recovery_window_size
7057  * @note: btstack_type 1
7058  */
7059 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){
7060     return event[7];
7061 }
7062 /**
7063  * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
7064  * @param event packet
7065  * @return maximum_number_media_packets
7066  * @note: btstack_type 1
7067  */
7068 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){
7069     return event[8];
7070 }
7071 
7072 /**
7073  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7074  * @param event packet
7075  * @return avdtp_cid
7076  * @note: btstack_type 2
7077  */
7078 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){
7079     return little_endian_read_16(event, 3);
7080 }
7081 /**
7082  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7083  * @param event packet
7084  * @return remote_seid
7085  * @note: btstack_type 1
7086  */
7087 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){
7088     return event[5];
7089 }
7090 /**
7091  * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7092  * @param event packet
7093  * @return cp_type
7094  * @note: btstack_type 2
7095  */
7096 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){
7097     return little_endian_read_16(event, 6);
7098 }
7099 /**
7100  * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7101  * @param event packet
7102  * @return cp_type_value_len
7103  * @note: btstack_type L
7104  */
7105 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){
7106     return little_endian_read_16(event, 8);
7107 }
7108 /**
7109  * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
7110  * @param event packet
7111  * @return cp_type_value
7112  * @note: btstack_type V
7113  */
7114 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){
7115     return &event[10];
7116 }
7117 
7118 /**
7119  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7120  * @param event packet
7121  * @return avdtp_cid
7122  * @note: btstack_type 2
7123  */
7124 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){
7125     return little_endian_read_16(event, 3);
7126 }
7127 /**
7128  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7129  * @param event packet
7130  * @return remote_seid
7131  * @note: btstack_type 1
7132  */
7133 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){
7134     return event[5];
7135 }
7136 /**
7137  * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7138  * @param event packet
7139  * @return fragmentation
7140  * @note: btstack_type 1
7141  */
7142 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){
7143     return event[6];
7144 }
7145 /**
7146  * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7147  * @param event packet
7148  * @return transport_identifiers_num
7149  * @note: btstack_type 1
7150  */
7151 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){
7152     return event[7];
7153 }
7154 /**
7155  * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7156  * @param event packet
7157  * @return transport_session_identifier_1
7158  * @note: btstack_type 1
7159  */
7160 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){
7161     return event[8];
7162 }
7163 /**
7164  * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7165  * @param event packet
7166  * @return transport_session_identifier_2
7167  * @note: btstack_type 1
7168  */
7169 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){
7170     return event[9];
7171 }
7172 /**
7173  * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7174  * @param event packet
7175  * @return transport_session_identifier_3
7176  * @note: btstack_type 1
7177  */
7178 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){
7179     return event[10];
7180 }
7181 /**
7182  * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7183  * @param event packet
7184  * @return tcid_1
7185  * @note: btstack_type 1
7186  */
7187 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){
7188     return event[11];
7189 }
7190 /**
7191  * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7192  * @param event packet
7193  * @return tcid_2
7194  * @note: btstack_type 1
7195  */
7196 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){
7197     return event[12];
7198 }
7199 /**
7200  * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
7201  * @param event packet
7202  * @return tcid_3
7203  * @note: btstack_type 1
7204  */
7205 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){
7206     return event[13];
7207 }
7208 
7209 /**
7210  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
7211  * @param event packet
7212  * @return avdtp_cid
7213  * @note: btstack_type 2
7214  */
7215 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){
7216     return little_endian_read_16(event, 3);
7217 }
7218 /**
7219  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
7220  * @param event packet
7221  * @return remote_seid
7222  * @note: btstack_type 1
7223  */
7224 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
7225     return event[5];
7226 }
7227 
7228 /**
7229  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7230  * @param event packet
7231  * @return avdtp_cid
7232  * @note: btstack_type 2
7233  */
7234 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){
7235     return little_endian_read_16(event, 3);
7236 }
7237 /**
7238  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7239  * @param event packet
7240  * @return remote_seid
7241  * @note: btstack_type 1
7242  */
7243 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){
7244     return event[5];
7245 }
7246 /**
7247  * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7248  * @param event packet
7249  * @return back_ch
7250  * @note: btstack_type 1
7251  */
7252 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){
7253     return event[6];
7254 }
7255 /**
7256  * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7257  * @param event packet
7258  * @return media
7259  * @note: btstack_type 1
7260  */
7261 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){
7262     return event[7];
7263 }
7264 /**
7265  * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
7266  * @param event packet
7267  * @return recovery
7268  * @note: btstack_type 1
7269  */
7270 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){
7271     return event[8];
7272 }
7273 
7274 /**
7275  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
7276  * @param event packet
7277  * @return avdtp_cid
7278  * @note: btstack_type 2
7279  */
7280 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){
7281     return little_endian_read_16(event, 3);
7282 }
7283 /**
7284  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
7285  * @param event packet
7286  * @return remote_seid
7287  * @note: btstack_type 1
7288  */
7289 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
7290     return event[5];
7291 }
7292 
7293 /**
7294  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7295  * @param event packet
7296  * @return avdtp_cid
7297  * @note: btstack_type 2
7298  */
7299 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){
7300     return little_endian_read_16(event, 3);
7301 }
7302 /**
7303  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7304  * @param event packet
7305  * @return local_seid
7306  * @note: btstack_type 1
7307  */
7308 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
7309     return event[5];
7310 }
7311 /**
7312  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7313  * @param event packet
7314  * @return remote_seid
7315  * @note: btstack_type 1
7316  */
7317 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
7318     return event[6];
7319 }
7320 /**
7321  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7322  * @param event packet
7323  * @return reconfigure
7324  * @note: btstack_type 1
7325  */
7326 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
7327     return event[7];
7328 }
7329 /**
7330  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7331  * @param event packet
7332  * @return media_type
7333  * @note: btstack_type 1
7334  */
7335 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
7336     return event[8];
7337 }
7338 /**
7339  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7340  * @param event packet
7341  * @return sampling_frequency
7342  * @note: btstack_type 2
7343  */
7344 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
7345     return little_endian_read_16(event, 9);
7346 }
7347 /**
7348  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7349  * @param event packet
7350  * @return channel_mode
7351  * @note: btstack_type 1
7352  */
7353 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
7354     return event[11];
7355 }
7356 /**
7357  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7358  * @param event packet
7359  * @return num_channels
7360  * @note: btstack_type 1
7361  */
7362 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
7363     return event[12];
7364 }
7365 /**
7366  * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7367  * @param event packet
7368  * @return block_length
7369  * @note: btstack_type 1
7370  */
7371 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
7372     return event[13];
7373 }
7374 /**
7375  * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7376  * @param event packet
7377  * @return subbands
7378  * @note: btstack_type 1
7379  */
7380 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
7381     return event[14];
7382 }
7383 /**
7384  * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7385  * @param event packet
7386  * @return allocation_method
7387  * @note: btstack_type 1
7388  */
7389 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
7390     return event[15];
7391 }
7392 /**
7393  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7394  * @param event packet
7395  * @return min_bitpool_value
7396  * @note: btstack_type 1
7397  */
7398 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
7399     return event[16];
7400 }
7401 /**
7402  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7403  * @param event packet
7404  * @return max_bitpool_value
7405  * @note: btstack_type 1
7406  */
7407 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
7408     return event[17];
7409 }
7410 
7411 /**
7412  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7413  * @param event packet
7414  * @return avdtp_cid
7415  * @note: btstack_type 2
7416  */
7417 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){
7418     return little_endian_read_16(event, 3);
7419 }
7420 /**
7421  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7422  * @param event packet
7423  * @return local_seid
7424  * @note: btstack_type 1
7425  */
7426 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){
7427     return event[5];
7428 }
7429 /**
7430  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7431  * @param event packet
7432  * @return remote_seid
7433  * @note: btstack_type 1
7434  */
7435 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){
7436     return event[6];
7437 }
7438 /**
7439  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7440  * @param event packet
7441  * @return reconfigure
7442  * @note: btstack_type 1
7443  */
7444 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){
7445     return event[7];
7446 }
7447 /**
7448  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7449  * @param event packet
7450  * @return media_type
7451  * @note: btstack_type 1
7452  */
7453 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){
7454     return event[8];
7455 }
7456 /**
7457  * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7458  * @param event packet
7459  * @return layer
7460  * @note: btstack_type 1
7461  */
7462 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){
7463     return event[9];
7464 }
7465 /**
7466  * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7467  * @param event packet
7468  * @return crc
7469  * @note: btstack_type 1
7470  */
7471 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){
7472     return event[10];
7473 }
7474 /**
7475  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7476  * @param event packet
7477  * @return channel_mode
7478  * @note: btstack_type 1
7479  */
7480 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){
7481     return event[11];
7482 }
7483 /**
7484  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7485  * @param event packet
7486  * @return num_channels
7487  * @note: btstack_type 1
7488  */
7489 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){
7490     return event[12];
7491 }
7492 /**
7493  * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7494  * @param event packet
7495  * @return media_payload_format
7496  * @note: btstack_type 1
7497  */
7498 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){
7499     return event[13];
7500 }
7501 /**
7502  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7503  * @param event packet
7504  * @return sampling_frequency
7505  * @note: btstack_type 2
7506  */
7507 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){
7508     return little_endian_read_16(event, 14);
7509 }
7510 /**
7511  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7512  * @param event packet
7513  * @return vbr
7514  * @note: btstack_type 1
7515  */
7516 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){
7517     return event[16];
7518 }
7519 /**
7520  * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
7521  * @param event packet
7522  * @return bit_rate_index
7523  * @note: btstack_type 1
7524  */
7525 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){
7526     return event[17];
7527 }
7528 
7529 /**
7530  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7531  * @param event packet
7532  * @return avdtp_cid
7533  * @note: btstack_type 2
7534  */
7535 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){
7536     return little_endian_read_16(event, 3);
7537 }
7538 /**
7539  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7540  * @param event packet
7541  * @return local_seid
7542  * @note: btstack_type 1
7543  */
7544 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){
7545     return event[5];
7546 }
7547 /**
7548  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7549  * @param event packet
7550  * @return remote_seid
7551  * @note: btstack_type 1
7552  */
7553 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){
7554     return event[6];
7555 }
7556 /**
7557  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7558  * @param event packet
7559  * @return reconfigure
7560  * @note: btstack_type 1
7561  */
7562 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){
7563     return event[7];
7564 }
7565 /**
7566  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7567  * @param event packet
7568  * @return media_type
7569  * @note: btstack_type 1
7570  */
7571 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){
7572     return event[8];
7573 }
7574 /**
7575  * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7576  * @param event packet
7577  * @return object_type
7578  * @note: btstack_type 1
7579  */
7580 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){
7581     return event[9];
7582 }
7583 /**
7584  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7585  * @param event packet
7586  * @return sampling_frequency
7587  * @note: btstack_type 3
7588  */
7589 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){
7590     return little_endian_read_24(event, 10);
7591 }
7592 /**
7593  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7594  * @param event packet
7595  * @return num_channels
7596  * @note: btstack_type 1
7597  */
7598 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){
7599     return event[13];
7600 }
7601 /**
7602  * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7603  * @param event packet
7604  * @return bit_rate
7605  * @note: btstack_type 3
7606  */
7607 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
7608     return little_endian_read_24(event, 14);
7609 }
7610 /**
7611  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
7612  * @param event packet
7613  * @return vbr
7614  * @note: btstack_type 1
7615  */
7616 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
7617     return event[17];
7618 }
7619 
7620 /**
7621  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7622  * @param event packet
7623  * @return avdtp_cid
7624  * @note: btstack_type 2
7625  */
7626 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){
7627     return little_endian_read_16(event, 3);
7628 }
7629 /**
7630  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7631  * @param event packet
7632  * @return local_seid
7633  * @note: btstack_type 1
7634  */
7635 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){
7636     return event[5];
7637 }
7638 /**
7639  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7640  * @param event packet
7641  * @return remote_seid
7642  * @note: btstack_type 1
7643  */
7644 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){
7645     return event[6];
7646 }
7647 /**
7648  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7649  * @param event packet
7650  * @return reconfigure
7651  * @note: btstack_type 1
7652  */
7653 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){
7654     return event[7];
7655 }
7656 /**
7657  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7658  * @param event packet
7659  * @return media_type
7660  * @note: btstack_type 1
7661  */
7662 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){
7663     return event[8];
7664 }
7665 /**
7666  * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7667  * @param event packet
7668  * @return version
7669  * @note: btstack_type 1
7670  */
7671 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){
7672     return event[9];
7673 }
7674 /**
7675  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7676  * @param event packet
7677  * @return channel_mode
7678  * @note: btstack_type 1
7679  */
7680 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){
7681     return event[10];
7682 }
7683 /**
7684  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7685  * @param event packet
7686  * @return num_channels
7687  * @note: btstack_type 1
7688  */
7689 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){
7690     return event[11];
7691 }
7692 /**
7693  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7694  * @param event packet
7695  * @return sampling_frequency
7696  * @note: btstack_type 2
7697  */
7698 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){
7699     return little_endian_read_16(event, 12);
7700 }
7701 /**
7702  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7703  * @param event packet
7704  * @return vbr
7705  * @note: btstack_type 1
7706  */
7707 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){
7708     return event[14];
7709 }
7710 /**
7711  * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7712  * @param event packet
7713  * @return bit_rate_index
7714  * @note: btstack_type 1
7715  */
7716 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){
7717     return event[15];
7718 }
7719 /**
7720  * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
7721  * @param event packet
7722  * @return maximum_sul
7723  * @note: btstack_type 2
7724  */
7725 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){
7726     return little_endian_read_16(event, 16);
7727 }
7728 
7729 /**
7730  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7731  * @param event packet
7732  * @return avdtp_cid
7733  * @note: btstack_type 2
7734  */
7735 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){
7736     return little_endian_read_16(event, 3);
7737 }
7738 /**
7739  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7740  * @param event packet
7741  * @return local_seid
7742  * @note: btstack_type 1
7743  */
7744 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
7745     return event[5];
7746 }
7747 /**
7748  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7749  * @param event packet
7750  * @return remote_seid
7751  * @note: btstack_type 1
7752  */
7753 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
7754     return event[6];
7755 }
7756 /**
7757  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7758  * @param event packet
7759  * @return reconfigure
7760  * @note: btstack_type 1
7761  */
7762 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
7763     return event[7];
7764 }
7765 /**
7766  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7767  * @param event packet
7768  * @return media_type
7769  * @note: btstack_type 1
7770  */
7771 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
7772     return event[8];
7773 }
7774 /**
7775  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7776  * @param event packet
7777  * @return media_codec_type
7778  * @note: btstack_type 2
7779  */
7780 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
7781     return little_endian_read_16(event, 9);
7782 }
7783 /**
7784  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7785  * @param event packet
7786  * @return media_codec_information_len
7787  * @note: btstack_type L
7788  */
7789 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
7790     return little_endian_read_16(event, 11);
7791 }
7792 /**
7793  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
7794  * @param event packet
7795  * @return media_codec_information
7796  * @note: btstack_type V
7797  */
7798 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
7799     return &event[13];
7800 }
7801 
7802 /**
7803  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
7804  * @param event packet
7805  * @return avdtp_cid
7806  * @note: btstack_type 2
7807  */
7808 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){
7809     return little_endian_read_16(event, 3);
7810 }
7811 /**
7812  * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
7813  * @param event packet
7814  * @param Pointer to storage for bd_addr
7815  * @note: btstack_type B
7816  */
7817 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
7818     reverse_bytes(&event[5], bd_addr, 6);
7819 }
7820 /**
7821  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
7822  * @param event packet
7823  * @return local_seid
7824  * @note: btstack_type 1
7825  */
7826 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){
7827     return event[11];
7828 }
7829 /**
7830  * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
7831  * @param event packet
7832  * @return remote_seid
7833  * @note: btstack_type 1
7834  */
7835 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){
7836     return event[12];
7837 }
7838 /**
7839  * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
7840  * @param event packet
7841  * @return status
7842  * @note: btstack_type 1
7843  */
7844 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){
7845     return event[13];
7846 }
7847 
7848 /**
7849  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
7850  * @param event packet
7851  * @return avdtp_cid
7852  * @note: btstack_type 2
7853  */
7854 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){
7855     return little_endian_read_16(event, 3);
7856 }
7857 /**
7858  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
7859  * @param event packet
7860  * @return local_seid
7861  * @note: btstack_type 1
7862  */
7863 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){
7864     return event[5];
7865 }
7866 
7867 /**
7868  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
7869  * @param event packet
7870  * @return avdtp_cid
7871  * @note: btstack_type 2
7872  */
7873 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){
7874     return little_endian_read_16(event, 3);
7875 }
7876 /**
7877  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
7878  * @param event packet
7879  * @return local_seid
7880  * @note: btstack_type 1
7881  */
7882 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
7883     return event[5];
7884 }
7885 /**
7886  * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
7887  * @param event packet
7888  * @return sequence_number
7889  * @note: btstack_type 2
7890  */
7891 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){
7892     return little_endian_read_16(event, 6);
7893 }
7894 
7895 /**
7896  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE
7897  * @param event packet
7898  * @return avdtp_cid
7899  * @note: btstack_type 2
7900  */
7901 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){
7902     return little_endian_read_16(event, 3);
7903 }
7904 
7905 /**
7906  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
7907  * @param event packet
7908  * @return avdtp_cid
7909  * @note: btstack_type 2
7910  */
7911 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){
7912     return little_endian_read_16(event, 3);
7913 }
7914 /**
7915  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
7916  * @param event packet
7917  * @return local_seid
7918  * @note: btstack_type 1
7919  */
7920 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){
7921     return event[5];
7922 }
7923 /**
7924  * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
7925  * @param event packet
7926  * @return delay_100us
7927  * @note: btstack_type 2
7928  */
7929 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){
7930     return little_endian_read_16(event, 6);
7931 }
7932 
7933 /**
7934  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
7935  * @param event packet
7936  * @return a2dp_cid
7937  * @note: btstack_type 2
7938  */
7939 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){
7940     return little_endian_read_16(event, 3);
7941 }
7942 /**
7943  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
7944  * @param event packet
7945  * @return local_seid
7946  * @note: btstack_type 1
7947  */
7948 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
7949     return event[5];
7950 }
7951 
7952 /**
7953  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7954  * @param event packet
7955  * @return a2dp_cid
7956  * @note: btstack_type 2
7957  */
7958 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){
7959     return little_endian_read_16(event, 3);
7960 }
7961 /**
7962  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7963  * @param event packet
7964  * @return local_seid
7965  * @note: btstack_type 1
7966  */
7967 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
7968     return event[5];
7969 }
7970 /**
7971  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7972  * @param event packet
7973  * @return remote_seid
7974  * @note: btstack_type 1
7975  */
7976 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
7977     return event[6];
7978 }
7979 /**
7980  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7981  * @param event packet
7982  * @return reconfigure
7983  * @note: btstack_type 1
7984  */
7985 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
7986     return event[7];
7987 }
7988 /**
7989  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7990  * @param event packet
7991  * @return media_type
7992  * @note: btstack_type 1
7993  */
7994 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
7995     return event[8];
7996 }
7997 /**
7998  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
7999  * @param event packet
8000  * @return sampling_frequency
8001  * @note: btstack_type 2
8002  */
8003 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
8004     return little_endian_read_16(event, 9);
8005 }
8006 /**
8007  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8008  * @param event packet
8009  * @return channel_mode
8010  * @note: btstack_type 1
8011  */
8012 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
8013     return event[11];
8014 }
8015 /**
8016  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8017  * @param event packet
8018  * @return num_channels
8019  * @note: btstack_type 1
8020  */
8021 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
8022     return event[12];
8023 }
8024 /**
8025  * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8026  * @param event packet
8027  * @return block_length
8028  * @note: btstack_type 1
8029  */
8030 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
8031     return event[13];
8032 }
8033 /**
8034  * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8035  * @param event packet
8036  * @return subbands
8037  * @note: btstack_type 1
8038  */
8039 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
8040     return event[14];
8041 }
8042 /**
8043  * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8044  * @param event packet
8045  * @return allocation_method
8046  * @note: btstack_type 1
8047  */
8048 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
8049     return event[15];
8050 }
8051 /**
8052  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8053  * @param event packet
8054  * @return min_bitpool_value
8055  * @note: btstack_type 1
8056  */
8057 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
8058     return event[16];
8059 }
8060 /**
8061  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8062  * @param event packet
8063  * @return max_bitpool_value
8064  * @note: btstack_type 1
8065  */
8066 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
8067     return event[17];
8068 }
8069 
8070 /**
8071  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8072  * @param event packet
8073  * @return a2dp_cid
8074  * @note: btstack_type 2
8075  */
8076 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){
8077     return little_endian_read_16(event, 3);
8078 }
8079 /**
8080  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8081  * @param event packet
8082  * @return local_seid
8083  * @note: btstack_type 1
8084  */
8085 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){
8086     return event[5];
8087 }
8088 /**
8089  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8090  * @param event packet
8091  * @return remote_seid
8092  * @note: btstack_type 1
8093  */
8094 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){
8095     return event[6];
8096 }
8097 /**
8098  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8099  * @param event packet
8100  * @return reconfigure
8101  * @note: btstack_type 1
8102  */
8103 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){
8104     return event[7];
8105 }
8106 /**
8107  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8108  * @param event packet
8109  * @return media_type
8110  * @note: btstack_type 1
8111  */
8112 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){
8113     return event[8];
8114 }
8115 /**
8116  * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8117  * @param event packet
8118  * @return layer
8119  * @note: btstack_type 1
8120  */
8121 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){
8122     return event[9];
8123 }
8124 /**
8125  * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8126  * @param event packet
8127  * @return crc
8128  * @note: btstack_type 1
8129  */
8130 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){
8131     return event[10];
8132 }
8133 /**
8134  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8135  * @param event packet
8136  * @return channel_mode
8137  * @note: btstack_type 1
8138  */
8139 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){
8140     return event[11];
8141 }
8142 /**
8143  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8144  * @param event packet
8145  * @return num_channels
8146  * @note: btstack_type 1
8147  */
8148 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){
8149     return event[12];
8150 }
8151 /**
8152  * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8153  * @param event packet
8154  * @return media_payload_format
8155  * @note: btstack_type 1
8156  */
8157 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){
8158     return event[13];
8159 }
8160 /**
8161  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8162  * @param event packet
8163  * @return sampling_frequency
8164  * @note: btstack_type 2
8165  */
8166 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){
8167     return little_endian_read_16(event, 14);
8168 }
8169 /**
8170  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8171  * @param event packet
8172  * @return vbr
8173  * @note: btstack_type 1
8174  */
8175 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){
8176     return event[16];
8177 }
8178 /**
8179  * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8180  * @param event packet
8181  * @return bit_rate_index
8182  * @note: btstack_type 1
8183  */
8184 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){
8185     return event[17];
8186 }
8187 
8188 /**
8189  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8190  * @param event packet
8191  * @return a2dp_cid
8192  * @note: btstack_type 2
8193  */
8194 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){
8195     return little_endian_read_16(event, 3);
8196 }
8197 /**
8198  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8199  * @param event packet
8200  * @return local_seid
8201  * @note: btstack_type 1
8202  */
8203 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){
8204     return event[5];
8205 }
8206 /**
8207  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8208  * @param event packet
8209  * @return remote_seid
8210  * @note: btstack_type 1
8211  */
8212 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){
8213     return event[6];
8214 }
8215 /**
8216  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8217  * @param event packet
8218  * @return reconfigure
8219  * @note: btstack_type 1
8220  */
8221 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){
8222     return event[7];
8223 }
8224 /**
8225  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8226  * @param event packet
8227  * @return media_type
8228  * @note: btstack_type 1
8229  */
8230 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){
8231     return event[8];
8232 }
8233 /**
8234  * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8235  * @param event packet
8236  * @return object_type
8237  * @note: btstack_type 1
8238  */
8239 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){
8240     return event[9];
8241 }
8242 /**
8243  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8244  * @param event packet
8245  * @return sampling_frequency
8246  * @note: btstack_type 3
8247  */
8248 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){
8249     return little_endian_read_24(event, 10);
8250 }
8251 /**
8252  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8253  * @param event packet
8254  * @return num_channels
8255  * @note: btstack_type 1
8256  */
8257 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){
8258     return event[13];
8259 }
8260 /**
8261  * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8262  * @param event packet
8263  * @return bit_rate
8264  * @note: btstack_type 3
8265  */
8266 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
8267     return little_endian_read_24(event, 14);
8268 }
8269 /**
8270  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8271  * @param event packet
8272  * @return vbr
8273  * @note: btstack_type 1
8274  */
8275 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
8276     return event[17];
8277 }
8278 
8279 /**
8280  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8281  * @param event packet
8282  * @return a2dp_cid
8283  * @note: btstack_type 2
8284  */
8285 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){
8286     return little_endian_read_16(event, 3);
8287 }
8288 /**
8289  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8290  * @param event packet
8291  * @return local_seid
8292  * @note: btstack_type 1
8293  */
8294 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){
8295     return event[5];
8296 }
8297 /**
8298  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8299  * @param event packet
8300  * @return remote_seid
8301  * @note: btstack_type 1
8302  */
8303 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){
8304     return event[6];
8305 }
8306 /**
8307  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8308  * @param event packet
8309  * @return reconfigure
8310  * @note: btstack_type 1
8311  */
8312 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){
8313     return event[7];
8314 }
8315 /**
8316  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8317  * @param event packet
8318  * @return media_type
8319  * @note: btstack_type 1
8320  */
8321 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){
8322     return event[8];
8323 }
8324 /**
8325  * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8326  * @param event packet
8327  * @return version
8328  * @note: btstack_type 1
8329  */
8330 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){
8331     return event[9];
8332 }
8333 /**
8334  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8335  * @param event packet
8336  * @return channel_mode
8337  * @note: btstack_type 1
8338  */
8339 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){
8340     return event[10];
8341 }
8342 /**
8343  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8344  * @param event packet
8345  * @return num_channels
8346  * @note: btstack_type 1
8347  */
8348 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){
8349     return event[11];
8350 }
8351 /**
8352  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8353  * @param event packet
8354  * @return sampling_frequency
8355  * @note: btstack_type 2
8356  */
8357 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){
8358     return little_endian_read_16(event, 12);
8359 }
8360 /**
8361  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8362  * @param event packet
8363  * @return vbr
8364  * @note: btstack_type 1
8365  */
8366 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){
8367     return event[14];
8368 }
8369 /**
8370  * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8371  * @param event packet
8372  * @return bit_rate_index
8373  * @note: btstack_type 1
8374  */
8375 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){
8376     return event[15];
8377 }
8378 /**
8379  * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
8380  * @param event packet
8381  * @return maximum_sul
8382  * @note: btstack_type 2
8383  */
8384 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){
8385     return little_endian_read_16(event, 16);
8386 }
8387 
8388 /**
8389  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8390  * @param event packet
8391  * @return a2dp_cid
8392  * @note: btstack_type 2
8393  */
8394 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){
8395     return little_endian_read_16(event, 3);
8396 }
8397 /**
8398  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8399  * @param event packet
8400  * @return local_seid
8401  * @note: btstack_type 1
8402  */
8403 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
8404     return event[5];
8405 }
8406 /**
8407  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8408  * @param event packet
8409  * @return remote_seid
8410  * @note: btstack_type 1
8411  */
8412 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
8413     return event[6];
8414 }
8415 /**
8416  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8417  * @param event packet
8418  * @return reconfigure
8419  * @note: btstack_type 1
8420  */
8421 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
8422     return event[7];
8423 }
8424 /**
8425  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8426  * @param event packet
8427  * @return media_type
8428  * @note: btstack_type 1
8429  */
8430 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
8431     return event[8];
8432 }
8433 /**
8434  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8435  * @param event packet
8436  * @return media_codec_type
8437  * @note: btstack_type 2
8438  */
8439 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
8440     return little_endian_read_16(event, 9);
8441 }
8442 /**
8443  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8444  * @param event packet
8445  * @return media_codec_information_len
8446  * @note: btstack_type L
8447  */
8448 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
8449     return little_endian_read_16(event, 11);
8450 }
8451 /**
8452  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
8453  * @param event packet
8454  * @return media_codec_information
8455  * @note: btstack_type V
8456  */
8457 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
8458     return &event[13];
8459 }
8460 
8461 /**
8462  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
8463  * @param event packet
8464  * @return a2dp_cid
8465  * @note: btstack_type 2
8466  */
8467 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){
8468     return little_endian_read_16(event, 3);
8469 }
8470 /**
8471  * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED
8472  * @param event packet
8473  * @param Pointer to storage for bd_addr
8474  * @note: btstack_type B
8475  */
8476 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
8477     reverse_bytes(&event[5], bd_addr, 6);
8478 }
8479 /**
8480  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
8481  * @param event packet
8482  * @return local_seid
8483  * @note: btstack_type 1
8484  */
8485 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){
8486     return event[11];
8487 }
8488 /**
8489  * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
8490  * @param event packet
8491  * @return remote_seid
8492  * @note: btstack_type 1
8493  */
8494 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){
8495     return event[12];
8496 }
8497 /**
8498  * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED
8499  * @param event packet
8500  * @return status
8501  * @note: btstack_type 1
8502  */
8503 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){
8504     return event[13];
8505 }
8506 
8507 /**
8508  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED
8509  * @param event packet
8510  * @return a2dp_cid
8511  * @note: btstack_type 2
8512  */
8513 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){
8514     return little_endian_read_16(event, 3);
8515 }
8516 /**
8517  * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED
8518  * @param event packet
8519  * @return local_seid
8520  * @note: btstack_type 1
8521  */
8522 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){
8523     return event[5];
8524 }
8525 
8526 /**
8527  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED
8528  * @param event packet
8529  * @return a2dp_cid
8530  * @note: btstack_type 2
8531  */
8532 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){
8533     return little_endian_read_16(event, 3);
8534 }
8535 /**
8536  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED
8537  * @param event packet
8538  * @return local_seid
8539  * @note: btstack_type 1
8540  */
8541 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){
8542     return event[5];
8543 }
8544 
8545 /**
8546  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED
8547  * @param event packet
8548  * @return a2dp_cid
8549  * @note: btstack_type 2
8550  */
8551 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){
8552     return little_endian_read_16(event, 3);
8553 }
8554 /**
8555  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED
8556  * @param event packet
8557  * @return local_seid
8558  * @note: btstack_type 1
8559  */
8560 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){
8561     return event[5];
8562 }
8563 
8564 /**
8565  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED
8566  * @param event packet
8567  * @return a2dp_cid
8568  * @note: btstack_type 2
8569  */
8570 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){
8571     return little_endian_read_16(event, 3);
8572 }
8573 /**
8574  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED
8575  * @param event packet
8576  * @return local_seid
8577  * @note: btstack_type 1
8578  */
8579 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){
8580     return event[5];
8581 }
8582 
8583 /**
8584  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED
8585  * @param event packet
8586  * @return a2dp_cid
8587  * @note: btstack_type 2
8588  */
8589 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){
8590     return little_endian_read_16(event, 3);
8591 }
8592 /**
8593  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED
8594  * @param event packet
8595  * @return local_seid
8596  * @note: btstack_type 1
8597  */
8598 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){
8599     return event[5];
8600 }
8601 
8602 /**
8603  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
8604  * @param event packet
8605  * @return a2dp_cid
8606  * @note: btstack_type 2
8607  */
8608 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){
8609     return little_endian_read_16(event, 3);
8610 }
8611 /**
8612  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
8613  * @param event packet
8614  * @return local_seid
8615  * @note: btstack_type 1
8616  */
8617 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){
8618     return event[5];
8619 }
8620 /**
8621  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED
8622  * @param event packet
8623  * @return signal_identifier
8624  * @note: btstack_type 1
8625  */
8626 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){
8627     return event[6];
8628 }
8629 
8630 /**
8631  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED
8632  * @param event packet
8633  * @return a2dp_cid
8634  * @note: btstack_type 2
8635  */
8636 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){
8637     return little_endian_read_16(event, 3);
8638 }
8639 /**
8640  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED
8641  * @param event packet
8642  * @return local_seid
8643  * @note: btstack_type 1
8644  */
8645 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){
8646     return event[5];
8647 }
8648 /**
8649  * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED
8650  * @param event packet
8651  * @return is_initiator
8652  * @note: btstack_type 1
8653  */
8654 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){
8655     return event[6];
8656 }
8657 /**
8658  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED
8659  * @param event packet
8660  * @return signal_identifier
8661  * @note: btstack_type 1
8662  */
8663 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){
8664     return event[7];
8665 }
8666 
8667 /**
8668  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
8669  * @param event packet
8670  * @return a2dp_cid
8671  * @note: btstack_type 2
8672  */
8673 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){
8674     return little_endian_read_16(event, 3);
8675 }
8676 /**
8677  * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
8678  * @param event packet
8679  * @param Pointer to storage for bd_addr
8680  * @note: btstack_type B
8681  */
8682 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
8683     reverse_bytes(&event[5], bd_addr, 6);
8684 }
8685 /**
8686  * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
8687  * @param event packet
8688  * @return con_handle
8689  * @note: btstack_type 2
8690  */
8691 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){
8692     return little_endian_read_16(event, 11);
8693 }
8694 /**
8695  * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
8696  * @param event packet
8697  * @return status
8698  * @note: btstack_type 1
8699  */
8700 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){
8701     return event[13];
8702 }
8703 
8704 /**
8705  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
8706  * @param event packet
8707  * @return a2dp_cid
8708  * @note: btstack_type 2
8709  */
8710 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){
8711     return little_endian_read_16(event, 3);
8712 }
8713 
8714 /**
8715  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
8716  * @param event packet
8717  * @return a2dp_cid
8718  * @note: btstack_type 2
8719  */
8720 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){
8721     return little_endian_read_16(event, 3);
8722 }
8723 /**
8724  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
8725  * @param event packet
8726  * @return local_seid
8727  * @note: btstack_type 1
8728  */
8729 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){
8730     return event[5];
8731 }
8732 /**
8733  * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED
8734  * @param event packet
8735  * @return status
8736  * @note: btstack_type 1
8737  */
8738 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){
8739     return event[6];
8740 }
8741 
8742 /**
8743  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8744  * @param event packet
8745  * @return a2dp_cid
8746  * @note: btstack_type 2
8747  */
8748 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){
8749     return little_endian_read_16(event, 3);
8750 }
8751 /**
8752  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8753  * @param event packet
8754  * @return remote_seid
8755  * @note: btstack_type 1
8756  */
8757 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
8758     return event[5];
8759 }
8760 /**
8761  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8762  * @param event packet
8763  * @return media_type
8764  * @note: btstack_type 1
8765  */
8766 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
8767     return event[6];
8768 }
8769 /**
8770  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8771  * @param event packet
8772  * @return sampling_frequency_bitmap
8773  * @note: btstack_type 1
8774  */
8775 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8776     return event[7];
8777 }
8778 /**
8779  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8780  * @param event packet
8781  * @return channel_mode_bitmap
8782  * @note: btstack_type 1
8783  */
8784 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
8785     return event[8];
8786 }
8787 /**
8788  * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8789  * @param event packet
8790  * @return block_length_bitmap
8791  * @note: btstack_type 1
8792  */
8793 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
8794     return event[9];
8795 }
8796 /**
8797  * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8798  * @param event packet
8799  * @return subbands_bitmap
8800  * @note: btstack_type 1
8801  */
8802 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
8803     return event[10];
8804 }
8805 /**
8806  * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8807  * @param event packet
8808  * @return allocation_method_bitmap
8809  * @note: btstack_type 1
8810  */
8811 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
8812     return event[11];
8813 }
8814 /**
8815  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8816  * @param event packet
8817  * @return min_bitpool_value
8818  * @note: btstack_type 1
8819  */
8820 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
8821     return event[12];
8822 }
8823 /**
8824  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8825  * @param event packet
8826  * @return max_bitpool_value
8827  * @note: btstack_type 1
8828  */
8829 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
8830     return event[13];
8831 }
8832 
8833 /**
8834  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8835  * @param event packet
8836  * @return a2dp_cid
8837  * @note: btstack_type 2
8838  */
8839 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){
8840     return little_endian_read_16(event, 3);
8841 }
8842 /**
8843  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8844  * @param event packet
8845  * @return remote_seid
8846  * @note: btstack_type 1
8847  */
8848 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){
8849     return event[5];
8850 }
8851 /**
8852  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8853  * @param event packet
8854  * @return media_type
8855  * @note: btstack_type 1
8856  */
8857 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){
8858     return event[6];
8859 }
8860 /**
8861  * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8862  * @param event packet
8863  * @return layer_bitmap
8864  * @note: btstack_type 1
8865  */
8866 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){
8867     return event[7];
8868 }
8869 /**
8870  * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8871  * @param event packet
8872  * @return crc
8873  * @note: btstack_type 1
8874  */
8875 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){
8876     return event[8];
8877 }
8878 /**
8879  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8880  * @param event packet
8881  * @return channel_mode_bitmap
8882  * @note: btstack_type 1
8883  */
8884 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){
8885     return event[9];
8886 }
8887 /**
8888  * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8889  * @param event packet
8890  * @return media_payload_format
8891  * @note: btstack_type 1
8892  */
8893 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){
8894     return event[10];
8895 }
8896 /**
8897  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8898  * @param event packet
8899  * @return sampling_frequency_bitmap
8900  * @note: btstack_type 1
8901  */
8902 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8903     return event[11];
8904 }
8905 /**
8906  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8907  * @param event packet
8908  * @return vbr
8909  * @note: btstack_type 1
8910  */
8911 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){
8912     return event[12];
8913 }
8914 /**
8915  * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8916  * @param event packet
8917  * @return bit_rate_index_bitmap
8918  * @note: btstack_type 2
8919  */
8920 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){
8921     return little_endian_read_16(event, 13);
8922 }
8923 
8924 /**
8925  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8926  * @param event packet
8927  * @return a2dp_cid
8928  * @note: btstack_type 2
8929  */
8930 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){
8931     return little_endian_read_16(event, 3);
8932 }
8933 /**
8934  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8935  * @param event packet
8936  * @return remote_seid
8937  * @note: btstack_type 1
8938  */
8939 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){
8940     return event[5];
8941 }
8942 /**
8943  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8944  * @param event packet
8945  * @return media_type
8946  * @note: btstack_type 1
8947  */
8948 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){
8949     return event[6];
8950 }
8951 /**
8952  * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8953  * @param event packet
8954  * @return object_type_bitmap
8955  * @note: btstack_type 1
8956  */
8957 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){
8958     return event[7];
8959 }
8960 /**
8961  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8962  * @param event packet
8963  * @return sampling_frequency_bitmap
8964  * @note: btstack_type 2
8965  */
8966 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8967     return little_endian_read_16(event, 8);
8968 }
8969 /**
8970  * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8971  * @param event packet
8972  * @return channels_bitmap
8973  * @note: btstack_type 1
8974  */
8975 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){
8976     return event[10];
8977 }
8978 /**
8979  * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8980  * @param event packet
8981  * @return bit_rate
8982  * @note: btstack_type 3
8983  */
8984 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){
8985     return little_endian_read_24(event, 11);
8986 }
8987 /**
8988  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8989  * @param event packet
8990  * @return vbr
8991  * @note: btstack_type 1
8992  */
8993 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){
8994     return event[14];
8995 }
8996 
8997 /**
8998  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8999  * @param event packet
9000  * @return a2dp_cid
9001  * @note: btstack_type 2
9002  */
9003 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){
9004     return little_endian_read_16(event, 3);
9005 }
9006 /**
9007  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9008  * @param event packet
9009  * @return remote_seid
9010  * @note: btstack_type 1
9011  */
9012 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){
9013     return event[5];
9014 }
9015 /**
9016  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9017  * @param event packet
9018  * @return media_type
9019  * @note: btstack_type 1
9020  */
9021 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){
9022     return event[6];
9023 }
9024 /**
9025  * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9026  * @param event packet
9027  * @return version
9028  * @note: btstack_type 1
9029  */
9030 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){
9031     return event[7];
9032 }
9033 /**
9034  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9035  * @param event packet
9036  * @return channel_mode_bitmap
9037  * @note: btstack_type 1
9038  */
9039 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){
9040     return event[8];
9041 }
9042 /**
9043  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9044  * @param event packet
9045  * @return sampling_frequency_bitmap
9046  * @note: btstack_type 1
9047  */
9048 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
9049     return event[9];
9050 }
9051 /**
9052  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9053  * @param event packet
9054  * @return vbr
9055  * @note: btstack_type 1
9056  */
9057 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){
9058     return event[10];
9059 }
9060 /**
9061  * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9062  * @param event packet
9063  * @return bit_rate_index_bitmap
9064  * @note: btstack_type 3
9065  */
9066 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){
9067     return little_endian_read_24(event, 11);
9068 }
9069 /**
9070  * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
9071  * @param event packet
9072  * @return maximum_sul
9073  * @note: btstack_type 2
9074  */
9075 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){
9076     return little_endian_read_16(event, 14);
9077 }
9078 
9079 /**
9080  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9081  * @param event packet
9082  * @return a2dp_cid
9083  * @note: btstack_type 2
9084  */
9085 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){
9086     return little_endian_read_16(event, 3);
9087 }
9088 /**
9089  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9090  * @param event packet
9091  * @return remote_seid
9092  * @note: btstack_type 1
9093  */
9094 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
9095     return event[5];
9096 }
9097 /**
9098  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9099  * @param event packet
9100  * @return media_type
9101  * @note: btstack_type 1
9102  */
9103 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
9104     return event[6];
9105 }
9106 /**
9107  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9108  * @param event packet
9109  * @return media_codec_type
9110  * @note: btstack_type 2
9111  */
9112 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
9113     return little_endian_read_16(event, 7);
9114 }
9115 /**
9116  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9117  * @param event packet
9118  * @return media_codec_information_len
9119  * @note: btstack_type L
9120  */
9121 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
9122     return little_endian_read_16(event, 9);
9123 }
9124 /**
9125  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
9126  * @param event packet
9127  * @return media_codec_information
9128  * @note: btstack_type V
9129  */
9130 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
9131     return &event[11];
9132 }
9133 
9134 /**
9135  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
9136  * @param event packet
9137  * @return a2dp_cid
9138  * @note: btstack_type 2
9139  */
9140 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){
9141     return little_endian_read_16(event, 3);
9142 }
9143 /**
9144  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
9145  * @param event packet
9146  * @return remote_seid
9147  * @note: btstack_type 1
9148  */
9149 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
9150     return event[5];
9151 }
9152 
9153 /**
9154  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
9155  * @param event packet
9156  * @return a2dp_cid
9157  * @note: btstack_type 2
9158  */
9159 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){
9160     return little_endian_read_16(event, 3);
9161 }
9162 /**
9163  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
9164  * @param event packet
9165  * @return local_seid
9166  * @note: btstack_type 1
9167  */
9168 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){
9169     return event[5];
9170 }
9171 /**
9172  * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
9173  * @param event packet
9174  * @return delay_100us
9175  * @note: btstack_type 2
9176  */
9177 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){
9178     return little_endian_read_16(event, 6);
9179 }
9180 
9181 /**
9182  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
9183  * @param event packet
9184  * @return a2dp_cid
9185  * @note: btstack_type 2
9186  */
9187 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){
9188     return little_endian_read_16(event, 3);
9189 }
9190 /**
9191  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
9192  * @param event packet
9193  * @return remote_seid
9194  * @note: btstack_type 1
9195  */
9196 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
9197     return event[5];
9198 }
9199 
9200 /**
9201  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE
9202  * @param event packet
9203  * @return a2dp_cid
9204  * @note: btstack_type 2
9205  */
9206 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){
9207     return little_endian_read_16(event, 3);
9208 }
9209 
9210 /**
9211  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
9212  * @param event packet
9213  * @return avrcp_cid
9214  * @note: btstack_type 2
9215  */
9216 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){
9217     return little_endian_read_16(event, 3);
9218 }
9219 /**
9220  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
9221  * @param event packet
9222  * @return command_type
9223  * @note: btstack_type 1
9224  */
9225 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){
9226     return event[5];
9227 }
9228 /**
9229  * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
9230  * @param event packet
9231  * @return play_status
9232  * @note: btstack_type 1
9233  */
9234 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){
9235     return event[6];
9236 }
9237 
9238 /**
9239  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
9240  * @param event packet
9241  * @return avrcp_cid
9242  * @note: btstack_type 2
9243  */
9244 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){
9245     return little_endian_read_16(event, 3);
9246 }
9247 /**
9248  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
9249  * @param event packet
9250  * @return command_type
9251  * @note: btstack_type 1
9252  */
9253 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){
9254     return event[5];
9255 }
9256 
9257 /**
9258  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END
9259  * @param event packet
9260  * @return avrcp_cid
9261  * @note: btstack_type 2
9262  */
9263 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){
9264     return little_endian_read_16(event, 3);
9265 }
9266 /**
9267  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END
9268  * @param event packet
9269  * @return command_type
9270  * @note: btstack_type 1
9271  */
9272 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){
9273     return event[5];
9274 }
9275 
9276 /**
9277  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START
9278  * @param event packet
9279  * @return avrcp_cid
9280  * @note: btstack_type 2
9281  */
9282 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){
9283     return little_endian_read_16(event, 3);
9284 }
9285 /**
9286  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START
9287  * @param event packet
9288  * @return command_type
9289  * @note: btstack_type 1
9290  */
9291 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){
9292     return event[5];
9293 }
9294 
9295 /**
9296  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
9297  * @param event packet
9298  * @return avrcp_cid
9299  * @note: btstack_type 2
9300  */
9301 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
9302     return little_endian_read_16(event, 3);
9303 }
9304 /**
9305  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
9306  * @param event packet
9307  * @return command_type
9308  * @note: btstack_type 1
9309  */
9310 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){
9311     return event[5];
9312 }
9313 /**
9314  * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
9315  * @param event packet
9316  * @return playback_position
9317  * @note: btstack_type 4
9318  */
9319 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){
9320     return little_endian_read_32(event, 6);
9321 }
9322 
9323 /**
9324  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
9325  * @param event packet
9326  * @return avrcp_cid
9327  * @note: btstack_type 2
9328  */
9329 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){
9330     return little_endian_read_16(event, 3);
9331 }
9332 /**
9333  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
9334  * @param event packet
9335  * @return command_type
9336  * @note: btstack_type 1
9337  */
9338 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){
9339     return event[5];
9340 }
9341 /**
9342  * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
9343  * @param event packet
9344  * @return battery_status
9345  * @note: btstack_type 1
9346  */
9347 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){
9348     return event[6];
9349 }
9350 
9351 /**
9352  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
9353  * @param event packet
9354  * @return avrcp_cid
9355  * @note: btstack_type 2
9356  */
9357 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){
9358     return little_endian_read_16(event, 3);
9359 }
9360 /**
9361  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
9362  * @param event packet
9363  * @return command_type
9364  * @note: btstack_type 1
9365  */
9366 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){
9367     return event[5];
9368 }
9369 /**
9370  * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
9371  * @param event packet
9372  * @return system_status
9373  * @note: btstack_type 1
9374  */
9375 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){
9376     return event[6];
9377 }
9378 
9379 /**
9380  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
9381  * @param event packet
9382  * @return avrcp_cid
9383  * @note: btstack_type 2
9384  */
9385 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){
9386     return little_endian_read_16(event, 3);
9387 }
9388 /**
9389  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
9390  * @param event packet
9391  * @return command_type
9392  * @note: btstack_type 1
9393  */
9394 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){
9395     return event[5];
9396 }
9397 
9398 /**
9399  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
9400  * @param event packet
9401  * @return avrcp_cid
9402  * @note: btstack_type 2
9403  */
9404 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){
9405     return little_endian_read_16(event, 3);
9406 }
9407 /**
9408  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
9409  * @param event packet
9410  * @return command_type
9411  * @note: btstack_type 1
9412  */
9413 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){
9414     return event[5];
9415 }
9416 
9417 /**
9418  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
9419  * @param event packet
9420  * @return avrcp_cid
9421  * @note: btstack_type 2
9422  */
9423 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){
9424     return little_endian_read_16(event, 3);
9425 }
9426 /**
9427  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
9428  * @param event packet
9429  * @return command_type
9430  * @note: btstack_type 1
9431  */
9432 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){
9433     return event[5];
9434 }
9435 /**
9436  * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
9437  * @param event packet
9438  * @return uid_counter
9439  * @note: btstack_type 2
9440  */
9441 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){
9442     return little_endian_read_16(event, 6);
9443 }
9444 
9445 /**
9446  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
9447  * @param event packet
9448  * @return avrcp_cid
9449  * @note: btstack_type 2
9450  */
9451 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){
9452     return little_endian_read_16(event, 3);
9453 }
9454 /**
9455  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
9456  * @param event packet
9457  * @return command_type
9458  * @note: btstack_type 1
9459  */
9460 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){
9461     return event[5];
9462 }
9463 /**
9464  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
9465  * @param event packet
9466  * @return absolute_volume
9467  * @note: btstack_type 1
9468  */
9469 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){
9470     return event[6];
9471 }
9472 
9473 /**
9474  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
9475  * @param event packet
9476  * @return avrcp_cid
9477  * @note: btstack_type 2
9478  */
9479 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){
9480     return little_endian_read_16(event, 3);
9481 }
9482 /**
9483  * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
9484  * @param event packet
9485  * @return command_type
9486  * @note: btstack_type 1
9487  */
9488 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){
9489     return event[5];
9490 }
9491 /**
9492  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
9493  * @param event packet
9494  * @return absolute_volume
9495  * @note: btstack_type 1
9496  */
9497 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){
9498     return event[6];
9499 }
9500 
9501 /**
9502  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE
9503  * @param event packet
9504  * @return avrcp_cid
9505  * @note: btstack_type 2
9506  */
9507 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){
9508     return little_endian_read_16(event, 3);
9509 }
9510 /**
9511  * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE
9512  * @param event packet
9513  * @return status
9514  * @note: btstack_type 1
9515  */
9516 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){
9517     return event[5];
9518 }
9519 /**
9520  * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE
9521  * @param event packet
9522  * @return enabled
9523  * @note: btstack_type 1
9524  */
9525 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){
9526     return event[6];
9527 }
9528 /**
9529  * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE
9530  * @param event packet
9531  * @return event_id
9532  * @note: btstack_type 1
9533  */
9534 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){
9535     return event[7];
9536 }
9537 
9538 /**
9539  * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
9540  * @param event packet
9541  * @return status
9542  * @note: btstack_type 1
9543  */
9544 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){
9545     return event[3];
9546 }
9547 /**
9548  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
9549  * @param event packet
9550  * @return avrcp_cid
9551  * @note: btstack_type 2
9552  */
9553 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){
9554     return little_endian_read_16(event, 4);
9555 }
9556 /**
9557  * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
9558  * @param event packet
9559  * @param Pointer to storage for bd_addr
9560  * @note: btstack_type B
9561  */
9562 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
9563     reverse_bytes(&event[6], bd_addr, 6);
9564 }
9565 /**
9566  * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
9567  * @param event packet
9568  * @return con_handle
9569  * @note: btstack_type 2
9570  */
9571 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){
9572     return little_endian_read_16(event, 12);
9573 }
9574 
9575 /**
9576  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED
9577  * @param event packet
9578  * @return avrcp_cid
9579  * @note: btstack_type 2
9580  */
9581 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){
9582     return little_endian_read_16(event, 3);
9583 }
9584 
9585 /**
9586  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
9587  * @param event packet
9588  * @return avrcp_cid
9589  * @note: btstack_type 2
9590  */
9591 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){
9592     return little_endian_read_16(event, 3);
9593 }
9594 /**
9595  * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
9596  * @param event packet
9597  * @return command_type
9598  * @note: btstack_type 1
9599  */
9600 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){
9601     return event[5];
9602 }
9603 /**
9604  * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
9605  * @param event packet
9606  * @return repeat_mode
9607  * @note: btstack_type 1
9608  */
9609 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){
9610     return event[6];
9611 }
9612 /**
9613  * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
9614  * @param event packet
9615  * @return shuffle_mode
9616  * @note: btstack_type 1
9617  */
9618 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){
9619     return event[7];
9620 }
9621 
9622 /**
9623  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS
9624  * @param event packet
9625  * @return avrcp_cid
9626  * @note: btstack_type 2
9627  */
9628 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){
9629     return little_endian_read_16(event, 3);
9630 }
9631 /**
9632  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS
9633  * @param event packet
9634  * @return command_type
9635  * @note: btstack_type 1
9636  */
9637 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){
9638     return event[5];
9639 }
9640 /**
9641  * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS
9642  * @param event packet
9643  * @return song_length
9644  * @note: btstack_type 4
9645  */
9646 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){
9647     return little_endian_read_32(event, 6);
9648 }
9649 /**
9650  * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS
9651  * @param event packet
9652  * @return song_position
9653  * @note: btstack_type 4
9654  */
9655 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){
9656     return little_endian_read_32(event, 10);
9657 }
9658 /**
9659  * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS
9660  * @param event packet
9661  * @return play_status
9662  * @note: btstack_type 1
9663  */
9664 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){
9665     return event[14];
9666 }
9667 
9668 /**
9669  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START
9670  * @param event packet
9671  * @return avrcp_cid
9672  * @note: btstack_type 2
9673  */
9674 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){
9675     return little_endian_read_16(event, 3);
9676 }
9677 /**
9678  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START
9679  * @param event packet
9680  * @return command_type
9681  * @note: btstack_type 1
9682  */
9683 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){
9684     return event[5];
9685 }
9686 /**
9687  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START
9688  * @param event packet
9689  * @return operation_id
9690  * @note: btstack_type 1
9691  */
9692 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){
9693     return event[6];
9694 }
9695 
9696 /**
9697  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE
9698  * @param event packet
9699  * @return avrcp_cid
9700  * @note: btstack_type 2
9701  */
9702 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){
9703     return little_endian_read_16(event, 3);
9704 }
9705 /**
9706  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE
9707  * @param event packet
9708  * @return command_type
9709  * @note: btstack_type 1
9710  */
9711 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){
9712     return event[5];
9713 }
9714 /**
9715  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE
9716  * @param event packet
9717  * @return operation_id
9718  * @note: btstack_type 1
9719  */
9720 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){
9721     return event[6];
9722 }
9723 
9724 /**
9725  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
9726  * @param event packet
9727  * @return avrcp_cid
9728  * @note: btstack_type 2
9729  */
9730 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){
9731     return little_endian_read_16(event, 3);
9732 }
9733 /**
9734  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
9735  * @param event packet
9736  * @return command_type
9737  * @note: btstack_type 1
9738  */
9739 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){
9740     return event[5];
9741 }
9742 
9743 /**
9744  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY
9745  * @param event packet
9746  * @return avrcp_cid
9747  * @note: btstack_type 2
9748  */
9749 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){
9750     return little_endian_read_16(event, 3);
9751 }
9752 
9753 /**
9754  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION
9755  * @param event packet
9756  * @return avrcp_cid
9757  * @note: btstack_type 2
9758  */
9759 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){
9760     return little_endian_read_16(event, 3);
9761 }
9762 /**
9763  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION
9764  * @param event packet
9765  * @return operation_id
9766  * @note: btstack_type 1
9767  */
9768 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){
9769     return event[5];
9770 }
9771 /**
9772  * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION
9773  * @param event packet
9774  * @return button_pressed
9775  * @note: btstack_type 1
9776  */
9777 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){
9778     return event[6];
9779 }
9780 /**
9781  * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION
9782  * @param event packet
9783  * @return operands_length
9784  * @note: btstack_type 1
9785  */
9786 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){
9787     return event[7];
9788 }
9789 /**
9790  * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION
9791  * @param event packet
9792  * @return operand
9793  * @note: btstack_type 1
9794  */
9795 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){
9796     return event[8];
9797 }
9798 
9799 /**
9800  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
9801  * @param event packet
9802  * @return avrcp_cid
9803  * @note: btstack_type 2
9804  */
9805 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){
9806     return little_endian_read_16(event, 3);
9807 }
9808 /**
9809  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
9810  * @param event packet
9811  * @return command_type
9812  * @note: btstack_type 1
9813  */
9814 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){
9815     return event[5];
9816 }
9817 /**
9818  * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
9819  * @param event packet
9820  * @return track
9821  * @note: btstack_type 1
9822  */
9823 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){
9824     return event[6];
9825 }
9826 
9827 /**
9828  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
9829  * @param event packet
9830  * @return avrcp_cid
9831  * @note: btstack_type 2
9832  */
9833 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){
9834     return little_endian_read_16(event, 3);
9835 }
9836 /**
9837  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
9838  * @param event packet
9839  * @return command_type
9840  * @note: btstack_type 1
9841  */
9842 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){
9843     return event[5];
9844 }
9845 /**
9846  * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
9847  * @param event packet
9848  * @return total_tracks
9849  * @note: btstack_type 1
9850  */
9851 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){
9852     return event[6];
9853 }
9854 
9855 /**
9856  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
9857  * @param event packet
9858  * @return avrcp_cid
9859  * @note: btstack_type 2
9860  */
9861 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){
9862     return little_endian_read_16(event, 3);
9863 }
9864 /**
9865  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
9866  * @param event packet
9867  * @return command_type
9868  * @note: btstack_type 1
9869  */
9870 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){
9871     return event[5];
9872 }
9873 /**
9874  * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
9875  * @param event packet
9876  * @return song_length
9877  * @note: btstack_type 4
9878  */
9879 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){
9880     return little_endian_read_32(event, 6);
9881 }
9882 
9883 /**
9884  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
9885  * @param event packet
9886  * @return avrcp_cid
9887  * @note: btstack_type 2
9888  */
9889 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){
9890     return little_endian_read_16(event, 3);
9891 }
9892 /**
9893  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
9894  * @param event packet
9895  * @return command_type
9896  * @note: btstack_type 1
9897  */
9898 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){
9899     return event[5];
9900 }
9901 /**
9902  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
9903  * @param event packet
9904  * @return value_len
9905  * @note: btstack_type J
9906  */
9907 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){
9908     return event[6];
9909 }
9910 /**
9911  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
9912  * @param event packet
9913  * @return value
9914  * @note: btstack_type V
9915  */
9916 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){
9917     return &event[7];
9918 }
9919 
9920 /**
9921  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
9922  * @param event packet
9923  * @return avrcp_cid
9924  * @note: btstack_type 2
9925  */
9926 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){
9927     return little_endian_read_16(event, 3);
9928 }
9929 /**
9930  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
9931  * @param event packet
9932  * @return command_type
9933  * @note: btstack_type 1
9934  */
9935 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){
9936     return event[5];
9937 }
9938 /**
9939  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
9940  * @param event packet
9941  * @return value_len
9942  * @note: btstack_type J
9943  */
9944 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){
9945     return event[6];
9946 }
9947 /**
9948  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
9949  * @param event packet
9950  * @return value
9951  * @note: btstack_type V
9952  */
9953 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){
9954     return &event[7];
9955 }
9956 
9957 /**
9958  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
9959  * @param event packet
9960  * @return avrcp_cid
9961  * @note: btstack_type 2
9962  */
9963 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){
9964     return little_endian_read_16(event, 3);
9965 }
9966 /**
9967  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
9968  * @param event packet
9969  * @return command_type
9970  * @note: btstack_type 1
9971  */
9972 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){
9973     return event[5];
9974 }
9975 /**
9976  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
9977  * @param event packet
9978  * @return value_len
9979  * @note: btstack_type J
9980  */
9981 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){
9982     return event[6];
9983 }
9984 /**
9985  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
9986  * @param event packet
9987  * @return value
9988  * @note: btstack_type V
9989  */
9990 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){
9991     return &event[7];
9992 }
9993 
9994 /**
9995  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
9996  * @param event packet
9997  * @return avrcp_cid
9998  * @note: btstack_type 2
9999  */
10000 static inline uint16_t avrcp_subevent_now_playing_genre_info_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_NOW_PLAYING_GENRE_INFO
10005  * @param event packet
10006  * @return command_type
10007  * @note: btstack_type 1
10008  */
10009 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){
10010     return event[5];
10011 }
10012 /**
10013  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
10014  * @param event packet
10015  * @return value_len
10016  * @note: btstack_type J
10017  */
10018 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){
10019     return event[6];
10020 }
10021 /**
10022  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
10023  * @param event packet
10024  * @return value
10025  * @note: btstack_type V
10026  */
10027 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){
10028     return &event[7];
10029 }
10030 
10031 /**
10032  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
10033  * @param event packet
10034  * @return avrcp_cid
10035  * @note: btstack_type 2
10036  */
10037 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){
10038     return little_endian_read_16(event, 3);
10039 }
10040 /**
10041  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
10042  * @param event packet
10043  * @return command_type
10044  * @note: btstack_type 1
10045  */
10046 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){
10047     return event[5];
10048 }
10049 /**
10050  * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
10051  * @param event packet
10052  * @return status
10053  * @note: btstack_type 1
10054  */
10055 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){
10056     return event[6];
10057 }
10058 
10059 /**
10060  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
10061  * @param event packet
10062  * @return avrcp_cid
10063  * @note: btstack_type 2
10064  */
10065 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
10066     return little_endian_read_16(event, 3);
10067 }
10068 /**
10069  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
10070  * @param event packet
10071  * @return command_type
10072  * @note: btstack_type 1
10073  */
10074 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){
10075     return event[5];
10076 }
10077 /**
10078  * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
10079  * @param event packet
10080  * @return playback_position_ms
10081  * @note: btstack_type 4
10082  */
10083 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){
10084     return little_endian_read_32(event, 6);
10085 }
10086 
10087 /**
10088  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10089  * @param event packet
10090  * @return avrcp_cid
10091  * @note: btstack_type 2
10092  */
10093 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){
10094     return little_endian_read_16(event, 3);
10095 }
10096 /**
10097  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10098  * @param event packet
10099  * @return command_type
10100  * @note: btstack_type 1
10101  */
10102 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){
10103     return event[5];
10104 }
10105 /**
10106  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10107  * @param event packet
10108  * @return status
10109  * @note: btstack_type 1
10110  */
10111 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){
10112     return event[6];
10113 }
10114 /**
10115  * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
10116  * @param event packet
10117  * @return event_id
10118  * @note: btstack_type 1
10119  */
10120 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){
10121     return event[7];
10122 }
10123 
10124 /**
10125  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
10126  * @param event packet
10127  * @return avrcp_cid
10128  * @note: btstack_type 2
10129  */
10130 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){
10131     return little_endian_read_16(event, 3);
10132 }
10133 /**
10134  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
10135  * @param event packet
10136  * @return command_type
10137  * @note: btstack_type 1
10138  */
10139 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){
10140     return event[5];
10141 }
10142 /**
10143  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
10144  * @param event packet
10145  * @return status
10146  * @note: btstack_type 1
10147  */
10148 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){
10149     return event[6];
10150 }
10151 
10152 /**
10153  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10154  * @param event packet
10155  * @return avrcp_cid
10156  * @note: btstack_type 2
10157  */
10158 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){
10159     return little_endian_read_16(event, 3);
10160 }
10161 /**
10162  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10163  * @param event packet
10164  * @return command_type
10165  * @note: btstack_type 1
10166  */
10167 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){
10168     return event[5];
10169 }
10170 /**
10171  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10172  * @param event packet
10173  * @return status
10174  * @note: btstack_type 1
10175  */
10176 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){
10177     return event[6];
10178 }
10179 /**
10180  * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
10181  * @param event packet
10182  * @return company_id
10183  * @note: btstack_type 3
10184  */
10185 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){
10186     return little_endian_read_24(event, 7);
10187 }
10188 
10189 /**
10190  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
10191  * @param event packet
10192  * @return avrcp_cid
10193  * @note: btstack_type 2
10194  */
10195 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){
10196     return little_endian_read_16(event, 3);
10197 }
10198 /**
10199  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
10200  * @param event packet
10201  * @return command_type
10202  * @note: btstack_type 1
10203  */
10204 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){
10205     return event[5];
10206 }
10207 /**
10208  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
10209  * @param event packet
10210  * @return status
10211  * @note: btstack_type 1
10212  */
10213 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){
10214     return event[6];
10215 }
10216 
10217 /**
10218  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10219  * @param event packet
10220  * @return avrcp_cid
10221  * @note: btstack_type 2
10222  */
10223 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){
10224     return little_endian_read_16(event, 3);
10225 }
10226 /**
10227  * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10228  * @param event packet
10229  * @return command_type
10230  * @note: btstack_type 1
10231  */
10232 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){
10233     return event[5];
10234 }
10235 /**
10236  * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10237  * @param event packet
10238  * @return pdu_id
10239  * @note: btstack_type 1
10240  */
10241 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){
10242     return event[6];
10243 }
10244 /**
10245  * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10246  * @param event packet
10247  * @return params_len
10248  * @note: btstack_type L
10249  */
10250 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){
10251     return little_endian_read_16(event, 7);
10252 }
10253 /**
10254  * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
10255  * @param event packet
10256  * @return params
10257  * @note: btstack_type V
10258  */
10259 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){
10260     return &event[9];
10261 }
10262 
10263 /**
10264  * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
10265  * @param event packet
10266  * @param Pointer to storage for bd_addr
10267  * @note: btstack_type B
10268  */
10269 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10270     reverse_bytes(&event[3], bd_addr, 6);
10271 }
10272 /**
10273  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
10274  * @param event packet
10275  * @return browsing_cid
10276  * @note: btstack_type 2
10277  */
10278 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){
10279     return little_endian_read_16(event, 9);
10280 }
10281 
10282 /**
10283  * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
10284  * @param event packet
10285  * @return status
10286  * @note: btstack_type 1
10287  */
10288 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){
10289     return event[3];
10290 }
10291 /**
10292  * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
10293  * @param event packet
10294  * @param Pointer to storage for bd_addr
10295  * @note: btstack_type B
10296  */
10297 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10298     reverse_bytes(&event[4], bd_addr, 6);
10299 }
10300 /**
10301  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
10302  * @param event packet
10303  * @return browsing_cid
10304  * @note: btstack_type 2
10305  */
10306 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){
10307     return little_endian_read_16(event, 10);
10308 }
10309 
10310 /**
10311  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED
10312  * @param event packet
10313  * @return browsing_cid
10314  * @note: btstack_type 2
10315  */
10316 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){
10317     return little_endian_read_16(event, 3);
10318 }
10319 
10320 /**
10321  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
10322  * @param event packet
10323  * @return browsing_cid
10324  * @note: btstack_type 2
10325  */
10326 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){
10327     return little_endian_read_16(event, 3);
10328 }
10329 /**
10330  * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE
10331  * @param event packet
10332  * @return uid_counter
10333  * @note: btstack_type 2
10334  */
10335 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){
10336     return little_endian_read_16(event, 5);
10337 }
10338 /**
10339  * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE
10340  * @param event packet
10341  * @return browsing_status
10342  * @note: btstack_type 1
10343  */
10344 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){
10345     return event[7];
10346 }
10347 /**
10348  * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE
10349  * @param event packet
10350  * @return bluetooth_status
10351  * @note: btstack_type 1
10352  */
10353 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){
10354     return event[8];
10355 }
10356 
10357 /**
10358  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
10359  * @param event packet
10360  * @return browsing_cid
10361  * @note: btstack_type 2
10362  */
10363 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){
10364     return little_endian_read_16(event, 3);
10365 }
10366 /**
10367  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
10368  * @param event packet
10369  * @return scope
10370  * @note: btstack_type 1
10371  */
10372 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
10373     return event[5];
10374 }
10375 /**
10376  * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
10377  * @param event packet
10378  * @return attr_bitmap
10379  * @note: btstack_type 4
10380  */
10381 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){
10382     return little_endian_read_32(event, 6);
10383 }
10384 
10385 /**
10386  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
10387  * @param event packet
10388  * @return browsing_cid
10389  * @note: btstack_type 2
10390  */
10391 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){
10392     return little_endian_read_16(event, 3);
10393 }
10394 /**
10395  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
10396  * @param event packet
10397  * @return scope
10398  * @note: btstack_type 1
10399  */
10400 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){
10401     return event[5];
10402 }
10403 
10404 /**
10405  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
10406  * @param event packet
10407  * @return browsing_cid
10408  * @note: btstack_type 2
10409  */
10410 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){
10411     return little_endian_read_16(event, 3);
10412 }
10413 /**
10414  * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
10415  * @param event packet
10416  * @return player_id
10417  * @note: btstack_type 2
10418  */
10419 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){
10420     return little_endian_read_16(event, 5);
10421 }
10422 
10423 /**
10424  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED
10425  * @param event packet
10426  * @return goep_cid
10427  * @note: btstack_type 2
10428  */
10429 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){
10430     return little_endian_read_16(event, 3);
10431 }
10432 /**
10433  * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED
10434  * @param event packet
10435  * @return status
10436  * @note: btstack_type 1
10437  */
10438 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){
10439     return event[5];
10440 }
10441 /**
10442  * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED
10443  * @param event packet
10444  * @param Pointer to storage for bd_addr
10445  * @note: btstack_type B
10446  */
10447 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10448     reverse_bytes(&event[6], bd_addr, 6);
10449 }
10450 /**
10451  * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED
10452  * @param event packet
10453  * @return con_handle
10454  * @note: btstack_type H
10455  */
10456 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){
10457     return little_endian_read_16(event, 12);
10458 }
10459 /**
10460  * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED
10461  * @param event packet
10462  * @return incoming
10463  * @note: btstack_type 1
10464  */
10465 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){
10466     return event[14];
10467 }
10468 
10469 /**
10470  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED
10471  * @param event packet
10472  * @return goep_cid
10473  * @note: btstack_type 2
10474  */
10475 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){
10476     return little_endian_read_16(event, 3);
10477 }
10478 
10479 /**
10480  * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW
10481  * @param event packet
10482  * @return goep_cid
10483  * @note: btstack_type 2
10484  */
10485 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){
10486     return little_endian_read_16(event, 3);
10487 }
10488 
10489 /**
10490  * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED
10491  * @param event packet
10492  * @return pbap_cid
10493  * @note: btstack_type 2
10494  */
10495 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){
10496     return little_endian_read_16(event, 3);
10497 }
10498 /**
10499  * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED
10500  * @param event packet
10501  * @return status
10502  * @note: btstack_type 1
10503  */
10504 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){
10505     return event[5];
10506 }
10507 /**
10508  * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED
10509  * @param event packet
10510  * @param Pointer to storage for bd_addr
10511  * @note: btstack_type B
10512  */
10513 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10514     reverse_bytes(&event[6], bd_addr, 6);
10515 }
10516 /**
10517  * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED
10518  * @param event packet
10519  * @return con_handle
10520  * @note: btstack_type H
10521  */
10522 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){
10523     return little_endian_read_16(event, 12);
10524 }
10525 /**
10526  * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED
10527  * @param event packet
10528  * @return incoming
10529  * @note: btstack_type 1
10530  */
10531 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){
10532     return event[14];
10533 }
10534 
10535 /**
10536  * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED
10537  * @param event packet
10538  * @return goep_cid
10539  * @note: btstack_type 2
10540  */
10541 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){
10542     return little_endian_read_16(event, 3);
10543 }
10544 
10545 /**
10546  * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED
10547  * @param event packet
10548  * @return goep_cid
10549  * @note: btstack_type 2
10550  */
10551 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){
10552     return little_endian_read_16(event, 3);
10553 }
10554 /**
10555  * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED
10556  * @param event packet
10557  * @return status
10558  * @note: btstack_type 1
10559  */
10560 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){
10561     return event[5];
10562 }
10563 
10564 /**
10565  * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE
10566  * @param event packet
10567  * @return goep_cid
10568  * @note: btstack_type 2
10569  */
10570 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){
10571     return little_endian_read_16(event, 3);
10572 }
10573 /**
10574  * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE
10575  * @param event packet
10576  * @return status
10577  * @note: btstack_type 1
10578  */
10579 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){
10580     return event[5];
10581 }
10582 /**
10583  * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
10584  * @param event packet
10585  * @return phonebook_size
10586  * @note: btstack_type 2
10587  */
10588 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){
10589     return little_endian_read_16(event, 6);
10590 }
10591 
10592 /**
10593  * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
10594  * @param event packet
10595  * @return goep_cid
10596  * @note: btstack_type 2
10597  */
10598 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){
10599     return little_endian_read_16(event, 3);
10600 }
10601 /**
10602  * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
10603  * @param event packet
10604  * @return user_id_required
10605  * @note: btstack_type 1
10606  */
10607 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){
10608     return event[5];
10609 }
10610 /**
10611  * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
10612  * @param event packet
10613  * @return full_access
10614  * @note: btstack_type 1
10615  */
10616 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){
10617     return event[6];
10618 }
10619 
10620 /**
10621  * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT
10622  * @param event packet
10623  * @return goep_cid
10624  * @note: btstack_type 2
10625  */
10626 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){
10627     return little_endian_read_16(event, 3);
10628 }
10629 /**
10630  * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT
10631  * @param event packet
10632  * @return name_len
10633  * @note: btstack_type J
10634  */
10635 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){
10636     return event[5];
10637 }
10638 /**
10639  * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT
10640  * @param event packet
10641  * @return name
10642  * @note: btstack_type V
10643  */
10644 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){
10645     return &event[6];
10646 }
10647 /**
10648  * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT
10649  * @param event packet
10650  * @return handle_len
10651  * @note: btstack_type J
10652  */
10653 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){
10654     return event[6u + event[5]];
10655 }
10656 /**
10657  * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT
10658  * @param event packet
10659  * @return handle
10660  * @note: btstack_type V
10661  */
10662 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){
10663     return &event[6u + event[5] + 1u];
10664 }
10665 
10666 /**
10667  * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION
10668  * @param event packet
10669  * @return hid_cid
10670  * @note: btstack_type 2
10671  */
10672 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){
10673     return little_endian_read_16(event, 3);
10674 }
10675 /**
10676  * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION
10677  * @param event packet
10678  * @param Pointer to storage for address
10679  * @note: btstack_type B
10680  */
10681 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
10682     reverse_bytes(&event[5], address, 6);
10683 }
10684 /**
10685  * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION
10686  * @param event packet
10687  * @return handle
10688  * @note: btstack_type H
10689  */
10690 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){
10691     return little_endian_read_16(event, 11);
10692 }
10693 
10694 /**
10695  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED
10696  * @param event packet
10697  * @return hid_cid
10698  * @note: btstack_type 2
10699  */
10700 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){
10701     return little_endian_read_16(event, 3);
10702 }
10703 /**
10704  * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED
10705  * @param event packet
10706  * @return status
10707  * @note: btstack_type 1
10708  */
10709 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){
10710     return event[5];
10711 }
10712 /**
10713  * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED
10714  * @param event packet
10715  * @param Pointer to storage for bd_addr
10716  * @note: btstack_type B
10717  */
10718 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10719     reverse_bytes(&event[6], bd_addr, 6);
10720 }
10721 /**
10722  * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED
10723  * @param event packet
10724  * @return con_handle
10725  * @note: btstack_type H
10726  */
10727 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){
10728     return little_endian_read_16(event, 12);
10729 }
10730 /**
10731  * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED
10732  * @param event packet
10733  * @return incoming
10734  * @note: btstack_type 1
10735  */
10736 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){
10737     return event[14];
10738 }
10739 
10740 /**
10741  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED
10742  * @param event packet
10743  * @return hid_cid
10744  * @note: btstack_type 2
10745  */
10746 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){
10747     return little_endian_read_16(event, 3);
10748 }
10749 
10750 /**
10751  * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW
10752  * @param event packet
10753  * @return hid_cid
10754  * @note: btstack_type 2
10755  */
10756 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){
10757     return little_endian_read_16(event, 3);
10758 }
10759 
10760 /**
10761  * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND
10762  * @param event packet
10763  * @return hid_cid
10764  * @note: btstack_type 2
10765  */
10766 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){
10767     return little_endian_read_16(event, 3);
10768 }
10769 
10770 /**
10771  * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND
10772  * @param event packet
10773  * @return hid_cid
10774  * @note: btstack_type 2
10775  */
10776 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){
10777     return little_endian_read_16(event, 3);
10778 }
10779 
10780 /**
10781  * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG
10782  * @param event packet
10783  * @return hid_cid
10784  * @note: btstack_type 2
10785  */
10786 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){
10787     return little_endian_read_16(event, 3);
10788 }
10789 
10790 /**
10791  * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE
10792  * @param event packet
10793  * @return hid_cid
10794  * @note: btstack_type 2
10795  */
10796 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){
10797     return little_endian_read_16(event, 3);
10798 }
10799 /**
10800  * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE
10801  * @param event packet
10802  * @return handshake_status
10803  * @note: btstack_type 1
10804  */
10805 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){
10806     return event[5];
10807 }
10808 /**
10809  * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE
10810  * @param event packet
10811  * @return report_len
10812  * @note: btstack_type L
10813  */
10814 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){
10815     return little_endian_read_16(event, 6);
10816 }
10817 /**
10818  * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE
10819  * @param event packet
10820  * @return report
10821  * @note: btstack_type V
10822  */
10823 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){
10824     return &event[8];
10825 }
10826 
10827 /**
10828  * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE
10829  * @param event packet
10830  * @return hid_cid
10831  * @note: btstack_type 2
10832  */
10833 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){
10834     return little_endian_read_16(event, 3);
10835 }
10836 /**
10837  * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE
10838  * @param event packet
10839  * @return handshake_status
10840  * @note: btstack_type 1
10841  */
10842 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){
10843     return event[5];
10844 }
10845 
10846 /**
10847  * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
10848  * @param event packet
10849  * @return hid_cid
10850  * @note: btstack_type 2
10851  */
10852 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){
10853     return little_endian_read_16(event, 3);
10854 }
10855 /**
10856  * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
10857  * @param event packet
10858  * @return handshake_status
10859  * @note: btstack_type 1
10860  */
10861 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){
10862     return event[5];
10863 }
10864 /**
10865  * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
10866  * @param event packet
10867  * @return protocol_mode
10868  * @note: btstack_type 1
10869  */
10870 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){
10871     return event[6];
10872 }
10873 
10874 /**
10875  * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
10876  * @param event packet
10877  * @return hid_cid
10878  * @note: btstack_type 2
10879  */
10880 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){
10881     return little_endian_read_16(event, 3);
10882 }
10883 /**
10884  * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
10885  * @param event packet
10886  * @return handshake_status
10887  * @note: btstack_type 1
10888  */
10889 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){
10890     return event[5];
10891 }
10892 /**
10893  * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
10894  * @param event packet
10895  * @return protocol_mode
10896  * @note: btstack_type 1
10897  */
10898 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){
10899     return event[6];
10900 }
10901 
10902 /**
10903  * @brief Get field hid_cid from event HID_SUBEVENT_REPORT
10904  * @param event packet
10905  * @return hid_cid
10906  * @note: btstack_type 2
10907  */
10908 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){
10909     return little_endian_read_16(event, 3);
10910 }
10911 /**
10912  * @brief Get field report_len from event HID_SUBEVENT_REPORT
10913  * @param event packet
10914  * @return report_len
10915  * @note: btstack_type L
10916  */
10917 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){
10918     return little_endian_read_16(event, 5);
10919 }
10920 /**
10921  * @brief Get field report from event HID_SUBEVENT_REPORT
10922  * @param event packet
10923  * @return report
10924  * @note: btstack_type V
10925  */
10926 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){
10927     return &event[7];
10928 }
10929 
10930 /**
10931  * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
10932  * @param event packet
10933  * @return hid_cid
10934  * @note: btstack_type 2
10935  */
10936 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){
10937     return little_endian_read_16(event, 3);
10938 }
10939 /**
10940  * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
10941  * @param event packet
10942  * @return status
10943  * @note: btstack_type 1
10944  */
10945 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){
10946     return event[5];
10947 }
10948 
10949 /**
10950  * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
10951  * @param event packet
10952  * @return hid_cid
10953  * @note: btstack_type 2
10954  */
10955 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){
10956     return little_endian_read_16(event, 3);
10957 }
10958 /**
10959  * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
10960  * @param event packet
10961  * @return host_max_latency
10962  * @note: btstack_type 2
10963  */
10964 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){
10965     return little_endian_read_16(event, 5);
10966 }
10967 /**
10968  * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
10969  * @param event packet
10970  * @return host_min_timeout
10971  * @note: btstack_type 2
10972  */
10973 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){
10974     return little_endian_read_16(event, 7);
10975 }
10976 
10977 /**
10978  * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
10979  * @param event packet
10980  * @return con_handle
10981  * @note: btstack_type 2
10982  */
10983 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){
10984     return little_endian_read_16(event, 3);
10985 }
10986 
10987 /**
10988  * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE
10989  * @param event packet
10990  * @return con_handle
10991  * @note: btstack_type 2
10992  */
10993 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){
10994     return little_endian_read_16(event, 3);
10995 }
10996 /**
10997  * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE
10998  * @param event packet
10999  * @return protocol_mode
11000  * @note: btstack_type 1
11001  */
11002 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){
11003     return event[5];
11004 }
11005 
11006 /**
11007  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
11008  * @param event packet
11009  * @return con_handle
11010  * @note: btstack_type 2
11011  */
11012 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){
11013     return little_endian_read_16(event, 3);
11014 }
11015 /**
11016  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
11017  * @param event packet
11018  * @return enable
11019  * @note: btstack_type 1
11020  */
11021 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){
11022     return event[5];
11023 }
11024 
11025 /**
11026  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
11027  * @param event packet
11028  * @return con_handle
11029  * @note: btstack_type 2
11030  */
11031 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){
11032     return little_endian_read_16(event, 3);
11033 }
11034 /**
11035  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
11036  * @param event packet
11037  * @return enable
11038  * @note: btstack_type 1
11039  */
11040 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){
11041     return event[5];
11042 }
11043 
11044 /**
11045  * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
11046  * @param event packet
11047  * @return con_handle
11048  * @note: btstack_type 2
11049  */
11050 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){
11051     return little_endian_read_16(event, 3);
11052 }
11053 /**
11054  * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
11055  * @param event packet
11056  * @return enable
11057  * @note: btstack_type 1
11058  */
11059 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){
11060     return event[5];
11061 }
11062 
11063 /**
11064  * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
11065  * @param event packet
11066  * @return con_handle
11067  * @note: btstack_type 2
11068  */
11069 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){
11070     return little_endian_read_16(event, 3);
11071 }
11072 /**
11073  * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
11074  * @param event packet
11075  * @return enable
11076  * @note: btstack_type 1
11077  */
11078 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){
11079     return event[5];
11080 }
11081 
11082 /**
11083  * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
11084  * @param event packet
11085  * @return con_handle
11086  * @note: btstack_type 2
11087  */
11088 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){
11089     return little_endian_read_16(event, 3);
11090 }
11091 /**
11092  * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
11093  * @param event packet
11094  * @return enable
11095  * @note: btstack_type 1
11096  */
11097 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){
11098     return event[5];
11099 }
11100 
11101 /**
11102  * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND
11103  * @param event packet
11104  * @return con_handle
11105  * @note: btstack_type 2
11106  */
11107 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){
11108     return little_endian_read_16(event, 3);
11109 }
11110 
11111 /**
11112  * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND
11113  * @param event packet
11114  * @return con_handle
11115  * @note: btstack_type 2
11116  */
11117 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){
11118     return little_endian_read_16(event, 3);
11119 }
11120 
11121 /**
11122  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
11123  * @param event packet
11124  * @return con_handle
11125  * @note: btstack_type 2
11126  */
11127 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){
11128     return little_endian_read_16(event, 3);
11129 }
11130 /**
11131  * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
11132  * @param event packet
11133  * @return measurement_type
11134  * @note: btstack_type 1
11135  */
11136 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){
11137     return event[5];
11138 }
11139 /**
11140  * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
11141  * @param event packet
11142  * @return is_enhanced
11143  * @note: btstack_type 1
11144  */
11145 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){
11146     return event[6];
11147 }
11148 
11149 /**
11150  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START
11151  * @param event packet
11152  * @return con_handle
11153  * @note: btstack_type 2
11154  */
11155 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){
11156     return little_endian_read_16(event, 3);
11157 }
11158 
11159 /**
11160  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP
11161  * @param event packet
11162  * @return con_handle
11163  * @note: btstack_type 2
11164  */
11165 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){
11166     return little_endian_read_16(event, 3);
11167 }
11168 
11169 /**
11170  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
11171  * @param event packet
11172  * @return hids_cid
11173  * @note: btstack_type 2
11174  */
11175 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){
11176     return little_endian_read_16(event, 3);
11177 }
11178 /**
11179  * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
11180  * @param event packet
11181  * @return status
11182  * @note: btstack_type 1
11183  */
11184 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){
11185     return event[5];
11186 }
11187 /**
11188  * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
11189  * @param event packet
11190  * @return num_instances
11191  * @note: btstack_type 1
11192  */
11193 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){
11194     return event[6];
11195 }
11196 /**
11197  * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
11198  * @param event packet
11199  * @return poll_bitmap
11200  * @note: btstack_type 1
11201  */
11202 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){
11203     return event[7];
11204 }
11205 
11206 /**
11207  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
11208  * @param event packet
11209  * @return hids_cid
11210  * @note: btstack_type 2
11211  */
11212 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){
11213     return little_endian_read_16(event, 3);
11214 }
11215 /**
11216  * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
11217  * @param event packet
11218  * @return sevice_index
11219  * @note: btstack_type 1
11220  */
11221 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){
11222     return event[5];
11223 }
11224 /**
11225  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
11226  * @param event packet
11227  * @return att_status
11228  * @note: btstack_type 1
11229  */
11230 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){
11231     return event[6];
11232 }
11233 /**
11234  * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
11235  * @param event packet
11236  * @return level
11237  * @note: btstack_type 1
11238  */
11239 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){
11240     return event[7];
11241 }
11242 
11243 /**
11244  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
11245  * @param event packet
11246  * @return con_handle
11247  * @note: btstack_type H
11248  */
11249 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){
11250     return little_endian_read_16(event, 3);
11251 }
11252 /**
11253  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
11254  * @param event packet
11255  * @return att_status
11256  * @note: btstack_type 1
11257  */
11258 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){
11259     return event[5];
11260 }
11261 
11262 /**
11263  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
11264  * @param event packet
11265  * @return con_handle
11266  * @note: btstack_type H
11267  */
11268 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){
11269     return little_endian_read_16(event, 3);
11270 }
11271 /**
11272  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
11273  * @param event packet
11274  * @return att_status
11275  * @note: btstack_type 1
11276  */
11277 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){
11278     return event[5];
11279 }
11280 /**
11281  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
11282  * @param event packet
11283  * @return value
11284  * @note: btstack_type T
11285  */
11286 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){
11287     return (const char *) &event[6];
11288 }
11289 
11290 /**
11291  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
11292  * @param event packet
11293  * @return con_handle
11294  * @note: btstack_type H
11295  */
11296 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){
11297     return little_endian_read_16(event, 3);
11298 }
11299 /**
11300  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
11301  * @param event packet
11302  * @return att_status
11303  * @note: btstack_type 1
11304  */
11305 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){
11306     return event[5];
11307 }
11308 /**
11309  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
11310  * @param event packet
11311  * @return value
11312  * @note: btstack_type T
11313  */
11314 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){
11315     return (const char *) &event[6];
11316 }
11317 
11318 /**
11319  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
11320  * @param event packet
11321  * @return con_handle
11322  * @note: btstack_type H
11323  */
11324 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){
11325     return little_endian_read_16(event, 3);
11326 }
11327 /**
11328  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
11329  * @param event packet
11330  * @return att_status
11331  * @note: btstack_type 1
11332  */
11333 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){
11334     return event[5];
11335 }
11336 /**
11337  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
11338  * @param event packet
11339  * @return value
11340  * @note: btstack_type T
11341  */
11342 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){
11343     return (const char *) &event[6];
11344 }
11345 
11346 /**
11347  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
11348  * @param event packet
11349  * @return con_handle
11350  * @note: btstack_type H
11351  */
11352 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){
11353     return little_endian_read_16(event, 3);
11354 }
11355 /**
11356  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
11357  * @param event packet
11358  * @return att_status
11359  * @note: btstack_type 1
11360  */
11361 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){
11362     return event[5];
11363 }
11364 /**
11365  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
11366  * @param event packet
11367  * @return value
11368  * @note: btstack_type T
11369  */
11370 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){
11371     return (const char *) &event[6];
11372 }
11373 
11374 /**
11375  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
11376  * @param event packet
11377  * @return con_handle
11378  * @note: btstack_type H
11379  */
11380 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){
11381     return little_endian_read_16(event, 3);
11382 }
11383 /**
11384  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
11385  * @param event packet
11386  * @return att_status
11387  * @note: btstack_type 1
11388  */
11389 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){
11390     return event[5];
11391 }
11392 /**
11393  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
11394  * @param event packet
11395  * @return value
11396  * @note: btstack_type T
11397  */
11398 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){
11399     return (const char *) &event[6];
11400 }
11401 
11402 /**
11403  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
11404  * @param event packet
11405  * @return con_handle
11406  * @note: btstack_type H
11407  */
11408 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){
11409     return little_endian_read_16(event, 3);
11410 }
11411 /**
11412  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
11413  * @param event packet
11414  * @return att_status
11415  * @note: btstack_type 1
11416  */
11417 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){
11418     return event[5];
11419 }
11420 /**
11421  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
11422  * @param event packet
11423  * @return value
11424  * @note: btstack_type T
11425  */
11426 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){
11427     return (const char *) &event[6];
11428 }
11429 
11430 /**
11431  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
11432  * @param event packet
11433  * @return con_handle
11434  * @note: btstack_type H
11435  */
11436 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){
11437     return little_endian_read_16(event, 3);
11438 }
11439 /**
11440  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
11441  * @param event packet
11442  * @return att_status
11443  * @note: btstack_type 1
11444  */
11445 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){
11446     return event[5];
11447 }
11448 /**
11449  * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
11450  * @param event packet
11451  * @return manufacturer_id_low
11452  * @note: btstack_type 4
11453  */
11454 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){
11455     return little_endian_read_32(event, 6);
11456 }
11457 /**
11458  * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
11459  * @param event packet
11460  * @return manufacturer_id_high
11461  * @note: btstack_type 1
11462  */
11463 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){
11464     return event[10];
11465 }
11466 /**
11467  * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
11468  * @param event packet
11469  * @return organizationally_unique_id
11470  * @note: btstack_type 3
11471  */
11472 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){
11473     return little_endian_read_24(event, 11);
11474 }
11475 
11476 /**
11477  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
11478  * @param event packet
11479  * @return con_handle
11480  * @note: btstack_type H
11481  */
11482 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){
11483     return little_endian_read_16(event, 3);
11484 }
11485 /**
11486  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
11487  * @param event packet
11488  * @return att_status
11489  * @note: btstack_type 1
11490  */
11491 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){
11492     return event[5];
11493 }
11494 /**
11495  * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
11496  * @param event packet
11497  * @return value_a
11498  * @note: btstack_type 2
11499  */
11500 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){
11501     return little_endian_read_16(event, 6);
11502 }
11503 /**
11504  * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
11505  * @param event packet
11506  * @return value_b
11507  * @note: btstack_type 2
11508  */
11509 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){
11510     return little_endian_read_16(event, 8);
11511 }
11512 
11513 /**
11514  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
11515  * @param event packet
11516  * @return con_handle
11517  * @note: btstack_type H
11518  */
11519 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){
11520     return little_endian_read_16(event, 3);
11521 }
11522 /**
11523  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
11524  * @param event packet
11525  * @return att_status
11526  * @note: btstack_type 1
11527  */
11528 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){
11529     return event[5];
11530 }
11531 /**
11532  * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
11533  * @param event packet
11534  * @return vendor_source_id
11535  * @note: btstack_type 1
11536  */
11537 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){
11538     return event[6];
11539 }
11540 /**
11541  * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
11542  * @param event packet
11543  * @return vendor_id
11544  * @note: btstack_type 2
11545  */
11546 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){
11547     return little_endian_read_16(event, 7);
11548 }
11549 /**
11550  * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
11551  * @param event packet
11552  * @return product_id
11553  * @note: btstack_type 2
11554  */
11555 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){
11556     return little_endian_read_16(event, 9);
11557 }
11558 /**
11559  * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
11560  * @param event packet
11561  * @return product_version
11562  * @note: btstack_type 2
11563  */
11564 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){
11565     return little_endian_read_16(event, 11);
11566 }
11567 
11568 /**
11569  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED
11570  * @param event packet
11571  * @return con_handle
11572  * @note: btstack_type H
11573  */
11574 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){
11575     return little_endian_read_16(event, 3);
11576 }
11577 /**
11578  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED
11579  * @param event packet
11580  * @return att_status
11581  * @note: btstack_type 1
11582  */
11583 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){
11584     return event[5];
11585 }
11586 
11587 /**
11588  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED
11589  * @param event packet
11590  * @return con_handle
11591  * @note: btstack_type H
11592  */
11593 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){
11594     return little_endian_read_16(event, 3);
11595 }
11596 
11597 /**
11598  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED
11599  * @param event packet
11600  * @return con_handle
11601  * @note: btstack_type H
11602  */
11603 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){
11604     return little_endian_read_16(event, 3);
11605 }
11606 
11607 /**
11608  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
11609  * @param event packet
11610  * @return hids_cid
11611  * @note: btstack_type 2
11612  */
11613 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){
11614     return little_endian_read_16(event, 3);
11615 }
11616 /**
11617  * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
11618  * @param event packet
11619  * @return status
11620  * @note: btstack_type 1
11621  */
11622 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){
11623     return event[5];
11624 }
11625 /**
11626  * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
11627  * @param event packet
11628  * @return protocol_mode
11629  * @note: btstack_type 1
11630  */
11631 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){
11632     return event[6];
11633 }
11634 /**
11635  * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
11636  * @param event packet
11637  * @return num_instances
11638  * @note: btstack_type 1
11639  */
11640 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){
11641     return event[7];
11642 }
11643 
11644 /**
11645  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT
11646  * @param event packet
11647  * @return hids_cid
11648  * @note: btstack_type 2
11649  */
11650 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){
11651     return little_endian_read_16(event, 3);
11652 }
11653 /**
11654  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT
11655  * @param event packet
11656  * @return service_index
11657  * @note: btstack_type 1
11658  */
11659 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){
11660     return event[5];
11661 }
11662 /**
11663  * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT
11664  * @param event packet
11665  * @return report_id
11666  * @note: btstack_type 1
11667  */
11668 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){
11669     return event[6];
11670 }
11671 /**
11672  * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT
11673  * @param event packet
11674  * @return report_len
11675  * @note: btstack_type L
11676  */
11677 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){
11678     return little_endian_read_16(event, 7);
11679 }
11680 /**
11681  * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT
11682  * @param event packet
11683  * @return report
11684  * @note: btstack_type V
11685  */
11686 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){
11687     return &event[9];
11688 }
11689 
11690 /**
11691  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION
11692  * @param event packet
11693  * @return hids_cid
11694  * @note: btstack_type 2
11695  */
11696 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){
11697     return little_endian_read_16(event, 3);
11698 }
11699 /**
11700  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION
11701  * @param event packet
11702  * @return service_index
11703  * @note: btstack_type 1
11704  */
11705 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){
11706     return event[5];
11707 }
11708 /**
11709  * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION
11710  * @param event packet
11711  * @return base_usb_hid_version
11712  * @note: btstack_type 2
11713  */
11714 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){
11715     return little_endian_read_16(event, 6);
11716 }
11717 /**
11718  * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION
11719  * @param event packet
11720  * @return country_code
11721  * @note: btstack_type 1
11722  */
11723 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){
11724     return event[8];
11725 }
11726 /**
11727  * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION
11728  * @param event packet
11729  * @return remote_wake
11730  * @note: btstack_type 1
11731  */
11732 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){
11733     return event[9];
11734 }
11735 /**
11736  * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION
11737  * @param event packet
11738  * @return normally_connectable
11739  * @note: btstack_type 1
11740  */
11741 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){
11742     return event[10];
11743 }
11744 
11745 /**
11746  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
11747  * @param event packet
11748  * @return hids_cid
11749  * @note: btstack_type 2
11750  */
11751 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){
11752     return little_endian_read_16(event, 3);
11753 }
11754 /**
11755  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
11756  * @param event packet
11757  * @return service_index
11758  * @note: btstack_type 1
11759  */
11760 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){
11761     return event[5];
11762 }
11763 /**
11764  * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
11765  * @param event packet
11766  * @return protocol_mode
11767  * @note: btstack_type 1
11768  */
11769 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){
11770     return event[6];
11771 }
11772 
11773 /**
11774  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
11775  * @param event packet
11776  * @return hids_cid
11777  * @note: btstack_type 2
11778  */
11779 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){
11780     return little_endian_read_16(event, 3);
11781 }
11782 /**
11783  * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
11784  * @param event packet
11785  * @return configuration
11786  * @note: btstack_type 1
11787  */
11788 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){
11789     return event[5];
11790 }
11791 
11792 /**
11793  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
11794  * @param event packet
11795  * @return con_handle
11796  * @note: btstack_type H
11797  */
11798 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){
11799     return little_endian_read_16(event, 3);
11800 }
11801 /**
11802  * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
11803  * @param event packet
11804  * @return max_scan_interval
11805  * @note: btstack_type 2
11806  */
11807 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){
11808     return little_endian_read_16(event, 5);
11809 }
11810 /**
11811  * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
11812  * @param event packet
11813  * @return min_scan_window
11814  * @note: btstack_type 2
11815  */
11816 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){
11817     return little_endian_read_16(event, 7);
11818 }
11819 
11820 /**
11821  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_MICS_CONNECTED
11822  * @param event packet
11823  * @return hids_cid
11824  * @note: btstack_type 2
11825  */
11826 static inline uint16_t gattservice_subevent_mics_connected_get_hids_cid(const uint8_t * event){
11827     return little_endian_read_16(event, 3);
11828 }
11829 /**
11830  * @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_CONNECTED
11831  * @param event packet
11832  * @return status
11833  * @note: btstack_type 1
11834  */
11835 static inline uint8_t gattservice_subevent_mics_connected_get_status(const uint8_t * event){
11836     return event[5];
11837 }
11838 
11839 /**
11840  * @brief Get field cid from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE
11841  * @param event packet
11842  * @return cid
11843  * @note: btstack_type 2
11844  */
11845 static inline uint16_t gattservice_subevent_remote_mics_mute_get_cid(const uint8_t * event){
11846     return little_endian_read_16(event, 3);
11847 }
11848 /**
11849  * @brief Get field status from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE
11850  * @param event packet
11851  * @return status
11852  * @note: btstack_type 1
11853  */
11854 static inline uint8_t gattservice_subevent_remote_mics_mute_get_status(const uint8_t * event){
11855     return event[5];
11856 }
11857 /**
11858  * @brief Get field state from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE
11859  * @param event packet
11860  * @return state
11861  * @note: btstack_type 1
11862  */
11863 static inline uint8_t gattservice_subevent_remote_mics_mute_get_state(const uint8_t * event){
11864     return event[6];
11865 }
11866 
11867 /**
11868  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE
11869  * @param event packet
11870  * @return con_handle
11871  * @note: btstack_type 2
11872  */
11873 static inline uint16_t gattservice_subevent_local_mics_mute_get_con_handle(const uint8_t * event){
11874     return little_endian_read_16(event, 3);
11875 }
11876 /**
11877  * @brief Get field state from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE
11878  * @param event packet
11879  * @return state
11880  * @note: btstack_type 1
11881  */
11882 static inline uint8_t gattservice_subevent_local_mics_mute_get_state(const uint8_t * event){
11883     return event[5];
11884 }
11885 
11886 /**
11887  * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED
11888  * @param event packet
11889  * @return map_cid
11890  * @note: btstack_type 2
11891  */
11892 static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){
11893     return little_endian_read_16(event, 3);
11894 }
11895 /**
11896  * @brief Get field status from event MAP_SUBEVENT_CONNECTION_OPENED
11897  * @param event packet
11898  * @return status
11899  * @note: btstack_type 1
11900  */
11901 static inline uint8_t map_subevent_connection_opened_get_status(const uint8_t * event){
11902     return event[5];
11903 }
11904 /**
11905  * @brief Get field bd_addr from event MAP_SUBEVENT_CONNECTION_OPENED
11906  * @param event packet
11907  * @param Pointer to storage for bd_addr
11908  * @note: btstack_type B
11909  */
11910 static inline void map_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11911     reverse_bytes(&event[6], bd_addr, 6);
11912 }
11913 /**
11914  * @brief Get field con_handle from event MAP_SUBEVENT_CONNECTION_OPENED
11915  * @param event packet
11916  * @return con_handle
11917  * @note: btstack_type H
11918  */
11919 static inline hci_con_handle_t map_subevent_connection_opened_get_con_handle(const uint8_t * event){
11920     return little_endian_read_16(event, 12);
11921 }
11922 /**
11923  * @brief Get field incoming from event MAP_SUBEVENT_CONNECTION_OPENED
11924  * @param event packet
11925  * @return incoming
11926  * @note: btstack_type 1
11927  */
11928 static inline uint8_t map_subevent_connection_opened_get_incoming(const uint8_t * event){
11929     return event[14];
11930 }
11931 
11932 /**
11933  * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_CLOSED
11934  * @param event packet
11935  * @return map_cid
11936  * @note: btstack_type 2
11937  */
11938 static inline uint16_t map_subevent_connection_closed_get_map_cid(const uint8_t * event){
11939     return little_endian_read_16(event, 3);
11940 }
11941 
11942 /**
11943  * @brief Get field map_cid from event MAP_SUBEVENT_OPERATION_COMPLETED
11944  * @param event packet
11945  * @return map_cid
11946  * @note: btstack_type 2
11947  */
11948 static inline uint16_t map_subevent_operation_completed_get_map_cid(const uint8_t * event){
11949     return little_endian_read_16(event, 3);
11950 }
11951 /**
11952  * @brief Get field status from event MAP_SUBEVENT_OPERATION_COMPLETED
11953  * @param event packet
11954  * @return status
11955  * @note: btstack_type 1
11956  */
11957 static inline uint8_t map_subevent_operation_completed_get_status(const uint8_t * event){
11958     return event[5];
11959 }
11960 
11961 /**
11962  * @brief Get field map_cid from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
11963  * @param event packet
11964  * @return map_cid
11965  * @note: btstack_type 2
11966  */
11967 static inline uint16_t map_subevent_folder_listing_item_get_map_cid(const uint8_t * event){
11968     return little_endian_read_16(event, 3);
11969 }
11970 /**
11971  * @brief Get field name_len from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
11972  * @param event packet
11973  * @return name_len
11974  * @note: btstack_type L
11975  */
11976 static inline uint16_t map_subevent_folder_listing_item_get_name_len(const uint8_t * event){
11977     return little_endian_read_16(event, 5);
11978 }
11979 /**
11980  * @brief Get field name from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
11981  * @param event packet
11982  * @return name
11983  * @note: btstack_type V
11984  */
11985 static inline const uint8_t * map_subevent_folder_listing_item_get_name(const uint8_t * event){
11986     return &event[7];
11987 }
11988 
11989 /**
11990  * @brief Get field map_cid from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
11991  * @param event packet
11992  * @return map_cid
11993  * @note: btstack_type 2
11994  */
11995 static inline uint16_t map_subevent_message_listing_item_get_map_cid(const uint8_t * event){
11996     return little_endian_read_16(event, 3);
11997 }
11998 /**
11999  * @brief Get field handle from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
12000  * @param event packet
12001  * @return handle
12002  * @note: btstack_type D
12003  */
12004 static inline const uint8_t * map_subevent_message_listing_item_get_handle(const uint8_t * event){
12005     return (const uint8_t *) &event[5];
12006 }
12007 
12008 /**
12009  * @brief Get field map_cid from event MAP_SUBEVENT_PARSING_DONE
12010  * @param event packet
12011  * @return map_cid
12012  * @note: btstack_type 2
12013  */
12014 static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * event){
12015     return little_endian_read_16(event, 3);
12016 }
12017 
12018 
12019 /**
12020  * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT
12021  * @param event packet
12022  * @return status
12023  * @note: btstack_type 1
12024  */
12025 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){
12026     return event[3];
12027 }
12028 
12029 /**
12030  * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
12031  * @param event packet
12032  * @return status
12033  * @note: btstack_type 1
12034  */
12035 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){
12036     return event[3];
12037 }
12038 /**
12039  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
12040  * @param event packet
12041  * @return pb_transport_cid
12042  * @note: btstack_type 2
12043  */
12044 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){
12045     return little_endian_read_16(event, 4);
12046 }
12047 /**
12048  * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
12049  * @param event packet
12050  * @return pb_type
12051  * @note: btstack_type 1
12052  */
12053 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){
12054     return event[6];
12055 }
12056 
12057 /**
12058  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED
12059  * @param event packet
12060  * @return pb_transport_cid
12061  * @note: btstack_type 1
12062  */
12063 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){
12064     return event[3];
12065 }
12066 /**
12067  * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED
12068  * @param event packet
12069  * @return reason
12070  * @note: btstack_type 2
12071  */
12072 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){
12073     return little_endian_read_16(event, 4);
12074 }
12075 
12076 /**
12077  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER
12078  * @param event packet
12079  * @return pb_transport_cid
12080  * @note: btstack_type 2
12081  */
12082 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){
12083     return little_endian_read_16(event, 3);
12084 }
12085 /**
12086  * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER
12087  * @param event packet
12088  * @return attention_time
12089  * @note: btstack_type 1
12090  */
12091 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){
12092     return event[5];
12093 }
12094 
12095 /**
12096  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB
12097  * @param event packet
12098  * @return pb_transport_cid
12099  * @note: btstack_type 2
12100  */
12101 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){
12102     return little_endian_read_16(event, 3);
12103 }
12104 
12105 /**
12106  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB
12107  * @param event packet
12108  * @return pb_transport_cid
12109  * @note: btstack_type 2
12110  */
12111 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){
12112     return little_endian_read_16(event, 3);
12113 }
12114 
12115 /**
12116  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST
12117  * @param event packet
12118  * @return pb_transport_cid
12119  * @note: btstack_type 2
12120  */
12121 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){
12122     return little_endian_read_16(event, 3);
12123 }
12124 
12125 /**
12126  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB
12127  * @param event packet
12128  * @return pb_transport_cid
12129  * @note: btstack_type 2
12130  */
12131 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){
12132     return little_endian_read_16(event, 3);
12133 }
12134 /**
12135  * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB
12136  * @param event packet
12137  * @return output_oob
12138  * @note: btstack_type 4
12139  */
12140 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){
12141     return little_endian_read_32(event, 5);
12142 }
12143 
12144 /**
12145  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB
12146  * @param event packet
12147  * @return pb_transport_cid
12148  * @note: btstack_type 2
12149  */
12150 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){
12151     return little_endian_read_16(event, 3);
12152 }
12153 
12154 /**
12155  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB
12156  * @param event packet
12157  * @return pb_transport_cid
12158  * @note: btstack_type 2
12159  */
12160 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){
12161     return little_endian_read_16(event, 3);
12162 }
12163 
12164 /**
12165  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB
12166  * @param event packet
12167  * @return pb_transport_cid
12168  * @note: btstack_type 2
12169  */
12170 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){
12171     return little_endian_read_16(event, 3);
12172 }
12173 
12174 /**
12175  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST
12176  * @param event packet
12177  * @return pb_transport_cid
12178  * @note: btstack_type 2
12179  */
12180 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){
12181     return little_endian_read_16(event, 3);
12182 }
12183 
12184 /**
12185  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB
12186  * @param event packet
12187  * @return pb_transport_cid
12188  * @note: btstack_type 2
12189  */
12190 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){
12191     return little_endian_read_16(event, 3);
12192 }
12193 /**
12194  * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB
12195  * @param event packet
12196  * @return output_oob
12197  * @note: btstack_type 4
12198  */
12199 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){
12200     return little_endian_read_32(event, 5);
12201 }
12202 
12203 /**
12204  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB
12205  * @param event packet
12206  * @return pb_transport_cid
12207  * @note: btstack_type 2
12208  */
12209 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){
12210     return little_endian_read_16(event, 3);
12211 }
12212 
12213 /**
12214  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12215  * @param event packet
12216  * @return pb_transport_cid
12217  * @note: btstack_type 2
12218  */
12219 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){
12220     return little_endian_read_16(event, 3);
12221 }
12222 /**
12223  * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12224  * @param event packet
12225  * @return num_elements
12226  * @note: btstack_type 1
12227  */
12228 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){
12229     return event[5];
12230 }
12231 /**
12232  * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12233  * @param event packet
12234  * @return algorithms
12235  * @note: btstack_type 2
12236  */
12237 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){
12238     return little_endian_read_16(event, 6);
12239 }
12240 /**
12241  * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12242  * @param event packet
12243  * @return public_key
12244  * @note: btstack_type 1
12245  */
12246 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){
12247     return event[8];
12248 }
12249 /**
12250  * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12251  * @param event packet
12252  * @return static_oob_type
12253  * @note: btstack_type 1
12254  */
12255 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){
12256     return event[9];
12257 }
12258 /**
12259  * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12260  * @param event packet
12261  * @return output_oob_size
12262  * @note: btstack_type 1
12263  */
12264 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){
12265     return event[10];
12266 }
12267 /**
12268  * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12269  * @param event packet
12270  * @return output_oob_action
12271  * @note: btstack_type 2
12272  */
12273 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){
12274     return little_endian_read_16(event, 11);
12275 }
12276 /**
12277  * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12278  * @param event packet
12279  * @return input_oob_size
12280  * @note: btstack_type 1
12281  */
12282 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){
12283     return event[13];
12284 }
12285 /**
12286  * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
12287  * @param event packet
12288  * @return input_oob_action
12289  * @note: btstack_type 2
12290  */
12291 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){
12292     return little_endian_read_16(event, 14);
12293 }
12294 
12295 /**
12296  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE
12297  * @param event packet
12298  * @return pb_transport_cid
12299  * @note: btstack_type 2
12300  */
12301 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){
12302     return little_endian_read_16(event, 3);
12303 }
12304 
12305 /**
12306  * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER
12307  * @param event packet
12308  * @return attention_time
12309  * @note: btstack_type 1
12310  */
12311 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){
12312     return event[3];
12313 }
12314 
12315 /**
12316  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED
12317  * @param event packet
12318  * @return con_handle
12319  * @note: btstack_type H
12320  */
12321 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){
12322     return little_endian_read_16(event, 3);
12323 }
12324 
12325 /**
12326  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT
12327  * @param event packet
12328  * @return con_handle
12329  * @note: btstack_type H
12330  */
12331 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){
12332     return little_endian_read_16(event, 3);
12333 }
12334 
12335 /**
12336  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED
12337  * @param event packet
12338  * @return con_handle
12339  * @note: btstack_type H
12340  */
12341 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){
12342     return little_endian_read_16(event, 3);
12343 }
12344 
12345 /**
12346  * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT
12347  * @param event packet
12348  * @return con_handle
12349  * @note: btstack_type H
12350  */
12351 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){
12352     return little_endian_read_16(event, 3);
12353 }
12354 
12355 /**
12356  * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL
12357  * @param event packet
12358  * @return element_index
12359  * @note: btstack_type 1
12360  */
12361 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){
12362     return event[3];
12363 }
12364 /**
12365  * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL
12366  * @param event packet
12367  * @return model_identifier
12368  * @note: btstack_type 4
12369  */
12370 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){
12371     return little_endian_read_32(event, 4);
12372 }
12373 /**
12374  * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL
12375  * @param event packet
12376  * @return state_identifier
12377  * @note: btstack_type 4
12378  */
12379 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){
12380     return little_endian_read_32(event, 8);
12381 }
12382 /**
12383  * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL
12384  * @param event packet
12385  * @return reason
12386  * @note: btstack_type 1
12387  */
12388 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){
12389     return event[12];
12390 }
12391 /**
12392  * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL
12393  * @param event packet
12394  * @return value
12395  * @note: btstack_type 1
12396  */
12397 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){
12398     return event[13];
12399 }
12400 
12401 /**
12402  * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16
12403  * @param event packet
12404  * @return element_index
12405  * @note: btstack_type 1
12406  */
12407 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){
12408     return event[3];
12409 }
12410 /**
12411  * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16
12412  * @param event packet
12413  * @return model_identifier
12414  * @note: btstack_type 4
12415  */
12416 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){
12417     return little_endian_read_32(event, 4);
12418 }
12419 /**
12420  * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16
12421  * @param event packet
12422  * @return state_identifier
12423  * @note: btstack_type 4
12424  */
12425 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){
12426     return little_endian_read_32(event, 8);
12427 }
12428 /**
12429  * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16
12430  * @param event packet
12431  * @return reason
12432  * @note: btstack_type 1
12433  */
12434 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){
12435     return event[12];
12436 }
12437 /**
12438  * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16
12439  * @param event packet
12440  * @return value
12441  * @note: btstack_type 2
12442  */
12443 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){
12444     return little_endian_read_16(event, 13);
12445 }
12446 
12447 /**
12448  * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
12449  * @param event packet
12450  * @return element_index
12451  * @note: btstack_type 1
12452  */
12453 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){
12454     return event[3];
12455 }
12456 /**
12457  * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
12458  * @param event packet
12459  * @return model_identifier
12460  * @note: btstack_type 4
12461  */
12462 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){
12463     return little_endian_read_32(event, 4);
12464 }
12465 /**
12466  * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
12467  * @param event packet
12468  * @return opcode
12469  * @note: btstack_type 4
12470  */
12471 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){
12472     return little_endian_read_32(event, 8);
12473 }
12474 /**
12475  * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
12476  * @param event packet
12477  * @return dest
12478  * @note: btstack_type 2
12479  */
12480 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){
12481     return little_endian_read_16(event, 12);
12482 }
12483 
12484 /**
12485  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF
12486  * @param event packet
12487  * @return dest
12488  * @note: btstack_type 2
12489  */
12490 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){
12491     return little_endian_read_16(event, 3);
12492 }
12493 /**
12494  * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF
12495  * @param event packet
12496  * @return status
12497  * @note: btstack_type 1
12498  */
12499 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){
12500     return event[5];
12501 }
12502 /**
12503  * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF
12504  * @param event packet
12505  * @return present_value
12506  * @note: btstack_type 1
12507  */
12508 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){
12509     return event[6];
12510 }
12511 /**
12512  * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF
12513  * @param event packet
12514  * @return target_value
12515  * @note: btstack_type 1
12516  */
12517 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){
12518     return event[7];
12519 }
12520 /**
12521  * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF
12522  * @param event packet
12523  * @return remaining_time_ms
12524  * @note: btstack_type 4
12525  */
12526 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){
12527     return little_endian_read_32(event, 8);
12528 }
12529 
12530 /**
12531  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL
12532  * @param event packet
12533  * @return dest
12534  * @note: btstack_type 2
12535  */
12536 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){
12537     return little_endian_read_16(event, 3);
12538 }
12539 /**
12540  * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL
12541  * @param event packet
12542  * @return status
12543  * @note: btstack_type 1
12544  */
12545 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){
12546     return event[5];
12547 }
12548 /**
12549  * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL
12550  * @param event packet
12551  * @return present_value
12552  * @note: btstack_type 2
12553  */
12554 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){
12555     return little_endian_read_16(event, 6);
12556 }
12557 /**
12558  * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL
12559  * @param event packet
12560  * @return target_value
12561  * @note: btstack_type 2
12562  */
12563 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){
12564     return little_endian_read_16(event, 8);
12565 }
12566 /**
12567  * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL
12568  * @param event packet
12569  * @return remaining_time_ms
12570  * @note: btstack_type 4
12571  */
12572 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){
12573     return little_endian_read_32(event, 10);
12574 }
12575 
12576 /**
12577  * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
12578  * @param event packet
12579  * @return dest
12580  * @note: btstack_type 2
12581  */
12582 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){
12583     return little_endian_read_16(event, 3);
12584 }
12585 /**
12586  * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
12587  * @param event packet
12588  * @return netkey_index
12589  * @note: btstack_type 2
12590  */
12591 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){
12592     return little_endian_read_16(event, 5);
12593 }
12594 /**
12595  * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
12596  * @param event packet
12597  * @return appkey_index
12598  * @note: btstack_type 2
12599  */
12600 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){
12601     return little_endian_read_16(event, 7);
12602 }
12603 /**
12604  * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
12605  * @param event packet
12606  * @return company_id
12607  * @note: btstack_type 2
12608  */
12609 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){
12610     return little_endian_read_16(event, 9);
12611 }
12612 /**
12613  * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
12614  * @param event packet
12615  * @return test_id
12616  * @note: btstack_type 1
12617  */
12618 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){
12619     return event[11];
12620 }
12621 /**
12622  * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
12623  * @param event packet
12624  * @return acknowledged
12625  * @note: btstack_type 1
12626  */
12627 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){
12628     return event[12];
12629 }
12630 
12631 /**
12632  * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED
12633  * @param event packet
12634  * @return element_index
12635  * @note: btstack_type 1
12636  */
12637 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){
12638     return event[3];
12639 }
12640 
12641 /**
12642  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
12643  * @param event packet
12644  * @return dest
12645  * @note: btstack_type 2
12646  */
12647 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){
12648     return little_endian_read_16(event, 3);
12649 }
12650 /**
12651  * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
12652  * @param event packet
12653  * @return status
12654  * @note: btstack_type 1
12655  */
12656 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){
12657     return event[5];
12658 }
12659 /**
12660  * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
12661  * @param event packet
12662  * @return transition_time_gdtt
12663  * @note: btstack_type 1
12664  */
12665 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){
12666     return event[6];
12667 }
12668 
12669 /**
12670  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON
12671  * @param event packet
12672  * @return dest
12673  * @note: btstack_type 2
12674  */
12675 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){
12676     return little_endian_read_16(event, 3);
12677 }
12678 /**
12679  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON
12680  * @param event packet
12681  * @return foundation_status
12682  * @note: btstack_type 1
12683  */
12684 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){
12685     return event[5];
12686 }
12687 /**
12688  * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON
12689  * @param event packet
12690  * @return secure_network_beacon_state
12691  * @note: btstack_type 1
12692  */
12693 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){
12694     return event[6];
12695 }
12696 
12697 /**
12698  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
12699  * @param event packet
12700  * @return dest
12701  * @note: btstack_type 2
12702  */
12703 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){
12704     return little_endian_read_16(event, 3);
12705 }
12706 /**
12707  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
12708  * @param event packet
12709  * @return foundation_status
12710  * @note: btstack_type 1
12711  */
12712 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){
12713     return event[5];
12714 }
12715 /**
12716  * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
12717  * @param event packet
12718  * @return default_ttl
12719  * @note: btstack_type 1
12720  */
12721 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){
12722     return event[6];
12723 }
12724 
12725 /**
12726  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
12727  * @param event packet
12728  * @return dest
12729  * @note: btstack_type 2
12730  */
12731 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){
12732     return little_endian_read_16(event, 3);
12733 }
12734 /**
12735  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
12736  * @param event packet
12737  * @return foundation_status
12738  * @note: btstack_type 1
12739  */
12740 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){
12741     return event[5];
12742 }
12743 /**
12744  * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
12745  * @param event packet
12746  * @return gatt_proxy_state
12747  * @note: btstack_type 1
12748  */
12749 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){
12750     return event[6];
12751 }
12752 
12753 /**
12754  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY
12755  * @param event packet
12756  * @return dest
12757  * @note: btstack_type 2
12758  */
12759 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){
12760     return little_endian_read_16(event, 3);
12761 }
12762 /**
12763  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY
12764  * @param event packet
12765  * @return foundation_status
12766  * @note: btstack_type 1
12767  */
12768 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){
12769     return event[5];
12770 }
12771 /**
12772  * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY
12773  * @param event packet
12774  * @return relay
12775  * @note: btstack_type 1
12776  */
12777 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){
12778     return event[6];
12779 }
12780 /**
12781  * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY
12782  * @param event packet
12783  * @return retransmit_count
12784  * @note: btstack_type 1
12785  */
12786 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){
12787     return event[7];
12788 }
12789 /**
12790  * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY
12791  * @param event packet
12792  * @return retransmit_interval_ms
12793  * @note: btstack_type 1
12794  */
12795 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){
12796     return event[8];
12797 }
12798 
12799 /**
12800  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12801  * @param event packet
12802  * @return dest
12803  * @note: btstack_type 2
12804  */
12805 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){
12806     return little_endian_read_16(event, 3);
12807 }
12808 /**
12809  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12810  * @param event packet
12811  * @return foundation_status
12812  * @note: btstack_type 1
12813  */
12814 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){
12815     return event[5];
12816 }
12817 /**
12818  * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12819  * @param event packet
12820  * @return publish_address
12821  * @note: btstack_type 2
12822  */
12823 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){
12824     return little_endian_read_16(event, 6);
12825 }
12826 /**
12827  * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12828  * @param event packet
12829  * @return appkey_index
12830  * @note: btstack_type 2
12831  */
12832 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){
12833     return little_endian_read_16(event, 8);
12834 }
12835 /**
12836  * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12837  * @param event packet
12838  * @return credential_flag
12839  * @note: btstack_type 1
12840  */
12841 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){
12842     return event[10];
12843 }
12844 /**
12845  * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12846  * @param event packet
12847  * @return publish_ttl
12848  * @note: btstack_type 1
12849  */
12850 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){
12851     return event[11];
12852 }
12853 /**
12854  * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12855  * @param event packet
12856  * @return publish_period
12857  * @note: btstack_type 1
12858  */
12859 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){
12860     return event[12];
12861 }
12862 /**
12863  * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12864  * @param event packet
12865  * @return publish_retransmit_count
12866  * @note: btstack_type 1
12867  */
12868 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){
12869     return event[13];
12870 }
12871 /**
12872  * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12873  * @param event packet
12874  * @return publish_retransmit_interval_steps
12875  * @note: btstack_type 1
12876  */
12877 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){
12878     return event[14];
12879 }
12880 /**
12881  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
12882  * @param event packet
12883  * @return model_identifier
12884  * @note: btstack_type 4
12885  */
12886 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){
12887     return little_endian_read_32(event, 15);
12888 }
12889 
12890 /**
12891  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
12892  * @param event packet
12893  * @return dest
12894  * @note: btstack_type 2
12895  */
12896 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){
12897     return little_endian_read_16(event, 3);
12898 }
12899 /**
12900  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
12901  * @param event packet
12902  * @return foundation_status
12903  * @note: btstack_type 1
12904  */
12905 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){
12906     return event[5];
12907 }
12908 /**
12909  * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
12910  * @param event packet
12911  * @return address
12912  * @note: btstack_type 2
12913  */
12914 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){
12915     return little_endian_read_16(event, 6);
12916 }
12917 /**
12918  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
12919  * @param event packet
12920  * @return model_identifier
12921  * @note: btstack_type 4
12922  */
12923 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){
12924     return little_endian_read_32(event, 8);
12925 }
12926 
12927 /**
12928  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
12929  * @param event packet
12930  * @return dest
12931  * @note: btstack_type 2
12932  */
12933 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){
12934     return little_endian_read_16(event, 3);
12935 }
12936 /**
12937  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
12938  * @param event packet
12939  * @return foundation_status
12940  * @note: btstack_type 1
12941  */
12942 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){
12943     return event[5];
12944 }
12945 /**
12946  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
12947  * @param event packet
12948  * @return model_identifier
12949  * @note: btstack_type 4
12950  */
12951 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){
12952     return little_endian_read_32(event, 6);
12953 }
12954 /**
12955  * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
12956  * @param event packet
12957  * @return num_subscription_addresses
12958  * @note: btstack_type 1
12959  */
12960 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){
12961     return event[10];
12962 }
12963 /**
12964  * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
12965  * @param event packet
12966  * @return subscription_address_pos
12967  * @note: btstack_type 1
12968  */
12969 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){
12970     return event[11];
12971 }
12972 /**
12973  * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
12974  * @param event packet
12975  * @return subscription_address_item
12976  * @note: btstack_type 2
12977  */
12978 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){
12979     return little_endian_read_16(event, 12);
12980 }
12981 
12982 /**
12983  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX
12984  * @param event packet
12985  * @return dest
12986  * @note: btstack_type 2
12987  */
12988 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){
12989     return little_endian_read_16(event, 3);
12990 }
12991 /**
12992  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX
12993  * @param event packet
12994  * @return foundation_status
12995  * @note: btstack_type 1
12996  */
12997 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){
12998     return event[5];
12999 }
13000 
13001 /**
13002  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
13003  * @param event packet
13004  * @return dest
13005  * @note: btstack_type 2
13006  */
13007 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){
13008     return little_endian_read_16(event, 3);
13009 }
13010 /**
13011  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
13012  * @param event packet
13013  * @return foundation_status
13014  * @note: btstack_type 1
13015  */
13016 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){
13017     return event[5];
13018 }
13019 /**
13020  * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
13021  * @param event packet
13022  * @return num_netkey_indexes
13023  * @note: btstack_type 1
13024  */
13025 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){
13026     return event[6];
13027 }
13028 /**
13029  * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
13030  * @param event packet
13031  * @return netkey_index_pos
13032  * @note: btstack_type 1
13033  */
13034 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){
13035     return event[7];
13036 }
13037 /**
13038  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
13039  * @param event packet
13040  * @return netkey_index_item
13041  * @note: btstack_type 2
13042  */
13043 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){
13044     return little_endian_read_16(event, 8);
13045 }
13046 
13047 /**
13048  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
13049  * @param event packet
13050  * @return dest
13051  * @note: btstack_type 2
13052  */
13053 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){
13054     return little_endian_read_16(event, 3);
13055 }
13056 /**
13057  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
13058  * @param event packet
13059  * @return foundation_status
13060  * @note: btstack_type 1
13061  */
13062 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){
13063     return event[5];
13064 }
13065 /**
13066  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
13067  * @param event packet
13068  * @return netkey_index_item
13069  * @note: btstack_type 2
13070  */
13071 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){
13072     return little_endian_read_16(event, 6);
13073 }
13074 /**
13075  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
13076  * @param event packet
13077  * @return appkey_index_item
13078  * @note: btstack_type 2
13079  */
13080 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){
13081     return little_endian_read_16(event, 8);
13082 }
13083 
13084 /**
13085  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13086  * @param event packet
13087  * @return dest
13088  * @note: btstack_type 2
13089  */
13090 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){
13091     return little_endian_read_16(event, 3);
13092 }
13093 /**
13094  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13095  * @param event packet
13096  * @return foundation_status
13097  * @note: btstack_type 1
13098  */
13099 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){
13100     return event[5];
13101 }
13102 /**
13103  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13104  * @param event packet
13105  * @return netkey_index
13106  * @note: btstack_type 2
13107  */
13108 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){
13109     return little_endian_read_16(event, 6);
13110 }
13111 /**
13112  * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13113  * @param event packet
13114  * @return num_appkey_indexes
13115  * @note: btstack_type 1
13116  */
13117 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){
13118     return event[8];
13119 }
13120 /**
13121  * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13122  * @param event packet
13123  * @return appkey_index_pos
13124  * @note: btstack_type 1
13125  */
13126 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){
13127     return event[9];
13128 }
13129 /**
13130  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13131  * @param event packet
13132  * @return netkey_index_item
13133  * @note: btstack_type 2
13134  */
13135 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){
13136     return little_endian_read_16(event, 10);
13137 }
13138 /**
13139  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
13140  * @param event packet
13141  * @return appkey_index_item
13142  * @note: btstack_type 2
13143  */
13144 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){
13145     return little_endian_read_16(event, 12);
13146 }
13147 
13148 /**
13149  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
13150  * @param event packet
13151  * @return dest
13152  * @note: btstack_type 2
13153  */
13154 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){
13155     return little_endian_read_16(event, 3);
13156 }
13157 /**
13158  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
13159  * @param event packet
13160  * @return foundation_status
13161  * @note: btstack_type 1
13162  */
13163 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){
13164     return event[5];
13165 }
13166 /**
13167  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
13168  * @param event packet
13169  * @return netkey_index_item
13170  * @note: btstack_type 2
13171  */
13172 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){
13173     return little_endian_read_16(event, 6);
13174 }
13175 /**
13176  * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
13177  * @param event packet
13178  * @return identity_status
13179  * @note: btstack_type 1
13180  */
13181 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){
13182     return event[8];
13183 }
13184 
13185 /**
13186  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
13187  * @param event packet
13188  * @return dest
13189  * @note: btstack_type 2
13190  */
13191 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){
13192     return little_endian_read_16(event, 3);
13193 }
13194 /**
13195  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
13196  * @param event packet
13197  * @return foundation_status
13198  * @note: btstack_type 1
13199  */
13200 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){
13201     return event[5];
13202 }
13203 /**
13204  * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
13205  * @param event packet
13206  * @return appkey_index
13207  * @note: btstack_type 2
13208  */
13209 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){
13210     return little_endian_read_16(event, 6);
13211 }
13212 /**
13213  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
13214  * @param event packet
13215  * @return model_identifier
13216  * @note: btstack_type 4
13217  */
13218 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){
13219     return little_endian_read_32(event, 8);
13220 }
13221 
13222 /**
13223  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
13224  * @param event packet
13225  * @return dest
13226  * @note: btstack_type 2
13227  */
13228 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){
13229     return little_endian_read_16(event, 3);
13230 }
13231 /**
13232  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
13233  * @param event packet
13234  * @return foundation_status
13235  * @note: btstack_type 1
13236  */
13237 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){
13238     return event[5];
13239 }
13240 /**
13241  * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
13242  * @param event packet
13243  * @return model_id
13244  * @note: btstack_type 4
13245  */
13246 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){
13247     return little_endian_read_32(event, 6);
13248 }
13249 /**
13250  * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
13251  * @param event packet
13252  * @return num_appkey_indexes
13253  * @note: btstack_type 1
13254  */
13255 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){
13256     return event[10];
13257 }
13258 /**
13259  * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
13260  * @param event packet
13261  * @return appkey_index_pos
13262  * @note: btstack_type 1
13263  */
13264 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){
13265     return event[11];
13266 }
13267 /**
13268  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
13269  * @param event packet
13270  * @return appkey_index_item
13271  * @note: btstack_type 2
13272  */
13273 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){
13274     return little_endian_read_16(event, 12);
13275 }
13276 
13277 /**
13278  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET
13279  * @param event packet
13280  * @return dest
13281  * @note: btstack_type 2
13282  */
13283 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){
13284     return little_endian_read_16(event, 3);
13285 }
13286 /**
13287  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET
13288  * @param event packet
13289  * @return foundation_status
13290  * @note: btstack_type 1
13291  */
13292 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){
13293     return event[5];
13294 }
13295 
13296 /**
13297  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND
13298  * @param event packet
13299  * @return dest
13300  * @note: btstack_type 2
13301  */
13302 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){
13303     return little_endian_read_16(event, 3);
13304 }
13305 /**
13306  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND
13307  * @param event packet
13308  * @return foundation_status
13309  * @note: btstack_type 1
13310  */
13311 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){
13312     return event[5];
13313 }
13314 /**
13315  * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND
13316  * @param event packet
13317  * @return friend_state
13318  * @note: btstack_type 1
13319  */
13320 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){
13321     return event[6];
13322 }
13323 
13324 /**
13325  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
13326  * @param event packet
13327  * @return dest
13328  * @note: btstack_type 2
13329  */
13330 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){
13331     return little_endian_read_16(event, 3);
13332 }
13333 /**
13334  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
13335  * @param event packet
13336  * @return foundation_status
13337  * @note: btstack_type 1
13338  */
13339 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){
13340     return event[5];
13341 }
13342 /**
13343  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
13344  * @param event packet
13345  * @return netkey_index
13346  * @note: btstack_type 2
13347  */
13348 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){
13349     return little_endian_read_16(event, 6);
13350 }
13351 /**
13352  * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
13353  * @param event packet
13354  * @return phase
13355  * @note: btstack_type 1
13356  */
13357 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){
13358     return event[8];
13359 }
13360 
13361 /**
13362  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13363  * @param event packet
13364  * @return dest
13365  * @note: btstack_type 2
13366  */
13367 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){
13368     return little_endian_read_16(event, 3);
13369 }
13370 /**
13371  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13372  * @param event packet
13373  * @return foundation_status
13374  * @note: btstack_type 1
13375  */
13376 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){
13377     return event[5];
13378 }
13379 /**
13380  * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13381  * @param event packet
13382  * @return heartbeat_destination
13383  * @note: btstack_type 2
13384  */
13385 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){
13386     return little_endian_read_16(event, 6);
13387 }
13388 /**
13389  * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13390  * @param event packet
13391  * @return count_S
13392  * @note: btstack_type 2
13393  */
13394 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){
13395     return little_endian_read_16(event, 8);
13396 }
13397 /**
13398  * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13399  * @param event packet
13400  * @return period_S
13401  * @note: btstack_type 2
13402  */
13403 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){
13404     return little_endian_read_16(event, 10);
13405 }
13406 /**
13407  * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13408  * @param event packet
13409  * @return ttl
13410  * @note: btstack_type 1
13411  */
13412 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){
13413     return event[12];
13414 }
13415 /**
13416  * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13417  * @param event packet
13418  * @return features
13419  * @note: btstack_type 2
13420  */
13421 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){
13422     return little_endian_read_16(event, 13);
13423 }
13424 /**
13425  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
13426  * @param event packet
13427  * @return netkey_index
13428  * @note: btstack_type 2
13429  */
13430 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){
13431     return little_endian_read_16(event, 15);
13432 }
13433 
13434 /**
13435  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13436  * @param event packet
13437  * @return dest
13438  * @note: btstack_type 2
13439  */
13440 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){
13441     return little_endian_read_16(event, 3);
13442 }
13443 /**
13444  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13445  * @param event packet
13446  * @return foundation_status
13447  * @note: btstack_type 1
13448  */
13449 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){
13450     return event[5];
13451 }
13452 /**
13453  * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13454  * @param event packet
13455  * @return heartbeat_destination
13456  * @note: btstack_type 2
13457  */
13458 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){
13459     return little_endian_read_16(event, 6);
13460 }
13461 /**
13462  * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13463  * @param event packet
13464  * @return heartbeat_source
13465  * @note: btstack_type 2
13466  */
13467 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){
13468     return little_endian_read_16(event, 8);
13469 }
13470 /**
13471  * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13472  * @param event packet
13473  * @return count_S
13474  * @note: btstack_type 2
13475  */
13476 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){
13477     return little_endian_read_16(event, 10);
13478 }
13479 /**
13480  * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13481  * @param event packet
13482  * @return period_S
13483  * @note: btstack_type 2
13484  */
13485 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){
13486     return little_endian_read_16(event, 12);
13487 }
13488 /**
13489  * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13490  * @param event packet
13491  * @return min_hops
13492  * @note: btstack_type 1
13493  */
13494 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){
13495     return event[14];
13496 }
13497 /**
13498  * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
13499  * @param event packet
13500  * @return max_hops
13501  * @note: btstack_type 1
13502  */
13503 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){
13504     return event[15];
13505 }
13506 
13507 /**
13508  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
13509  * @param event packet
13510  * @return dest
13511  * @note: btstack_type 2
13512  */
13513 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){
13514     return little_endian_read_16(event, 3);
13515 }
13516 /**
13517  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
13518  * @param event packet
13519  * @return foundation_status
13520  * @note: btstack_type 1
13521  */
13522 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){
13523     return event[5];
13524 }
13525 /**
13526  * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
13527  * @param event packet
13528  * @return lpn_address
13529  * @note: btstack_type 2
13530  */
13531 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){
13532     return little_endian_read_16(event, 6);
13533 }
13534 /**
13535  * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
13536  * @param event packet
13537  * @return poll_timeout
13538  * @note: btstack_type 3
13539  */
13540 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){
13541     return little_endian_read_24(event, 8);
13542 }
13543 
13544 /**
13545  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
13546  * @param event packet
13547  * @return dest
13548  * @note: btstack_type 2
13549  */
13550 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){
13551     return little_endian_read_16(event, 3);
13552 }
13553 /**
13554  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
13555  * @param event packet
13556  * @return foundation_status
13557  * @note: btstack_type 1
13558  */
13559 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){
13560     return event[5];
13561 }
13562 /**
13563  * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
13564  * @param event packet
13565  * @return transmit_count
13566  * @note: btstack_type 1
13567  */
13568 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){
13569     return event[6];
13570 }
13571 /**
13572  * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
13573  * @param event packet
13574  * @return transmit_interval_steps_ms
13575  * @note: btstack_type 2
13576  */
13577 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){
13578     return little_endian_read_16(event, 7);
13579 }
13580 
13581 
13582 
13583 /* API_END */
13584 
13585 #if defined __cplusplus
13586 }
13587 #endif
13588 
13589 #endif // BTSTACK_EVENT_H
13590