xref: /btstack/src/btstack_event.h (revision 5a6c9e2aa2262e764662e62734351f38387f7b24)
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 typedef uint8_t* btstack_event_iterator_t;
72 
73 /***
74  * @brief Get subevent code for a2dp event
75  * @param event packet
76  * @return subevent_code
77  */
78 static inline uint8_t hci_event_a2dp_meta_get_subevent_code(const uint8_t * event){
79     return event[2];
80 }
81 /***
82  * @brief Get subevent code for ancs event
83  * @param event packet
84  * @return subevent_code
85  */
86 static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){
87     return event[2];
88 }
89 /***
90  * @brief Get subevent code for avdtp event
91  * @param event packet
92  * @return subevent_code
93  */
94 static inline uint8_t hci_event_avdtp_meta_get_subevent_code(const uint8_t * event){
95     return event[2];
96 }
97 /***
98  * @brief Get subevent code for avrcp event
99  * @param event packet
100  * @return subevent_code
101  */
102 static inline uint8_t hci_event_avrcp_meta_get_subevent_code(const uint8_t * event){
103     return event[2];
104 }
105 /***
106  * @brief Get subevent code for gap event
107  * @param event packet
108  * @return subevent_code
109  */
110 static inline uint8_t hci_event_gap_meta_get_subevent_code(const uint8_t * event){
111     return event[2];
112 }
113 /***
114  * @brief Get subevent code for gattservice event
115  * @param event packet
116  * @return subevent_code
117  */
118 static inline uint8_t hci_event_gattservice_meta_get_subevent_code(const uint8_t * event){
119     return event[2];
120 }
121 /***
122  * @brief Get subevent code for goep event
123  * @param event packet
124  * @return subevent_code
125  */
126 static inline uint8_t hci_event_goep_meta_get_subevent_code(const uint8_t * event){
127     return event[2];
128 }
129 /***
130  * @brief Get subevent code for hfp event
131  * @param event packet
132  * @return subevent_code
133  */
134 static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event){
135     return event[2];
136 }
137 /***
138  * @brief Get subevent code for hid event
139  * @param event packet
140  * @return subevent_code
141  */
142 static inline uint8_t hci_event_hid_meta_get_subevent_code(const uint8_t * event){
143     return event[2];
144 }
145 /***
146  * @brief Get subevent code for hids event
147  * @param event packet
148  * @return subevent_code
149  */
150 static inline uint8_t hci_event_hids_meta_get_subevent_code(const uint8_t * event){
151     return event[2];
152 }
153 /***
154  * @brief Get subevent code for hsp event
155  * @param event packet
156  * @return subevent_code
157  */
158 static inline uint8_t hci_event_hsp_meta_get_subevent_code(const uint8_t * event){
159     return event[2];
160 }
161 /***
162  * @brief Get subevent code for le event
163  * @param event packet
164  * @return subevent_code
165  */
166 static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){
167     return event[2];
168 }
169 /***
170  * @brief Get subevent code for leaudio event
171  * @param event packet
172  * @return subevent_code
173  */
174 static inline uint8_t hci_event_leaudio_meta_get_subevent_code(const uint8_t * event){
175     return event[2];
176 }
177 /***
178  * @brief Get subevent code for map event
179  * @param event packet
180  * @return subevent_code
181  */
182 static inline uint8_t hci_event_map_meta_get_subevent_code(const uint8_t * event){
183     return event[2];
184 }
185 /***
186  * @brief Get subevent code for mesh event
187  * @param event packet
188  * @return subevent_code
189  */
190 static inline uint8_t hci_event_mesh_meta_get_subevent_code(const uint8_t * event){
191     return event[2];
192 }
193 /***
194  * @brief Get subevent code for pbap event
195  * @param event packet
196  * @return subevent_code
197  */
198 static inline uint8_t hci_event_pbap_meta_get_subevent_code(const uint8_t * event){
199     return event[2];
200 }
201 /***
202  * @brief Get subevent code for opp event
203  * @param event packet
204  * @return subevent_code
205  */
206 static inline uint8_t hci_event_opp_meta_get_subevent_code(const uint8_t * event){
207     return event[2];
208 }
209 /**
210  * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE
211  * @param event packet
212  * @return status
213  * @note: btstack_type 1
214  */
215 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){
216     return event[2];
217 }
218 
219 /**
220  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT
221  * @param event packet
222  * @return num_responses
223  * @note: btstack_type 1
224  */
225 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){
226     return event[2];
227 }
228 /**
229  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT
230  * @param event packet
231  * @param Pointer to storage for bd_addr
232  * @note: btstack_type B
233  */
234 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
235     reverse_bytes(&event[3], bd_addr, 6);
236 }
237 /**
238  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT
239  * @param event packet
240  * @return page_scan_repetition_mode
241  * @note: btstack_type 1
242  */
243 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
244     return event[9];
245 }
246 /**
247  * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT
248  * @param event packet
249  * @return reserved1
250  * @note: btstack_type 1
251  */
252 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){
253     return event[10];
254 }
255 /**
256  * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT
257  * @param event packet
258  * @return reserved2
259  * @note: btstack_type 1
260  */
261 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){
262     return event[11];
263 }
264 /**
265  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT
266  * @param event packet
267  * @return class_of_device
268  * @note: btstack_type 3
269  */
270 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){
271     return little_endian_read_24(event, 12);
272 }
273 /**
274  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT
275  * @param event packet
276  * @return clock_offset
277  * @note: btstack_type 2
278  */
279 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){
280     return little_endian_read_16(event, 15);
281 }
282 
283 /**
284  * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE
285  * @param event packet
286  * @return status
287  * @note: btstack_type 1
288  */
289 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){
290     return event[2];
291 }
292 /**
293  * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE
294  * @param event packet
295  * @return connection_handle
296  * @note: btstack_type 2
297  */
298 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){
299     return little_endian_read_16(event, 3);
300 }
301 /**
302  * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE
303  * @param event packet
304  * @param Pointer to storage for bd_addr
305  * @note: btstack_type B
306  */
307 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
308     reverse_bytes(&event[5], bd_addr, 6);
309 }
310 /**
311  * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE
312  * @param event packet
313  * @return link_type
314  * @note: btstack_type 1
315  */
316 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){
317     return event[11];
318 }
319 /**
320  * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE
321  * @param event packet
322  * @return encryption_enabled
323  * @note: btstack_type 1
324  */
325 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){
326     return event[12];
327 }
328 
329 /**
330  * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST
331  * @param event packet
332  * @param Pointer to storage for bd_addr
333  * @note: btstack_type B
334  */
335 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
336     reverse_bytes(&event[2], bd_addr, 6);
337 }
338 /**
339  * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST
340  * @param event packet
341  * @return class_of_device
342  * @note: btstack_type 3
343  */
344 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){
345     return little_endian_read_24(event, 8);
346 }
347 /**
348  * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST
349  * @param event packet
350  * @return link_type
351  * @note: btstack_type 1
352  */
353 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){
354     return event[11];
355 }
356 
357 /**
358  * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE
359  * @param event packet
360  * @return status
361  * @note: btstack_type 1
362  */
363 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){
364     return event[2];
365 }
366 /**
367  * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE
368  * @param event packet
369  * @return connection_handle
370  * @note: btstack_type 2
371  */
372 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){
373     return little_endian_read_16(event, 3);
374 }
375 /**
376  * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE
377  * @param event packet
378  * @return reason
379  * @note: btstack_type 1
380  */
381 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){
382     return event[5];
383 }
384 
385 /**
386  * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE
387  * @param event packet
388  * @return status
389  * @note: btstack_type 1
390  */
391 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){
392     return event[2];
393 }
394 /**
395  * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE
396  * @param event packet
397  * @return connection_handle
398  * @note: btstack_type 2
399  */
400 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){
401     return little_endian_read_16(event, 3);
402 }
403 
404 /**
405  * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
406  * @param event packet
407  * @return status
408  * @note: btstack_type 1
409  */
410 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){
411     return event[2];
412 }
413 /**
414  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
415  * @param event packet
416  * @param Pointer to storage for bd_addr
417  * @note: btstack_type B
418  */
419 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
420     reverse_bytes(&event[3], bd_addr, 6);
421 }
422 /**
423  * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
424  * @param event packet
425  * @return remote_name
426  * @note: btstack_type N
427  */
428 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){
429     return (const char *) &event[9];
430 }
431 
432 /**
433  * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE
434  * @param event packet
435  * @return status
436  * @note: btstack_type 1
437  */
438 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){
439     return event[2];
440 }
441 /**
442  * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE
443  * @param event packet
444  * @return connection_handle
445  * @note: btstack_type 2
446  */
447 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){
448     return little_endian_read_16(event, 3);
449 }
450 /**
451  * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE
452  * @param event packet
453  * @return encryption_enabled
454  * @note: btstack_type 1
455  */
456 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){
457     return event[5];
458 }
459 
460 /**
461  * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
462  * @param event packet
463  * @return status
464  * @note: btstack_type 1
465  */
466 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){
467     return event[2];
468 }
469 /**
470  * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
471  * @param event packet
472  * @return connection_handle
473  * @note: btstack_type 2
474  */
475 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){
476     return little_endian_read_16(event, 3);
477 }
478 
479 /**
480  * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
481  * @param event packet
482  * @return status
483  * @note: btstack_type 1
484  */
485 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){
486     return event[2];
487 }
488 /**
489  * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
490  * @param event packet
491  * @return connection_handle
492  * @note: btstack_type 2
493  */
494 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){
495     return little_endian_read_16(event, 3);
496 }
497 /**
498  * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
499  * @param event packet
500  * @return key_flag
501  * @note: btstack_type 1
502  */
503 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){
504     return event[5];
505 }
506 
507 /**
508  * @brief Get field status from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
509  * @param event packet
510  * @return status
511  * @note: btstack_type 1
512  */
513 static inline uint8_t hci_event_read_remote_version_information_complete_get_status(const uint8_t * event){
514     return event[2];
515 }
516 /**
517  * @brief Get field connection_handle from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
518  * @param event packet
519  * @return connection_handle
520  * @note: btstack_type 2
521  */
522 static inline uint16_t hci_event_read_remote_version_information_complete_get_connection_handle(const uint8_t * event){
523     return little_endian_read_16(event, 3);
524 }
525 /**
526  * @brief Get field version from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
527  * @param event packet
528  * @return version
529  * @note: btstack_type 1
530  */
531 static inline uint8_t hci_event_read_remote_version_information_complete_get_version(const uint8_t * event){
532     return event[5];
533 }
534 /**
535  * @brief Get field manufacturer_name from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
536  * @param event packet
537  * @return manufacturer_name
538  * @note: btstack_type 2
539  */
540 static inline uint16_t hci_event_read_remote_version_information_complete_get_manufacturer_name(const uint8_t * event){
541     return little_endian_read_16(event, 6);
542 }
543 /**
544  * @brief Get field subversion from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
545  * @param event packet
546  * @return subversion
547  * @note: btstack_type 2
548  */
549 static inline uint16_t hci_event_read_remote_version_information_complete_get_subversion(const uint8_t * event){
550     return little_endian_read_16(event, 8);
551 }
552 
553 /**
554  * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE
555  * @param event packet
556  * @return num_hci_command_packets
557  * @note: btstack_type 1
558  */
559 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){
560     return event[2];
561 }
562 /**
563  * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE
564  * @param event packet
565  * @return command_opcode
566  * @note: btstack_type 2
567  */
568 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){
569     return little_endian_read_16(event, 3);
570 }
571 /**
572  * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE
573  * @param event packet
574  * @return return_parameters
575  * @note: btstack_type R
576  */
577 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){
578     return &event[5];
579 }
580 
581 /**
582  * @brief Get field status from event HCI_EVENT_COMMAND_STATUS
583  * @param event packet
584  * @return status
585  * @note: btstack_type 1
586  */
587 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){
588     return event[2];
589 }
590 /**
591  * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS
592  * @param event packet
593  * @return num_hci_command_packets
594  * @note: btstack_type 1
595  */
596 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){
597     return event[3];
598 }
599 /**
600  * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS
601  * @param event packet
602  * @return command_opcode
603  * @note: btstack_type 2
604  */
605 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){
606     return little_endian_read_16(event, 4);
607 }
608 
609 /**
610  * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR
611  * @param event packet
612  * @return hardware_code
613  * @note: btstack_type 1
614  */
615 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){
616     return event[2];
617 }
618 
619 /**
620  * @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED
621  * @param event packet
622  * @return handle
623  * @note: btstack_type H
624  */
625 static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){
626     return little_endian_read_16(event, 2);
627 }
628 
629 /**
630  * @brief Get field status from event HCI_EVENT_ROLE_CHANGE
631  * @param event packet
632  * @return status
633  * @note: btstack_type 1
634  */
635 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){
636     return event[2];
637 }
638 /**
639  * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE
640  * @param event packet
641  * @param Pointer to storage for bd_addr
642  * @note: btstack_type B
643  */
644 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
645     reverse_bytes(&event[3], bd_addr, 6);
646 }
647 /**
648  * @brief Get field role from event HCI_EVENT_ROLE_CHANGE
649  * @param event packet
650  * @return role
651  * @note: btstack_type 1
652  */
653 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){
654     return event[9];
655 }
656 
657 /**
658  * @brief Get field status from event HCI_EVENT_MODE_CHANGE
659  * @param event packet
660  * @return status
661  * @note: btstack_type 1
662  */
663 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){
664     return event[2];
665 }
666 /**
667  * @brief Get field handle from event HCI_EVENT_MODE_CHANGE
668  * @param event packet
669  * @return handle
670  * @note: btstack_type H
671  */
672 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){
673     return little_endian_read_16(event, 3);
674 }
675 /**
676  * @brief Get field mode from event HCI_EVENT_MODE_CHANGE
677  * @param event packet
678  * @return mode
679  * @note: btstack_type 1
680  */
681 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){
682     return event[5];
683 }
684 /**
685  * @brief Get field interval from event HCI_EVENT_MODE_CHANGE
686  * @param event packet
687  * @return interval
688  * @note: btstack_type 2
689  */
690 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){
691     return little_endian_read_16(event, 6);
692 }
693 
694 /**
695  * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST
696  * @param event packet
697  * @param Pointer to storage for bd_addr
698  * @note: btstack_type B
699  */
700 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
701     reverse_bytes(&event[2], bd_addr, 6);
702 }
703 
704 /**
705  * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_REQUEST
706  * @param event packet
707  * @param Pointer to storage for bd_addr
708  * @note: btstack_type B
709  */
710 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
711     reverse_bytes(&event[2], bd_addr, 6);
712 }
713 
714 /**
715  * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW
716  * @param event packet
717  * @return link_type
718  * @note: btstack_type 1
719  */
720 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){
721     return event[2];
722 }
723 
724 /**
725  * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED
726  * @param event packet
727  * @return handle
728  * @note: btstack_type H
729  */
730 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){
731     return little_endian_read_16(event, 2);
732 }
733 /**
734  * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED
735  * @param event packet
736  * @return lmp_max_slots
737  * @note: btstack_type 1
738  */
739 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){
740     return event[4];
741 }
742 
743 /**
744  * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
745  * @param event packet
746  * @return status
747  * @note: btstack_type 1
748  */
749 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){
750     return event[2];
751 }
752 /**
753  * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
754  * @param event packet
755  * @return handle
756  * @note: btstack_type H
757  */
758 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){
759     return little_endian_read_16(event, 3);
760 }
761 /**
762  * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
763  * @param event packet
764  * @return clock_offset
765  * @note: btstack_type 2
766  */
767 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){
768     return little_endian_read_16(event, 5);
769 }
770 
771 /**
772  * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
773  * @param event packet
774  * @return status
775  * @note: btstack_type 1
776  */
777 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){
778     return event[2];
779 }
780 /**
781  * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
782  * @param event packet
783  * @return handle
784  * @note: btstack_type H
785  */
786 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){
787     return little_endian_read_16(event, 3);
788 }
789 /**
790  * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
791  * @param event packet
792  * @return packet_types
793  * @note: btstack_type 2
794  */
795 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){
796     return little_endian_read_16(event, 5);
797 }
798 
799 /**
800  * @brief Get field handle from event HCI_EVENT_QOS_VIOLATION
801  * @param event packet
802  * @return handle
803  * @note: btstack_type H
804  */
805 static inline hci_con_handle_t hci_event_qos_violation_get_handle(const uint8_t * event){
806     return little_endian_read_16(event, 2);
807 }
808 
809 /**
810  * @brief Get field handle from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
811  * @param event packet
812  * @return handle
813  * @note: btstack_type H
814  */
815 static inline hci_con_handle_t hci_event_page_scan_repetition_mode_change_get_handle(const uint8_t * event){
816     return little_endian_read_16(event, 2);
817 }
818 /**
819  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
820  * @param event packet
821  * @return page_scan_repetition_mode
822  * @note: btstack_type 1
823  */
824 static inline uint8_t hci_event_page_scan_repetition_mode_change_get_page_scan_repetition_mode(const uint8_t * event){
825     return event[4];
826 }
827 
828 /**
829  * @brief Get field status from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
830  * @param event packet
831  * @return status
832  * @note: btstack_type 1
833  */
834 static inline uint8_t hci_event_flow_specification_complete_get_status(const uint8_t * event){
835     return event[2];
836 }
837 /**
838  * @brief Get field handle from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
839  * @param event packet
840  * @return handle
841  * @note: btstack_type H
842  */
843 static inline hci_con_handle_t hci_event_flow_specification_complete_get_handle(const uint8_t * event){
844     return little_endian_read_16(event, 3);
845 }
846 /**
847  * @brief Get field unused from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
848  * @param event packet
849  * @return unused
850  * @note: btstack_type 1
851  */
852 static inline uint8_t hci_event_flow_specification_complete_get_unused(const uint8_t * event){
853     return event[5];
854 }
855 /**
856  * @brief Get field flow_direction from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
857  * @param event packet
858  * @return flow_direction
859  * @note: btstack_type 1
860  */
861 static inline uint8_t hci_event_flow_specification_complete_get_flow_direction(const uint8_t * event){
862     return event[6];
863 }
864 /**
865  * @brief Get field service_type from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
866  * @param event packet
867  * @return service_type
868  * @note: btstack_type 1
869  */
870 static inline uint8_t hci_event_flow_specification_complete_get_service_type(const uint8_t * event){
871     return event[7];
872 }
873 /**
874  * @brief Get field token_rate from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
875  * @param event packet
876  * @return token_rate
877  * @note: btstack_type 4
878  */
879 static inline uint32_t hci_event_flow_specification_complete_get_token_rate(const uint8_t * event){
880     return little_endian_read_32(event, 8);
881 }
882 /**
883  * @brief Get field token_bucket_size from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
884  * @param event packet
885  * @return token_bucket_size
886  * @note: btstack_type 4
887  */
888 static inline uint32_t hci_event_flow_specification_complete_get_token_bucket_size(const uint8_t * event){
889     return little_endian_read_32(event, 12);
890 }
891 /**
892  * @brief Get field peak_bandwidth from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
893  * @param event packet
894  * @return peak_bandwidth
895  * @note: btstack_type 4
896  */
897 static inline uint32_t hci_event_flow_specification_complete_get_peak_bandwidth(const uint8_t * event){
898     return little_endian_read_32(event, 16);
899 }
900 /**
901  * @brief Get field access_latency from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
902  * @param event packet
903  * @return access_latency
904  * @note: btstack_type 4
905  */
906 static inline uint32_t hci_event_flow_specification_complete_get_access_latency(const uint8_t * event){
907     return little_endian_read_32(event, 20);
908 }
909 
910 /**
911  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
912  * @param event packet
913  * @return num_responses
914  * @note: btstack_type 1
915  */
916 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){
917     return event[2];
918 }
919 /**
920  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
921  * @param event packet
922  * @param Pointer to storage for bd_addr
923  * @note: btstack_type B
924  */
925 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
926     reverse_bytes(&event[3], bd_addr, 6);
927 }
928 /**
929  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
930  * @param event packet
931  * @return page_scan_repetition_mode
932  * @note: btstack_type 1
933  */
934 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){
935     return event[9];
936 }
937 /**
938  * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
939  * @param event packet
940  * @return reserved
941  * @note: btstack_type 1
942  */
943 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){
944     return event[10];
945 }
946 /**
947  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
948  * @param event packet
949  * @return class_of_device
950  * @note: btstack_type 3
951  */
952 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){
953     return little_endian_read_24(event, 11);
954 }
955 /**
956  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
957  * @param event packet
958  * @return clock_offset
959  * @note: btstack_type 2
960  */
961 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){
962     return little_endian_read_16(event, 14);
963 }
964 /**
965  * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
966  * @param event packet
967  * @return rssi
968  * @note: btstack_type 1
969  */
970 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){
971     return event[16];
972 }
973 
974 /**
975  * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
976  * @param event packet
977  * @return status
978  * @note: btstack_type 1
979  */
980 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){
981     return event[2];
982 }
983 /**
984  * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
985  * @param event packet
986  * @return handle
987  * @note: btstack_type H
988  */
989 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){
990     return little_endian_read_16(event, 3);
991 }
992 /**
993  * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
994  * @param event packet
995  * @param Pointer to storage for bd_addr
996  * @note: btstack_type B
997  */
998 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
999     reverse_bytes(&event[5], bd_addr, 6);
1000 }
1001 /**
1002  * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1003  * @param event packet
1004  * @return link_type
1005  * @note: btstack_type 1
1006  */
1007 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){
1008     return event[11];
1009 }
1010 /**
1011  * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1012  * @param event packet
1013  * @return transmission_interval
1014  * @note: btstack_type 1
1015  */
1016 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){
1017     return event[12];
1018 }
1019 /**
1020  * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1021  * @param event packet
1022  * @return retransmission_interval
1023  * @note: btstack_type 1
1024  */
1025 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){
1026     return event[13];
1027 }
1028 /**
1029  * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1030  * @param event packet
1031  * @return rx_packet_length
1032  * @note: btstack_type 2
1033  */
1034 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){
1035     return little_endian_read_16(event, 14);
1036 }
1037 /**
1038  * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1039  * @param event packet
1040  * @return tx_packet_length
1041  * @note: btstack_type 2
1042  */
1043 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){
1044     return little_endian_read_16(event, 16);
1045 }
1046 /**
1047  * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
1048  * @param event packet
1049  * @return air_mode
1050  * @note: btstack_type 1
1051  */
1052 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){
1053     return event[18];
1054 }
1055 
1056 /**
1057  * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1058  * @param event packet
1059  * @return status
1060  * @note: btstack_type 1
1061  */
1062 static inline uint8_t hci_event_synchronous_connection_changed_get_status(const uint8_t * event){
1063     return event[2];
1064 }
1065 /**
1066  * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1067  * @param event packet
1068  * @return handle
1069  * @note: btstack_type H
1070  */
1071 static inline hci_con_handle_t hci_event_synchronous_connection_changed_get_handle(const uint8_t * event){
1072     return little_endian_read_16(event, 3);
1073 }
1074 /**
1075  * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1076  * @param event packet
1077  * @return transmission_interval
1078  * @note: btstack_type 1
1079  */
1080 static inline uint8_t hci_event_synchronous_connection_changed_get_transmission_interval(const uint8_t * event){
1081     return event[5];
1082 }
1083 /**
1084  * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1085  * @param event packet
1086  * @return retransmission_interval
1087  * @note: btstack_type 1
1088  */
1089 static inline uint8_t hci_event_synchronous_connection_changed_get_retransmission_interval(const uint8_t * event){
1090     return event[6];
1091 }
1092 /**
1093  * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1094  * @param event packet
1095  * @return rx_packet_length
1096  * @note: btstack_type 2
1097  */
1098 static inline uint16_t hci_event_synchronous_connection_changed_get_rx_packet_length(const uint8_t * event){
1099     return little_endian_read_16(event, 7);
1100 }
1101 /**
1102  * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED
1103  * @param event packet
1104  * @return tx_packet_length
1105  * @note: btstack_type 2
1106  */
1107 static inline uint16_t hci_event_synchronous_connection_changed_get_tx_packet_length(const uint8_t * event){
1108     return little_endian_read_16(event, 9);
1109 }
1110 
1111 /**
1112  * @brief Get field status from event HCI_EVENT_SNIFF_SUBRATING
1113  * @param event packet
1114  * @return status
1115  * @note: btstack_type 1
1116  */
1117 static inline uint8_t hci_event_sniff_subrating_get_status(const uint8_t * event){
1118     return event[2];
1119 }
1120 /**
1121  * @brief Get field handle from event HCI_EVENT_SNIFF_SUBRATING
1122  * @param event packet
1123  * @return handle
1124  * @note: btstack_type H
1125  */
1126 static inline hci_con_handle_t hci_event_sniff_subrating_get_handle(const uint8_t * event){
1127     return little_endian_read_16(event, 3);
1128 }
1129 /**
1130  * @brief Get field max_tx_latency from event HCI_EVENT_SNIFF_SUBRATING
1131  * @param event packet
1132  * @return max_tx_latency
1133  * @note: btstack_type 2
1134  */
1135 static inline uint16_t hci_event_sniff_subrating_get_max_tx_latency(const uint8_t * event){
1136     return little_endian_read_16(event, 5);
1137 }
1138 /**
1139  * @brief Get field max_rx_latency from event HCI_EVENT_SNIFF_SUBRATING
1140  * @param event packet
1141  * @return max_rx_latency
1142  * @note: btstack_type 2
1143  */
1144 static inline uint16_t hci_event_sniff_subrating_get_max_rx_latency(const uint8_t * event){
1145     return little_endian_read_16(event, 7);
1146 }
1147 /**
1148  * @brief Get field min_remote_timeout from event HCI_EVENT_SNIFF_SUBRATING
1149  * @param event packet
1150  * @return min_remote_timeout
1151  * @note: btstack_type 2
1152  */
1153 static inline uint16_t hci_event_sniff_subrating_get_min_remote_timeout(const uint8_t * event){
1154     return little_endian_read_16(event, 9);
1155 }
1156 /**
1157  * @brief Get field min_local_timeout from event HCI_EVENT_SNIFF_SUBRATING
1158  * @param event packet
1159  * @return min_local_timeout
1160  * @note: btstack_type 2
1161  */
1162 static inline uint16_t hci_event_sniff_subrating_get_min_local_timeout(const uint8_t * event){
1163     return little_endian_read_16(event, 11);
1164 }
1165 
1166 /**
1167  * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1168  * @param event packet
1169  * @return num_responses
1170  * @note: btstack_type 1
1171  */
1172 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){
1173     return event[2];
1174 }
1175 /**
1176  * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1177  * @param event packet
1178  * @param Pointer to storage for bd_addr
1179  * @note: btstack_type B
1180  */
1181 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1182     reverse_bytes(&event[3], bd_addr, 6);
1183 }
1184 /**
1185  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1186  * @param event packet
1187  * @return page_scan_repetition_mode
1188  * @note: btstack_type 1
1189  */
1190 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){
1191     return event[9];
1192 }
1193 /**
1194  * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1195  * @param event packet
1196  * @return reserved
1197  * @note: btstack_type 1
1198  */
1199 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){
1200     return event[10];
1201 }
1202 /**
1203  * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1204  * @param event packet
1205  * @return class_of_device
1206  * @note: btstack_type 3
1207  */
1208 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){
1209     return little_endian_read_24(event, 11);
1210 }
1211 /**
1212  * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1213  * @param event packet
1214  * @return clock_offset
1215  * @note: btstack_type 2
1216  */
1217 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){
1218     return little_endian_read_16(event, 14);
1219 }
1220 /**
1221  * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
1222  * @param event packet
1223  * @return rssi
1224  * @note: btstack_type 1
1225  */
1226 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){
1227     return event[16];
1228 }
1229 
1230 /**
1231  * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
1232  * @param event packet
1233  * @return status
1234  * @note: btstack_type 1
1235  */
1236 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){
1237     return event[2];
1238 }
1239 /**
1240  * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
1241  * @param event packet
1242  * @return handle
1243  * @note: btstack_type H
1244  */
1245 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){
1246     return little_endian_read_16(event, 3);
1247 }
1248 
1249 /**
1250  * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST
1251  * @param event packet
1252  * @param Pointer to storage for bd_addr
1253  * @note: btstack_type B
1254  */
1255 static inline void hci_event_io_capability_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1256     reverse_bytes(&event[2], bd_addr, 6);
1257 }
1258 
1259 /**
1260  * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1261  * @param event packet
1262  * @param Pointer to storage for bd_addr
1263  * @note: btstack_type B
1264  */
1265 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1266     reverse_bytes(&event[2], bd_addr, 6);
1267 }
1268 /**
1269  * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1270  * @param event packet
1271  * @return io_capability
1272  * @note: btstack_type 1
1273  */
1274 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){
1275     return event[8];
1276 }
1277 /**
1278  * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1279  * @param event packet
1280  * @return oob_data_present
1281  * @note: btstack_type 1
1282  */
1283 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){
1284     return event[9];
1285 }
1286 /**
1287  * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE
1288  * @param event packet
1289  * @return authentication_requirements
1290  * @note: btstack_type 1
1291  */
1292 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){
1293     return event[10];
1294 }
1295 
1296 /**
1297  * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST
1298  * @param event packet
1299  * @param Pointer to storage for bd_addr
1300  * @note: btstack_type B
1301  */
1302 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1303     reverse_bytes(&event[2], bd_addr, 6);
1304 }
1305 /**
1306  * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST
1307  * @param event packet
1308  * @return numeric_value
1309  * @note: btstack_type 4
1310  */
1311 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){
1312     return little_endian_read_32(event, 8);
1313 }
1314 
1315 /**
1316  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST
1317  * @param event packet
1318  * @param Pointer to storage for bd_addr
1319  * @note: btstack_type B
1320  */
1321 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1322     reverse_bytes(&event[2], bd_addr, 6);
1323 }
1324 
1325 /**
1326  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST
1327  * @param event packet
1328  * @param Pointer to storage for bd_addr
1329  * @note: btstack_type B
1330  */
1331 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1332     reverse_bytes(&event[2], bd_addr, 6);
1333 }
1334 
1335 /**
1336  * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
1337  * @param event packet
1338  * @return status
1339  * @note: btstack_type 1
1340  */
1341 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){
1342     return event[2];
1343 }
1344 /**
1345  * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
1346  * @param event packet
1347  * @param Pointer to storage for bd_addr
1348  * @note: btstack_type B
1349  */
1350 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1351     reverse_bytes(&event[3], bd_addr, 6);
1352 }
1353 
1354 /**
1355  * @brief Get field handle from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
1356  * @param event packet
1357  * @return handle
1358  * @note: btstack_type H
1359  */
1360 static inline hci_con_handle_t hci_event_link_supervision_timeout_changed_get_handle(const uint8_t * event){
1361     return little_endian_read_16(event, 2);
1362 }
1363 /**
1364  * @brief Get field link_supervision_timeout from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
1365  * @param event packet
1366  * @return link_supervision_timeout
1367  * @note: btstack_type 2
1368  */
1369 static inline uint16_t hci_event_link_supervision_timeout_changed_get_link_supervision_timeout(const uint8_t * event){
1370     return little_endian_read_16(event, 4);
1371 }
1372 
1373 /**
1374  * @brief Get field handle from event HCI_EVENT_ENHANCED_FLUSH_COMPLETE
1375  * @param event packet
1376  * @return handle
1377  * @note: btstack_type H
1378  */
1379 static inline hci_con_handle_t hci_event_enhanced_flush_complete_get_handle(const uint8_t * event){
1380     return little_endian_read_16(event, 2);
1381 }
1382 
1383 /**
1384  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION
1385  * @param event packet
1386  * @param Pointer to storage for bd_addr
1387  * @note: btstack_type B
1388  */
1389 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1390     reverse_bytes(&event[2], bd_addr, 6);
1391 }
1392 /**
1393  * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION
1394  * @param event packet
1395  * @return numeric_value
1396  * @note: btstack_type 4
1397  */
1398 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){
1399     return little_endian_read_32(event, 8);
1400 }
1401 
1402 /**
1403  * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION
1404  * @param event packet
1405  * @param Pointer to storage for bd_addr
1406  * @note: btstack_type B
1407  */
1408 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1409     reverse_bytes(&event[2], bd_addr, 6);
1410 }
1411 /**
1412  * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION
1413  * @param event packet
1414  * @return notification_type
1415  * @note: btstack_type 1
1416  */
1417 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){
1418     return event[8];
1419 }
1420 
1421 /**
1422  * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1423  * @param event packet
1424  * @return status
1425  * @note: btstack_type 1
1426  */
1427 static inline uint8_t hci_event_encryption_change_v2_get_status(const uint8_t * event){
1428     return event[2];
1429 }
1430 /**
1431  * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1432  * @param event packet
1433  * @return connection_handle
1434  * @note: btstack_type 2
1435  */
1436 static inline uint16_t hci_event_encryption_change_v2_get_connection_handle(const uint8_t * event){
1437     return little_endian_read_16(event, 3);
1438 }
1439 /**
1440  * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1441  * @param event packet
1442  * @return encryption_enabled
1443  * @note: btstack_type 1
1444  */
1445 static inline uint8_t hci_event_encryption_change_v2_get_encryption_enabled(const uint8_t * event){
1446     return event[5];
1447 }
1448 /**
1449  * @brief Get field encryption_key_size from event HCI_EVENT_ENCRYPTION_CHANGE_V2
1450  * @param event packet
1451  * @return encryption_key_size
1452  * @note: btstack_type 1
1453  */
1454 static inline uint8_t hci_event_encryption_change_v2_get_encryption_key_size(const uint8_t * event){
1455     return event[6];
1456 }
1457 
1458 /**
1459  * @brief Get field state from event BTSTACK_EVENT_STATE
1460  * @param event packet
1461  * @return state
1462  * @note: btstack_type 1
1463  */
1464 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){
1465     return event[2];
1466 }
1467 
1468 /**
1469  * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED
1470  * @param event packet
1471  * @return number_connections
1472  * @note: btstack_type 1
1473  */
1474 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){
1475     return event[2];
1476 }
1477 
1478 
1479 /**
1480  * @brief Get field discoverable from event BTSTACK_EVENT_SCAN_MODE_CHANGED
1481  * @param event packet
1482  * @return discoverable
1483  * @note: btstack_type 1
1484  */
1485 static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){
1486     return event[2];
1487 }
1488 /**
1489  * @brief Get field connectable from event BTSTACK_EVENT_SCAN_MODE_CHANGED
1490  * @param event packet
1491  * @return connectable
1492  * @note: btstack_type 1
1493  */
1494 static inline uint8_t btstack_event_scan_mode_changed_get_connectable(const uint8_t * event){
1495     return event[3];
1496 }
1497 
1498 /**
1499  * @brief Get field major from event DAEMON_EVENT_VERSION
1500  * @param event packet
1501  * @return major
1502  * @note: btstack_type 1
1503  */
1504 static inline uint8_t daemon_event_version_get_major(const uint8_t * event){
1505     return event[2];
1506 }
1507 /**
1508  * @brief Get field minor from event DAEMON_EVENT_VERSION
1509  * @param event packet
1510  * @return minor
1511  * @note: btstack_type 1
1512  */
1513 static inline uint8_t daemon_event_version_get_minor(const uint8_t * event){
1514     return event[3];
1515 }
1516 /**
1517  * @brief Get field revision from event DAEMON_EVENT_VERSION
1518  * @param event packet
1519  * @return revision
1520  * @note: btstack_type 2
1521  */
1522 static inline uint16_t daemon_event_version_get_revision(const uint8_t * event){
1523     return little_endian_read_16(event, 4);
1524 }
1525 
1526 /**
1527  * @brief Get field system_bluetooth_enabled from event DAEMON_EVENT_SYSTEM_BLUETOOTH_ENABLED
1528  * @param event packet
1529  * @return system_bluetooth_enabled
1530  * @note: btstack_type 1
1531  */
1532 static inline uint8_t daemon_event_system_bluetooth_enabled_get_system_bluetooth_enabled(const uint8_t * event){
1533     return event[2];
1534 }
1535 
1536 /**
1537  * @brief Get field status from event DAEMON_EVENT_REMOTE_NAME_CACHED
1538  * @param event packet
1539  * @return status
1540  * @note: btstack_type 1
1541  */
1542 static inline uint8_t daemon_event_remote_name_cached_get_status(const uint8_t * event){
1543     return event[2];
1544 }
1545 /**
1546  * @brief Get field address from event DAEMON_EVENT_REMOTE_NAME_CACHED
1547  * @param event packet
1548  * @param Pointer to storage for address
1549  * @note: btstack_type B
1550  */
1551 static inline void daemon_event_remote_name_cached_get_address(const uint8_t * event, bd_addr_t address){
1552     reverse_bytes(&event[3], address, 6);
1553 }
1554 /**
1555  * @brief Get field name from event DAEMON_EVENT_REMOTE_NAME_CACHED
1556  * @param event packet
1557  * @return name
1558  * @note: btstack_type T
1559  */
1560 static inline const char * daemon_event_remote_name_cached_get_name(const uint8_t * event){
1561     return (const char *) &event[9];
1562 }
1563 
1564 /**
1565  * @brief Get field status from event DAEMON_EVENT_L2CAP_SERVICE_REGISTERED
1566  * @param event packet
1567  * @return status
1568  * @note: btstack_type 1
1569  */
1570 static inline uint8_t daemon_event_l2cap_service_registered_get_status(const uint8_t * event){
1571     return event[2];
1572 }
1573 /**
1574  * @brief Get field psm from event DAEMON_EVENT_L2CAP_SERVICE_REGISTERED
1575  * @param event packet
1576  * @return psm
1577  * @note: btstack_type 2
1578  */
1579 static inline uint16_t daemon_event_l2cap_service_registered_get_psm(const uint8_t * event){
1580     return little_endian_read_16(event, 3);
1581 }
1582 
1583 /**
1584  * @brief Get field status from event DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED
1585  * @param event packet
1586  * @return status
1587  * @note: btstack_type 1
1588  */
1589 static inline uint8_t daemon_event_rfcomm_service_registered_get_status(const uint8_t * event){
1590     return event[2];
1591 }
1592 /**
1593  * @brief Get field channel_id from event DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED
1594  * @param event packet
1595  * @return channel_id
1596  * @note: btstack_type 1
1597  */
1598 static inline uint8_t daemon_event_rfcomm_service_registered_get_channel_id(const uint8_t * event){
1599     return event[3];
1600 }
1601 
1602 /**
1603  * @brief Get field status from event DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL
1604  * @param event packet
1605  * @return status
1606  * @note: btstack_type 1
1607  */
1608 static inline uint8_t daemon_event_rfcomm_persistent_channel_get_status(const uint8_t * event){
1609     return event[2];
1610 }
1611 /**
1612  * @brief Get field server_channel_id from event DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL
1613  * @param event packet
1614  * @return server_channel_id
1615  * @note: btstack_type 1
1616  */
1617 static inline uint8_t daemon_event_rfcomm_persistent_channel_get_server_channel_id(const uint8_t * event){
1618     return event[3];
1619 }
1620 
1621 /**
1622  * @brief Get field status from event DAEMON_EVENT_SDP_SERVICE_REGISTERED
1623  * @param event packet
1624  * @return status
1625  * @note: btstack_type 1
1626  */
1627 static inline uint8_t daemon_event_sdp_service_registered_get_status(const uint8_t * event){
1628     return event[2];
1629 }
1630 /**
1631  * @brief Get field service_record_handle from event DAEMON_EVENT_SDP_SERVICE_REGISTERED
1632  * @param event packet
1633  * @return service_record_handle
1634  * @note: btstack_type 4
1635  */
1636 static inline uint32_t daemon_event_sdp_service_registered_get_service_record_handle(const uint8_t * event){
1637     return little_endian_read_32(event, 3);
1638 }
1639 
1640 /**
1641  * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE
1642  * @param event packet
1643  * @return active
1644  * @note: btstack_type 1
1645  */
1646 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){
1647     return event[2];
1648 }
1649 
1650 /**
1651  * @brief Get field vendor_id from event HCI_EVENT_TRANSPORT_USB_INFO
1652  * @param event packet
1653  * @return vendor_id
1654  * @note: btstack_type 2
1655  */
1656 static inline uint16_t hci_event_transport_usb_info_get_vendor_id(const uint8_t * event){
1657     return little_endian_read_16(event, 2);
1658 }
1659 /**
1660  * @brief Get field product_id from event HCI_EVENT_TRANSPORT_USB_INFO
1661  * @param event packet
1662  * @return product_id
1663  * @note: btstack_type 2
1664  */
1665 static inline uint16_t hci_event_transport_usb_info_get_product_id(const uint8_t * event){
1666     return little_endian_read_16(event, 4);
1667 }
1668 /**
1669  * @brief Get field path_len from event HCI_EVENT_TRANSPORT_USB_INFO
1670  * @param event packet
1671  * @return path_len
1672  * @note: btstack_type J
1673  */
1674 static inline uint8_t hci_event_transport_usb_info_get_path_len(const uint8_t * event){
1675     return event[6];
1676 }
1677 /**
1678  * @brief Get field path from event HCI_EVENT_TRANSPORT_USB_INFO
1679  * @param event packet
1680  * @return path
1681  * @note: btstack_type V
1682  */
1683 static inline const uint8_t * hci_event_transport_usb_info_get_path(const uint8_t * event){
1684     return &event[7];
1685 }
1686 
1687 /**
1688  * @brief Get field big_handle from event HCI_EVENT_BIS_CAN_SEND_NOW
1689  * @param event packet
1690  * @return big_handle
1691  * @note: btstack_type 1
1692  */
1693 static inline uint8_t hci_event_bis_can_send_now_get_big_handle(const uint8_t * event){
1694     return event[2];
1695 }
1696 /**
1697  * @brief Get field bis_index from event HCI_EVENT_BIS_CAN_SEND_NOW
1698  * @param event packet
1699  * @return bis_index
1700  * @note: btstack_type 1
1701  */
1702 static inline uint8_t hci_event_bis_can_send_now_get_bis_index(const uint8_t * event){
1703     return event[3];
1704 }
1705 /**
1706  * @brief Get field con_handle from event HCI_EVENT_BIS_CAN_SEND_NOW
1707  * @param event packet
1708  * @return con_handle
1709  * @note: btstack_type H
1710  */
1711 static inline hci_con_handle_t hci_event_bis_can_send_now_get_con_handle(const uint8_t * event){
1712     return little_endian_read_16(event, 4);
1713 }
1714 
1715 /**
1716  * @brief Get field cis_con_handle from event HCI_EVENT_CIS_CAN_SEND_NOW
1717  * @param event packet
1718  * @return cis_con_handle
1719  * @note: btstack_type H
1720  */
1721 static inline hci_con_handle_t hci_event_cis_can_send_now_get_cis_con_handle(const uint8_t * event){
1722     return little_endian_read_16(event, 2);
1723 }
1724 
1725 
1726 /**
1727  * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED
1728  * @param event packet
1729  * @return status
1730  * @note: btstack_type 1
1731  */
1732 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){
1733     return event[2];
1734 }
1735 /**
1736  * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED
1737  * @param event packet
1738  * @param Pointer to storage for address
1739  * @note: btstack_type B
1740  */
1741 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1742     reverse_bytes(&event[3], address, 6);
1743 }
1744 /**
1745  * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED
1746  * @param event packet
1747  * @return handle
1748  * @note: btstack_type H
1749  */
1750 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){
1751     return little_endian_read_16(event, 9);
1752 }
1753 /**
1754  * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED
1755  * @param event packet
1756  * @return psm
1757  * @note: btstack_type 2
1758  */
1759 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){
1760     return little_endian_read_16(event, 11);
1761 }
1762 /**
1763  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED
1764  * @param event packet
1765  * @return local_cid
1766  * @note: btstack_type 2
1767  */
1768 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){
1769     return little_endian_read_16(event, 13);
1770 }
1771 /**
1772  * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED
1773  * @param event packet
1774  * @return remote_cid
1775  * @note: btstack_type 2
1776  */
1777 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){
1778     return little_endian_read_16(event, 15);
1779 }
1780 /**
1781  * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1782  * @param event packet
1783  * @return local_mtu
1784  * @note: btstack_type 2
1785  */
1786 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){
1787     return little_endian_read_16(event, 17);
1788 }
1789 /**
1790  * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1791  * @param event packet
1792  * @return remote_mtu
1793  * @note: btstack_type 2
1794  */
1795 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){
1796     return little_endian_read_16(event, 19);
1797 }
1798 /**
1799  * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED
1800  * @param event packet
1801  * @return flush_timeout
1802  * @note: btstack_type 2
1803  */
1804 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){
1805     return little_endian_read_16(event, 21);
1806 }
1807 /**
1808  * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED
1809  * @param event packet
1810  * @return incoming
1811  * @note: btstack_type 1
1812  */
1813 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){
1814     return event[23];
1815 }
1816 /**
1817  * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED
1818  * @param event packet
1819  * @return mode
1820  * @note: btstack_type 1
1821  */
1822 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){
1823     return event[24];
1824 }
1825 /**
1826  * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED
1827  * @param event packet
1828  * @return fcs
1829  * @note: btstack_type 1
1830  */
1831 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){
1832     return event[25];
1833 }
1834 
1835 /**
1836  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED
1837  * @param event packet
1838  * @return local_cid
1839  * @note: btstack_type 2
1840  */
1841 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){
1842     return little_endian_read_16(event, 2);
1843 }
1844 
1845 /**
1846  * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION
1847  * @param event packet
1848  * @param Pointer to storage for address
1849  * @note: btstack_type B
1850  */
1851 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1852     reverse_bytes(&event[2], address, 6);
1853 }
1854 /**
1855  * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION
1856  * @param event packet
1857  * @return handle
1858  * @note: btstack_type H
1859  */
1860 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){
1861     return little_endian_read_16(event, 8);
1862 }
1863 /**
1864  * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION
1865  * @param event packet
1866  * @return psm
1867  * @note: btstack_type 2
1868  */
1869 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){
1870     return little_endian_read_16(event, 10);
1871 }
1872 /**
1873  * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1874  * @param event packet
1875  * @return local_cid
1876  * @note: btstack_type 2
1877  */
1878 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){
1879     return little_endian_read_16(event, 12);
1880 }
1881 /**
1882  * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1883  * @param event packet
1884  * @return remote_cid
1885  * @note: btstack_type 2
1886  */
1887 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){
1888     return little_endian_read_16(event, 14);
1889 }
1890 
1891 /**
1892  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1893  * @param event packet
1894  * @return handle
1895  * @note: btstack_type H
1896  */
1897 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){
1898     return little_endian_read_16(event, 2);
1899 }
1900 /**
1901  * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1902  * @param event packet
1903  * @return interval_min
1904  * @note: btstack_type 2
1905  */
1906 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){
1907     return little_endian_read_16(event, 4);
1908 }
1909 /**
1910  * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1911  * @param event packet
1912  * @return interval_max
1913  * @note: btstack_type 2
1914  */
1915 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){
1916     return little_endian_read_16(event, 6);
1917 }
1918 /**
1919  * @brief Get field latency from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1920  * @param event packet
1921  * @return latency
1922  * @note: btstack_type 2
1923  */
1924 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latency(const uint8_t * event){
1925     return little_endian_read_16(event, 8);
1926 }
1927 /**
1928  * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1929  * @param event packet
1930  * @return timeout_multiplier
1931  * @note: btstack_type 2
1932  */
1933 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){
1934     return little_endian_read_16(event, 10);
1935 }
1936 
1937 /**
1938  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1939  * @param event packet
1940  * @return handle
1941  * @note: btstack_type H
1942  */
1943 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){
1944     return little_endian_read_16(event, 2);
1945 }
1946 /**
1947  * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1948  * @param event packet
1949  * @return result
1950  * @note: btstack_type 2
1951  */
1952 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){
1953     return little_endian_read_16(event, 4);
1954 }
1955 
1956 /**
1957  * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE
1958  * @param event packet
1959  * @return con_handle
1960  * @note: btstack_type H
1961  */
1962 static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){
1963     return little_endian_read_16(event, 2);
1964 }
1965 /**
1966  * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE
1967  * @param event packet
1968  * @return extended_feature_mask
1969  * @note: btstack_type 2
1970  */
1971 static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){
1972     return little_endian_read_16(event, 4);
1973 }
1974 /**
1975  * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE
1976  * @param event packet
1977  * @return fixed_channels_supported
1978  * @note: btstack_type 2
1979  */
1980 static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){
1981     return little_endian_read_16(event, 6);
1982 }
1983 
1984 /**
1985  * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW
1986  * @param event packet
1987  * @return local_cid
1988  * @note: btstack_type 2
1989  */
1990 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){
1991     return little_endian_read_16(event, 2);
1992 }
1993 
1994 /**
1995  * @brief Get field local_cid from event L2CAP_EVENT_PACKET_SENT
1996  * @param event packet
1997  * @return local_cid
1998  * @note: btstack_type 2
1999  */
2000 static inline uint16_t l2cap_event_packet_sent_get_local_cid(const uint8_t * event){
2001     return little_endian_read_16(event, 2);
2002 }
2003 
2004 /**
2005  * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED
2006  * @param event packet
2007  * @return local_cid
2008  * @note: btstack_type 2
2009  */
2010 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){
2011     return little_endian_read_16(event, 2);
2012 }
2013 
2014 /**
2015  * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2016  * @param event packet
2017  * @return address_type
2018  * @note: btstack_type 1
2019  */
2020 static inline uint8_t l2cap_event_cbm_incoming_connection_get_address_type(const uint8_t * event){
2021     return event[2];
2022 }
2023 /**
2024  * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2025  * @param event packet
2026  * @param Pointer to storage for address
2027  * @note: btstack_type B
2028  */
2029 static inline void l2cap_event_cbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
2030     reverse_bytes(&event[3], address, 6);
2031 }
2032 /**
2033  * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2034  * @param event packet
2035  * @return handle
2036  * @note: btstack_type H
2037  */
2038 static inline hci_con_handle_t l2cap_event_cbm_incoming_connection_get_handle(const uint8_t * event){
2039     return little_endian_read_16(event, 9);
2040 }
2041 /**
2042  * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2043  * @param event packet
2044  * @return psm
2045  * @note: btstack_type 2
2046  */
2047 static inline uint16_t l2cap_event_cbm_incoming_connection_get_psm(const uint8_t * event){
2048     return little_endian_read_16(event, 11);
2049 }
2050 /**
2051  * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2052  * @param event packet
2053  * @return local_cid
2054  * @note: btstack_type 2
2055  */
2056 static inline uint16_t l2cap_event_cbm_incoming_connection_get_local_cid(const uint8_t * event){
2057     return little_endian_read_16(event, 13);
2058 }
2059 /**
2060  * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2061  * @param event packet
2062  * @return remote_cid
2063  * @note: btstack_type 2
2064  */
2065 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_cid(const uint8_t * event){
2066     return little_endian_read_16(event, 15);
2067 }
2068 /**
2069  * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION
2070  * @param event packet
2071  * @return remote_mtu
2072  * @note: btstack_type 2
2073  */
2074 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_mtu(const uint8_t * event){
2075     return little_endian_read_16(event, 17);
2076 }
2077 
2078 /**
2079  * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2080  * @param event packet
2081  * @return status
2082  * @note: btstack_type 1
2083  */
2084 static inline uint8_t l2cap_event_cbm_channel_opened_get_status(const uint8_t * event){
2085     return event[2];
2086 }
2087 /**
2088  * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2089  * @param event packet
2090  * @return address_type
2091  * @note: btstack_type 1
2092  */
2093 static inline uint8_t l2cap_event_cbm_channel_opened_get_address_type(const uint8_t * event){
2094     return event[3];
2095 }
2096 /**
2097  * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2098  * @param event packet
2099  * @param Pointer to storage for address
2100  * @note: btstack_type B
2101  */
2102 static inline void l2cap_event_cbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
2103     reverse_bytes(&event[4], address, 6);
2104 }
2105 /**
2106  * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2107  * @param event packet
2108  * @return handle
2109  * @note: btstack_type H
2110  */
2111 static inline hci_con_handle_t l2cap_event_cbm_channel_opened_get_handle(const uint8_t * event){
2112     return little_endian_read_16(event, 10);
2113 }
2114 /**
2115  * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2116  * @param event packet
2117  * @return incoming
2118  * @note: btstack_type 1
2119  */
2120 static inline uint8_t l2cap_event_cbm_channel_opened_get_incoming(const uint8_t * event){
2121     return event[12];
2122 }
2123 /**
2124  * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2125  * @param event packet
2126  * @return psm
2127  * @note: btstack_type 2
2128  */
2129 static inline uint16_t l2cap_event_cbm_channel_opened_get_psm(const uint8_t * event){
2130     return little_endian_read_16(event, 13);
2131 }
2132 /**
2133  * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2134  * @param event packet
2135  * @return local_cid
2136  * @note: btstack_type 2
2137  */
2138 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_cid(const uint8_t * event){
2139     return little_endian_read_16(event, 15);
2140 }
2141 /**
2142  * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2143  * @param event packet
2144  * @return remote_cid
2145  * @note: btstack_type 2
2146  */
2147 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_cid(const uint8_t * event){
2148     return little_endian_read_16(event, 17);
2149 }
2150 /**
2151  * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2152  * @param event packet
2153  * @return local_mtu
2154  * @note: btstack_type 2
2155  */
2156 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_mtu(const uint8_t * event){
2157     return little_endian_read_16(event, 19);
2158 }
2159 /**
2160  * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED
2161  * @param event packet
2162  * @return remote_mtu
2163  * @note: btstack_type 2
2164  */
2165 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_mtu(const uint8_t * event){
2166     return little_endian_read_16(event, 21);
2167 }
2168 
2169 
2170 /**
2171  * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2172  * @param event packet
2173  * @return address_type
2174  * @note: btstack_type 1
2175  */
2176 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_address_type(const uint8_t * event){
2177     return event[2];
2178 }
2179 /**
2180  * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2181  * @param event packet
2182  * @param Pointer to storage for address
2183  * @note: btstack_type B
2184  */
2185 static inline void l2cap_event_ecbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
2186     reverse_bytes(&event[3], address, 6);
2187 }
2188 /**
2189  * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2190  * @param event packet
2191  * @return handle
2192  * @note: btstack_type H
2193  */
2194 static inline hci_con_handle_t l2cap_event_ecbm_incoming_connection_get_handle(const uint8_t * event){
2195     return little_endian_read_16(event, 9);
2196 }
2197 /**
2198  * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2199  * @param event packet
2200  * @return psm
2201  * @note: btstack_type 2
2202  */
2203 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_psm(const uint8_t * event){
2204     return little_endian_read_16(event, 11);
2205 }
2206 /**
2207  * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2208  * @param event packet
2209  * @return num_channels
2210  * @note: btstack_type 1
2211  */
2212 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_num_channels(const uint8_t * event){
2213     return event[13];
2214 }
2215 /**
2216  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION
2217  * @param event packet
2218  * @return local_cid
2219  * @note: btstack_type 2
2220  */
2221 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_local_cid(const uint8_t * event){
2222     return little_endian_read_16(event, 14);
2223 }
2224 
2225 /**
2226  * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2227  * @param event packet
2228  * @return status
2229  * @note: btstack_type 1
2230  */
2231 static inline uint8_t l2cap_event_ecbm_channel_opened_get_status(const uint8_t * event){
2232     return event[2];
2233 }
2234 /**
2235  * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2236  * @param event packet
2237  * @return address_type
2238  * @note: btstack_type 1
2239  */
2240 static inline uint8_t l2cap_event_ecbm_channel_opened_get_address_type(const uint8_t * event){
2241     return event[3];
2242 }
2243 /**
2244  * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2245  * @param event packet
2246  * @param Pointer to storage for address
2247  * @note: btstack_type B
2248  */
2249 static inline void l2cap_event_ecbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
2250     reverse_bytes(&event[4], address, 6);
2251 }
2252 /**
2253  * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2254  * @param event packet
2255  * @return handle
2256  * @note: btstack_type H
2257  */
2258 static inline hci_con_handle_t l2cap_event_ecbm_channel_opened_get_handle(const uint8_t * event){
2259     return little_endian_read_16(event, 10);
2260 }
2261 /**
2262  * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2263  * @param event packet
2264  * @return incoming
2265  * @note: btstack_type 1
2266  */
2267 static inline uint8_t l2cap_event_ecbm_channel_opened_get_incoming(const uint8_t * event){
2268     return event[12];
2269 }
2270 /**
2271  * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2272  * @param event packet
2273  * @return psm
2274  * @note: btstack_type 2
2275  */
2276 static inline uint16_t l2cap_event_ecbm_channel_opened_get_psm(const uint8_t * event){
2277     return little_endian_read_16(event, 13);
2278 }
2279 /**
2280  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2281  * @param event packet
2282  * @return local_cid
2283  * @note: btstack_type 2
2284  */
2285 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_cid(const uint8_t * event){
2286     return little_endian_read_16(event, 15);
2287 }
2288 /**
2289  * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2290  * @param event packet
2291  * @return remote_cid
2292  * @note: btstack_type 2
2293  */
2294 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_cid(const uint8_t * event){
2295     return little_endian_read_16(event, 17);
2296 }
2297 /**
2298  * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2299  * @param event packet
2300  * @return local_mtu
2301  * @note: btstack_type 2
2302  */
2303 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_mtu(const uint8_t * event){
2304     return little_endian_read_16(event, 19);
2305 }
2306 /**
2307  * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED
2308  * @param event packet
2309  * @return remote_mtu
2310  * @note: btstack_type 2
2311  */
2312 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_mtu(const uint8_t * event){
2313     return little_endian_read_16(event, 21);
2314 }
2315 
2316 /**
2317  * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED
2318  * @param event packet
2319  * @return remote_cid
2320  * @note: btstack_type 2
2321  */
2322 static inline uint16_t l2cap_event_ecbm_reconfigured_get_remote_cid(const uint8_t * event){
2323     return little_endian_read_16(event, 2);
2324 }
2325 /**
2326  * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED
2327  * @param event packet
2328  * @return mtu
2329  * @note: btstack_type 2
2330  */
2331 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mtu(const uint8_t * event){
2332     return little_endian_read_16(event, 4);
2333 }
2334 /**
2335  * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED
2336  * @param event packet
2337  * @return mps
2338  * @note: btstack_type 2
2339  */
2340 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mps(const uint8_t * event){
2341     return little_endian_read_16(event, 6);
2342 }
2343 
2344 /**
2345  * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE
2346  * @param event packet
2347  * @return local_cid
2348  * @note: btstack_type 2
2349  */
2350 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_local_cid(const uint8_t * event){
2351     return little_endian_read_16(event, 2);
2352 }
2353 /**
2354  * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE
2355  * @param event packet
2356  * @return reconfigure_result
2357  * @note: btstack_type 2
2358  */
2359 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){
2360     return little_endian_read_16(event, 4);
2361 }
2362 
2363 /**
2364  * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED
2365  * @param event packet
2366  * @return status
2367  * @note: btstack_type 1
2368  */
2369 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){
2370     return event[2];
2371 }
2372 /**
2373  * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED
2374  * @param event packet
2375  * @param Pointer to storage for bd_addr
2376  * @note: btstack_type B
2377  */
2378 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
2379     reverse_bytes(&event[3], bd_addr, 6);
2380 }
2381 /**
2382  * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED
2383  * @param event packet
2384  * @return con_handle
2385  * @note: btstack_type 2
2386  */
2387 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){
2388     return little_endian_read_16(event, 9);
2389 }
2390 /**
2391  * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED
2392  * @param event packet
2393  * @return server_channel
2394  * @note: btstack_type 1
2395  */
2396 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){
2397     return event[11];
2398 }
2399 /**
2400  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED
2401  * @param event packet
2402  * @return rfcomm_cid
2403  * @note: btstack_type 2
2404  */
2405 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){
2406     return little_endian_read_16(event, 12);
2407 }
2408 /**
2409  * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED
2410  * @param event packet
2411  * @return max_frame_size
2412  * @note: btstack_type 2
2413  */
2414 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){
2415     return little_endian_read_16(event, 14);
2416 }
2417 /**
2418  * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED
2419  * @param event packet
2420  * @return incoming
2421  * @note: btstack_type 1
2422  */
2423 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){
2424     return event[16];
2425 }
2426 
2427 /**
2428  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED
2429  * @param event packet
2430  * @return rfcomm_cid
2431  * @note: btstack_type 2
2432  */
2433 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){
2434     return little_endian_read_16(event, 2);
2435 }
2436 
2437 /**
2438  * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION
2439  * @param event packet
2440  * @param Pointer to storage for bd_addr
2441  * @note: btstack_type B
2442  */
2443 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
2444     reverse_bytes(&event[2], bd_addr, 6);
2445 }
2446 /**
2447  * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION
2448  * @param event packet
2449  * @return server_channel
2450  * @note: btstack_type 1
2451  */
2452 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){
2453     return event[8];
2454 }
2455 /**
2456  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION
2457  * @param event packet
2458  * @return rfcomm_cid
2459  * @note: btstack_type 2
2460  */
2461 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){
2462     return little_endian_read_16(event, 9);
2463 }
2464 /**
2465  * @brief Get field con_handle from event RFCOMM_EVENT_INCOMING_CONNECTION
2466  * @param event packet
2467  * @return con_handle
2468  * @note: btstack_type H
2469  */
2470 static inline hci_con_handle_t rfcomm_event_incoming_connection_get_con_handle(const uint8_t * event){
2471     return little_endian_read_16(event, 11);
2472 }
2473 
2474 /**
2475  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS
2476  * @param event packet
2477  * @return rfcomm_cid
2478  * @note: btstack_type 2
2479  */
2480 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){
2481     return little_endian_read_16(event, 2);
2482 }
2483 /**
2484  * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS
2485  * @param event packet
2486  * @return line_status
2487  * @note: btstack_type 1
2488  */
2489 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){
2490     return event[4];
2491 }
2492 
2493 /**
2494  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
2495  * @param event packet
2496  * @return rfcomm_cid
2497  * @note: btstack_type 2
2498  */
2499 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){
2500     return little_endian_read_16(event, 2);
2501 }
2502 /**
2503  * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
2504  * @param event packet
2505  * @return modem_status
2506  * @note: btstack_type 1
2507  */
2508 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){
2509     return event[4];
2510 }
2511 
2512 /**
2513  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW
2514  * @param event packet
2515  * @return rfcomm_cid
2516  * @note: btstack_type 2
2517  */
2518 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){
2519     return little_endian_read_16(event, 2);
2520 }
2521 
2522 /**
2523  * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE
2524  * @param event packet
2525  * @return status
2526  * @note: btstack_type 1
2527  */
2528 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){
2529     return event[2];
2530 }
2531 
2532 /**
2533  * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE
2534  * @param event packet
2535  * @return rfcomm_channel
2536  * @note: btstack_type 1
2537  */
2538 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){
2539     return event[2];
2540 }
2541 /**
2542  * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE
2543  * @param event packet
2544  * @return name
2545  * @note: btstack_type T
2546  */
2547 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){
2548     return (const char *) &event[3];
2549 }
2550 
2551 /**
2552  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2553  * @param event packet
2554  * @return record_id
2555  * @note: btstack_type 2
2556  */
2557 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){
2558     return little_endian_read_16(event, 2);
2559 }
2560 /**
2561  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2562  * @param event packet
2563  * @return attribute_id
2564  * @note: btstack_type 2
2565  */
2566 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){
2567     return little_endian_read_16(event, 4);
2568 }
2569 /**
2570  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2571  * @param event packet
2572  * @return attribute_length
2573  * @note: btstack_type 2
2574  */
2575 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){
2576     return little_endian_read_16(event, 6);
2577 }
2578 /**
2579  * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2580  * @param event packet
2581  * @return data_offset
2582  * @note: btstack_type 2
2583  */
2584 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){
2585     return little_endian_read_16(event, 8);
2586 }
2587 /**
2588  * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
2589  * @param event packet
2590  * @return data
2591  * @note: btstack_type 1
2592  */
2593 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){
2594     return event[10];
2595 }
2596 
2597 /**
2598  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2599  * @param event packet
2600  * @return record_id
2601  * @note: btstack_type 2
2602  */
2603 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){
2604     return little_endian_read_16(event, 2);
2605 }
2606 /**
2607  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2608  * @param event packet
2609  * @return attribute_id
2610  * @note: btstack_type 2
2611  */
2612 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){
2613     return little_endian_read_16(event, 4);
2614 }
2615 /**
2616  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2617  * @param event packet
2618  * @return attribute_length
2619  * @note: btstack_type L
2620  */
2621 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){
2622     return little_endian_read_16(event, 6);
2623 }
2624 /**
2625  * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
2626  * @param event packet
2627  * @return attribute_value
2628  * @note: btstack_type V
2629  */
2630 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){
2631     return &event[8];
2632 }
2633 
2634 /**
2635  * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2636  * @param event packet
2637  * @return total_count
2638  * @note: btstack_type 2
2639  */
2640 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){
2641     return little_endian_read_16(event, 2);
2642 }
2643 /**
2644  * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2645  * @param event packet
2646  * @return record_index
2647  * @note: btstack_type 2
2648  */
2649 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){
2650     return little_endian_read_16(event, 4);
2651 }
2652 /**
2653  * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
2654  * @param event packet
2655  * @return record_handle
2656  * @note: btstack_type 4
2657  */
2658 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){
2659     return little_endian_read_32(event, 6);
2660 }
2661 
2662 #ifdef ENABLE_BLE
2663 /**
2664  * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE
2665  * @param event packet
2666  * @return handle
2667  * @note: btstack_type H
2668  */
2669 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){
2670     return little_endian_read_16(event, 2);
2671 }
2672 /**
2673  * @brief Get field service_id from event GATT_EVENT_QUERY_COMPLETE
2674  * @param event packet
2675  * @return service_id
2676  * @note: btstack_type 2
2677  */
2678 static inline uint16_t gatt_event_query_complete_get_service_id(const uint8_t * event){
2679     return little_endian_read_16(event, 4);
2680 }
2681 /**
2682  * @brief Get field connection_id from event GATT_EVENT_QUERY_COMPLETE
2683  * @param event packet
2684  * @return connection_id
2685  * @note: btstack_type 2
2686  */
2687 static inline uint16_t gatt_event_query_complete_get_connection_id(const uint8_t * event){
2688     return little_endian_read_16(event, 6);
2689 }
2690 /**
2691  * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE
2692  * @param event packet
2693  * @return att_status
2694  * @note: btstack_type 1
2695  */
2696 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){
2697     return event[8];
2698 }
2699 #endif
2700 
2701 #ifdef ENABLE_BLE
2702 /**
2703  * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT
2704  * @param event packet
2705  * @return handle
2706  * @note: btstack_type H
2707  */
2708 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){
2709     return little_endian_read_16(event, 2);
2710 }
2711 /**
2712  * @brief Get field service_id from event GATT_EVENT_SERVICE_QUERY_RESULT
2713  * @param event packet
2714  * @return service_id
2715  * @note: btstack_type 2
2716  */
2717 static inline uint16_t gatt_event_service_query_result_get_service_id(const uint8_t * event){
2718     return little_endian_read_16(event, 4);
2719 }
2720 /**
2721  * @brief Get field connection_id from event GATT_EVENT_SERVICE_QUERY_RESULT
2722  * @param event packet
2723  * @return connection_id
2724  * @note: btstack_type 2
2725  */
2726 static inline uint16_t gatt_event_service_query_result_get_connection_id(const uint8_t * event){
2727     return little_endian_read_16(event, 6);
2728 }
2729 /**
2730  * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT
2731  * @param event packet
2732  * @param Pointer to storage for service
2733  * @note: btstack_type X
2734  */
2735 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
2736     gatt_client_deserialize_service(event, 8, service);
2737 }
2738 #endif
2739 
2740 #ifdef ENABLE_BLE
2741 /**
2742  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2743  * @param event packet
2744  * @return handle
2745  * @note: btstack_type H
2746  */
2747 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){
2748     return little_endian_read_16(event, 2);
2749 }
2750 /**
2751  * @brief Get field service_id from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2752  * @param event packet
2753  * @return service_id
2754  * @note: btstack_type 2
2755  */
2756 static inline uint16_t gatt_event_characteristic_query_result_get_service_id(const uint8_t * event){
2757     return little_endian_read_16(event, 4);
2758 }
2759 /**
2760  * @brief Get field connection_id from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2761  * @param event packet
2762  * @return connection_id
2763  * @note: btstack_type 2
2764  */
2765 static inline uint16_t gatt_event_characteristic_query_result_get_connection_id(const uint8_t * event){
2766     return little_endian_read_16(event, 6);
2767 }
2768 /**
2769  * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
2770  * @param event packet
2771  * @param Pointer to storage for characteristic
2772  * @note: btstack_type Y
2773  */
2774 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){
2775     gatt_client_deserialize_characteristic(event, 8, characteristic);
2776 }
2777 #endif
2778 
2779 #ifdef ENABLE_BLE
2780 /**
2781  * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2782  * @param event packet
2783  * @return handle
2784  * @note: btstack_type H
2785  */
2786 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){
2787     return little_endian_read_16(event, 2);
2788 }
2789 /**
2790  * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2791  * @param event packet
2792  * @return include_handle
2793  * @note: btstack_type 2
2794  */
2795 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){
2796     return little_endian_read_16(event, 4);
2797 }
2798 /**
2799  * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
2800  * @param event packet
2801  * @param Pointer to storage for service
2802  * @note: btstack_type X
2803  */
2804 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
2805     gatt_client_deserialize_service(event, 6, service);
2806 }
2807 #endif
2808 
2809 #ifdef ENABLE_BLE
2810 /**
2811  * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2812  * @param event packet
2813  * @return handle
2814  * @note: btstack_type H
2815  */
2816 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){
2817     return little_endian_read_16(event, 2);
2818 }
2819 /**
2820  * @brief Get field service_id from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2821  * @param event packet
2822  * @return service_id
2823  * @note: btstack_type 2
2824  */
2825 static inline uint16_t gatt_event_all_characteristic_descriptors_query_result_get_service_id(const uint8_t * event){
2826     return little_endian_read_16(event, 4);
2827 }
2828 /**
2829  * @brief Get field connection_id from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2830  * @param event packet
2831  * @return connection_id
2832  * @note: btstack_type 2
2833  */
2834 static inline uint16_t gatt_event_all_characteristic_descriptors_query_result_get_connection_id(const uint8_t * event){
2835     return little_endian_read_16(event, 6);
2836 }
2837 /**
2838  * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
2839  * @param event packet
2840  * @param Pointer to storage for characteristic_descriptor
2841  * @note: btstack_type Z
2842  */
2843 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){
2844     gatt_client_deserialize_characteristic_descriptor(event, 8, characteristic_descriptor);
2845 }
2846 #endif
2847 
2848 #ifdef ENABLE_BLE
2849 /**
2850  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2851  * @param event packet
2852  * @return handle
2853  * @note: btstack_type H
2854  */
2855 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){
2856     return little_endian_read_16(event, 2);
2857 }
2858 /**
2859  * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2860  * @param event packet
2861  * @return value_handle
2862  * @note: btstack_type 2
2863  */
2864 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){
2865     return little_endian_read_16(event, 4);
2866 }
2867 /**
2868  * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2869  * @param event packet
2870  * @return value_length
2871  * @note: btstack_type L
2872  */
2873 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){
2874     return little_endian_read_16(event, 6);
2875 }
2876 /**
2877  * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
2878  * @param event packet
2879  * @return value
2880  * @note: btstack_type V
2881  */
2882 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){
2883     return &event[8];
2884 }
2885 #endif
2886 
2887 #ifdef ENABLE_BLE
2888 /**
2889  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2890  * @param event packet
2891  * @return handle
2892  * @note: btstack_type H
2893  */
2894 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){
2895     return little_endian_read_16(event, 2);
2896 }
2897 /**
2898  * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2899  * @param event packet
2900  * @return value_handle
2901  * @note: btstack_type 2
2902  */
2903 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){
2904     return little_endian_read_16(event, 4);
2905 }
2906 /**
2907  * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2908  * @param event packet
2909  * @return value_offset
2910  * @note: btstack_type 2
2911  */
2912 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){
2913     return little_endian_read_16(event, 6);
2914 }
2915 /**
2916  * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2917  * @param event packet
2918  * @return value_length
2919  * @note: btstack_type L
2920  */
2921 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){
2922     return little_endian_read_16(event, 8);
2923 }
2924 /**
2925  * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
2926  * @param event packet
2927  * @return value
2928  * @note: btstack_type V
2929  */
2930 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){
2931     return &event[10];
2932 }
2933 #endif
2934 
2935 #ifdef ENABLE_BLE
2936 /**
2937  * @brief Get field handle from event GATT_EVENT_NOTIFICATION
2938  * @param event packet
2939  * @return handle
2940  * @note: btstack_type H
2941  */
2942 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){
2943     return little_endian_read_16(event, 2);
2944 }
2945 /**
2946  * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION
2947  * @param event packet
2948  * @return value_handle
2949  * @note: btstack_type 2
2950  */
2951 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){
2952     return little_endian_read_16(event, 4);
2953 }
2954 /**
2955  * @brief Get field value_length from event GATT_EVENT_NOTIFICATION
2956  * @param event packet
2957  * @return value_length
2958  * @note: btstack_type L
2959  */
2960 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){
2961     return little_endian_read_16(event, 6);
2962 }
2963 /**
2964  * @brief Get field value from event GATT_EVENT_NOTIFICATION
2965  * @param event packet
2966  * @return value
2967  * @note: btstack_type V
2968  */
2969 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){
2970     return &event[8];
2971 }
2972 #endif
2973 
2974 #ifdef ENABLE_BLE
2975 /**
2976  * @brief Get field handle from event GATT_EVENT_INDICATION
2977  * @param event packet
2978  * @return handle
2979  * @note: btstack_type H
2980  */
2981 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){
2982     return little_endian_read_16(event, 2);
2983 }
2984 /**
2985  * @brief Get field value_handle from event GATT_EVENT_INDICATION
2986  * @param event packet
2987  * @return value_handle
2988  * @note: btstack_type 2
2989  */
2990 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){
2991     return little_endian_read_16(event, 4);
2992 }
2993 /**
2994  * @brief Get field value_length from event GATT_EVENT_INDICATION
2995  * @param event packet
2996  * @return value_length
2997  * @note: btstack_type L
2998  */
2999 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){
3000     return little_endian_read_16(event, 6);
3001 }
3002 /**
3003  * @brief Get field value from event GATT_EVENT_INDICATION
3004  * @param event packet
3005  * @return value
3006  * @note: btstack_type V
3007  */
3008 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){
3009     return &event[8];
3010 }
3011 #endif
3012 
3013 #ifdef ENABLE_BLE
3014 /**
3015  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3016  * @param event packet
3017  * @return handle
3018  * @note: btstack_type H
3019  */
3020 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
3021     return little_endian_read_16(event, 2);
3022 }
3023 /**
3024  * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3025  * @param event packet
3026  * @return descriptor_handle
3027  * @note: btstack_type 2
3028  */
3029 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){
3030     return little_endian_read_16(event, 4);
3031 }
3032 /**
3033  * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3034  * @param event packet
3035  * @return descriptor_length
3036  * @note: btstack_type L
3037  */
3038 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
3039     return little_endian_read_16(event, 6);
3040 }
3041 /**
3042  * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3043  * @param event packet
3044  * @return descriptor
3045  * @note: btstack_type V
3046  */
3047 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
3048     return &event[8];
3049 }
3050 #endif
3051 
3052 #ifdef ENABLE_BLE
3053 /**
3054  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3055  * @param event packet
3056  * @return handle
3057  * @note: btstack_type H
3058  */
3059 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
3060     return little_endian_read_16(event, 2);
3061 }
3062 /**
3063  * @brief Get field descriptor_handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3064  * @param event packet
3065  * @return descriptor_handle
3066  * @note: btstack_type 2
3067  */
3068 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){
3069     return little_endian_read_16(event, 4);
3070 }
3071 /**
3072  * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3073  * @param event packet
3074  * @return descriptor_offset
3075  * @note: btstack_type 2
3076  */
3077 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){
3078     return little_endian_read_16(event, 6);
3079 }
3080 /**
3081  * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3082  * @param event packet
3083  * @return descriptor_length
3084  * @note: btstack_type L
3085  */
3086 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
3087     return little_endian_read_16(event, 8);
3088 }
3089 /**
3090  * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
3091  * @param event packet
3092  * @return descriptor
3093  * @note: btstack_type V
3094  */
3095 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
3096     return &event[10];
3097 }
3098 #endif
3099 
3100 #ifdef ENABLE_BLE
3101 /**
3102  * @brief Get field handle from event GATT_EVENT_MTU
3103  * @param event packet
3104  * @return handle
3105  * @note: btstack_type H
3106  */
3107 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){
3108     return little_endian_read_16(event, 2);
3109 }
3110 /**
3111  * @brief Get field MTU from event GATT_EVENT_MTU
3112  * @param event packet
3113  * @return MTU
3114  * @note: btstack_type 2
3115  */
3116 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){
3117     return little_endian_read_16(event, 4);
3118 }
3119 #endif
3120 
3121 #ifdef ENABLE_BLE
3122 /**
3123  * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE
3124  * @param event packet
3125  * @return handle
3126  * @note: btstack_type H
3127  */
3128 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){
3129     return little_endian_read_16(event, 2);
3130 }
3131 #endif
3132 
3133 #ifdef ENABLE_BLE
3134 /**
3135  * @brief Get field status from event GATT_EVENT_CONNECTED
3136  * @param event packet
3137  * @return status
3138  * @note: btstack_type 1
3139  */
3140 static inline uint8_t gatt_event_connected_get_status(const uint8_t * event){
3141     return event[2];
3142 }
3143 /**
3144  * @brief Get field address_type from event GATT_EVENT_CONNECTED
3145  * @param event packet
3146  * @return address_type
3147  * @note: btstack_type 1
3148  */
3149 static inline uint8_t gatt_event_connected_get_address_type(const uint8_t * event){
3150     return event[3];
3151 }
3152 /**
3153  * @brief Get field address from event GATT_EVENT_CONNECTED
3154  * @param event packet
3155  * @param Pointer to storage for address
3156  * @note: btstack_type B
3157  */
3158 static inline void gatt_event_connected_get_address(const uint8_t * event, bd_addr_t address){
3159     reverse_bytes(&event[4], address, 6);
3160 }
3161 /**
3162  * @brief Get field handle from event GATT_EVENT_CONNECTED
3163  * @param event packet
3164  * @return handle
3165  * @note: btstack_type H
3166  */
3167 static inline hci_con_handle_t gatt_event_connected_get_handle(const uint8_t * event){
3168     return little_endian_read_16(event, 10);
3169 }
3170 #endif
3171 
3172 #ifdef ENABLE_BLE
3173 /**
3174  * @brief Get field handle from event GATT_EVENT_DISCONNECTED
3175  * @param event packet
3176  * @return handle
3177  * @note: btstack_type H
3178  */
3179 static inline hci_con_handle_t gatt_event_disconnected_get_handle(const uint8_t * event){
3180     return little_endian_read_16(event, 2);
3181 }
3182 #endif
3183 
3184 #ifdef ENABLE_BLE
3185 /**
3186  * @brief Get field handle from event GATT_EVENT_SERVICE_CHANGED
3187  * @param event packet
3188  * @return handle
3189  * @note: btstack_type H
3190  */
3191 static inline hci_con_handle_t gatt_event_service_changed_get_handle(const uint8_t * event){
3192     return little_endian_read_16(event, 2);
3193 }
3194 /**
3195  * @brief Get field attribute_handle_start from event GATT_EVENT_SERVICE_CHANGED
3196  * @param event packet
3197  * @return attribute_handle_start
3198  * @note: btstack_type 2
3199  */
3200 static inline uint16_t gatt_event_service_changed_get_attribute_handle_start(const uint8_t * event){
3201     return little_endian_read_16(event, 4);
3202 }
3203 /**
3204  * @brief Get field attribute_handle_end from event GATT_EVENT_SERVICE_CHANGED
3205  * @param event packet
3206  * @return attribute_handle_end
3207  * @note: btstack_type 2
3208  */
3209 static inline uint16_t gatt_event_service_changed_get_attribute_handle_end(const uint8_t * event){
3210     return little_endian_read_16(event, 6);
3211 }
3212 #endif
3213 
3214 /**
3215  * @brief Get field address_type from event ATT_EVENT_CONNECTED
3216  * @param event packet
3217  * @return address_type
3218  * @note: btstack_type 1
3219  */
3220 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){
3221     return event[2];
3222 }
3223 /**
3224  * @brief Get field address from event ATT_EVENT_CONNECTED
3225  * @param event packet
3226  * @param Pointer to storage for address
3227  * @note: btstack_type B
3228  */
3229 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){
3230     reverse_bytes(&event[3], address, 6);
3231 }
3232 /**
3233  * @brief Get field handle from event ATT_EVENT_CONNECTED
3234  * @param event packet
3235  * @return handle
3236  * @note: btstack_type H
3237  */
3238 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){
3239     return little_endian_read_16(event, 9);
3240 }
3241 
3242 /**
3243  * @brief Get field handle from event ATT_EVENT_DISCONNECTED
3244  * @param event packet
3245  * @return handle
3246  * @note: btstack_type H
3247  */
3248 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){
3249     return little_endian_read_16(event, 2);
3250 }
3251 
3252 /**
3253  * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
3254  * @param event packet
3255  * @return handle
3256  * @note: btstack_type H
3257  */
3258 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){
3259     return little_endian_read_16(event, 2);
3260 }
3261 /**
3262  * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
3263  * @param event packet
3264  * @return MTU
3265  * @note: btstack_type 2
3266  */
3267 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){
3268     return little_endian_read_16(event, 4);
3269 }
3270 
3271 /**
3272  * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
3273  * @param event packet
3274  * @return status
3275  * @note: btstack_type 1
3276  */
3277 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){
3278     return event[2];
3279 }
3280 /**
3281  * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
3282  * @param event packet
3283  * @return conn_handle
3284  * @note: btstack_type H
3285  */
3286 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){
3287     return little_endian_read_16(event, 3);
3288 }
3289 /**
3290  * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
3291  * @param event packet
3292  * @return attribute_handle
3293  * @note: btstack_type 2
3294  */
3295 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){
3296     return little_endian_read_16(event, 5);
3297 }
3298 
3299 
3300 /**
3301  * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED
3302  * @param event packet
3303  * @return status
3304  * @note: btstack_type 1
3305  */
3306 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){
3307     return event[2];
3308 }
3309 /**
3310  * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED
3311  * @param event packet
3312  * @return service_uuid
3313  * @note: btstack_type 2
3314  */
3315 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){
3316     return little_endian_read_16(event, 3);
3317 }
3318 
3319 /**
3320  * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED
3321  * @param event packet
3322  * @return status
3323  * @note: btstack_type 1
3324  */
3325 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){
3326     return event[2];
3327 }
3328 /**
3329  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED
3330  * @param event packet
3331  * @return bnep_cid
3332  * @note: btstack_type 2
3333  */
3334 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){
3335     return little_endian_read_16(event, 3);
3336 }
3337 /**
3338  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED
3339  * @param event packet
3340  * @return source_uuid
3341  * @note: btstack_type 2
3342  */
3343 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){
3344     return little_endian_read_16(event, 5);
3345 }
3346 /**
3347  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED
3348  * @param event packet
3349  * @return destination_uuid
3350  * @note: btstack_type 2
3351  */
3352 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){
3353     return little_endian_read_16(event, 7);
3354 }
3355 /**
3356  * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED
3357  * @param event packet
3358  * @return mtu
3359  * @note: btstack_type 2
3360  */
3361 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){
3362     return little_endian_read_16(event, 9);
3363 }
3364 /**
3365  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED
3366  * @param event packet
3367  * @param Pointer to storage for remote_address
3368  * @note: btstack_type B
3369  */
3370 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3371     reverse_bytes(&event[11], remote_address, 6);
3372 }
3373 /**
3374  * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED
3375  * @param event packet
3376  * @return con_handle
3377  * @note: btstack_type H
3378  */
3379 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){
3380     return little_endian_read_16(event, 17);
3381 }
3382 
3383 /**
3384  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED
3385  * @param event packet
3386  * @return bnep_cid
3387  * @note: btstack_type 2
3388  */
3389 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){
3390     return little_endian_read_16(event, 2);
3391 }
3392 /**
3393  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED
3394  * @param event packet
3395  * @return source_uuid
3396  * @note: btstack_type 2
3397  */
3398 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){
3399     return little_endian_read_16(event, 4);
3400 }
3401 /**
3402  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED
3403  * @param event packet
3404  * @return destination_uuid
3405  * @note: btstack_type 2
3406  */
3407 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){
3408     return little_endian_read_16(event, 6);
3409 }
3410 /**
3411  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED
3412  * @param event packet
3413  * @param Pointer to storage for remote_address
3414  * @note: btstack_type B
3415  */
3416 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3417     reverse_bytes(&event[8], remote_address, 6);
3418 }
3419 
3420 /**
3421  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT
3422  * @param event packet
3423  * @return bnep_cid
3424  * @note: btstack_type 2
3425  */
3426 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){
3427     return little_endian_read_16(event, 2);
3428 }
3429 /**
3430  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
3431  * @param event packet
3432  * @return source_uuid
3433  * @note: btstack_type 2
3434  */
3435 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){
3436     return little_endian_read_16(event, 4);
3437 }
3438 /**
3439  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
3440  * @param event packet
3441  * @return destination_uuid
3442  * @note: btstack_type 2
3443  */
3444 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){
3445     return little_endian_read_16(event, 6);
3446 }
3447 /**
3448  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT
3449  * @param event packet
3450  * @param Pointer to storage for remote_address
3451  * @note: btstack_type B
3452  */
3453 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3454     reverse_bytes(&event[8], remote_address, 6);
3455 }
3456 /**
3457  * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT
3458  * @param event packet
3459  * @return channel_state
3460  * @note: btstack_type 1
3461  */
3462 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){
3463     return event[14];
3464 }
3465 
3466 /**
3467  * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW
3468  * @param event packet
3469  * @return bnep_cid
3470  * @note: btstack_type 2
3471  */
3472 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){
3473     return little_endian_read_16(event, 2);
3474 }
3475 /**
3476  * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW
3477  * @param event packet
3478  * @return source_uuid
3479  * @note: btstack_type 2
3480  */
3481 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){
3482     return little_endian_read_16(event, 4);
3483 }
3484 /**
3485  * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW
3486  * @param event packet
3487  * @return destination_uuid
3488  * @note: btstack_type 2
3489  */
3490 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){
3491     return little_endian_read_16(event, 6);
3492 }
3493 /**
3494  * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW
3495  * @param event packet
3496  * @param Pointer to storage for remote_address
3497  * @note: btstack_type B
3498  */
3499 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
3500     reverse_bytes(&event[8], remote_address, 6);
3501 }
3502 
3503 #ifdef ENABLE_BLE
3504 /**
3505  * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST
3506  * @param event packet
3507  * @return handle
3508  * @note: btstack_type H
3509  */
3510 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){
3511     return little_endian_read_16(event, 2);
3512 }
3513 /**
3514  * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST
3515  * @param event packet
3516  * @return addr_type
3517  * @note: btstack_type 1
3518  */
3519 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){
3520     return event[4];
3521 }
3522 /**
3523  * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST
3524  * @param event packet
3525  * @param Pointer to storage for address
3526  * @note: btstack_type B
3527  */
3528 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){
3529     reverse_bytes(&event[5], address, 6);
3530 }
3531 /**
3532  * @brief Get field secure_connection from event SM_EVENT_JUST_WORKS_REQUEST
3533  * @param event packet
3534  * @return secure_connection
3535  * @note: btstack_type 1
3536  */
3537 static inline uint8_t sm_event_just_works_request_get_secure_connection(const uint8_t * event){
3538     return event[11];
3539 }
3540 #endif
3541 
3542 #ifdef ENABLE_BLE
3543 /**
3544  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3545  * @param event packet
3546  * @return handle
3547  * @note: btstack_type H
3548  */
3549 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){
3550     return little_endian_read_16(event, 2);
3551 }
3552 /**
3553  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3554  * @param event packet
3555  * @return addr_type
3556  * @note: btstack_type 1
3557  */
3558 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){
3559     return event[4];
3560 }
3561 /**
3562  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3563  * @param event packet
3564  * @param Pointer to storage for address
3565  * @note: btstack_type B
3566  */
3567 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){
3568     reverse_bytes(&event[5], address, 6);
3569 }
3570 /**
3571  * @brief Get field secure_connection from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3572  * @param event packet
3573  * @return secure_connection
3574  * @note: btstack_type 1
3575  */
3576 static inline uint8_t sm_event_passkey_display_number_get_secure_connection(const uint8_t * event){
3577     return event[11];
3578 }
3579 /**
3580  * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
3581  * @param event packet
3582  * @return passkey
3583  * @note: btstack_type 4
3584  */
3585 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){
3586     return little_endian_read_32(event, 12);
3587 }
3588 #endif
3589 
3590 #ifdef ENABLE_BLE
3591 /**
3592  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
3593  * @param event packet
3594  * @return handle
3595  * @note: btstack_type H
3596  */
3597 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){
3598     return little_endian_read_16(event, 2);
3599 }
3600 /**
3601  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
3602  * @param event packet
3603  * @return addr_type
3604  * @note: btstack_type 1
3605  */
3606 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){
3607     return event[4];
3608 }
3609 /**
3610  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
3611  * @param event packet
3612  * @param Pointer to storage for address
3613  * @note: btstack_type B
3614  */
3615 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){
3616     reverse_bytes(&event[5], address, 6);
3617 }
3618 #endif
3619 
3620 #ifdef ENABLE_BLE
3621 /**
3622  * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER
3623  * @param event packet
3624  * @return handle
3625  * @note: btstack_type H
3626  */
3627 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){
3628     return little_endian_read_16(event, 2);
3629 }
3630 /**
3631  * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER
3632  * @param event packet
3633  * @return addr_type
3634  * @note: btstack_type 1
3635  */
3636 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){
3637     return event[4];
3638 }
3639 /**
3640  * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER
3641  * @param event packet
3642  * @param Pointer to storage for address
3643  * @note: btstack_type B
3644  */
3645 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){
3646     reverse_bytes(&event[5], address, 6);
3647 }
3648 /**
3649  * @brief Get field secure_connection from event SM_EVENT_PASSKEY_INPUT_NUMBER
3650  * @param event packet
3651  * @return secure_connection
3652  * @note: btstack_type 1
3653  */
3654 static inline uint8_t sm_event_passkey_input_number_get_secure_connection(const uint8_t * event){
3655     return event[11];
3656 }
3657 #endif
3658 
3659 #ifdef ENABLE_BLE
3660 /**
3661  * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3662  * @param event packet
3663  * @return handle
3664  * @note: btstack_type H
3665  */
3666 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){
3667     return little_endian_read_16(event, 2);
3668 }
3669 /**
3670  * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3671  * @param event packet
3672  * @return addr_type
3673  * @note: btstack_type 1
3674  */
3675 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){
3676     return event[4];
3677 }
3678 /**
3679  * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3680  * @param event packet
3681  * @param Pointer to storage for address
3682  * @note: btstack_type B
3683  */
3684 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){
3685     reverse_bytes(&event[5], address, 6);
3686 }
3687 /**
3688  * @brief Get field secure_connection from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3689  * @param event packet
3690  * @return secure_connection
3691  * @note: btstack_type 1
3692  */
3693 static inline uint8_t sm_event_numeric_comparison_request_get_secure_connection(const uint8_t * event){
3694     return event[11];
3695 }
3696 /**
3697  * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
3698  * @param event packet
3699  * @return passkey
3700  * @note: btstack_type 4
3701  */
3702 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){
3703     return little_endian_read_32(event, 12);
3704 }
3705 #endif
3706 
3707 #ifdef ENABLE_BLE
3708 /**
3709  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED
3710  * @param event packet
3711  * @return handle
3712  * @note: btstack_type H
3713  */
3714 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){
3715     return little_endian_read_16(event, 2);
3716 }
3717 /**
3718  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED
3719  * @param event packet
3720  * @return addr_type
3721  * @note: btstack_type 1
3722  */
3723 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){
3724     return event[4];
3725 }
3726 /**
3727  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED
3728  * @param event packet
3729  * @param Pointer to storage for address
3730  * @note: btstack_type B
3731  */
3732 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){
3733     reverse_bytes(&event[5], address, 6);
3734 }
3735 #endif
3736 
3737 #ifdef ENABLE_BLE
3738 /**
3739  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3740  * @param event packet
3741  * @return handle
3742  * @note: btstack_type H
3743  */
3744 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){
3745     return little_endian_read_16(event, 2);
3746 }
3747 /**
3748  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3749  * @param event packet
3750  * @return addr_type
3751  * @note: btstack_type 1
3752  */
3753 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){
3754     return event[4];
3755 }
3756 /**
3757  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED
3758  * @param event packet
3759  * @param Pointer to storage for address
3760  * @note: btstack_type B
3761  */
3762 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){
3763     reverse_bytes(&event[5], address, 6);
3764 }
3765 #endif
3766 
3767 #ifdef ENABLE_BLE
3768 /**
3769  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3770  * @param event packet
3771  * @return handle
3772  * @note: btstack_type H
3773  */
3774 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){
3775     return little_endian_read_16(event, 2);
3776 }
3777 /**
3778  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3779  * @param event packet
3780  * @return addr_type
3781  * @note: btstack_type 1
3782  */
3783 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){
3784     return event[4];
3785 }
3786 /**
3787  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3788  * @param event packet
3789  * @param Pointer to storage for address
3790  * @note: btstack_type B
3791  */
3792 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){
3793     reverse_bytes(&event[5], address, 6);
3794 }
3795 /**
3796  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3797  * @param event packet
3798  * @return identity_addr_type
3799  * @note: btstack_type 1
3800  */
3801 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){
3802     return event[11];
3803 }
3804 /**
3805  * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3806  * @param event packet
3807  * @param Pointer to storage for identity_address
3808  * @note: btstack_type B
3809  */
3810 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
3811     reverse_bytes(&event[12], identity_address, 6);
3812 }
3813 /**
3814  * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
3815  * @param event packet
3816  * @return index
3817  * @note: btstack_type 2
3818  */
3819 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){
3820     return little_endian_read_16(event, 18);
3821 }
3822 #endif
3823 
3824 #ifdef ENABLE_BLE
3825 /**
3826  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST
3827  * @param event packet
3828  * @return handle
3829  * @note: btstack_type H
3830  */
3831 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){
3832     return little_endian_read_16(event, 2);
3833 }
3834 /**
3835  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST
3836  * @param event packet
3837  * @return addr_type
3838  * @note: btstack_type 1
3839  */
3840 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){
3841     return event[4];
3842 }
3843 /**
3844  * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST
3845  * @param event packet
3846  * @param Pointer to storage for address
3847  * @note: btstack_type B
3848  */
3849 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){
3850     reverse_bytes(&event[5], address, 6);
3851 }
3852 #endif
3853 
3854 #ifdef ENABLE_BLE
3855 /**
3856  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT
3857  * @param event packet
3858  * @return handle
3859  * @note: btstack_type H
3860  */
3861 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){
3862     return little_endian_read_16(event, 2);
3863 }
3864 /**
3865  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT
3866  * @param event packet
3867  * @return addr_type
3868  * @note: btstack_type 1
3869  */
3870 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){
3871     return event[4];
3872 }
3873 /**
3874  * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT
3875  * @param event packet
3876  * @param Pointer to storage for address
3877  * @note: btstack_type B
3878  */
3879 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){
3880     reverse_bytes(&event[5], address, 6);
3881 }
3882 /**
3883  * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT
3884  * @param event packet
3885  * @return authorization_result
3886  * @note: btstack_type 1
3887  */
3888 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){
3889     return event[11];
3890 }
3891 #endif
3892 
3893 #ifdef ENABLE_BLE
3894 /**
3895  * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION
3896  * @param event packet
3897  * @return handle
3898  * @note: btstack_type H
3899  */
3900 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){
3901     return little_endian_read_16(event, 2);
3902 }
3903 /**
3904  * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION
3905  * @param event packet
3906  * @return action
3907  * @note: btstack_type 1
3908  */
3909 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){
3910     return event[4];
3911 }
3912 #endif
3913 
3914 #ifdef ENABLE_BLE
3915 /**
3916  * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED
3917  * @param event packet
3918  * @return handle
3919  * @note: btstack_type H
3920  */
3921 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){
3922     return little_endian_read_16(event, 2);
3923 }
3924 /**
3925  * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED
3926  * @param event packet
3927  * @return addr_type
3928  * @note: btstack_type 1
3929  */
3930 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){
3931     return event[4];
3932 }
3933 /**
3934  * @brief Get field address from event SM_EVENT_IDENTITY_CREATED
3935  * @param event packet
3936  * @param Pointer to storage for address
3937  * @note: btstack_type B
3938  */
3939 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){
3940     reverse_bytes(&event[5], address, 6);
3941 }
3942 /**
3943  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED
3944  * @param event packet
3945  * @return identity_addr_type
3946  * @note: btstack_type 1
3947  */
3948 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){
3949     return event[11];
3950 }
3951 /**
3952  * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED
3953  * @param event packet
3954  * @param Pointer to storage for identity_address
3955  * @note: btstack_type B
3956  */
3957 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
3958     reverse_bytes(&event[12], identity_address, 6);
3959 }
3960 /**
3961  * @brief Get field index from event SM_EVENT_IDENTITY_CREATED
3962  * @param event packet
3963  * @return index
3964  * @note: btstack_type 2
3965  */
3966 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){
3967     return little_endian_read_16(event, 18);
3968 }
3969 #endif
3970 
3971 #ifdef ENABLE_BLE
3972 /**
3973  * @brief Get field handle from event SM_EVENT_PAIRING_STARTED
3974  * @param event packet
3975  * @return handle
3976  * @note: btstack_type H
3977  */
3978 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){
3979     return little_endian_read_16(event, 2);
3980 }
3981 /**
3982  * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED
3983  * @param event packet
3984  * @return addr_type
3985  * @note: btstack_type 1
3986  */
3987 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){
3988     return event[4];
3989 }
3990 /**
3991  * @brief Get field address from event SM_EVENT_PAIRING_STARTED
3992  * @param event packet
3993  * @param Pointer to storage for address
3994  * @note: btstack_type B
3995  */
3996 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){
3997     reverse_bytes(&event[5], address, 6);
3998 }
3999 #endif
4000 
4001 #ifdef ENABLE_BLE
4002 /**
4003  * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE
4004  * @param event packet
4005  * @return handle
4006  * @note: btstack_type H
4007  */
4008 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){
4009     return little_endian_read_16(event, 2);
4010 }
4011 /**
4012  * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE
4013  * @param event packet
4014  * @return addr_type
4015  * @note: btstack_type 1
4016  */
4017 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){
4018     return event[4];
4019 }
4020 /**
4021  * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE
4022  * @param event packet
4023  * @param Pointer to storage for address
4024  * @note: btstack_type B
4025  */
4026 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){
4027     reverse_bytes(&event[5], address, 6);
4028 }
4029 /**
4030  * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE
4031  * @param event packet
4032  * @return status
4033  * @note: btstack_type 1
4034  */
4035 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){
4036     return event[11];
4037 }
4038 /**
4039  * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE
4040  * @param event packet
4041  * @return reason
4042  * @note: btstack_type 1
4043  */
4044 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){
4045     return event[12];
4046 }
4047 #endif
4048 
4049 #ifdef ENABLE_BLE
4050 /**
4051  * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED
4052  * @param event packet
4053  * @return handle
4054  * @note: btstack_type H
4055  */
4056 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){
4057     return little_endian_read_16(event, 2);
4058 }
4059 /**
4060  * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED
4061  * @param event packet
4062  * @return addr_type
4063  * @note: btstack_type 1
4064  */
4065 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){
4066     return event[4];
4067 }
4068 /**
4069  * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED
4070  * @param event packet
4071  * @param Pointer to storage for address
4072  * @note: btstack_type B
4073  */
4074 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){
4075     reverse_bytes(&event[5], address, 6);
4076 }
4077 #endif
4078 
4079 #ifdef ENABLE_BLE
4080 /**
4081  * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE
4082  * @param event packet
4083  * @return handle
4084  * @note: btstack_type H
4085  */
4086 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){
4087     return little_endian_read_16(event, 2);
4088 }
4089 /**
4090  * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE
4091  * @param event packet
4092  * @return addr_type
4093  * @note: btstack_type 1
4094  */
4095 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){
4096     return event[4];
4097 }
4098 /**
4099  * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE
4100  * @param event packet
4101  * @param Pointer to storage for address
4102  * @note: btstack_type B
4103  */
4104 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){
4105     reverse_bytes(&event[5], address, 6);
4106 }
4107 /**
4108  * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE
4109  * @param event packet
4110  * @return status
4111  * @note: btstack_type 1
4112  */
4113 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){
4114     return event[11];
4115 }
4116 #endif
4117 
4118 /**
4119  * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL
4120  * @param event packet
4121  * @return handle
4122  * @note: btstack_type H
4123  */
4124 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){
4125     return little_endian_read_16(event, 2);
4126 }
4127 /**
4128  * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL
4129  * @param event packet
4130  * @return security_level
4131  * @note: btstack_type 1
4132  */
4133 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){
4134     return event[4];
4135 }
4136 
4137 /**
4138  * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
4139  * @param event packet
4140  * @return status
4141  * @note: btstack_type 1
4142  */
4143 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){
4144     return event[2];
4145 }
4146 /**
4147  * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
4148  * @param event packet
4149  * @param Pointer to storage for address
4150  * @note: btstack_type B
4151  */
4152 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){
4153     reverse_bytes(&event[3], address, 6);
4154 }
4155 
4156 /**
4157  * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT
4158  * @param event packet
4159  * @return advertising_event_type
4160  * @note: btstack_type 1
4161  */
4162 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){
4163     return event[2];
4164 }
4165 /**
4166  * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT
4167  * @param event packet
4168  * @return address_type
4169  * @note: btstack_type 1
4170  */
4171 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){
4172     return event[3];
4173 }
4174 /**
4175  * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT
4176  * @param event packet
4177  * @param Pointer to storage for address
4178  * @note: btstack_type B
4179  */
4180 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
4181     reverse_bytes(&event[4], address, 6);
4182 }
4183 /**
4184  * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT
4185  * @param event packet
4186  * @return rssi
4187  * @note: btstack_type 1
4188  */
4189 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){
4190     return event[10];
4191 }
4192 /**
4193  * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT
4194  * @param event packet
4195  * @return data_length
4196  * @note: btstack_type J
4197  */
4198 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){
4199     return event[11];
4200 }
4201 /**
4202  * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT
4203  * @param event packet
4204  * @return data
4205  * @note: btstack_type V
4206  */
4207 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){
4208     return &event[12];
4209 }
4210 
4211 /**
4212  * @brief Get field advertising_event_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4213  * @param event packet
4214  * @return advertising_event_type
4215  * @note: btstack_type 2
4216  */
4217 static inline uint16_t gap_event_extended_advertising_report_get_advertising_event_type(const uint8_t * event){
4218     return little_endian_read_16(event, 2);
4219 }
4220 /**
4221  * @brief Get field address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4222  * @param event packet
4223  * @return address_type
4224  * @note: btstack_type 1
4225  */
4226 static inline uint8_t gap_event_extended_advertising_report_get_address_type(const uint8_t * event){
4227     return event[4];
4228 }
4229 /**
4230  * @brief Get field address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4231  * @param event packet
4232  * @param Pointer to storage for address
4233  * @note: btstack_type B
4234  */
4235 static inline void gap_event_extended_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
4236     reverse_bytes(&event[5], address, 6);
4237 }
4238 /**
4239  * @brief Get field primary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4240  * @param event packet
4241  * @return primary_phy
4242  * @note: btstack_type 1
4243  */
4244 static inline uint8_t gap_event_extended_advertising_report_get_primary_phy(const uint8_t * event){
4245     return event[11];
4246 }
4247 /**
4248  * @brief Get field secondary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4249  * @param event packet
4250  * @return secondary_phy
4251  * @note: btstack_type 1
4252  */
4253 static inline uint8_t gap_event_extended_advertising_report_get_secondary_phy(const uint8_t * event){
4254     return event[12];
4255 }
4256 /**
4257  * @brief Get field advertising_sid from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4258  * @param event packet
4259  * @return advertising_sid
4260  * @note: btstack_type 1
4261  */
4262 static inline uint8_t gap_event_extended_advertising_report_get_advertising_sid(const uint8_t * event){
4263     return event[13];
4264 }
4265 /**
4266  * @brief Get field tx_power from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4267  * @param event packet
4268  * @return tx_power
4269  * @note: btstack_type 1
4270  */
4271 static inline uint8_t gap_event_extended_advertising_report_get_tx_power(const uint8_t * event){
4272     return event[14];
4273 }
4274 /**
4275  * @brief Get field rssi from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4276  * @param event packet
4277  * @return rssi
4278  * @note: btstack_type 1
4279  */
4280 static inline uint8_t gap_event_extended_advertising_report_get_rssi(const uint8_t * event){
4281     return event[15];
4282 }
4283 /**
4284  * @brief Get field periodic_advertising_interval from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4285  * @param event packet
4286  * @return periodic_advertising_interval
4287  * @note: btstack_type 2
4288  */
4289 static inline uint16_t gap_event_extended_advertising_report_get_periodic_advertising_interval(const uint8_t * event){
4290     return little_endian_read_16(event, 16);
4291 }
4292 /**
4293  * @brief Get field direct_address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4294  * @param event packet
4295  * @return direct_address_type
4296  * @note: btstack_type 1
4297  */
4298 static inline uint8_t gap_event_extended_advertising_report_get_direct_address_type(const uint8_t * event){
4299     return event[18];
4300 }
4301 /**
4302  * @brief Get field direct_address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4303  * @param event packet
4304  * @param Pointer to storage for direct_address
4305  * @note: btstack_type B
4306  */
4307 static inline void gap_event_extended_advertising_report_get_direct_address(const uint8_t * event, bd_addr_t direct_address){
4308     reverse_bytes(&event[19], direct_address, 6);
4309 }
4310 /**
4311  * @brief Get field data_length from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4312  * @param event packet
4313  * @return data_length
4314  * @note: btstack_type J
4315  */
4316 static inline uint8_t gap_event_extended_advertising_report_get_data_length(const uint8_t * event){
4317     return event[25];
4318 }
4319 /**
4320  * @brief Get field data from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT
4321  * @param event packet
4322  * @return data
4323  * @note: btstack_type V
4324  */
4325 static inline const uint8_t * gap_event_extended_advertising_report_get_data(const uint8_t * event){
4326     return &event[26];
4327 }
4328 
4329 /**
4330  * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT
4331  * @param event packet
4332  * @param Pointer to storage for bd_addr
4333  * @note: btstack_type B
4334  */
4335 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4336     reverse_bytes(&event[2], bd_addr, 6);
4337 }
4338 /**
4339  * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT
4340  * @param event packet
4341  * @return page_scan_repetition_mode
4342  * @note: btstack_type 1
4343  */
4344 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
4345     return event[8];
4346 }
4347 /**
4348  * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT
4349  * @param event packet
4350  * @return class_of_device
4351  * @note: btstack_type 3
4352  */
4353 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){
4354     return little_endian_read_24(event, 9);
4355 }
4356 /**
4357  * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT
4358  * @param event packet
4359  * @return clock_offset
4360  * @note: btstack_type 2
4361  */
4362 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){
4363     return little_endian_read_16(event, 12);
4364 }
4365 /**
4366  * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT
4367  * @param event packet
4368  * @return rssi_available
4369  * @note: btstack_type 1
4370  */
4371 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){
4372     return event[14];
4373 }
4374 /**
4375  * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT
4376  * @param event packet
4377  * @return rssi
4378  * @note: btstack_type 1
4379  */
4380 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){
4381     return event[15];
4382 }
4383 /**
4384  * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT
4385  * @param event packet
4386  * @return device_id_available
4387  * @note: btstack_type 1
4388  */
4389 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){
4390     return event[16];
4391 }
4392 /**
4393  * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT
4394  * @param event packet
4395  * @return device_id_vendor_id_source
4396  * @note: btstack_type 2
4397  */
4398 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){
4399     return little_endian_read_16(event, 17);
4400 }
4401 /**
4402  * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT
4403  * @param event packet
4404  * @return device_id_vendor_id
4405  * @note: btstack_type 2
4406  */
4407 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){
4408     return little_endian_read_16(event, 19);
4409 }
4410 /**
4411  * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT
4412  * @param event packet
4413  * @return device_id_product_id
4414  * @note: btstack_type 2
4415  */
4416 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){
4417     return little_endian_read_16(event, 21);
4418 }
4419 /**
4420  * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT
4421  * @param event packet
4422  * @return device_id_version
4423  * @note: btstack_type 2
4424  */
4425 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){
4426     return little_endian_read_16(event, 23);
4427 }
4428 /**
4429  * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT
4430  * @param event packet
4431  * @return name_available
4432  * @note: btstack_type 1
4433  */
4434 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){
4435     return event[25];
4436 }
4437 /**
4438  * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT
4439  * @param event packet
4440  * @return name_len
4441  * @note: btstack_type J
4442  */
4443 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){
4444     return event[26];
4445 }
4446 /**
4447  * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT
4448  * @param event packet
4449  * @return name
4450  * @note: btstack_type V
4451  */
4452 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){
4453     return &event[27];
4454 }
4455 
4456 /**
4457  * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE
4458  * @param event packet
4459  * @return status
4460  * @note: btstack_type 1
4461  */
4462 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){
4463     return event[2];
4464 }
4465 
4466 /**
4467  * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT
4468  * @param event packet
4469  * @return con_handle
4470  * @note: btstack_type H
4471  */
4472 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){
4473     return little_endian_read_16(event, 2);
4474 }
4475 /**
4476  * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT
4477  * @param event packet
4478  * @return rssi
4479  * @note: btstack_type 1
4480  */
4481 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){
4482     return event[4];
4483 }
4484 
4485 /**
4486  * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA
4487  * @param event packet
4488  * @return oob_data_present
4489  * @note: btstack_type 1
4490  */
4491 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){
4492     return event[2];
4493 }
4494 /**
4495  * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA
4496  * @param event packet
4497  * @param Pointer to storage for c_192
4498  * @note: btstack_type K
4499  */
4500 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){
4501     reverse_bytes(&event[3], c_192, 16);
4502 }
4503 /**
4504  * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA
4505  * @param event packet
4506  * @param Pointer to storage for r_192
4507  * @note: btstack_type K
4508  */
4509 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){
4510     reverse_bytes(&event[19], r_192, 16);
4511 }
4512 /**
4513  * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA
4514  * @param event packet
4515  * @param Pointer to storage for c_256
4516  * @note: btstack_type K
4517  */
4518 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){
4519     reverse_bytes(&event[35], c_256, 16);
4520 }
4521 /**
4522  * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA
4523  * @param event packet
4524  * @param Pointer to storage for r_256
4525  * @note: btstack_type K
4526  */
4527 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){
4528     reverse_bytes(&event[51], r_256, 16);
4529 }
4530 
4531 /**
4532  * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED
4533  * @param event packet
4534  * @return con_handle
4535  * @note: btstack_type H
4536  */
4537 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){
4538     return little_endian_read_16(event, 2);
4539 }
4540 /**
4541  * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED
4542  * @param event packet
4543  * @param Pointer to storage for bd_addr
4544  * @note: btstack_type B
4545  */
4546 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4547     reverse_bytes(&event[4], bd_addr, 6);
4548 }
4549 /**
4550  * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED
4551  * @param event packet
4552  * @return ssp
4553  * @note: btstack_type 1
4554  */
4555 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){
4556     return event[10];
4557 }
4558 /**
4559  * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED
4560  * @param event packet
4561  * @return initiator
4562  * @note: btstack_type 1
4563  */
4564 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){
4565     return event[11];
4566 }
4567 
4568 /**
4569  * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE
4570  * @param event packet
4571  * @return con_handle
4572  * @note: btstack_type H
4573  */
4574 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){
4575     return little_endian_read_16(event, 2);
4576 }
4577 /**
4578  * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE
4579  * @param event packet
4580  * @param Pointer to storage for bd_addr
4581  * @note: btstack_type B
4582  */
4583 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4584     reverse_bytes(&event[4], bd_addr, 6);
4585 }
4586 /**
4587  * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE
4588  * @param event packet
4589  * @return status
4590  * @note: btstack_type 1
4591  */
4592 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){
4593     return event[10];
4594 }
4595 
4596 /**
4597  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4598  * @param event packet
4599  * @return status
4600  * @note: btstack_type 1
4601  */
4602 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
4603     return event[3];
4604 }
4605 /**
4606  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4607  * @param event packet
4608  * @return connection_handle
4609  * @note: btstack_type H
4610  */
4611 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){
4612     return little_endian_read_16(event, 4);
4613 }
4614 /**
4615  * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4616  * @param event packet
4617  * @return role
4618  * @note: btstack_type 1
4619  */
4620 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){
4621     return event[6];
4622 }
4623 /**
4624  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4625  * @param event packet
4626  * @return peer_address_type
4627  * @note: btstack_type 1
4628  */
4629 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){
4630     return event[7];
4631 }
4632 /**
4633  * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4634  * @param event packet
4635  * @param Pointer to storage for peer_address
4636  * @note: btstack_type B
4637  */
4638 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){
4639     reverse_bytes(&event[8], peer_address, 6);
4640 }
4641 /**
4642  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4643  * @param event packet
4644  * @return conn_interval
4645  * @note: btstack_type 2
4646  */
4647 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){
4648     return little_endian_read_16(event, 14);
4649 }
4650 /**
4651  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4652  * @param event packet
4653  * @return conn_latency
4654  * @note: btstack_type 2
4655  */
4656 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){
4657     return little_endian_read_16(event, 16);
4658 }
4659 /**
4660  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4661  * @param event packet
4662  * @return supervision_timeout
4663  * @note: btstack_type 2
4664  */
4665 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){
4666     return little_endian_read_16(event, 18);
4667 }
4668 /**
4669  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
4670  * @param event packet
4671  * @return master_clock_accuracy
4672  * @note: btstack_type 1
4673  */
4674 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){
4675     return event[20];
4676 }
4677 
4678 /**
4679  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4680  * @param event packet
4681  * @return status
4682  * @note: btstack_type 1
4683  */
4684 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){
4685     return event[3];
4686 }
4687 /**
4688  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4689  * @param event packet
4690  * @return connection_handle
4691  * @note: btstack_type H
4692  */
4693 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){
4694     return little_endian_read_16(event, 4);
4695 }
4696 /**
4697  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4698  * @param event packet
4699  * @return conn_interval
4700  * @note: btstack_type 2
4701  */
4702 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){
4703     return little_endian_read_16(event, 6);
4704 }
4705 /**
4706  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4707  * @param event packet
4708  * @return conn_latency
4709  * @note: btstack_type 2
4710  */
4711 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){
4712     return little_endian_read_16(event, 8);
4713 }
4714 /**
4715  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
4716  * @param event packet
4717  * @return supervision_timeout
4718  * @note: btstack_type 2
4719  */
4720 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){
4721     return little_endian_read_16(event, 10);
4722 }
4723 
4724 /**
4725  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE
4726  * @param event packet
4727  * @return connection_handle
4728  * @note: btstack_type H
4729  */
4730 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){
4731     return little_endian_read_16(event, 3);
4732 }
4733 /**
4734  * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE
4735  * @param event packet
4736  * @return le_features
4737  * @note: btstack_type D
4738  */
4739 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){
4740     return (const uint8_t *) &event[5];
4741 }
4742 
4743 /**
4744  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4745  * @param event packet
4746  * @return connection_handle
4747  * @note: btstack_type H
4748  */
4749 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){
4750     return little_endian_read_16(event, 3);
4751 }
4752 /**
4753  * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4754  * @param event packet
4755  * @return random_number
4756  * @note: btstack_type D
4757  */
4758 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){
4759     return (const uint8_t *) &event[5];
4760 }
4761 /**
4762  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
4763  * @param event packet
4764  * @return encryption_diversifier
4765  * @note: btstack_type 2
4766  */
4767 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){
4768     return little_endian_read_16(event, 13);
4769 }
4770 
4771 /**
4772  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4773  * @param event packet
4774  * @return connection_handle
4775  * @note: btstack_type H
4776  */
4777 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){
4778     return little_endian_read_16(event, 3);
4779 }
4780 /**
4781  * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4782  * @param event packet
4783  * @return interval_min
4784  * @note: btstack_type 2
4785  */
4786 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){
4787     return little_endian_read_16(event, 5);
4788 }
4789 /**
4790  * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4791  * @param event packet
4792  * @return interval_max
4793  * @note: btstack_type 2
4794  */
4795 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){
4796     return little_endian_read_16(event, 7);
4797 }
4798 /**
4799  * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4800  * @param event packet
4801  * @return latency
4802  * @note: btstack_type 2
4803  */
4804 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){
4805     return little_endian_read_16(event, 9);
4806 }
4807 /**
4808  * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
4809  * @param event packet
4810  * @return timeout
4811  * @note: btstack_type 2
4812  */
4813 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){
4814     return little_endian_read_16(event, 11);
4815 }
4816 
4817 /**
4818  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4819  * @param event packet
4820  * @return connection_handle
4821  * @note: btstack_type H
4822  */
4823 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){
4824     return little_endian_read_16(event, 3);
4825 }
4826 /**
4827  * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4828  * @param event packet
4829  * @return max_tx_octets
4830  * @note: btstack_type 2
4831  */
4832 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){
4833     return little_endian_read_16(event, 5);
4834 }
4835 /**
4836  * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4837  * @param event packet
4838  * @return max_tx_time
4839  * @note: btstack_type 2
4840  */
4841 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){
4842     return little_endian_read_16(event, 7);
4843 }
4844 /**
4845  * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4846  * @param event packet
4847  * @return max_rx_octets
4848  * @note: btstack_type 2
4849  */
4850 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){
4851     return little_endian_read_16(event, 9);
4852 }
4853 /**
4854  * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
4855  * @param event packet
4856  * @return max_rx_time
4857  * @note: btstack_type 2
4858  */
4859 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){
4860     return little_endian_read_16(event, 11);
4861 }
4862 
4863 /**
4864  * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4865  * @param event packet
4866  * @return status
4867  * @note: btstack_type 1
4868  */
4869 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){
4870     return event[3];
4871 }
4872 /**
4873  * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4874  * @param event packet
4875  * @param Pointer to storage for dhkey_x
4876  * @note: btstack_type Q
4877  */
4878 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){
4879     reverse_bytes(&event[4], dhkey_x, 32);
4880 }
4881 /**
4882  * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
4883  * @param event packet
4884  * @param Pointer to storage for dhkey_y
4885  * @note: btstack_type Q
4886  */
4887 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){
4888     reverse_bytes(&event[36], dhkey_y, 32);
4889 }
4890 
4891 /**
4892  * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
4893  * @param event packet
4894  * @return status
4895  * @note: btstack_type 1
4896  */
4897 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){
4898     return event[3];
4899 }
4900 /**
4901  * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
4902  * @param event packet
4903  * @param Pointer to storage for dhkey
4904  * @note: btstack_type Q
4905  */
4906 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){
4907     reverse_bytes(&event[4], dhkey, 32);
4908 }
4909 
4910 /**
4911  * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4912  * @param event packet
4913  * @return status
4914  * @note: btstack_type 1
4915  */
4916 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_status(const uint8_t * event){
4917     return event[3];
4918 }
4919 /**
4920  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4921  * @param event packet
4922  * @return connection_handle
4923  * @note: btstack_type H
4924  */
4925 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_v1_get_connection_handle(const uint8_t * event){
4926     return little_endian_read_16(event, 4);
4927 }
4928 /**
4929  * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4930  * @param event packet
4931  * @return role
4932  * @note: btstack_type 1
4933  */
4934 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_role(const uint8_t * event){
4935     return event[6];
4936 }
4937 /**
4938  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4939  * @param event packet
4940  * @return peer_address_type
4941  * @note: btstack_type 1
4942  */
4943 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_peer_address_type(const uint8_t * event){
4944     return event[7];
4945 }
4946 /**
4947  * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4948  * @param event packet
4949  * @param Pointer to storage for peer_addresss
4950  * @note: btstack_type B
4951  */
4952 static inline void hci_subevent_le_enhanced_connection_complete_v1_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){
4953     reverse_bytes(&event[8], peer_addresss, 6);
4954 }
4955 /**
4956  * @brief Get field local_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4957  * @param event packet
4958  * @param Pointer to storage for local_resolvable_private_address
4959  * @note: btstack_type B
4960  */
4961 static inline void hci_subevent_le_enhanced_connection_complete_v1_get_local_resolvable_private_address(const uint8_t * event, bd_addr_t local_resolvable_private_address){
4962     reverse_bytes(&event[14], local_resolvable_private_address, 6);
4963 }
4964 /**
4965  * @brief Get field peer_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4966  * @param event packet
4967  * @param Pointer to storage for peer_resolvable_private_address
4968  * @note: btstack_type B
4969  */
4970 static inline void hci_subevent_le_enhanced_connection_complete_v1_get_peer_resolvable_private_address(const uint8_t * event, bd_addr_t peer_resolvable_private_address){
4971     reverse_bytes(&event[20], peer_resolvable_private_address, 6);
4972 }
4973 /**
4974  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4975  * @param event packet
4976  * @return conn_interval
4977  * @note: btstack_type 2
4978  */
4979 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v1_get_conn_interval(const uint8_t * event){
4980     return little_endian_read_16(event, 26);
4981 }
4982 /**
4983  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4984  * @param event packet
4985  * @return conn_latency
4986  * @note: btstack_type 2
4987  */
4988 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v1_get_conn_latency(const uint8_t * event){
4989     return little_endian_read_16(event, 28);
4990 }
4991 /**
4992  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
4993  * @param event packet
4994  * @return supervision_timeout
4995  * @note: btstack_type 2
4996  */
4997 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v1_get_supervision_timeout(const uint8_t * event){
4998     return little_endian_read_16(event, 30);
4999 }
5000 /**
5001  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1
5002  * @param event packet
5003  * @return master_clock_accuracy
5004  * @note: btstack_type 1
5005  */
5006 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_master_clock_accuracy(const uint8_t * event){
5007     return event[32];
5008 }
5009 
5010 /**
5011  * @brief Get field status from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
5012  * @param event packet
5013  * @return status
5014  * @note: btstack_type 1
5015  */
5016 static inline uint8_t hci_subevent_le_phy_update_complete_get_status(const uint8_t * event){
5017     return event[3];
5018 }
5019 /**
5020  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
5021  * @param event packet
5022  * @return connection_handle
5023  * @note: btstack_type H
5024  */
5025 static inline hci_con_handle_t hci_subevent_le_phy_update_complete_get_connection_handle(const uint8_t * event){
5026     return little_endian_read_16(event, 4);
5027 }
5028 /**
5029  * @brief Get field tx_phy from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE
5030  * @param event packet
5031  * @return tx_phy
5032  * @note: btstack_type 1
5033  */
5034 static inline uint8_t hci_subevent_le_phy_update_complete_get_tx_phy(const uint8_t * event){
5035     return event[6];
5036 }
5037 
5038 /**
5039  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5040  * @param event packet
5041  * @return status
5042  * @note: btstack_type 1
5043  */
5044 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_status(const uint8_t * event){
5045     return event[3];
5046 }
5047 /**
5048  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5049  * @param event packet
5050  * @return sync_handle
5051  * @note: btstack_type H
5052  */
5053 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_establishment_get_sync_handle(const uint8_t * event){
5054     return little_endian_read_16(event, 4);
5055 }
5056 /**
5057  * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5058  * @param event packet
5059  * @return advertising_sid
5060  * @note: btstack_type 1
5061  */
5062 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertising_sid(const uint8_t * event){
5063     return event[6];
5064 }
5065 /**
5066  * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5067  * @param event packet
5068  * @return advertiser_address_type
5069  * @note: btstack_type 1
5070  */
5071 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address_type(const uint8_t * event){
5072     return event[7];
5073 }
5074 /**
5075  * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5076  * @param event packet
5077  * @param Pointer to storage for advertiser_address
5078  * @note: btstack_type B
5079  */
5080 static inline void hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){
5081     reverse_bytes(&event[8], advertiser_address, 6);
5082 }
5083 /**
5084  * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5085  * @param event packet
5086  * @return advertiser_phy
5087  * @note: btstack_type 1
5088  */
5089 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_phy(const uint8_t * event){
5090     return event[14];
5091 }
5092 /**
5093  * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5094  * @param event packet
5095  * @return periodic_advertising_interval
5096  * @note: btstack_type 2
5097  */
5098 static inline uint16_t hci_subevent_le_periodic_advertising_sync_establishment_get_periodic_advertising_interval(const uint8_t * event){
5099     return little_endian_read_16(event, 15);
5100 }
5101 /**
5102  * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT
5103  * @param event packet
5104  * @return advertiser_clock_accuracy
5105  * @note: btstack_type 1
5106  */
5107 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_clock_accuracy(const uint8_t * event){
5108     return event[17];
5109 }
5110 
5111 /**
5112  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5113  * @param event packet
5114  * @return sync_handle
5115  * @note: btstack_type H
5116  */
5117 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_report_get_sync_handle(const uint8_t * event){
5118     return little_endian_read_16(event, 3);
5119 }
5120 /**
5121  * @brief Get field tx_power from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5122  * @param event packet
5123  * @return tx_power
5124  * @note: btstack_type 1
5125  */
5126 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_tx_power(const uint8_t * event){
5127     return event[5];
5128 }
5129 /**
5130  * @brief Get field rssi from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5131  * @param event packet
5132  * @return rssi
5133  * @note: btstack_type 1
5134  */
5135 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_rssi(const uint8_t * event){
5136     return event[6];
5137 }
5138 /**
5139  * @brief Get field cte_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5140  * @param event packet
5141  * @return cte_type
5142  * @note: btstack_type 1
5143  */
5144 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_cte_type(const uint8_t * event){
5145     return event[7];
5146 }
5147 /**
5148  * @brief Get field data_status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5149  * @param event packet
5150  * @return data_status
5151  * @note: btstack_type 1
5152  */
5153 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_status(const uint8_t * event){
5154     return event[8];
5155 }
5156 /**
5157  * @brief Get field data_length from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5158  * @param event packet
5159  * @return data_length
5160  * @note: btstack_type J
5161  */
5162 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_length(const uint8_t * event){
5163     return event[9];
5164 }
5165 /**
5166  * @brief Get field data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT
5167  * @param event packet
5168  * @return data
5169  * @note: btstack_type V
5170  */
5171 static inline const uint8_t * hci_subevent_le_periodic_advertising_report_get_data(const uint8_t * event){
5172     return &event[10];
5173 }
5174 
5175 /**
5176  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_LOST
5177  * @param event packet
5178  * @return sync_handle
5179  * @note: btstack_type H
5180  */
5181 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_lost_get_sync_handle(const uint8_t * event){
5182     return little_endian_read_16(event, 3);
5183 }
5184 
5185 
5186 /**
5187  * @brief Get field status from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
5188  * @param event packet
5189  * @return status
5190  * @note: btstack_type 1
5191  */
5192 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_status(const uint8_t * event){
5193     return event[3];
5194 }
5195 /**
5196  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
5197  * @param event packet
5198  * @return advertising_handle
5199  * @note: btstack_type 1
5200  */
5201 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_advertising_handle(const uint8_t * event){
5202     return event[4];
5203 }
5204 /**
5205  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
5206  * @param event packet
5207  * @return connection_handle
5208  * @note: btstack_type H
5209  */
5210 static inline hci_con_handle_t hci_subevent_le_advertising_set_terminated_get_connection_handle(const uint8_t * event){
5211     return little_endian_read_16(event, 5);
5212 }
5213 /**
5214  * @brief Get field num_completed_exteneded_advertising_events from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED
5215  * @param event packet
5216  * @return num_completed_exteneded_advertising_events
5217  * @note: btstack_type 1
5218  */
5219 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_num_completed_exteneded_advertising_events(const uint8_t * event){
5220     return event[7];
5221 }
5222 
5223 /**
5224  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
5225  * @param event packet
5226  * @return advertising_handle
5227  * @note: btstack_type 1
5228  */
5229 static inline uint8_t hci_subevent_le_scan_request_received_get_advertising_handle(const uint8_t * event){
5230     return event[3];
5231 }
5232 /**
5233  * @brief Get field scanner_address_type from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
5234  * @param event packet
5235  * @return scanner_address_type
5236  * @note: btstack_type 1
5237  */
5238 static inline uint8_t hci_subevent_le_scan_request_received_get_scanner_address_type(const uint8_t * event){
5239     return event[4];
5240 }
5241 /**
5242  * @brief Get field scanner_address from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED
5243  * @param event packet
5244  * @param Pointer to storage for scanner_address
5245  * @note: btstack_type B
5246  */
5247 static inline void hci_subevent_le_scan_request_received_get_scanner_address(const uint8_t * event, bd_addr_t scanner_address){
5248     reverse_bytes(&event[5], scanner_address, 6);
5249 }
5250 
5251 /**
5252  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM
5253  * @param event packet
5254  * @return connection_handle
5255  * @note: btstack_type H
5256  */
5257 static inline hci_con_handle_t hci_subevent_le_channel_selection_algorithm_get_connection_handle(const uint8_t * event){
5258     return little_endian_read_16(event, 3);
5259 }
5260 /**
5261  * @brief Get field channel_selection_algorithm from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM
5262  * @param event packet
5263  * @return channel_selection_algorithm
5264  * @note: btstack_type 1
5265  */
5266 static inline uint8_t hci_subevent_le_channel_selection_algorithm_get_channel_selection_algorithm(const uint8_t * event){
5267     return event[5];
5268 }
5269 
5270 /**
5271  * @brief Get field status from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED
5272  * @param event packet
5273  * @return status
5274  * @note: btstack_type 1
5275  */
5276 static inline uint8_t hci_subevent_le_le_cte_request_failed_get_status(const uint8_t * event){
5277     return event[3];
5278 }
5279 /**
5280  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED
5281  * @param event packet
5282  * @return connection_handle
5283  * @note: btstack_type H
5284  */
5285 static inline hci_con_handle_t hci_subevent_le_le_cte_request_failed_get_connection_handle(const uint8_t * event){
5286     return little_endian_read_16(event, 4);
5287 }
5288 
5289 /**
5290  * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5291  * @param event packet
5292  * @return status
5293  * @note: btstack_type 1
5294  */
5295 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_status(const uint8_t * event){
5296     return event[3];
5297 }
5298 /**
5299  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5300  * @param event packet
5301  * @return connection_handle
5302  * @note: btstack_type H
5303  */
5304 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_connection_handle(const uint8_t * event){
5305     return little_endian_read_16(event, 4);
5306 }
5307 /**
5308  * @brief Get field service_data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5309  * @param event packet
5310  * @return service_data
5311  * @note: btstack_type 2
5312  */
5313 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_service_data(const uint8_t * event){
5314     return little_endian_read_16(event, 6);
5315 }
5316 /**
5317  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5318  * @param event packet
5319  * @return sync_handle
5320  * @note: btstack_type H
5321  */
5322 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_sync_handle(const uint8_t * event){
5323     return little_endian_read_16(event, 8);
5324 }
5325 /**
5326  * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5327  * @param event packet
5328  * @return advertising_sid
5329  * @note: btstack_type 1
5330  */
5331 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertising_sid(const uint8_t * event){
5332     return event[10];
5333 }
5334 /**
5335  * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5336  * @param event packet
5337  * @return advertiser_address_type
5338  * @note: btstack_type 1
5339  */
5340 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address_type(const uint8_t * event){
5341     return event[11];
5342 }
5343 /**
5344  * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5345  * @param event packet
5346  * @param Pointer to storage for advertiser_address
5347  * @note: btstack_type B
5348  */
5349 static inline void hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){
5350     reverse_bytes(&event[12], advertiser_address, 6);
5351 }
5352 /**
5353  * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5354  * @param event packet
5355  * @return advertiser_phy
5356  * @note: btstack_type 1
5357  */
5358 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_phy(const uint8_t * event){
5359     return event[18];
5360 }
5361 /**
5362  * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5363  * @param event packet
5364  * @return periodic_advertising_interval
5365  * @note: btstack_type 2
5366  */
5367 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_periodic_advertising_interval(const uint8_t * event){
5368     return little_endian_read_16(event, 19);
5369 }
5370 /**
5371  * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED
5372  * @param event packet
5373  * @return advertiser_clock_accuracy
5374  * @note: btstack_type 1
5375  */
5376 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_clock_accuracy(const uint8_t * event){
5377     return event[21];
5378 }
5379 
5380 /**
5381  * @brief Get field status from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5382  * @param event packet
5383  * @return status
5384  * @note: btstack_type 1
5385  */
5386 static inline uint8_t hci_subevent_le_cis_established_get_status(const uint8_t * event){
5387     return event[3];
5388 }
5389 /**
5390  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5391  * @param event packet
5392  * @return connection_handle
5393  * @note: btstack_type H
5394  */
5395 static inline hci_con_handle_t hci_subevent_le_cis_established_get_connection_handle(const uint8_t * event){
5396     return little_endian_read_16(event, 4);
5397 }
5398 /**
5399  * @brief Get field cig_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5400  * @param event packet
5401  * @return cig_sync_delay
5402  * @note: btstack_type 3
5403  */
5404 static inline uint32_t hci_subevent_le_cis_established_get_cig_sync_delay(const uint8_t * event){
5405     return little_endian_read_24(event, 6);
5406 }
5407 /**
5408  * @brief Get field cis_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5409  * @param event packet
5410  * @return cis_sync_delay
5411  * @note: btstack_type 3
5412  */
5413 static inline uint32_t hci_subevent_le_cis_established_get_cis_sync_delay(const uint8_t * event){
5414     return little_endian_read_24(event, 9);
5415 }
5416 /**
5417  * @brief Get field transport_latency_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5418  * @param event packet
5419  * @return transport_latency_c_to_p
5420  * @note: btstack_type 3
5421  */
5422 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_c_to_p(const uint8_t * event){
5423     return little_endian_read_24(event, 12);
5424 }
5425 /**
5426  * @brief Get field transport_latency_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5427  * @param event packet
5428  * @return transport_latency_p_to_c
5429  * @note: btstack_type 3
5430  */
5431 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_p_to_c(const uint8_t * event){
5432     return little_endian_read_24(event, 15);
5433 }
5434 /**
5435  * @brief Get field phy_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5436  * @param event packet
5437  * @return phy_c_to_p
5438  * @note: btstack_type 1
5439  */
5440 static inline uint8_t hci_subevent_le_cis_established_get_phy_c_to_p(const uint8_t * event){
5441     return event[18];
5442 }
5443 /**
5444  * @brief Get field phy_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5445  * @param event packet
5446  * @return phy_p_to_c
5447  * @note: btstack_type 1
5448  */
5449 static inline uint8_t hci_subevent_le_cis_established_get_phy_p_to_c(const uint8_t * event){
5450     return event[19];
5451 }
5452 /**
5453  * @brief Get field nse from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5454  * @param event packet
5455  * @return nse
5456  * @note: btstack_type 1
5457  */
5458 static inline uint8_t hci_subevent_le_cis_established_get_nse(const uint8_t * event){
5459     return event[20];
5460 }
5461 /**
5462  * @brief Get field bn_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5463  * @param event packet
5464  * @return bn_c_to_p
5465  * @note: btstack_type 1
5466  */
5467 static inline uint8_t hci_subevent_le_cis_established_get_bn_c_to_p(const uint8_t * event){
5468     return event[21];
5469 }
5470 /**
5471  * @brief Get field bn_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5472  * @param event packet
5473  * @return bn_p_to_c
5474  * @note: btstack_type 1
5475  */
5476 static inline uint8_t hci_subevent_le_cis_established_get_bn_p_to_c(const uint8_t * event){
5477     return event[22];
5478 }
5479 /**
5480  * @brief Get field ft_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5481  * @param event packet
5482  * @return ft_c_to_p
5483  * @note: btstack_type 1
5484  */
5485 static inline uint8_t hci_subevent_le_cis_established_get_ft_c_to_p(const uint8_t * event){
5486     return event[23];
5487 }
5488 /**
5489  * @brief Get field ft_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5490  * @param event packet
5491  * @return ft_p_to_c
5492  * @note: btstack_type 1
5493  */
5494 static inline uint8_t hci_subevent_le_cis_established_get_ft_p_to_c(const uint8_t * event){
5495     return event[24];
5496 }
5497 /**
5498  * @brief Get field max_pdu_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5499  * @param event packet
5500  * @return max_pdu_c_to_p
5501  * @note: btstack_type 2
5502  */
5503 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_c_to_p(const uint8_t * event){
5504     return little_endian_read_16(event, 25);
5505 }
5506 /**
5507  * @brief Get field max_pdu_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5508  * @param event packet
5509  * @return max_pdu_p_to_c
5510  * @note: btstack_type 2
5511  */
5512 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_p_to_c(const uint8_t * event){
5513     return little_endian_read_16(event, 27);
5514 }
5515 /**
5516  * @brief Get field iso_interval from event HCI_SUBEVENT_LE_CIS_ESTABLISHED
5517  * @param event packet
5518  * @return iso_interval
5519  * @note: btstack_type 2
5520  */
5521 static inline uint16_t hci_subevent_le_cis_established_get_iso_interval(const uint8_t * event){
5522     return little_endian_read_16(event, 29);
5523 }
5524 
5525 /**
5526  * @brief Get field acl_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST
5527  * @param event packet
5528  * @return acl_connection_handle
5529  * @note: btstack_type H
5530  */
5531 static inline hci_con_handle_t hci_subevent_le_cis_request_get_acl_connection_handle(const uint8_t * event){
5532     return little_endian_read_16(event, 3);
5533 }
5534 /**
5535  * @brief Get field cis_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST
5536  * @param event packet
5537  * @return cis_connection_handle
5538  * @note: btstack_type H
5539  */
5540 static inline hci_con_handle_t hci_subevent_le_cis_request_get_cis_connection_handle(const uint8_t * event){
5541     return little_endian_read_16(event, 5);
5542 }
5543 /**
5544  * @brief Get field cig_id from event HCI_SUBEVENT_LE_CIS_REQUEST
5545  * @param event packet
5546  * @return cig_id
5547  * @note: btstack_type 1
5548  */
5549 static inline uint8_t hci_subevent_le_cis_request_get_cig_id(const uint8_t * event){
5550     return event[7];
5551 }
5552 /**
5553  * @brief Get field cis_id from event HCI_SUBEVENT_LE_CIS_REQUEST
5554  * @param event packet
5555  * @return cis_id
5556  * @note: btstack_type 1
5557  */
5558 static inline uint8_t hci_subevent_le_cis_request_get_cis_id(const uint8_t * event){
5559     return event[8];
5560 }
5561 
5562 /**
5563  * @brief Get field big_handle from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE
5564  * @param event packet
5565  * @return big_handle
5566  * @note: btstack_type 1
5567  */
5568 static inline uint8_t hci_subevent_le_terminate_big_complete_get_big_handle(const uint8_t * event){
5569     return event[3];
5570 }
5571 /**
5572  * @brief Get field reason from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE
5573  * @param event packet
5574  * @return reason
5575  * @note: btstack_type 1
5576  */
5577 static inline uint8_t hci_subevent_le_terminate_big_complete_get_reason(const uint8_t * event){
5578     return event[4];
5579 }
5580 
5581 /**
5582  * @brief Get field big_handle from event HCI_SUBEVENT_LE_BIG_SYNC_LOST
5583  * @param event packet
5584  * @return big_handle
5585  * @note: btstack_type 1
5586  */
5587 static inline uint8_t hci_subevent_le_big_sync_lost_get_big_handle(const uint8_t * event){
5588     return event[3];
5589 }
5590 /**
5591  * @brief Get field reason from event HCI_SUBEVENT_LE_BIG_SYNC_LOST
5592  * @param event packet
5593  * @return reason
5594  * @note: btstack_type 1
5595  */
5596 static inline uint8_t hci_subevent_le_big_sync_lost_get_reason(const uint8_t * event){
5597     return event[4];
5598 }
5599 
5600 /**
5601  * @brief Get field status from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
5602  * @param event packet
5603  * @return status
5604  * @note: btstack_type 1
5605  */
5606 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_status(const uint8_t * event){
5607     return event[3];
5608 }
5609 /**
5610  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
5611  * @param event packet
5612  * @return connection_handle
5613  * @note: btstack_type H
5614  */
5615 static inline hci_con_handle_t hci_subevent_le_request_peer_sca_complete_get_connection_handle(const uint8_t * event){
5616     return little_endian_read_16(event, 4);
5617 }
5618 /**
5619  * @brief Get field peer_clock_accuracy from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE
5620  * @param event packet
5621  * @return peer_clock_accuracy
5622  * @note: btstack_type 1
5623  */
5624 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_peer_clock_accuracy(const uint8_t * event){
5625     return event[6];
5626 }
5627 
5628 /**
5629  * @brief Get field status from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5630  * @param event packet
5631  * @return status
5632  * @note: btstack_type 1
5633  */
5634 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_status(const uint8_t * event){
5635     return event[3];
5636 }
5637 /**
5638  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5639  * @param event packet
5640  * @return connection_handle
5641  * @note: btstack_type H
5642  */
5643 static inline hci_con_handle_t hci_subevent_le_transmit_power_reporting_get_connection_handle(const uint8_t * event){
5644     return little_endian_read_16(event, 4);
5645 }
5646 /**
5647  * @brief Get field reason from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5648  * @param event packet
5649  * @return reason
5650  * @note: btstack_type 1
5651  */
5652 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_reason(const uint8_t * event){
5653     return event[6];
5654 }
5655 /**
5656  * @brief Get field phy from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5657  * @param event packet
5658  * @return phy
5659  * @note: btstack_type 1
5660  */
5661 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_phy(const uint8_t * event){
5662     return event[7];
5663 }
5664 /**
5665  * @brief Get field tx_power_level from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5666  * @param event packet
5667  * @return tx_power_level
5668  * @note: btstack_type 1
5669  */
5670 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level(const uint8_t * event){
5671     return event[8];
5672 }
5673 /**
5674  * @brief Get field tx_power_level_flag from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5675  * @param event packet
5676  * @return tx_power_level_flag
5677  * @note: btstack_type 1
5678  */
5679 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level_flag(const uint8_t * event){
5680     return event[9];
5681 }
5682 /**
5683  * @brief Get field delta from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING
5684  * @param event packet
5685  * @return delta
5686  * @note: btstack_type 1
5687  */
5688 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_delta(const uint8_t * event){
5689     return event[10];
5690 }
5691 
5692 /**
5693  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5694  * @param event packet
5695  * @return sync_handle
5696  * @note: btstack_type H
5697  */
5698 static inline hci_con_handle_t hci_subevent_le_biginfo_advertising_report_get_sync_handle(const uint8_t * event){
5699     return little_endian_read_16(event, 3);
5700 }
5701 /**
5702  * @brief Get field num_bis from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5703  * @param event packet
5704  * @return num_bis
5705  * @note: btstack_type 1
5706  */
5707 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_num_bis(const uint8_t * event){
5708     return event[5];
5709 }
5710 /**
5711  * @brief Get field nse from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5712  * @param event packet
5713  * @return nse
5714  * @note: btstack_type 1
5715  */
5716 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_nse(const uint8_t * event){
5717     return event[6];
5718 }
5719 /**
5720  * @brief Get field iso_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5721  * @param event packet
5722  * @return iso_interval
5723  * @note: btstack_type 2
5724  */
5725 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_iso_interval(const uint8_t * event){
5726     return little_endian_read_16(event, 7);
5727 }
5728 /**
5729  * @brief Get field bn from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5730  * @param event packet
5731  * @return bn
5732  * @note: btstack_type 1
5733  */
5734 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_bn(const uint8_t * event){
5735     return event[9];
5736 }
5737 /**
5738  * @brief Get field pto from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5739  * @param event packet
5740  * @return pto
5741  * @note: btstack_type 1
5742  */
5743 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_pto(const uint8_t * event){
5744     return event[10];
5745 }
5746 /**
5747  * @brief Get field irc from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5748  * @param event packet
5749  * @return irc
5750  * @note: btstack_type 1
5751  */
5752 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_irc(const uint8_t * event){
5753     return event[11];
5754 }
5755 /**
5756  * @brief Get field max_pdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5757  * @param event packet
5758  * @return max_pdu
5759  * @note: btstack_type 2
5760  */
5761 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_pdu(const uint8_t * event){
5762     return little_endian_read_16(event, 12);
5763 }
5764 /**
5765  * @brief Get field sdu_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5766  * @param event packet
5767  * @return sdu_interval
5768  * @note: btstack_type 3
5769  */
5770 static inline uint32_t hci_subevent_le_biginfo_advertising_report_get_sdu_interval(const uint8_t * event){
5771     return little_endian_read_24(event, 14);
5772 }
5773 /**
5774  * @brief Get field max_sdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5775  * @param event packet
5776  * @return max_sdu
5777  * @note: btstack_type 2
5778  */
5779 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_sdu(const uint8_t * event){
5780     return little_endian_read_16(event, 17);
5781 }
5782 /**
5783  * @brief Get field phy from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5784  * @param event packet
5785  * @return phy
5786  * @note: btstack_type 1
5787  */
5788 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_phy(const uint8_t * event){
5789     return event[19];
5790 }
5791 /**
5792  * @brief Get field framing from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5793  * @param event packet
5794  * @return framing
5795  * @note: btstack_type 1
5796  */
5797 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_framing(const uint8_t * event){
5798     return event[20];
5799 }
5800 /**
5801  * @brief Get field encryption from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT
5802  * @param event packet
5803  * @return encryption
5804  * @note: btstack_type 1
5805  */
5806 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_encryption(const uint8_t * event){
5807     return event[21];
5808 }
5809 
5810 /**
5811  * @brief Get field status from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5812  * @param event packet
5813  * @return status
5814  * @note: btstack_type 1
5815  */
5816 static inline uint8_t hci_subevent_le_subrate_change_get_status(const uint8_t * event){
5817     return event[3];
5818 }
5819 /**
5820  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5821  * @param event packet
5822  * @return connection_handle
5823  * @note: btstack_type H
5824  */
5825 static inline hci_con_handle_t hci_subevent_le_subrate_change_get_connection_handle(const uint8_t * event){
5826     return little_endian_read_16(event, 4);
5827 }
5828 /**
5829  * @brief Get field subrate_factor from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5830  * @param event packet
5831  * @return subrate_factor
5832  * @note: btstack_type 2
5833  */
5834 static inline uint16_t hci_subevent_le_subrate_change_get_subrate_factor(const uint8_t * event){
5835     return little_endian_read_16(event, 6);
5836 }
5837 /**
5838  * @brief Get field peripheral_latency from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5839  * @param event packet
5840  * @return peripheral_latency
5841  * @note: btstack_type 2
5842  */
5843 static inline uint16_t hci_subevent_le_subrate_change_get_peripheral_latency(const uint8_t * event){
5844     return little_endian_read_16(event, 8);
5845 }
5846 /**
5847  * @brief Get field continuation_number from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5848  * @param event packet
5849  * @return continuation_number
5850  * @note: btstack_type 2
5851  */
5852 static inline uint16_t hci_subevent_le_subrate_change_get_continuation_number(const uint8_t * event){
5853     return little_endian_read_16(event, 10);
5854 }
5855 /**
5856  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_SUBRATE_CHANGE
5857  * @param event packet
5858  * @return supervision_timeout
5859  * @note: btstack_type 2
5860  */
5861 static inline uint16_t hci_subevent_le_subrate_change_get_supervision_timeout(const uint8_t * event){
5862     return little_endian_read_16(event, 12);
5863 }
5864 
5865 /**
5866  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_DATA_REQUEST
5867  * @param event packet
5868  * @return advertising_handle
5869  * @note: btstack_type 1
5870  */
5871 static inline uint8_t hci_subevent_le_periodic_advertising_data_request_get_advertising_handle(const uint8_t * event){
5872     return event[3];
5873 }
5874 /**
5875  * @brief Get field subevent_start from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_DATA_REQUEST
5876  * @param event packet
5877  * @return subevent_start
5878  * @note: btstack_type 1
5879  */
5880 static inline uint8_t hci_subevent_le_periodic_advertising_data_request_get_subevent_start(const uint8_t * event){
5881     return event[4];
5882 }
5883 /**
5884  * @brief Get field subevent_data_count from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_DATA_REQUEST
5885  * @param event packet
5886  * @return subevent_data_count
5887  * @note: btstack_type 1
5888  */
5889 static inline uint8_t hci_subevent_le_periodic_advertising_data_request_get_subevent_data_count(const uint8_t * event){
5890     return event[5];
5891 }
5892 
5893 /**
5894  * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5895  * @param event packet
5896  * @return status
5897  * @note: btstack_type 1
5898  */
5899 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_status(const uint8_t * event){
5900     return event[3];
5901 }
5902 /**
5903  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5904  * @param event packet
5905  * @return connection_handle
5906  * @note: btstack_type H
5907  */
5908 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_v2_get_connection_handle(const uint8_t * event){
5909     return little_endian_read_16(event, 4);
5910 }
5911 /**
5912  * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5913  * @param event packet
5914  * @return role
5915  * @note: btstack_type 1
5916  */
5917 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_role(const uint8_t * event){
5918     return event[6];
5919 }
5920 /**
5921  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5922  * @param event packet
5923  * @return peer_address_type
5924  * @note: btstack_type 1
5925  */
5926 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_peer_address_type(const uint8_t * event){
5927     return event[7];
5928 }
5929 /**
5930  * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5931  * @param event packet
5932  * @param Pointer to storage for peer_addresss
5933  * @note: btstack_type B
5934  */
5935 static inline void hci_subevent_le_enhanced_connection_complete_v2_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){
5936     reverse_bytes(&event[8], peer_addresss, 6);
5937 }
5938 /**
5939  * @brief Get field local_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5940  * @param event packet
5941  * @param Pointer to storage for local_resolvable_private_address
5942  * @note: btstack_type B
5943  */
5944 static inline void hci_subevent_le_enhanced_connection_complete_v2_get_local_resolvable_private_address(const uint8_t * event, bd_addr_t local_resolvable_private_address){
5945     reverse_bytes(&event[14], local_resolvable_private_address, 6);
5946 }
5947 /**
5948  * @brief Get field peer_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5949  * @param event packet
5950  * @param Pointer to storage for peer_resolvable_private_address
5951  * @note: btstack_type B
5952  */
5953 static inline void hci_subevent_le_enhanced_connection_complete_v2_get_peer_resolvable_private_address(const uint8_t * event, bd_addr_t peer_resolvable_private_address){
5954     reverse_bytes(&event[20], peer_resolvable_private_address, 6);
5955 }
5956 /**
5957  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5958  * @param event packet
5959  * @return conn_interval
5960  * @note: btstack_type 2
5961  */
5962 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v2_get_conn_interval(const uint8_t * event){
5963     return little_endian_read_16(event, 26);
5964 }
5965 /**
5966  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5967  * @param event packet
5968  * @return conn_latency
5969  * @note: btstack_type 2
5970  */
5971 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v2_get_conn_latency(const uint8_t * event){
5972     return little_endian_read_16(event, 28);
5973 }
5974 /**
5975  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5976  * @param event packet
5977  * @return supervision_timeout
5978  * @note: btstack_type 2
5979  */
5980 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v2_get_supervision_timeout(const uint8_t * event){
5981     return little_endian_read_16(event, 30);
5982 }
5983 /**
5984  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5985  * @param event packet
5986  * @return master_clock_accuracy
5987  * @note: btstack_type 1
5988  */
5989 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_master_clock_accuracy(const uint8_t * event){
5990     return event[32];
5991 }
5992 /**
5993  * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
5994  * @param event packet
5995  * @return advertising_handle
5996  * @note: btstack_type 1
5997  */
5998 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_advertising_handle(const uint8_t * event){
5999     return event[33];
6000 }
6001 /**
6002  * @brief Get field sync_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2
6003  * @param event packet
6004  * @return sync_handle
6005  * @note: btstack_type H
6006  */
6007 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_v2_get_sync_handle(const uint8_t * event){
6008     return little_endian_read_16(event, 34);
6009 }
6010 
6011 /**
6012  * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
6013  * @param event packet
6014  * @return advertisement_handle
6015  * @note: btstack_type 1
6016  */
6017 static inline uint8_t gap_subevent_advertising_set_installed_get_advertisement_handle(const uint8_t * event){
6018     return event[3];
6019 }
6020 /**
6021  * @brief Get field status from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
6022  * @param event packet
6023  * @return status
6024  * @note: btstack_type 1
6025  */
6026 static inline uint8_t gap_subevent_advertising_set_installed_get_status(const uint8_t * event){
6027     return event[4];
6028 }
6029 /**
6030  * @brief Get field selected_tx_power from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED
6031  * @param event packet
6032  * @return selected_tx_power
6033  * @note: btstack_type 1
6034  */
6035 static inline uint8_t gap_subevent_advertising_set_installed_get_selected_tx_power(const uint8_t * event){
6036     return event[5];
6037 }
6038 
6039 /**
6040  * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_REMOVED
6041  * @param event packet
6042  * @return advertisement_handle
6043  * @note: btstack_type 1
6044  */
6045 static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_handle(const uint8_t * event){
6046     return event[3];
6047 }
6048 
6049 /**
6050  * @brief Get field status from event GAP_SUBEVENT_BIG_CREATED
6051  * @param event packet
6052  * @return status
6053  * @note: btstack_type 1
6054  */
6055 static inline uint8_t gap_subevent_big_created_get_status(const uint8_t * event){
6056     return event[3];
6057 }
6058 /**
6059  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_CREATED
6060  * @param event packet
6061  * @return big_handle
6062  * @note: btstack_type 1
6063  */
6064 static inline uint8_t gap_subevent_big_created_get_big_handle(const uint8_t * event){
6065     return event[4];
6066 }
6067 /**
6068  * @brief Get field num_bis from event GAP_SUBEVENT_BIG_CREATED
6069  * @param event packet
6070  * @return num_bis
6071  * @note: btstack_type 1
6072  */
6073 static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event){
6074     return event[5];
6075 }
6076 /**
6077  * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_CREATED
6078  * @param event packet
6079  * @param index
6080  * @return bis_con_handles
6081  * @note: btstack_type C
6082  */
6083 static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
6084     return little_endian_read_16(event, 6 + (2 * (int) index));
6085 }
6086 
6087 /**
6088  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_TERMINATED
6089  * @param event packet
6090  * @return big_handle
6091  * @note: btstack_type 1
6092  */
6093 static inline uint8_t gap_subevent_big_terminated_get_big_handle(const uint8_t * event){
6094     return event[3];
6095 }
6096 
6097 /**
6098  * @brief Get field status from event GAP_SUBEVENT_BIG_SYNC_CREATED
6099  * @param event packet
6100  * @return status
6101  * @note: btstack_type 1
6102  */
6103 static inline uint8_t gap_subevent_big_sync_created_get_status(const uint8_t * event){
6104     return event[3];
6105 }
6106 /**
6107  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_CREATED
6108  * @param event packet
6109  * @return big_handle
6110  * @note: btstack_type 1
6111  */
6112 static inline uint8_t gap_subevent_big_sync_created_get_big_handle(const uint8_t * event){
6113     return event[4];
6114 }
6115 /**
6116  * @brief Get field num_bis from event GAP_SUBEVENT_BIG_SYNC_CREATED
6117  * @param event packet
6118  * @return num_bis
6119  * @note: btstack_type 1
6120  */
6121 static inline uint8_t gap_subevent_big_sync_created_get_num_bis(const uint8_t * event){
6122     return event[5];
6123 }
6124 /**
6125  * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_SYNC_CREATED
6126  * @param event packet
6127  * @param index
6128  * @return bis_con_handles
6129  * @note: btstack_type C
6130  */
6131 static inline uint16_t gap_subevent_big_sync_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
6132     return little_endian_read_16(event, 6 + (2 * (int) index));
6133 }
6134 
6135 /**
6136  * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_STOPPED
6137  * @param event packet
6138  * @return big_handle
6139  * @note: btstack_type 1
6140  */
6141 static inline uint8_t gap_subevent_big_sync_stopped_get_big_handle(const uint8_t * event){
6142     return event[3];
6143 }
6144 
6145 /**
6146  * @brief Get field status from event GAP_SUBEVENT_CIG_CREATED
6147  * @param event packet
6148  * @return status
6149  * @note: btstack_type 1
6150  */
6151 static inline uint8_t gap_subevent_cig_created_get_status(const uint8_t * event){
6152     return event[3];
6153 }
6154 /**
6155  * @brief Get field cig_id from event GAP_SUBEVENT_CIG_CREATED
6156  * @param event packet
6157  * @return cig_id
6158  * @note: btstack_type 1
6159  */
6160 static inline uint8_t gap_subevent_cig_created_get_cig_id(const uint8_t * event){
6161     return event[4];
6162 }
6163 /**
6164  * @brief Get field num_cis from event GAP_SUBEVENT_CIG_CREATED
6165  * @param event packet
6166  * @return num_cis
6167  * @note: btstack_type 1
6168  */
6169 static inline uint8_t gap_subevent_cig_created_get_num_cis(const uint8_t * event){
6170     return event[5];
6171 }
6172 /**
6173  * @brief Get element of array field cis_con_handles from event GAP_SUBEVENT_CIG_CREATED
6174  * @param event packet
6175  * @param index
6176  * @return cis_con_handles
6177  * @note: btstack_type C
6178  */
6179 static inline uint16_t gap_subevent_cig_created_get_cis_con_handles(const uint8_t * event, uint8_t index){
6180     return little_endian_read_16(event, 6 + (2 * (int) index));
6181 }
6182 
6183 /**
6184  * @brief Get field status from event GAP_SUBEVENT_CIS_CREATED
6185  * @param event packet
6186  * @return status
6187  * @note: btstack_type 1
6188  */
6189 static inline uint8_t gap_subevent_cis_created_get_status(const uint8_t * event){
6190     return event[3];
6191 }
6192 /**
6193  * @brief Get field cig_id from event GAP_SUBEVENT_CIS_CREATED
6194  * @param event packet
6195  * @return cig_id
6196  * @note: btstack_type 1
6197  */
6198 static inline uint8_t gap_subevent_cis_created_get_cig_id(const uint8_t * event){
6199     return event[4];
6200 }
6201 /**
6202  * @brief Get field cis_id from event GAP_SUBEVENT_CIS_CREATED
6203  * @param event packet
6204  * @return cis_id
6205  * @note: btstack_type 1
6206  */
6207 static inline uint8_t gap_subevent_cis_created_get_cis_id(const uint8_t * event){
6208     return event[5];
6209 }
6210 /**
6211  * @brief Get field cis_con_handle from event GAP_SUBEVENT_CIS_CREATED
6212  * @param event packet
6213  * @return cis_con_handle
6214  * @note: btstack_type H
6215  */
6216 static inline hci_con_handle_t gap_subevent_cis_created_get_cis_con_handle(const uint8_t * event){
6217     return little_endian_read_16(event, 6);
6218 }
6219 /**
6220  * @brief Get field acl_con_handle from event GAP_SUBEVENT_CIS_CREATED
6221  * @param event packet
6222  * @return acl_con_handle
6223  * @note: btstack_type H
6224  */
6225 static inline hci_con_handle_t gap_subevent_cis_created_get_acl_con_handle(const uint8_t * event){
6226     return little_endian_read_16(event, 8);
6227 }
6228 /**
6229  * @brief Get field iso_interval_1250us from event GAP_SUBEVENT_CIS_CREATED
6230  * @param event packet
6231  * @return iso_interval_1250us
6232  * @note: btstack_type 2
6233  */
6234 static inline uint16_t gap_subevent_cis_created_get_iso_interval_1250us(const uint8_t * event){
6235     return little_endian_read_16(event, 10);
6236 }
6237 /**
6238  * @brief Get field number_of_subevents from event GAP_SUBEVENT_CIS_CREATED
6239  * @param event packet
6240  * @return number_of_subevents
6241  * @note: btstack_type 1
6242  */
6243 static inline uint8_t gap_subevent_cis_created_get_number_of_subevents(const uint8_t * event){
6244     return event[12];
6245 }
6246 /**
6247  * @brief Get field burst_number_c_to_p from event GAP_SUBEVENT_CIS_CREATED
6248  * @param event packet
6249  * @return burst_number_c_to_p
6250  * @note: btstack_type 1
6251  */
6252 static inline uint8_t gap_subevent_cis_created_get_burst_number_c_to_p(const uint8_t * event){
6253     return event[13];
6254 }
6255 /**
6256  * @brief Get field burst_number_p_to_c from event GAP_SUBEVENT_CIS_CREATED
6257  * @param event packet
6258  * @return burst_number_p_to_c
6259  * @note: btstack_type 1
6260  */
6261 static inline uint8_t gap_subevent_cis_created_get_burst_number_p_to_c(const uint8_t * event){
6262     return event[14];
6263 }
6264 /**
6265  * @brief Get field flush_timeout_c_to_p from event GAP_SUBEVENT_CIS_CREATED
6266  * @param event packet
6267  * @return flush_timeout_c_to_p
6268  * @note: btstack_type 1
6269  */
6270 static inline uint8_t gap_subevent_cis_created_get_flush_timeout_c_to_p(const uint8_t * event){
6271     return event[15];
6272 }
6273 /**
6274  * @brief Get field flush_timeout_p_to_c from event GAP_SUBEVENT_CIS_CREATED
6275  * @param event packet
6276  * @return flush_timeout_p_to_c
6277  * @note: btstack_type 1
6278  */
6279 static inline uint8_t gap_subevent_cis_created_get_flush_timeout_p_to_c(const uint8_t * event){
6280     return event[16];
6281 }
6282 
6283 /**
6284  * @brief Get field status from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6285  * @param event packet
6286  * @return status
6287  * @note: btstack_type 1
6288  */
6289 static inline uint8_t gap_subevent_le_connection_complete_get_status(const uint8_t * event){
6290     return event[3];
6291 }
6292 /**
6293  * @brief Get field connection_handle from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6294  * @param event packet
6295  * @return connection_handle
6296  * @note: btstack_type H
6297  */
6298 static inline hci_con_handle_t gap_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){
6299     return little_endian_read_16(event, 4);
6300 }
6301 /**
6302  * @brief Get field role from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6303  * @param event packet
6304  * @return role
6305  * @note: btstack_type 1
6306  */
6307 static inline uint8_t gap_subevent_le_connection_complete_get_role(const uint8_t * event){
6308     return event[6];
6309 }
6310 /**
6311  * @brief Get field peer_address_type from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6312  * @param event packet
6313  * @return peer_address_type
6314  * @note: btstack_type 1
6315  */
6316 static inline uint8_t gap_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){
6317     return event[7];
6318 }
6319 /**
6320  * @brief Get field peer_address from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6321  * @param event packet
6322  * @param Pointer to storage for peer_address
6323  * @note: btstack_type B
6324  */
6325 static inline void gap_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){
6326     reverse_bytes(&event[8], peer_address, 6);
6327 }
6328 /**
6329  * @brief Get field local_resolvable_private_address from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6330  * @param event packet
6331  * @param Pointer to storage for local_resolvable_private_address
6332  * @note: btstack_type B
6333  */
6334 static inline void gap_subevent_le_connection_complete_get_local_resolvable_private_address(const uint8_t * event, bd_addr_t local_resolvable_private_address){
6335     reverse_bytes(&event[14], local_resolvable_private_address, 6);
6336 }
6337 /**
6338  * @brief Get field peer_resolvable_private_address from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6339  * @param event packet
6340  * @param Pointer to storage for peer_resolvable_private_address
6341  * @note: btstack_type B
6342  */
6343 static inline void gap_subevent_le_connection_complete_get_peer_resolvable_private_address(const uint8_t * event, bd_addr_t peer_resolvable_private_address){
6344     reverse_bytes(&event[20], peer_resolvable_private_address, 6);
6345 }
6346 /**
6347  * @brief Get field conn_interval from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6348  * @param event packet
6349  * @return conn_interval
6350  * @note: btstack_type 2
6351  */
6352 static inline uint16_t gap_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){
6353     return little_endian_read_16(event, 26);
6354 }
6355 /**
6356  * @brief Get field conn_latency from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6357  * @param event packet
6358  * @return conn_latency
6359  * @note: btstack_type 2
6360  */
6361 static inline uint16_t gap_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){
6362     return little_endian_read_16(event, 28);
6363 }
6364 /**
6365  * @brief Get field supervision_timeout from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6366  * @param event packet
6367  * @return supervision_timeout
6368  * @note: btstack_type 2
6369  */
6370 static inline uint16_t gap_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){
6371     return little_endian_read_16(event, 30);
6372 }
6373 /**
6374  * @brief Get field master_clock_accuracy from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6375  * @param event packet
6376  * @return master_clock_accuracy
6377  * @note: btstack_type 1
6378  */
6379 static inline uint8_t gap_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){
6380     return event[32];
6381 }
6382 /**
6383  * @brief Get field advertising_handle from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6384  * @param event packet
6385  * @return advertising_handle
6386  * @note: btstack_type 1
6387  */
6388 static inline uint8_t gap_subevent_le_connection_complete_get_advertising_handle(const uint8_t * event){
6389     return event[33];
6390 }
6391 /**
6392  * @brief Get field sync_handle from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE
6393  * @param event packet
6394  * @return sync_handle
6395  * @note: btstack_type H
6396  */
6397 static inline hci_con_handle_t gap_subevent_le_connection_complete_get_sync_handle(const uint8_t * event){
6398     return little_endian_read_16(event, 34);
6399 }
6400 
6401 /**
6402  * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
6403  * @param event packet
6404  * @return acl_handle
6405  * @note: btstack_type H
6406  */
6407 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){
6408     return little_endian_read_16(event, 3);
6409 }
6410 /**
6411  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
6412  * @param event packet
6413  * @return status
6414  * @note: btstack_type 1
6415  */
6416 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){
6417     return event[5];
6418 }
6419 /**
6420  * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
6421  * @param event packet
6422  * @param Pointer to storage for bd_addr
6423  * @note: btstack_type B
6424  */
6425 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6426     reverse_bytes(&event[6], bd_addr, 6);
6427 }
6428 
6429 /**
6430  * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE
6431  * @param event packet
6432  * @return acl_handle
6433  * @note: btstack_type H
6434  */
6435 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){
6436     return little_endian_read_16(event, 3);
6437 }
6438 
6439 /**
6440  * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
6441  * @param event packet
6442  * @return acl_handle
6443  * @note: btstack_type H
6444  */
6445 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){
6446     return little_endian_read_16(event, 3);
6447 }
6448 /**
6449  * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
6450  * @param event packet
6451  * @return status
6452  * @note: btstack_type 1
6453  */
6454 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){
6455     return event[5];
6456 }
6457 /**
6458  * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
6459  * @param event packet
6460  * @return sco_handle
6461  * @note: btstack_type H
6462  */
6463 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){
6464     return little_endian_read_16(event, 6);
6465 }
6466 
6467 /**
6468  * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
6469  * @param event packet
6470  * @return acl_handle
6471  * @note: btstack_type H
6472  */
6473 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){
6474     return little_endian_read_16(event, 3);
6475 }
6476 /**
6477  * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
6478  * @param event packet
6479  * @return sco_handle
6480  * @note: btstack_type H
6481  */
6482 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){
6483     return little_endian_read_16(event, 5);
6484 }
6485 
6486 /**
6487  * @brief Get field acl_handle from event HSP_SUBEVENT_RING
6488  * @param event packet
6489  * @return acl_handle
6490  * @note: btstack_type H
6491  */
6492 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){
6493     return little_endian_read_16(event, 3);
6494 }
6495 
6496 /**
6497  * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
6498  * @param event packet
6499  * @return acl_handle
6500  * @note: btstack_type H
6501  */
6502 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){
6503     return little_endian_read_16(event, 3);
6504 }
6505 /**
6506  * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
6507  * @param event packet
6508  * @return gain
6509  * @note: btstack_type 1
6510  */
6511 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){
6512     return event[5];
6513 }
6514 
6515 /**
6516  * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
6517  * @param event packet
6518  * @return acl_handle
6519  * @note: btstack_type H
6520  */
6521 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){
6522     return little_endian_read_16(event, 3);
6523 }
6524 /**
6525  * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
6526  * @param event packet
6527  * @return gain
6528  * @note: btstack_type 1
6529  */
6530 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){
6531     return event[5];
6532 }
6533 
6534 /**
6535  * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND
6536  * @param event packet
6537  * @return acl_handle
6538  * @note: btstack_type H
6539  */
6540 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){
6541     return little_endian_read_16(event, 3);
6542 }
6543 /**
6544  * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND
6545  * @param event packet
6546  * @return value_length
6547  * @note: btstack_type J
6548  */
6549 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){
6550     return event[5];
6551 }
6552 /**
6553  * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND
6554  * @param event packet
6555  * @return value
6556  * @note: btstack_type V
6557  */
6558 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){
6559     return &event[6];
6560 }
6561 
6562 /**
6563  * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION
6564  * @param event packet
6565  * @return acl_handle
6566  * @note: btstack_type H
6567  */
6568 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){
6569     return little_endian_read_16(event, 3);
6570 }
6571 /**
6572  * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION
6573  * @param event packet
6574  * @return value_length
6575  * @note: btstack_type J
6576  */
6577 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){
6578     return event[5];
6579 }
6580 /**
6581  * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION
6582  * @param event packet
6583  * @return value
6584  * @note: btstack_type V
6585  */
6586 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){
6587     return &event[6];
6588 }
6589 
6590 /**
6591  * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED
6592  * @param event packet
6593  * @return acl_handle
6594  * @note: btstack_type H
6595  */
6596 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){
6597     return little_endian_read_16(event, 3);
6598 }
6599 
6600 /**
6601  * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
6602  * @param event packet
6603  * @return acl_handle
6604  * @note: btstack_type H
6605  */
6606 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){
6607     return little_endian_read_16(event, 3);
6608 }
6609 /**
6610  * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
6611  * @param event packet
6612  * @return status
6613  * @note: btstack_type 1
6614  */
6615 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){
6616     return event[5];
6617 }
6618 /**
6619  * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
6620  * @param event packet
6621  * @param Pointer to storage for bd_addr
6622  * @note: btstack_type B
6623  */
6624 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6625     reverse_bytes(&event[6], bd_addr, 6);
6626 }
6627 
6628 /**
6629  * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED
6630  * @param event packet
6631  * @return acl_handle
6632  * @note: btstack_type H
6633  */
6634 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){
6635     return little_endian_read_16(event, 3);
6636 }
6637 
6638 /**
6639  * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6640  * @param event packet
6641  * @return acl_handle
6642  * @note: btstack_type H
6643  */
6644 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){
6645     return little_endian_read_16(event, 3);
6646 }
6647 /**
6648  * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6649  * @param event packet
6650  * @return status
6651  * @note: btstack_type 1
6652  */
6653 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){
6654     return event[5];
6655 }
6656 /**
6657  * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6658  * @param event packet
6659  * @return sco_handle
6660  * @note: btstack_type H
6661  */
6662 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){
6663     return little_endian_read_16(event, 6);
6664 }
6665 /**
6666  * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6667  * @param event packet
6668  * @param Pointer to storage for bd_addr
6669  * @note: btstack_type B
6670  */
6671 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6672     reverse_bytes(&event[8], bd_addr, 6);
6673 }
6674 /**
6675  * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6676  * @param event packet
6677  * @return negotiated_codec
6678  * @note: btstack_type 1
6679  */
6680 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
6681     return event[14];
6682 }
6683 /**
6684  * @brief Get field sco_packet_types from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6685  * @param event packet
6686  * @return sco_packet_types
6687  * @note: btstack_type 2
6688  */
6689 static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){
6690     return little_endian_read_16(event, 15);
6691 }
6692 /**
6693  * @brief Get field rx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6694  * @param event packet
6695  * @return rx_packet_length
6696  * @note: btstack_type 2
6697  */
6698 static inline uint16_t hfp_subevent_audio_connection_established_get_rx_packet_length(const uint8_t * event){
6699     return little_endian_read_16(event, 17);
6700 }
6701 /**
6702  * @brief Get field tx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6703  * @param event packet
6704  * @return tx_packet_length
6705  * @note: btstack_type 2
6706  */
6707 static inline uint16_t hfp_subevent_audio_connection_established_get_tx_packet_length(const uint8_t * event){
6708     return little_endian_read_16(event, 19);
6709 }
6710 
6711 /**
6712  * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
6713  * @param event packet
6714  * @return acl_handle
6715  * @note: btstack_type H
6716  */
6717 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){
6718     return little_endian_read_16(event, 3);
6719 }
6720 /**
6721  * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
6722  * @param event packet
6723  * @return sco_handle
6724  * @note: btstack_type H
6725  */
6726 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){
6727     return little_endian_read_16(event, 5);
6728 }
6729 
6730 /**
6731  * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE
6732  * @param event packet
6733  * @return acl_handle
6734  * @note: btstack_type H
6735  */
6736 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){
6737     return little_endian_read_16(event, 3);
6738 }
6739 /**
6740  * @brief Get field status from event HFP_SUBEVENT_COMPLETE
6741  * @param event packet
6742  * @return status
6743  * @note: btstack_type 1
6744  */
6745 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){
6746     return event[5];
6747 }
6748 
6749 /**
6750  * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6751  * @param event packet
6752  * @return acl_handle
6753  * @note: btstack_type H
6754  */
6755 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){
6756     return little_endian_read_16(event, 3);
6757 }
6758 /**
6759  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6760  * @param event packet
6761  * @return indicator_index
6762  * @note: btstack_type 1
6763  */
6764 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){
6765     return event[5];
6766 }
6767 /**
6768  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6769  * @param event packet
6770  * @return indicator_min_range
6771  * @note: btstack_type 1
6772  */
6773 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){
6774     return event[6];
6775 }
6776 /**
6777  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6778  * @param event packet
6779  * @return indicator_max_range
6780  * @note: btstack_type 1
6781  */
6782 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){
6783     return event[7];
6784 }
6785 /**
6786  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING
6787  * @param event packet
6788  * @return indicator_name
6789  * @note: btstack_type T
6790  */
6791 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){
6792     return (const char *) &event[8];
6793 }
6794 
6795 /**
6796  * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6797  * @param event packet
6798  * @return acl_handle
6799  * @note: btstack_type H
6800  */
6801 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){
6802     return little_endian_read_16(event, 3);
6803 }
6804 /**
6805  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6806  * @param event packet
6807  * @return indicator_index
6808  * @note: btstack_type 1
6809  */
6810 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){
6811     return event[5];
6812 }
6813 /**
6814  * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6815  * @param event packet
6816  * @return indicator_status
6817  * @note: btstack_type 1
6818  */
6819 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){
6820     return event[6];
6821 }
6822 /**
6823  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6824  * @param event packet
6825  * @return indicator_min_range
6826  * @note: btstack_type 1
6827  */
6828 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){
6829     return event[7];
6830 }
6831 /**
6832  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6833  * @param event packet
6834  * @return indicator_max_range
6835  * @note: btstack_type 1
6836  */
6837 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){
6838     return event[8];
6839 }
6840 /**
6841  * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6842  * @param event packet
6843  * @return indicator_mandatory
6844  * @note: btstack_type 1
6845  */
6846 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){
6847     return event[9];
6848 }
6849 /**
6850  * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6851  * @param event packet
6852  * @return indicator_enabled
6853  * @note: btstack_type 1
6854  */
6855 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){
6856     return event[10];
6857 }
6858 /**
6859  * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6860  * @param event packet
6861  * @return indicator_status_changed
6862  * @note: btstack_type 1
6863  */
6864 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){
6865     return event[11];
6866 }
6867 /**
6868  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
6869  * @param event packet
6870  * @return indicator_name
6871  * @note: btstack_type T
6872  */
6873 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){
6874     return (const char *) &event[12];
6875 }
6876 
6877 /**
6878  * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6879  * @param event packet
6880  * @return acl_handle
6881  * @note: btstack_type H
6882  */
6883 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){
6884     return little_endian_read_16(event, 3);
6885 }
6886 /**
6887  * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6888  * @param event packet
6889  * @return network_operator_mode
6890  * @note: btstack_type 1
6891  */
6892 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){
6893     return event[5];
6894 }
6895 /**
6896  * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6897  * @param event packet
6898  * @return network_operator_format
6899  * @note: btstack_type 1
6900  */
6901 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){
6902     return event[6];
6903 }
6904 /**
6905  * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
6906  * @param event packet
6907  * @return network_operator_name
6908  * @note: btstack_type T
6909  */
6910 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){
6911     return (const char *) &event[7];
6912 }
6913 
6914 /**
6915  * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
6916  * @param event packet
6917  * @return acl_handle
6918  * @note: btstack_type H
6919  */
6920 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){
6921     return little_endian_read_16(event, 3);
6922 }
6923 /**
6924  * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
6925  * @param event packet
6926  * @return error
6927  * @note: btstack_type 1
6928  */
6929 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){
6930     return event[5];
6931 }
6932 
6933 /**
6934  * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING
6935  * @param event packet
6936  * @return acl_handle
6937  * @note: btstack_type H
6938  */
6939 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){
6940     return little_endian_read_16(event, 3);
6941 }
6942 
6943 /**
6944  * @brief Get field acl_handle from event HFP_SUBEVENT_RING
6945  * @param event packet
6946  * @return acl_handle
6947  * @note: btstack_type H
6948  */
6949 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){
6950     return little_endian_read_16(event, 3);
6951 }
6952 
6953 /**
6954  * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING
6955  * @param event packet
6956  * @return acl_handle
6957  * @note: btstack_type H
6958  */
6959 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){
6960     return little_endian_read_16(event, 3);
6961 }
6962 
6963 /**
6964  * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
6965  * @param event packet
6966  * @return acl_handle
6967  * @note: btstack_type H
6968  */
6969 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){
6970     return little_endian_read_16(event, 3);
6971 }
6972 /**
6973  * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
6974  * @param event packet
6975  * @return number
6976  * @note: btstack_type T
6977  */
6978 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){
6979     return (const char *) &event[5];
6980 }
6981 
6982 /**
6983  * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG
6984  * @param event packet
6985  * @return acl_handle
6986  * @note: btstack_type H
6987  */
6988 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){
6989     return little_endian_read_16(event, 3);
6990 }
6991 
6992 /**
6993  * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
6994  * @param event packet
6995  * @return acl_handle
6996  * @note: btstack_type H
6997  */
6998 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){
6999     return little_endian_read_16(event, 3);
7000 }
7001 /**
7002  * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
7003  * @param event packet
7004  * @return number
7005  * @note: btstack_type T
7006  */
7007 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){
7008     return (const char *) &event[5];
7009 }
7010 
7011 /**
7012  * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
7013  * @param event packet
7014  * @return acl_handle
7015  * @note: btstack_type H
7016  */
7017 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){
7018     return little_endian_read_16(event, 3);
7019 }
7020 /**
7021  * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
7022  * @param event packet
7023  * @return dtmf
7024  * @note: btstack_type T
7025  */
7026 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){
7027     return (const char *) &event[5];
7028 }
7029 
7030 /**
7031  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED
7032  * @param event packet
7033  * @return acl_handle
7034  * @note: btstack_type H
7035  */
7036 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){
7037     return little_endian_read_16(event, 3);
7038 }
7039 
7040 /**
7041  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED
7042  * @param event packet
7043  * @return acl_handle
7044  * @note: btstack_type H
7045  */
7046 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){
7047     return little_endian_read_16(event, 3);
7048 }
7049 
7050 /**
7051  * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL
7052  * @param event packet
7053  * @return acl_handle
7054  * @note: btstack_type H
7055  */
7056 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){
7057     return little_endian_read_16(event, 3);
7058 }
7059 
7060 /**
7061  * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME
7062  * @param event packet
7063  * @return acl_handle
7064  * @note: btstack_type H
7065  */
7066 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){
7067     return little_endian_read_16(event, 3);
7068 }
7069 /**
7070  * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME
7071  * @param event packet
7072  * @return gain
7073  * @note: btstack_type 1
7074  */
7075 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){
7076     return event[5];
7077 }
7078 
7079 /**
7080  * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME
7081  * @param event packet
7082  * @return acl_handle
7083  * @note: btstack_type H
7084  */
7085 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){
7086     return little_endian_read_16(event, 3);
7087 }
7088 /**
7089  * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME
7090  * @param event packet
7091  * @return gain
7092  * @note: btstack_type 1
7093  */
7094 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){
7095     return event[5];
7096 }
7097 
7098 /**
7099  * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
7100  * @param event packet
7101  * @return acl_handle
7102  * @note: btstack_type H
7103  */
7104 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){
7105     return little_endian_read_16(event, 3);
7106 }
7107 /**
7108  * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
7109  * @param event packet
7110  * @return type
7111  * @note: btstack_type 1
7112  */
7113 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
7114     return event[5];
7115 }
7116 /**
7117  * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
7118  * @param event packet
7119  * @return number_length
7120  * @note: btstack_type J
7121  */
7122 static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){
7123     return event[6];
7124 }
7125 /**
7126  * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
7127  * @param event packet
7128  * @return number
7129  * @note: btstack_type V
7130  */
7131 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
7132     return &event[7];
7133 }
7134 /**
7135  * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
7136  * @param event packet
7137  * @return alpha_length
7138  * @note: btstack_type J
7139  */
7140 static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){
7141     return event[7u + event[6]];
7142 }
7143 /**
7144  * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
7145  * @param event packet
7146  * @return alpha
7147  * @note: btstack_type V
7148  */
7149 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){
7150     return &event[7u + event[6] + 1u];
7151 }
7152 
7153 /**
7154  * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
7155  * @param event packet
7156  * @return acl_handle
7157  * @note: btstack_type H
7158  */
7159 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){
7160     return little_endian_read_16(event, 3);
7161 }
7162 /**
7163  * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
7164  * @param event packet
7165  * @return type
7166  * @note: btstack_type 1
7167  */
7168 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
7169     return event[5];
7170 }
7171 /**
7172  * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
7173  * @param event packet
7174  * @return number_length
7175  * @note: btstack_type J
7176  */
7177 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){
7178     return event[6];
7179 }
7180 /**
7181  * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
7182  * @param event packet
7183  * @return number
7184  * @note: btstack_type V
7185  */
7186 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
7187     return &event[7];
7188 }
7189 /**
7190  * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
7191  * @param event packet
7192  * @return alpha_length
7193  * @note: btstack_type J
7194  */
7195 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){
7196     return event[7u + event[6]];
7197 }
7198 /**
7199  * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
7200  * @param event packet
7201  * @return alpha
7202  * @note: btstack_type V
7203  */
7204 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){
7205     return &event[7u + event[6] + 1u];
7206 }
7207 
7208 /**
7209  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7210  * @param event packet
7211  * @return acl_handle
7212  * @note: btstack_type H
7213  */
7214 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){
7215     return little_endian_read_16(event, 3);
7216 }
7217 /**
7218  * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7219  * @param event packet
7220  * @return clcc_idx
7221  * @note: btstack_type 1
7222  */
7223 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){
7224     return event[5];
7225 }
7226 /**
7227  * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7228  * @param event packet
7229  * @return clcc_dir
7230  * @note: btstack_type 1
7231  */
7232 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){
7233     return event[6];
7234 }
7235 /**
7236  * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7237  * @param event packet
7238  * @return clcc_status
7239  * @note: btstack_type 1
7240  */
7241 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){
7242     return event[7];
7243 }
7244 /**
7245  * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7246  * @param event packet
7247  * @return clcc_mode
7248  * @note: btstack_type 1
7249  */
7250 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){
7251     return event[8];
7252 }
7253 /**
7254  * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7255  * @param event packet
7256  * @return clcc_mpty
7257  * @note: btstack_type 1
7258  */
7259 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){
7260     return event[9];
7261 }
7262 /**
7263  * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7264  * @param event packet
7265  * @return bnip_type
7266  * @note: btstack_type 1
7267  */
7268 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){
7269     return event[10];
7270 }
7271 /**
7272  * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
7273  * @param event packet
7274  * @return bnip_number
7275  * @note: btstack_type T
7276  */
7277 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){
7278     return (const char *) &event[11];
7279 }
7280 
7281 /**
7282  * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
7283  * @param event packet
7284  * @return acl_handle
7285  * @note: btstack_type H
7286  */
7287 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){
7288     return little_endian_read_16(event, 3);
7289 }
7290 /**
7291  * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
7292  * @param event packet
7293  * @return status
7294  * @note: btstack_type 1
7295  */
7296 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){
7297     return event[5];
7298 }
7299 /**
7300  * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
7301  * @param event packet
7302  * @return bnip_type
7303  * @note: btstack_type 1
7304  */
7305 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){
7306     return event[6];
7307 }
7308 /**
7309  * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
7310  * @param event packet
7311  * @return bnip_number
7312  * @note: btstack_type T
7313  */
7314 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){
7315     return (const char *) &event[7];
7316 }
7317 
7318 /**
7319  * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
7320  * @param event packet
7321  * @return acl_handle
7322  * @note: btstack_type H
7323  */
7324 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){
7325     return little_endian_read_16(event, 3);
7326 }
7327 /**
7328  * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
7329  * @param event packet
7330  * @return value
7331  * @note: btstack_type T
7332  */
7333 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){
7334     return (const char *) &event[5];
7335 }
7336 
7337 /**
7338  * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT
7339  * @param event packet
7340  * @return acl_handle
7341  * @note: btstack_type H
7342  */
7343 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){
7344     return little_endian_read_16(event, 3);
7345 }
7346 /**
7347  * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT
7348  * @param event packet
7349  * @return command
7350  * @note: btstack_type T
7351  */
7352 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){
7353     return (const char *) &event[5];
7354 }
7355 
7356 /**
7357  * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED
7358  * @param event packet
7359  * @return acl_handle
7360  * @note: btstack_type H
7361  */
7362 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){
7363     return little_endian_read_16(event, 3);
7364 }
7365 /**
7366  * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED
7367  * @param event packet
7368  * @return command
7369  * @note: btstack_type T
7370  */
7371 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){
7372     return (const char *) &event[5];
7373 }
7374 
7375 /**
7376  * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE
7377  * @param event packet
7378  * @return acl_handle
7379  * @note: btstack_type H
7380  */
7381 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){
7382     return little_endian_read_16(event, 3);
7383 }
7384 /**
7385  * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE
7386  * @param event packet
7387  * @return status
7388  * @note: btstack_type 1
7389  */
7390 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
7391     return event[5];
7392 }
7393 
7394 /**
7395  * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
7396  * @param event packet
7397  * @return acl_handle
7398  * @note: btstack_type H
7399  */
7400 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){
7401     return little_endian_read_16(event, 3);
7402 }
7403 /**
7404  * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
7405  * @param event packet
7406  * @return status
7407  * @note: btstack_type 1
7408  */
7409 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){
7410     return event[5];
7411 }
7412 /**
7413  * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED
7414  * @param event packet
7415  * @return enhanced
7416  * @note: btstack_type 1
7417  */
7418 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){
7419     return event[6];
7420 }
7421 
7422 /**
7423  * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED
7424  * @param event packet
7425  * @return acl_handle
7426  * @note: btstack_type H
7427  */
7428 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){
7429     return little_endian_read_16(event, 3);
7430 }
7431 /**
7432  * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED
7433  * @param event packet
7434  * @return status
7435  * @note: btstack_type 1
7436  */
7437 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){
7438     return event[5];
7439 }
7440 
7441 /**
7442  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
7443  * @param event packet
7444  * @return acl_handle
7445  * @note: btstack_type H
7446  */
7447 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){
7448     return little_endian_read_16(event, 3);
7449 }
7450 /**
7451  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
7452  * @param event packet
7453  * @return status
7454  * @note: btstack_type 1
7455  */
7456 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){
7457     return event[5];
7458 }
7459 
7460 /**
7461  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT
7462  * @param event packet
7463  * @return acl_handle
7464  * @note: btstack_type H
7465  */
7466 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){
7467     return little_endian_read_16(event, 3);
7468 }
7469 /**
7470  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT
7471  * @param event packet
7472  * @return status
7473  * @note: btstack_type 1
7474  */
7475 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){
7476     return event[5];
7477 }
7478 
7479 /**
7480  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND
7481  * @param event packet
7482  * @return acl_handle
7483  * @note: btstack_type H
7484  */
7485 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){
7486     return little_endian_read_16(event, 3);
7487 }
7488 /**
7489  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND
7490  * @param event packet
7491  * @return status
7492  * @note: btstack_type 1
7493  */
7494 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){
7495     return event[5];
7496 }
7497 
7498 /**
7499  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT
7500  * @param event packet
7501  * @return acl_handle
7502  * @note: btstack_type H
7503  */
7504 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){
7505     return little_endian_read_16(event, 3);
7506 }
7507 /**
7508  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT
7509  * @param event packet
7510  * @return status
7511  * @note: btstack_type 1
7512  */
7513 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){
7514     return event[5];
7515 }
7516 
7517 /**
7518  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT
7519  * @param event packet
7520  * @return acl_handle
7521  * @note: btstack_type H
7522  */
7523 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){
7524     return little_endian_read_16(event, 3);
7525 }
7526 /**
7527  * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT
7528  * @param event packet
7529  * @return status
7530  * @note: btstack_type 1
7531  */
7532 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){
7533     return event[5];
7534 }
7535 
7536 /**
7537  * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
7538  * @param event packet
7539  * @return acl_handle
7540  * @note: btstack_type H
7541  */
7542 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){
7543     return little_endian_read_16(event, 3);
7544 }
7545 /**
7546  * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
7547  * @param event packet
7548  * @return text_id
7549  * @note: btstack_type 2
7550  */
7551 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){
7552     return little_endian_read_16(event, 5);
7553 }
7554 /**
7555  * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
7556  * @param event packet
7557  * @return text_type
7558  * @note: btstack_type 1
7559  */
7560 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){
7561     return event[7];
7562 }
7563 /**
7564  * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
7565  * @param event packet
7566  * @return text_operation
7567  * @note: btstack_type 1
7568  */
7569 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){
7570     return event[8];
7571 }
7572 /**
7573  * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
7574  * @param event packet
7575  * @return text_length
7576  * @note: btstack_type L
7577  */
7578 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){
7579     return little_endian_read_16(event, 9);
7580 }
7581 /**
7582  * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
7583  * @param event packet
7584  * @return text
7585  * @note: btstack_type V
7586  */
7587 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){
7588     return &event[11];
7589 }
7590 
7591 /**
7592  * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
7593  * @param event packet
7594  * @return acl_handle
7595  * @note: btstack_type H
7596  */
7597 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){
7598     return little_endian_read_16(event, 3);
7599 }
7600 /**
7601  * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
7602  * @param event packet
7603  * @return status
7604  * @note: btstack_type 1
7605  */
7606 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){
7607     return event[5];
7608 }
7609 
7610 /**
7611  * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR
7612  * @param event packet
7613  * @return acl_handle
7614  * @note: btstack_type H
7615  */
7616 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){
7617     return little_endian_read_16(event, 3);
7618 }
7619 /**
7620  * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR
7621  * @param event packet
7622  * @return uuid
7623  * @note: btstack_type 2
7624  */
7625 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){
7626     return little_endian_read_16(event, 5);
7627 }
7628 /**
7629  * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR
7630  * @param event packet
7631  * @return value
7632  * @note: btstack_type 1
7633  */
7634 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){
7635     return event[7];
7636 }
7637 
7638 /**
7639  * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_COMMAND
7640  * @param event packet
7641  * @return acl_handle
7642  * @note: btstack_type H
7643  */
7644 static inline hci_con_handle_t hfp_subevent_custom_at_command_get_acl_handle(const uint8_t * event){
7645     return little_endian_read_16(event, 3);
7646 }
7647 /**
7648  * @brief Get field command_id from event HFP_SUBEVENT_CUSTOM_AT_COMMAND
7649  * @param event packet
7650  * @return command_id
7651  * @note: btstack_type 2
7652  */
7653 static inline uint16_t hfp_subevent_custom_at_command_get_command_id(const uint8_t * event){
7654     return little_endian_read_16(event, 5);
7655 }
7656 /**
7657  * @brief Get field command_string from event HFP_SUBEVENT_CUSTOM_AT_COMMAND
7658  * @param event packet
7659  * @return command_string
7660  * @note: btstack_type T
7661  */
7662 static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){
7663     return (const char *) &event[7];
7664 }
7665 
7666 /**
7667  * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT
7668  * @param event packet
7669  * @return acl_handle
7670  * @note: btstack_type H
7671  */
7672 static inline hci_con_handle_t hfp_subevent_custom_at_message_sent_get_acl_handle(const uint8_t * event){
7673     return little_endian_read_16(event, 3);
7674 }
7675 /**
7676  * @brief Get field status from event HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT
7677  * @param event packet
7678  * @return status
7679  * @note: btstack_type 1
7680  */
7681 static inline uint8_t hfp_subevent_custom_at_message_sent_get_status(const uint8_t * event){
7682     return event[5];
7683 }
7684 
7685 /**
7686  * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_EXTENSION_SUPPORTED
7687  * @param event packet
7688  * @return acl_handle
7689  * @note: btstack_type H
7690  */
7691 static inline hci_con_handle_t hfp_subevent_apple_extension_supported_get_acl_handle(const uint8_t * event){
7692     return little_endian_read_16(event, 3);
7693 }
7694 /**
7695  * @brief Get field supported from event HFP_SUBEVENT_APPLE_EXTENSION_SUPPORTED
7696  * @param event packet
7697  * @return supported
7698  * @note: btstack_type 1
7699  */
7700 static inline uint8_t hfp_subevent_apple_extension_supported_get_supported(const uint8_t * event){
7701     return event[5];
7702 }
7703 
7704 /**
7705  * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION
7706  * @param event packet
7707  * @return acl_handle
7708  * @note: btstack_type H
7709  */
7710 static inline hci_con_handle_t hfp_subevent_apple_accessory_information_get_acl_handle(const uint8_t * event){
7711     return little_endian_read_16(event, 3);
7712 }
7713 /**
7714  * @brief Get field vendor_id from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION
7715  * @param event packet
7716  * @return vendor_id
7717  * @note: btstack_type 2
7718  */
7719 static inline uint16_t hfp_subevent_apple_accessory_information_get_vendor_id(const uint8_t * event){
7720     return little_endian_read_16(event, 5);
7721 }
7722 /**
7723  * @brief Get field product_id from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION
7724  * @param event packet
7725  * @return product_id
7726  * @note: btstack_type 2
7727  */
7728 static inline uint16_t hfp_subevent_apple_accessory_information_get_product_id(const uint8_t * event){
7729     return little_endian_read_16(event, 7);
7730 }
7731 /**
7732  * @brief Get field features from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION
7733  * @param event packet
7734  * @return features
7735  * @note: btstack_type 1
7736  */
7737 static inline uint8_t hfp_subevent_apple_accessory_information_get_features(const uint8_t * event){
7738     return event[9];
7739 }
7740 /**
7741  * @brief Get field version_len from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION
7742  * @param event packet
7743  * @return version_len
7744  * @note: btstack_type J
7745  */
7746 static inline uint8_t hfp_subevent_apple_accessory_information_get_version_len(const uint8_t * event){
7747     return event[10];
7748 }
7749 /**
7750  * @brief Get field version from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION
7751  * @param event packet
7752  * @return version
7753  * @note: btstack_type V
7754  */
7755 static inline const uint8_t * hfp_subevent_apple_accessory_information_get_version(const uint8_t * event){
7756     return &event[11];
7757 }
7758 
7759 /**
7760  * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_BATTERY_LEVEL
7761  * @param event packet
7762  * @return acl_handle
7763  * @note: btstack_type H
7764  */
7765 static inline hci_con_handle_t hfp_subevent_apple_battery_level_get_acl_handle(const uint8_t * event){
7766     return little_endian_read_16(event, 3);
7767 }
7768 /**
7769  * @brief Get field battery_level from event HFP_SUBEVENT_APPLE_BATTERY_LEVEL
7770  * @param event packet
7771  * @return battery_level
7772  * @note: btstack_type 1
7773  */
7774 static inline uint8_t hfp_subevent_apple_battery_level_get_battery_level(const uint8_t * event){
7775     return event[5];
7776 }
7777 
7778 /**
7779  * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_DOCKED_STATE
7780  * @param event packet
7781  * @return acl_handle
7782  * @note: btstack_type H
7783  */
7784 static inline hci_con_handle_t hfp_subevent_apple_docked_state_get_acl_handle(const uint8_t * event){
7785     return little_endian_read_16(event, 3);
7786 }
7787 /**
7788  * @brief Get field docket from event HFP_SUBEVENT_APPLE_DOCKED_STATE
7789  * @param event packet
7790  * @return docket
7791  * @note: btstack_type 1
7792  */
7793 static inline uint8_t hfp_subevent_apple_docked_state_get_docket(const uint8_t * event){
7794     return event[5];
7795 }
7796 
7797 #ifdef ENABLE_BLE
7798 /**
7799  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
7800  * @param event packet
7801  * @return handle
7802  * @note: btstack_type H
7803  */
7804 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){
7805     return little_endian_read_16(event, 3);
7806 }
7807 #endif
7808 
7809 #ifdef ENABLE_BLE
7810 /**
7811  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
7812  * @param event packet
7813  * @return handle
7814  * @note: btstack_type H
7815  */
7816 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){
7817     return little_endian_read_16(event, 3);
7818 }
7819 /**
7820  * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
7821  * @param event packet
7822  * @return attribute_id
7823  * @note: btstack_type 2
7824  */
7825 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){
7826     return little_endian_read_16(event, 5);
7827 }
7828 /**
7829  * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
7830  * @param event packet
7831  * @return text
7832  * @note: btstack_type T
7833  */
7834 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){
7835     return (const char *) &event[7];
7836 }
7837 #endif
7838 
7839 #ifdef ENABLE_BLE
7840 /**
7841  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED
7842  * @param event packet
7843  * @return handle
7844  * @note: btstack_type H
7845  */
7846 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){
7847     return little_endian_read_16(event, 3);
7848 }
7849 #endif
7850 
7851 /**
7852  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7853  * @param event packet
7854  * @return avdtp_cid
7855  * @note: btstack_type 2
7856  */
7857 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){
7858     return little_endian_read_16(event, 3);
7859 }
7860 /**
7861  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7862  * @param event packet
7863  * @return local_seid
7864  * @note: btstack_type 1
7865  */
7866 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){
7867     return event[5];
7868 }
7869 /**
7870  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7871  * @param event packet
7872  * @return is_initiator
7873  * @note: btstack_type 1
7874  */
7875 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){
7876     return event[6];
7877 }
7878 /**
7879  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
7880  * @param event packet
7881  * @return signal_identifier
7882  * @note: btstack_type 1
7883  */
7884 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){
7885     return event[7];
7886 }
7887 
7888 /**
7889  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT
7890  * @param event packet
7891  * @return avdtp_cid
7892  * @note: btstack_type 2
7893  */
7894 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){
7895     return little_endian_read_16(event, 3);
7896 }
7897 /**
7898  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT
7899  * @param event packet
7900  * @return local_seid
7901  * @note: btstack_type 1
7902  */
7903 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){
7904     return event[5];
7905 }
7906 /**
7907  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT
7908  * @param event packet
7909  * @return is_initiator
7910  * @note: btstack_type 1
7911  */
7912 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){
7913     return event[6];
7914 }
7915 /**
7916  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT
7917  * @param event packet
7918  * @return signal_identifier
7919  * @note: btstack_type 1
7920  */
7921 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){
7922     return event[7];
7923 }
7924 
7925 /**
7926  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7927  * @param event packet
7928  * @return avdtp_cid
7929  * @note: btstack_type 2
7930  */
7931 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){
7932     return little_endian_read_16(event, 3);
7933 }
7934 /**
7935  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7936  * @param event packet
7937  * @return local_seid
7938  * @note: btstack_type 1
7939  */
7940 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){
7941     return event[5];
7942 }
7943 /**
7944  * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7945  * @param event packet
7946  * @return is_initiator
7947  * @note: btstack_type 1
7948  */
7949 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){
7950     return event[6];
7951 }
7952 /**
7953  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
7954  * @param event packet
7955  * @return signal_identifier
7956  * @note: btstack_type 1
7957  */
7958 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){
7959     return event[7];
7960 }
7961 
7962 /**
7963  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7964  * @param event packet
7965  * @return avdtp_cid
7966  * @note: btstack_type 2
7967  */
7968 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){
7969     return little_endian_read_16(event, 3);
7970 }
7971 /**
7972  * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7973  * @param event packet
7974  * @param Pointer to storage for bd_addr
7975  * @note: btstack_type B
7976  */
7977 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
7978     reverse_bytes(&event[5], bd_addr, 6);
7979 }
7980 /**
7981  * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7982  * @param event packet
7983  * @return con_handle
7984  * @note: btstack_type 2
7985  */
7986 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){
7987     return little_endian_read_16(event, 11);
7988 }
7989 /**
7990  * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
7991  * @param event packet
7992  * @return status
7993  * @note: btstack_type 1
7994  */
7995 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){
7996     return event[13];
7997 }
7998 
7999 /**
8000  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
8001  * @param event packet
8002  * @return avdtp_cid
8003  * @note: btstack_type 2
8004  */
8005 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){
8006     return little_endian_read_16(event, 3);
8007 }
8008 
8009 /**
8010  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
8011  * @param event packet
8012  * @return avdtp_cid
8013  * @note: btstack_type 2
8014  */
8015 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){
8016     return little_endian_read_16(event, 3);
8017 }
8018 /**
8019  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
8020  * @param event packet
8021  * @return remote_seid
8022  * @note: btstack_type 1
8023  */
8024 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){
8025     return event[5];
8026 }
8027 /**
8028  * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
8029  * @param event packet
8030  * @return in_use
8031  * @note: btstack_type 1
8032  */
8033 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){
8034     return event[6];
8035 }
8036 /**
8037  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
8038  * @param event packet
8039  * @return media_type
8040  * @note: btstack_type 1
8041  */
8042 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){
8043     return event[7];
8044 }
8045 /**
8046  * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
8047  * @param event packet
8048  * @return sep_type
8049  * @note: btstack_type 1
8050  */
8051 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){
8052     return event[8];
8053 }
8054 
8055 /**
8056  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8057  * @param event packet
8058  * @return avdtp_cid
8059  * @note: btstack_type 2
8060  */
8061 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){
8062     return little_endian_read_16(event, 3);
8063 }
8064 /**
8065  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8066  * @param event packet
8067  * @return remote_seid
8068  * @note: btstack_type 1
8069  */
8070 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
8071     return event[5];
8072 }
8073 /**
8074  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8075  * @param event packet
8076  * @return media_type
8077  * @note: btstack_type 1
8078  */
8079 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
8080     return event[6];
8081 }
8082 /**
8083  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8084  * @param event packet
8085  * @return sampling_frequency_bitmap
8086  * @note: btstack_type 1
8087  */
8088 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8089     return event[7];
8090 }
8091 /**
8092  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8093  * @param event packet
8094  * @return channel_mode_bitmap
8095  * @note: btstack_type 1
8096  */
8097 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
8098     return event[8];
8099 }
8100 /**
8101  * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8102  * @param event packet
8103  * @return block_length_bitmap
8104  * @note: btstack_type 1
8105  */
8106 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
8107     return event[9];
8108 }
8109 /**
8110  * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8111  * @param event packet
8112  * @return subbands_bitmap
8113  * @note: btstack_type 1
8114  */
8115 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
8116     return event[10];
8117 }
8118 /**
8119  * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8120  * @param event packet
8121  * @return allocation_method_bitmap
8122  * @note: btstack_type 1
8123  */
8124 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
8125     return event[11];
8126 }
8127 /**
8128  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8129  * @param event packet
8130  * @return min_bitpool_value
8131  * @note: btstack_type 1
8132  */
8133 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
8134     return event[12];
8135 }
8136 /**
8137  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
8138  * @param event packet
8139  * @return max_bitpool_value
8140  * @note: btstack_type 1
8141  */
8142 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
8143     return event[13];
8144 }
8145 
8146 /**
8147  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8148  * @param event packet
8149  * @return avdtp_cid
8150  * @note: btstack_type 2
8151  */
8152 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){
8153     return little_endian_read_16(event, 3);
8154 }
8155 /**
8156  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8157  * @param event packet
8158  * @return remote_seid
8159  * @note: btstack_type 1
8160  */
8161 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){
8162     return event[5];
8163 }
8164 /**
8165  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8166  * @param event packet
8167  * @return media_type
8168  * @note: btstack_type 1
8169  */
8170 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){
8171     return event[6];
8172 }
8173 /**
8174  * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8175  * @param event packet
8176  * @return layer_bitmap
8177  * @note: btstack_type 1
8178  */
8179 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){
8180     return event[7];
8181 }
8182 /**
8183  * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8184  * @param event packet
8185  * @return crc
8186  * @note: btstack_type 1
8187  */
8188 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){
8189     return event[8];
8190 }
8191 /**
8192  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8193  * @param event packet
8194  * @return channel_mode_bitmap
8195  * @note: btstack_type 1
8196  */
8197 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){
8198     return event[9];
8199 }
8200 /**
8201  * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8202  * @param event packet
8203  * @return media_payload_format
8204  * @note: btstack_type 1
8205  */
8206 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){
8207     return event[10];
8208 }
8209 /**
8210  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8211  * @param event packet
8212  * @return sampling_frequency_bitmap
8213  * @note: btstack_type 1
8214  */
8215 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8216     return event[11];
8217 }
8218 /**
8219  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8220  * @param event packet
8221  * @return vbr
8222  * @note: btstack_type 1
8223  */
8224 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){
8225     return event[12];
8226 }
8227 /**
8228  * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
8229  * @param event packet
8230  * @return bit_rate_index_bitmap
8231  * @note: btstack_type 2
8232  */
8233 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){
8234     return little_endian_read_16(event, 13);
8235 }
8236 
8237 /**
8238  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8239  * @param event packet
8240  * @return avdtp_cid
8241  * @note: btstack_type 2
8242  */
8243 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){
8244     return little_endian_read_16(event, 3);
8245 }
8246 /**
8247  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8248  * @param event packet
8249  * @return remote_seid
8250  * @note: btstack_type 1
8251  */
8252 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){
8253     return event[5];
8254 }
8255 /**
8256  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8257  * @param event packet
8258  * @return media_type
8259  * @note: btstack_type 1
8260  */
8261 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){
8262     return event[6];
8263 }
8264 /**
8265  * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8266  * @param event packet
8267  * @return object_type_bitmap
8268  * @note: btstack_type 1
8269  */
8270 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){
8271     return event[7];
8272 }
8273 /**
8274  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8275  * @param event packet
8276  * @return sampling_frequency_bitmap
8277  * @note: btstack_type 2
8278  */
8279 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8280     return little_endian_read_16(event, 8);
8281 }
8282 /**
8283  * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8284  * @param event packet
8285  * @return channels_bitmap
8286  * @note: btstack_type 1
8287  */
8288 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){
8289     return event[10];
8290 }
8291 /**
8292  * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8293  * @param event packet
8294  * @return bit_rate
8295  * @note: btstack_type 3
8296  */
8297 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){
8298     return little_endian_read_24(event, 11);
8299 }
8300 /**
8301  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
8302  * @param event packet
8303  * @return vbr
8304  * @note: btstack_type 1
8305  */
8306 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){
8307     return event[14];
8308 }
8309 
8310 /**
8311  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8312  * @param event packet
8313  * @return avdtp_cid
8314  * @note: btstack_type 2
8315  */
8316 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){
8317     return little_endian_read_16(event, 3);
8318 }
8319 /**
8320  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8321  * @param event packet
8322  * @return remote_seid
8323  * @note: btstack_type 1
8324  */
8325 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){
8326     return event[5];
8327 }
8328 /**
8329  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8330  * @param event packet
8331  * @return media_type
8332  * @note: btstack_type 1
8333  */
8334 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){
8335     return event[6];
8336 }
8337 /**
8338  * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8339  * @param event packet
8340  * @return version
8341  * @note: btstack_type 1
8342  */
8343 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){
8344     return event[7];
8345 }
8346 /**
8347  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8348  * @param event packet
8349  * @return channel_mode_bitmap
8350  * @note: btstack_type 1
8351  */
8352 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){
8353     return event[8];
8354 }
8355 /**
8356  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8357  * @param event packet
8358  * @return sampling_frequency_bitmap
8359  * @note: btstack_type 1
8360  */
8361 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
8362     return event[9];
8363 }
8364 /**
8365  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8366  * @param event packet
8367  * @return vbr
8368  * @note: btstack_type 1
8369  */
8370 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){
8371     return event[10];
8372 }
8373 /**
8374  * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8375  * @param event packet
8376  * @return bit_rate_index_bitmap
8377  * @note: btstack_type 3
8378  */
8379 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){
8380     return little_endian_read_24(event, 11);
8381 }
8382 /**
8383  * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
8384  * @param event packet
8385  * @return maximum_sul
8386  * @note: btstack_type 2
8387  */
8388 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){
8389     return little_endian_read_16(event, 14);
8390 }
8391 
8392 /**
8393  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
8394  * @param event packet
8395  * @return avdtp_cid
8396  * @note: btstack_type 2
8397  */
8398 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){
8399     return little_endian_read_16(event, 3);
8400 }
8401 /**
8402  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
8403  * @param event packet
8404  * @return remote_seid
8405  * @note: btstack_type 1
8406  */
8407 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
8408     return event[5];
8409 }
8410 /**
8411  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
8412  * @param event packet
8413  * @return media_type
8414  * @note: btstack_type 1
8415  */
8416 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
8417     return event[6];
8418 }
8419 /**
8420  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
8421  * @param event packet
8422  * @return media_codec_type
8423  * @note: btstack_type 2
8424  */
8425 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
8426     return little_endian_read_16(event, 7);
8427 }
8428 /**
8429  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
8430  * @param event packet
8431  * @return media_codec_information_len
8432  * @note: btstack_type L
8433  */
8434 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
8435     return little_endian_read_16(event, 9);
8436 }
8437 /**
8438  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
8439  * @param event packet
8440  * @return media_codec_information
8441  * @note: btstack_type V
8442  */
8443 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
8444     return &event[11];
8445 }
8446 
8447 /**
8448  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
8449  * @param event packet
8450  * @return avdtp_cid
8451  * @note: btstack_type 2
8452  */
8453 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){
8454     return little_endian_read_16(event, 3);
8455 }
8456 /**
8457  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
8458  * @param event packet
8459  * @return remote_seid
8460  * @note: btstack_type 1
8461  */
8462 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){
8463     return event[5];
8464 }
8465 
8466 /**
8467  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
8468  * @param event packet
8469  * @return avdtp_cid
8470  * @note: btstack_type 2
8471  */
8472 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){
8473     return little_endian_read_16(event, 3);
8474 }
8475 /**
8476  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
8477  * @param event packet
8478  * @return remote_seid
8479  * @note: btstack_type 1
8480  */
8481 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){
8482     return event[5];
8483 }
8484 
8485 /**
8486  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
8487  * @param event packet
8488  * @return avdtp_cid
8489  * @note: btstack_type 2
8490  */
8491 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){
8492     return little_endian_read_16(event, 3);
8493 }
8494 /**
8495  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
8496  * @param event packet
8497  * @return remote_seid
8498  * @note: btstack_type 1
8499  */
8500 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){
8501     return event[5];
8502 }
8503 /**
8504  * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
8505  * @param event packet
8506  * @return recovery_type
8507  * @note: btstack_type 1
8508  */
8509 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){
8510     return event[6];
8511 }
8512 /**
8513  * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
8514  * @param event packet
8515  * @return maximum_recovery_window_size
8516  * @note: btstack_type 1
8517  */
8518 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){
8519     return event[7];
8520 }
8521 /**
8522  * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
8523  * @param event packet
8524  * @return maximum_number_media_packets
8525  * @note: btstack_type 1
8526  */
8527 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){
8528     return event[8];
8529 }
8530 
8531 /**
8532  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
8533  * @param event packet
8534  * @return avdtp_cid
8535  * @note: btstack_type 2
8536  */
8537 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){
8538     return little_endian_read_16(event, 3);
8539 }
8540 /**
8541  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
8542  * @param event packet
8543  * @return remote_seid
8544  * @note: btstack_type 1
8545  */
8546 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){
8547     return event[5];
8548 }
8549 /**
8550  * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
8551  * @param event packet
8552  * @return cp_type
8553  * @note: btstack_type 2
8554  */
8555 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){
8556     return little_endian_read_16(event, 6);
8557 }
8558 /**
8559  * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
8560  * @param event packet
8561  * @return cp_type_value_len
8562  * @note: btstack_type L
8563  */
8564 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){
8565     return little_endian_read_16(event, 8);
8566 }
8567 /**
8568  * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
8569  * @param event packet
8570  * @return cp_type_value
8571  * @note: btstack_type V
8572  */
8573 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){
8574     return &event[10];
8575 }
8576 
8577 /**
8578  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8579  * @param event packet
8580  * @return avdtp_cid
8581  * @note: btstack_type 2
8582  */
8583 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){
8584     return little_endian_read_16(event, 3);
8585 }
8586 /**
8587  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8588  * @param event packet
8589  * @return remote_seid
8590  * @note: btstack_type 1
8591  */
8592 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){
8593     return event[5];
8594 }
8595 /**
8596  * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8597  * @param event packet
8598  * @return fragmentation
8599  * @note: btstack_type 1
8600  */
8601 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){
8602     return event[6];
8603 }
8604 /**
8605  * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8606  * @param event packet
8607  * @return transport_identifiers_num
8608  * @note: btstack_type 1
8609  */
8610 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){
8611     return event[7];
8612 }
8613 /**
8614  * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8615  * @param event packet
8616  * @return transport_session_identifier_1
8617  * @note: btstack_type 1
8618  */
8619 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){
8620     return event[8];
8621 }
8622 /**
8623  * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8624  * @param event packet
8625  * @return transport_session_identifier_2
8626  * @note: btstack_type 1
8627  */
8628 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){
8629     return event[9];
8630 }
8631 /**
8632  * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8633  * @param event packet
8634  * @return transport_session_identifier_3
8635  * @note: btstack_type 1
8636  */
8637 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){
8638     return event[10];
8639 }
8640 /**
8641  * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8642  * @param event packet
8643  * @return tcid_1
8644  * @note: btstack_type 1
8645  */
8646 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){
8647     return event[11];
8648 }
8649 /**
8650  * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8651  * @param event packet
8652  * @return tcid_2
8653  * @note: btstack_type 1
8654  */
8655 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){
8656     return event[12];
8657 }
8658 /**
8659  * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
8660  * @param event packet
8661  * @return tcid_3
8662  * @note: btstack_type 1
8663  */
8664 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){
8665     return event[13];
8666 }
8667 
8668 /**
8669  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
8670  * @param event packet
8671  * @return avdtp_cid
8672  * @note: btstack_type 2
8673  */
8674 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){
8675     return little_endian_read_16(event, 3);
8676 }
8677 /**
8678  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
8679  * @param event packet
8680  * @return remote_seid
8681  * @note: btstack_type 1
8682  */
8683 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
8684     return event[5];
8685 }
8686 
8687 /**
8688  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
8689  * @param event packet
8690  * @return avdtp_cid
8691  * @note: btstack_type 2
8692  */
8693 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){
8694     return little_endian_read_16(event, 3);
8695 }
8696 /**
8697  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
8698  * @param event packet
8699  * @return remote_seid
8700  * @note: btstack_type 1
8701  */
8702 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){
8703     return event[5];
8704 }
8705 /**
8706  * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
8707  * @param event packet
8708  * @return back_ch
8709  * @note: btstack_type 1
8710  */
8711 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){
8712     return event[6];
8713 }
8714 /**
8715  * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
8716  * @param event packet
8717  * @return media
8718  * @note: btstack_type 1
8719  */
8720 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){
8721     return event[7];
8722 }
8723 /**
8724  * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
8725  * @param event packet
8726  * @return recovery
8727  * @note: btstack_type 1
8728  */
8729 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){
8730     return event[8];
8731 }
8732 
8733 /**
8734  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
8735  * @param event packet
8736  * @return avdtp_cid
8737  * @note: btstack_type 2
8738  */
8739 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){
8740     return little_endian_read_16(event, 3);
8741 }
8742 /**
8743  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
8744  * @param event packet
8745  * @return remote_seid
8746  * @note: btstack_type 1
8747  */
8748 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
8749     return event[5];
8750 }
8751 
8752 /**
8753  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8754  * @param event packet
8755  * @return avdtp_cid
8756  * @note: btstack_type 2
8757  */
8758 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){
8759     return little_endian_read_16(event, 3);
8760 }
8761 /**
8762  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8763  * @param event packet
8764  * @return local_seid
8765  * @note: btstack_type 1
8766  */
8767 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
8768     return event[5];
8769 }
8770 /**
8771  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8772  * @param event packet
8773  * @return remote_seid
8774  * @note: btstack_type 1
8775  */
8776 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
8777     return event[6];
8778 }
8779 /**
8780  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8781  * @param event packet
8782  * @return reconfigure
8783  * @note: btstack_type 1
8784  */
8785 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
8786     return event[7];
8787 }
8788 /**
8789  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8790  * @param event packet
8791  * @return media_type
8792  * @note: btstack_type 1
8793  */
8794 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
8795     return event[8];
8796 }
8797 /**
8798  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8799  * @param event packet
8800  * @return sampling_frequency
8801  * @note: btstack_type 2
8802  */
8803 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
8804     return little_endian_read_16(event, 9);
8805 }
8806 /**
8807  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8808  * @param event packet
8809  * @return channel_mode
8810  * @note: btstack_type 1
8811  */
8812 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
8813     return event[11];
8814 }
8815 /**
8816  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8817  * @param event packet
8818  * @return num_channels
8819  * @note: btstack_type 1
8820  */
8821 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
8822     return event[12];
8823 }
8824 /**
8825  * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8826  * @param event packet
8827  * @return block_length
8828  * @note: btstack_type 1
8829  */
8830 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
8831     return event[13];
8832 }
8833 /**
8834  * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8835  * @param event packet
8836  * @return subbands
8837  * @note: btstack_type 1
8838  */
8839 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
8840     return event[14];
8841 }
8842 /**
8843  * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8844  * @param event packet
8845  * @return allocation_method
8846  * @note: btstack_type 1
8847  */
8848 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
8849     return event[15];
8850 }
8851 /**
8852  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8853  * @param event packet
8854  * @return min_bitpool_value
8855  * @note: btstack_type 1
8856  */
8857 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
8858     return event[16];
8859 }
8860 /**
8861  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
8862  * @param event packet
8863  * @return max_bitpool_value
8864  * @note: btstack_type 1
8865  */
8866 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
8867     return event[17];
8868 }
8869 
8870 /**
8871  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8872  * @param event packet
8873  * @return avdtp_cid
8874  * @note: btstack_type 2
8875  */
8876 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){
8877     return little_endian_read_16(event, 3);
8878 }
8879 /**
8880  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8881  * @param event packet
8882  * @return local_seid
8883  * @note: btstack_type 1
8884  */
8885 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){
8886     return event[5];
8887 }
8888 /**
8889  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8890  * @param event packet
8891  * @return remote_seid
8892  * @note: btstack_type 1
8893  */
8894 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){
8895     return event[6];
8896 }
8897 /**
8898  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8899  * @param event packet
8900  * @return reconfigure
8901  * @note: btstack_type 1
8902  */
8903 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){
8904     return event[7];
8905 }
8906 /**
8907  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8908  * @param event packet
8909  * @return media_type
8910  * @note: btstack_type 1
8911  */
8912 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){
8913     return event[8];
8914 }
8915 /**
8916  * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8917  * @param event packet
8918  * @return layer
8919  * @note: btstack_type 1
8920  */
8921 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){
8922     return event[9];
8923 }
8924 /**
8925  * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8926  * @param event packet
8927  * @return crc
8928  * @note: btstack_type 1
8929  */
8930 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){
8931     return event[10];
8932 }
8933 /**
8934  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8935  * @param event packet
8936  * @return channel_mode
8937  * @note: btstack_type 1
8938  */
8939 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){
8940     return event[11];
8941 }
8942 /**
8943  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8944  * @param event packet
8945  * @return num_channels
8946  * @note: btstack_type 1
8947  */
8948 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){
8949     return event[12];
8950 }
8951 /**
8952  * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8953  * @param event packet
8954  * @return media_payload_format
8955  * @note: btstack_type 1
8956  */
8957 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){
8958     return event[13];
8959 }
8960 /**
8961  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8962  * @param event packet
8963  * @return sampling_frequency
8964  * @note: btstack_type 2
8965  */
8966 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){
8967     return little_endian_read_16(event, 14);
8968 }
8969 /**
8970  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8971  * @param event packet
8972  * @return vbr
8973  * @note: btstack_type 1
8974  */
8975 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){
8976     return event[16];
8977 }
8978 /**
8979  * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
8980  * @param event packet
8981  * @return bit_rate_index
8982  * @note: btstack_type 1
8983  */
8984 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){
8985     return event[17];
8986 }
8987 
8988 /**
8989  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8990  * @param event packet
8991  * @return avdtp_cid
8992  * @note: btstack_type 2
8993  */
8994 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){
8995     return little_endian_read_16(event, 3);
8996 }
8997 /**
8998  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
8999  * @param event packet
9000  * @return local_seid
9001  * @note: btstack_type 1
9002  */
9003 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){
9004     return event[5];
9005 }
9006 /**
9007  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9008  * @param event packet
9009  * @return remote_seid
9010  * @note: btstack_type 1
9011  */
9012 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){
9013     return event[6];
9014 }
9015 /**
9016  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9017  * @param event packet
9018  * @return reconfigure
9019  * @note: btstack_type 1
9020  */
9021 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){
9022     return event[7];
9023 }
9024 /**
9025  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9026  * @param event packet
9027  * @return media_type
9028  * @note: btstack_type 1
9029  */
9030 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){
9031     return event[8];
9032 }
9033 /**
9034  * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9035  * @param event packet
9036  * @return object_type
9037  * @note: btstack_type 1
9038  */
9039 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){
9040     return event[9];
9041 }
9042 /**
9043  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9044  * @param event packet
9045  * @return sampling_frequency
9046  * @note: btstack_type 3
9047  */
9048 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){
9049     return little_endian_read_24(event, 10);
9050 }
9051 /**
9052  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9053  * @param event packet
9054  * @return num_channels
9055  * @note: btstack_type 1
9056  */
9057 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){
9058     return event[13];
9059 }
9060 /**
9061  * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9062  * @param event packet
9063  * @return bit_rate
9064  * @note: btstack_type 3
9065  */
9066 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
9067     return little_endian_read_24(event, 14);
9068 }
9069 /**
9070  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9071  * @param event packet
9072  * @return vbr
9073  * @note: btstack_type 1
9074  */
9075 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
9076     return event[17];
9077 }
9078 
9079 /**
9080  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9081  * @param event packet
9082  * @return avdtp_cid
9083  * @note: btstack_type 2
9084  */
9085 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){
9086     return little_endian_read_16(event, 3);
9087 }
9088 /**
9089  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9090  * @param event packet
9091  * @return local_seid
9092  * @note: btstack_type 1
9093  */
9094 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){
9095     return event[5];
9096 }
9097 /**
9098  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9099  * @param event packet
9100  * @return remote_seid
9101  * @note: btstack_type 1
9102  */
9103 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){
9104     return event[6];
9105 }
9106 /**
9107  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9108  * @param event packet
9109  * @return reconfigure
9110  * @note: btstack_type 1
9111  */
9112 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){
9113     return event[7];
9114 }
9115 /**
9116  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9117  * @param event packet
9118  * @return media_type
9119  * @note: btstack_type 1
9120  */
9121 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){
9122     return event[8];
9123 }
9124 /**
9125  * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9126  * @param event packet
9127  * @return version
9128  * @note: btstack_type 1
9129  */
9130 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){
9131     return event[9];
9132 }
9133 /**
9134  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9135  * @param event packet
9136  * @return channel_mode
9137  * @note: btstack_type 1
9138  */
9139 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){
9140     return event[10];
9141 }
9142 /**
9143  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9144  * @param event packet
9145  * @return num_channels
9146  * @note: btstack_type 1
9147  */
9148 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){
9149     return event[11];
9150 }
9151 /**
9152  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9153  * @param event packet
9154  * @return sampling_frequency
9155  * @note: btstack_type 2
9156  */
9157 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){
9158     return little_endian_read_16(event, 12);
9159 }
9160 /**
9161  * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9162  * @param event packet
9163  * @return vbr
9164  * @note: btstack_type 1
9165  */
9166 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){
9167     return event[14];
9168 }
9169 /**
9170  * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9171  * @param event packet
9172  * @return bit_rate_index
9173  * @note: btstack_type 1
9174  */
9175 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){
9176     return event[15];
9177 }
9178 /**
9179  * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9180  * @param event packet
9181  * @return maximum_sul
9182  * @note: btstack_type 2
9183  */
9184 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){
9185     return little_endian_read_16(event, 16);
9186 }
9187 
9188 /**
9189  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9190  * @param event packet
9191  * @return avdtp_cid
9192  * @note: btstack_type 2
9193  */
9194 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){
9195     return little_endian_read_16(event, 3);
9196 }
9197 /**
9198  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9199  * @param event packet
9200  * @return local_seid
9201  * @note: btstack_type 1
9202  */
9203 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
9204     return event[5];
9205 }
9206 /**
9207  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9208  * @param event packet
9209  * @return remote_seid
9210  * @note: btstack_type 1
9211  */
9212 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
9213     return event[6];
9214 }
9215 /**
9216  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9217  * @param event packet
9218  * @return reconfigure
9219  * @note: btstack_type 1
9220  */
9221 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
9222     return event[7];
9223 }
9224 /**
9225  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9226  * @param event packet
9227  * @return media_type
9228  * @note: btstack_type 1
9229  */
9230 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
9231     return event[8];
9232 }
9233 /**
9234  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9235  * @param event packet
9236  * @return media_codec_type
9237  * @note: btstack_type 2
9238  */
9239 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
9240     return little_endian_read_16(event, 9);
9241 }
9242 /**
9243  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9244  * @param event packet
9245  * @return media_codec_information_len
9246  * @note: btstack_type L
9247  */
9248 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
9249     return little_endian_read_16(event, 11);
9250 }
9251 /**
9252  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9253  * @param event packet
9254  * @return media_codec_information
9255  * @note: btstack_type V
9256  */
9257 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
9258     return &event[13];
9259 }
9260 
9261 /**
9262  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
9263  * @param event packet
9264  * @return avdtp_cid
9265  * @note: btstack_type 2
9266  */
9267 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){
9268     return little_endian_read_16(event, 3);
9269 }
9270 /**
9271  * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
9272  * @param event packet
9273  * @param Pointer to storage for bd_addr
9274  * @note: btstack_type B
9275  */
9276 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
9277     reverse_bytes(&event[5], bd_addr, 6);
9278 }
9279 /**
9280  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
9281  * @param event packet
9282  * @return local_seid
9283  * @note: btstack_type 1
9284  */
9285 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){
9286     return event[11];
9287 }
9288 /**
9289  * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
9290  * @param event packet
9291  * @return remote_seid
9292  * @note: btstack_type 1
9293  */
9294 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){
9295     return event[12];
9296 }
9297 /**
9298  * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
9299  * @param event packet
9300  * @return status
9301  * @note: btstack_type 1
9302  */
9303 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){
9304     return event[13];
9305 }
9306 
9307 /**
9308  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
9309  * @param event packet
9310  * @return avdtp_cid
9311  * @note: btstack_type 2
9312  */
9313 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){
9314     return little_endian_read_16(event, 3);
9315 }
9316 /**
9317  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
9318  * @param event packet
9319  * @return local_seid
9320  * @note: btstack_type 1
9321  */
9322 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){
9323     return event[5];
9324 }
9325 
9326 /**
9327  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
9328  * @param event packet
9329  * @return avdtp_cid
9330  * @note: btstack_type 2
9331  */
9332 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){
9333     return little_endian_read_16(event, 3);
9334 }
9335 /**
9336  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
9337  * @param event packet
9338  * @return local_seid
9339  * @note: btstack_type 1
9340  */
9341 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
9342     return event[5];
9343 }
9344 /**
9345  * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
9346  * @param event packet
9347  * @return sequence_number
9348  * @note: btstack_type 2
9349  */
9350 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){
9351     return little_endian_read_16(event, 6);
9352 }
9353 
9354 /**
9355  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE
9356  * @param event packet
9357  * @return avdtp_cid
9358  * @note: btstack_type 2
9359  */
9360 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){
9361     return little_endian_read_16(event, 3);
9362 }
9363 
9364 /**
9365  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
9366  * @param event packet
9367  * @return avdtp_cid
9368  * @note: btstack_type 2
9369  */
9370 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){
9371     return little_endian_read_16(event, 3);
9372 }
9373 /**
9374  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
9375  * @param event packet
9376  * @return local_seid
9377  * @note: btstack_type 1
9378  */
9379 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){
9380     return event[5];
9381 }
9382 /**
9383  * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT
9384  * @param event packet
9385  * @return delay_100us
9386  * @note: btstack_type 2
9387  */
9388 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){
9389     return little_endian_read_16(event, 6);
9390 }
9391 
9392 /**
9393  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
9394  * @param event packet
9395  * @return a2dp_cid
9396  * @note: btstack_type 2
9397  */
9398 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){
9399     return little_endian_read_16(event, 3);
9400 }
9401 /**
9402  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
9403  * @param event packet
9404  * @return local_seid
9405  * @note: btstack_type 1
9406  */
9407 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
9408     return event[5];
9409 }
9410 
9411 /**
9412  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9413  * @param event packet
9414  * @return a2dp_cid
9415  * @note: btstack_type 2
9416  */
9417 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){
9418     return little_endian_read_16(event, 3);
9419 }
9420 /**
9421  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9422  * @param event packet
9423  * @return local_seid
9424  * @note: btstack_type 1
9425  */
9426 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
9427     return event[5];
9428 }
9429 /**
9430  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9431  * @param event packet
9432  * @return remote_seid
9433  * @note: btstack_type 1
9434  */
9435 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
9436     return event[6];
9437 }
9438 /**
9439  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9440  * @param event packet
9441  * @return reconfigure
9442  * @note: btstack_type 1
9443  */
9444 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
9445     return event[7];
9446 }
9447 /**
9448  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9449  * @param event packet
9450  * @return media_type
9451  * @note: btstack_type 1
9452  */
9453 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
9454     return event[8];
9455 }
9456 /**
9457  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9458  * @param event packet
9459  * @return sampling_frequency
9460  * @note: btstack_type 2
9461  */
9462 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
9463     return little_endian_read_16(event, 9);
9464 }
9465 /**
9466  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9467  * @param event packet
9468  * @return channel_mode
9469  * @note: btstack_type 1
9470  */
9471 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
9472     return event[11];
9473 }
9474 /**
9475  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9476  * @param event packet
9477  * @return num_channels
9478  * @note: btstack_type 1
9479  */
9480 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
9481     return event[12];
9482 }
9483 /**
9484  * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9485  * @param event packet
9486  * @return block_length
9487  * @note: btstack_type 1
9488  */
9489 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
9490     return event[13];
9491 }
9492 /**
9493  * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9494  * @param event packet
9495  * @return subbands
9496  * @note: btstack_type 1
9497  */
9498 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
9499     return event[14];
9500 }
9501 /**
9502  * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9503  * @param event packet
9504  * @return allocation_method
9505  * @note: btstack_type 1
9506  */
9507 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
9508     return event[15];
9509 }
9510 /**
9511  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9512  * @param event packet
9513  * @return min_bitpool_value
9514  * @note: btstack_type 1
9515  */
9516 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
9517     return event[16];
9518 }
9519 /**
9520  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
9521  * @param event packet
9522  * @return max_bitpool_value
9523  * @note: btstack_type 1
9524  */
9525 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
9526     return event[17];
9527 }
9528 
9529 /**
9530  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9531  * @param event packet
9532  * @return a2dp_cid
9533  * @note: btstack_type 2
9534  */
9535 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){
9536     return little_endian_read_16(event, 3);
9537 }
9538 /**
9539  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9540  * @param event packet
9541  * @return local_seid
9542  * @note: btstack_type 1
9543  */
9544 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){
9545     return event[5];
9546 }
9547 /**
9548  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9549  * @param event packet
9550  * @return remote_seid
9551  * @note: btstack_type 1
9552  */
9553 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){
9554     return event[6];
9555 }
9556 /**
9557  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9558  * @param event packet
9559  * @return reconfigure
9560  * @note: btstack_type 1
9561  */
9562 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){
9563     return event[7];
9564 }
9565 /**
9566  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9567  * @param event packet
9568  * @return media_type
9569  * @note: btstack_type 1
9570  */
9571 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){
9572     return event[8];
9573 }
9574 /**
9575  * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9576  * @param event packet
9577  * @return layer
9578  * @note: btstack_type 1
9579  */
9580 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){
9581     return event[9];
9582 }
9583 /**
9584  * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9585  * @param event packet
9586  * @return crc
9587  * @note: btstack_type 1
9588  */
9589 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){
9590     return event[10];
9591 }
9592 /**
9593  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9594  * @param event packet
9595  * @return channel_mode
9596  * @note: btstack_type 1
9597  */
9598 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){
9599     return event[11];
9600 }
9601 /**
9602  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9603  * @param event packet
9604  * @return num_channels
9605  * @note: btstack_type 1
9606  */
9607 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){
9608     return event[12];
9609 }
9610 /**
9611  * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9612  * @param event packet
9613  * @return media_payload_format
9614  * @note: btstack_type 1
9615  */
9616 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){
9617     return event[13];
9618 }
9619 /**
9620  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9621  * @param event packet
9622  * @return sampling_frequency
9623  * @note: btstack_type 2
9624  */
9625 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){
9626     return little_endian_read_16(event, 14);
9627 }
9628 /**
9629  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9630  * @param event packet
9631  * @return vbr
9632  * @note: btstack_type 1
9633  */
9634 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){
9635     return event[16];
9636 }
9637 /**
9638  * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION
9639  * @param event packet
9640  * @return bit_rate_index
9641  * @note: btstack_type 1
9642  */
9643 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){
9644     return event[17];
9645 }
9646 
9647 /**
9648  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9649  * @param event packet
9650  * @return a2dp_cid
9651  * @note: btstack_type 2
9652  */
9653 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){
9654     return little_endian_read_16(event, 3);
9655 }
9656 /**
9657  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9658  * @param event packet
9659  * @return local_seid
9660  * @note: btstack_type 1
9661  */
9662 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){
9663     return event[5];
9664 }
9665 /**
9666  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9667  * @param event packet
9668  * @return remote_seid
9669  * @note: btstack_type 1
9670  */
9671 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){
9672     return event[6];
9673 }
9674 /**
9675  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9676  * @param event packet
9677  * @return reconfigure
9678  * @note: btstack_type 1
9679  */
9680 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){
9681     return event[7];
9682 }
9683 /**
9684  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9685  * @param event packet
9686  * @return media_type
9687  * @note: btstack_type 1
9688  */
9689 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){
9690     return event[8];
9691 }
9692 /**
9693  * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9694  * @param event packet
9695  * @return object_type
9696  * @note: btstack_type 1
9697  */
9698 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){
9699     return event[9];
9700 }
9701 /**
9702  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9703  * @param event packet
9704  * @return sampling_frequency
9705  * @note: btstack_type 3
9706  */
9707 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){
9708     return little_endian_read_24(event, 10);
9709 }
9710 /**
9711  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9712  * @param event packet
9713  * @return num_channels
9714  * @note: btstack_type 1
9715  */
9716 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){
9717     return event[13];
9718 }
9719 /**
9720  * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9721  * @param event packet
9722  * @return bit_rate
9723  * @note: btstack_type 3
9724  */
9725 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
9726     return little_endian_read_24(event, 14);
9727 }
9728 /**
9729  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
9730  * @param event packet
9731  * @return vbr
9732  * @note: btstack_type 1
9733  */
9734 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
9735     return event[17];
9736 }
9737 
9738 /**
9739  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9740  * @param event packet
9741  * @return a2dp_cid
9742  * @note: btstack_type 2
9743  */
9744 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){
9745     return little_endian_read_16(event, 3);
9746 }
9747 /**
9748  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9749  * @param event packet
9750  * @return local_seid
9751  * @note: btstack_type 1
9752  */
9753 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){
9754     return event[5];
9755 }
9756 /**
9757  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9758  * @param event packet
9759  * @return remote_seid
9760  * @note: btstack_type 1
9761  */
9762 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){
9763     return event[6];
9764 }
9765 /**
9766  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9767  * @param event packet
9768  * @return reconfigure
9769  * @note: btstack_type 1
9770  */
9771 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){
9772     return event[7];
9773 }
9774 /**
9775  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9776  * @param event packet
9777  * @return media_type
9778  * @note: btstack_type 1
9779  */
9780 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){
9781     return event[8];
9782 }
9783 /**
9784  * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9785  * @param event packet
9786  * @return version
9787  * @note: btstack_type 1
9788  */
9789 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){
9790     return event[9];
9791 }
9792 /**
9793  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9794  * @param event packet
9795  * @return channel_mode
9796  * @note: btstack_type 1
9797  */
9798 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){
9799     return event[10];
9800 }
9801 /**
9802  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9803  * @param event packet
9804  * @return num_channels
9805  * @note: btstack_type 1
9806  */
9807 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){
9808     return event[11];
9809 }
9810 /**
9811  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9812  * @param event packet
9813  * @return sampling_frequency
9814  * @note: btstack_type 2
9815  */
9816 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){
9817     return little_endian_read_16(event, 12);
9818 }
9819 /**
9820  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9821  * @param event packet
9822  * @return vbr
9823  * @note: btstack_type 1
9824  */
9825 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){
9826     return event[14];
9827 }
9828 /**
9829  * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9830  * @param event packet
9831  * @return bit_rate_index
9832  * @note: btstack_type 1
9833  */
9834 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){
9835     return event[15];
9836 }
9837 /**
9838  * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION
9839  * @param event packet
9840  * @return maximum_sul
9841  * @note: btstack_type 2
9842  */
9843 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){
9844     return little_endian_read_16(event, 16);
9845 }
9846 
9847 /**
9848  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9849  * @param event packet
9850  * @return a2dp_cid
9851  * @note: btstack_type 2
9852  */
9853 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){
9854     return little_endian_read_16(event, 3);
9855 }
9856 /**
9857  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9858  * @param event packet
9859  * @return local_seid
9860  * @note: btstack_type 1
9861  */
9862 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
9863     return event[5];
9864 }
9865 /**
9866  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9867  * @param event packet
9868  * @return remote_seid
9869  * @note: btstack_type 1
9870  */
9871 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
9872     return event[6];
9873 }
9874 /**
9875  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9876  * @param event packet
9877  * @return reconfigure
9878  * @note: btstack_type 1
9879  */
9880 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
9881     return event[7];
9882 }
9883 /**
9884  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9885  * @param event packet
9886  * @return media_type
9887  * @note: btstack_type 1
9888  */
9889 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
9890     return event[8];
9891 }
9892 /**
9893  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9894  * @param event packet
9895  * @return media_codec_type
9896  * @note: btstack_type 2
9897  */
9898 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
9899     return little_endian_read_16(event, 9);
9900 }
9901 /**
9902  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9903  * @param event packet
9904  * @return media_codec_information_len
9905  * @note: btstack_type L
9906  */
9907 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
9908     return little_endian_read_16(event, 11);
9909 }
9910 /**
9911  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
9912  * @param event packet
9913  * @return media_codec_information
9914  * @note: btstack_type V
9915  */
9916 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
9917     return &event[13];
9918 }
9919 
9920 /**
9921  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9922  * @param event packet
9923  * @return a2dp_cid
9924  * @note: btstack_type 2
9925  */
9926 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){
9927     return little_endian_read_16(event, 3);
9928 }
9929 /**
9930  * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9931  * @param event packet
9932  * @param Pointer to storage for bd_addr
9933  * @note: btstack_type B
9934  */
9935 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
9936     reverse_bytes(&event[5], bd_addr, 6);
9937 }
9938 /**
9939  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9940  * @param event packet
9941  * @return local_seid
9942  * @note: btstack_type 1
9943  */
9944 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){
9945     return event[11];
9946 }
9947 /**
9948  * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9949  * @param event packet
9950  * @return remote_seid
9951  * @note: btstack_type 1
9952  */
9953 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){
9954     return event[12];
9955 }
9956 /**
9957  * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED
9958  * @param event packet
9959  * @return status
9960  * @note: btstack_type 1
9961  */
9962 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){
9963     return event[13];
9964 }
9965 
9966 /**
9967  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED
9968  * @param event packet
9969  * @return a2dp_cid
9970  * @note: btstack_type 2
9971  */
9972 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){
9973     return little_endian_read_16(event, 3);
9974 }
9975 /**
9976  * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED
9977  * @param event packet
9978  * @return local_seid
9979  * @note: btstack_type 1
9980  */
9981 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){
9982     return event[5];
9983 }
9984 
9985 /**
9986  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED
9987  * @param event packet
9988  * @return a2dp_cid
9989  * @note: btstack_type 2
9990  */
9991 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){
9992     return little_endian_read_16(event, 3);
9993 }
9994 /**
9995  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED
9996  * @param event packet
9997  * @return local_seid
9998  * @note: btstack_type 1
9999  */
10000 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){
10001     return event[5];
10002 }
10003 
10004 /**
10005  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED
10006  * @param event packet
10007  * @return a2dp_cid
10008  * @note: btstack_type 2
10009  */
10010 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){
10011     return little_endian_read_16(event, 3);
10012 }
10013 /**
10014  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED
10015  * @param event packet
10016  * @return local_seid
10017  * @note: btstack_type 1
10018  */
10019 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){
10020     return event[5];
10021 }
10022 
10023 /**
10024  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED
10025  * @param event packet
10026  * @return a2dp_cid
10027  * @note: btstack_type 2
10028  */
10029 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){
10030     return little_endian_read_16(event, 3);
10031 }
10032 /**
10033  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED
10034  * @param event packet
10035  * @return local_seid
10036  * @note: btstack_type 1
10037  */
10038 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){
10039     return event[5];
10040 }
10041 
10042 /**
10043  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED
10044  * @param event packet
10045  * @return a2dp_cid
10046  * @note: btstack_type 2
10047  */
10048 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){
10049     return little_endian_read_16(event, 3);
10050 }
10051 /**
10052  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED
10053  * @param event packet
10054  * @return local_seid
10055  * @note: btstack_type 1
10056  */
10057 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){
10058     return event[5];
10059 }
10060 
10061 /**
10062  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
10063  * @param event packet
10064  * @return a2dp_cid
10065  * @note: btstack_type 2
10066  */
10067 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){
10068     return little_endian_read_16(event, 3);
10069 }
10070 /**
10071  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
10072  * @param event packet
10073  * @return local_seid
10074  * @note: btstack_type 1
10075  */
10076 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){
10077     return event[5];
10078 }
10079 /**
10080  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED
10081  * @param event packet
10082  * @return signal_identifier
10083  * @note: btstack_type 1
10084  */
10085 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){
10086     return event[6];
10087 }
10088 
10089 /**
10090  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED
10091  * @param event packet
10092  * @return a2dp_cid
10093  * @note: btstack_type 2
10094  */
10095 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){
10096     return little_endian_read_16(event, 3);
10097 }
10098 /**
10099  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED
10100  * @param event packet
10101  * @return local_seid
10102  * @note: btstack_type 1
10103  */
10104 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){
10105     return event[5];
10106 }
10107 /**
10108  * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED
10109  * @param event packet
10110  * @return is_initiator
10111  * @note: btstack_type 1
10112  */
10113 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){
10114     return event[6];
10115 }
10116 /**
10117  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED
10118  * @param event packet
10119  * @return signal_identifier
10120  * @note: btstack_type 1
10121  */
10122 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){
10123     return event[7];
10124 }
10125 
10126 /**
10127  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
10128  * @param event packet
10129  * @return a2dp_cid
10130  * @note: btstack_type 2
10131  */
10132 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){
10133     return little_endian_read_16(event, 3);
10134 }
10135 /**
10136  * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
10137  * @param event packet
10138  * @param Pointer to storage for bd_addr
10139  * @note: btstack_type B
10140  */
10141 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
10142     reverse_bytes(&event[5], bd_addr, 6);
10143 }
10144 /**
10145  * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
10146  * @param event packet
10147  * @return con_handle
10148  * @note: btstack_type 2
10149  */
10150 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){
10151     return little_endian_read_16(event, 11);
10152 }
10153 /**
10154  * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
10155  * @param event packet
10156  * @return status
10157  * @note: btstack_type 1
10158  */
10159 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){
10160     return event[13];
10161 }
10162 
10163 /**
10164  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
10165  * @param event packet
10166  * @return a2dp_cid
10167  * @note: btstack_type 2
10168  */
10169 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){
10170     return little_endian_read_16(event, 3);
10171 }
10172 
10173 /**
10174  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
10175  * @param event packet
10176  * @return a2dp_cid
10177  * @note: btstack_type 2
10178  */
10179 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){
10180     return little_endian_read_16(event, 3);
10181 }
10182 /**
10183  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
10184  * @param event packet
10185  * @return local_seid
10186  * @note: btstack_type 1
10187  */
10188 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){
10189     return event[5];
10190 }
10191 /**
10192  * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED
10193  * @param event packet
10194  * @return status
10195  * @note: btstack_type 1
10196  */
10197 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){
10198     return event[6];
10199 }
10200 
10201 /**
10202  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10203  * @param event packet
10204  * @return a2dp_cid
10205  * @note: btstack_type 2
10206  */
10207 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){
10208     return little_endian_read_16(event, 3);
10209 }
10210 /**
10211  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10212  * @param event packet
10213  * @return remote_seid
10214  * @note: btstack_type 1
10215  */
10216 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
10217     return event[5];
10218 }
10219 /**
10220  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10221  * @param event packet
10222  * @return media_type
10223  * @note: btstack_type 1
10224  */
10225 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
10226     return event[6];
10227 }
10228 /**
10229  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10230  * @param event packet
10231  * @return sampling_frequency_bitmap
10232  * @note: btstack_type 1
10233  */
10234 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
10235     return event[7];
10236 }
10237 /**
10238  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10239  * @param event packet
10240  * @return channel_mode_bitmap
10241  * @note: btstack_type 1
10242  */
10243 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
10244     return event[8];
10245 }
10246 /**
10247  * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10248  * @param event packet
10249  * @return block_length_bitmap
10250  * @note: btstack_type 1
10251  */
10252 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
10253     return event[9];
10254 }
10255 /**
10256  * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10257  * @param event packet
10258  * @return subbands_bitmap
10259  * @note: btstack_type 1
10260  */
10261 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
10262     return event[10];
10263 }
10264 /**
10265  * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10266  * @param event packet
10267  * @return allocation_method_bitmap
10268  * @note: btstack_type 1
10269  */
10270 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
10271     return event[11];
10272 }
10273 /**
10274  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10275  * @param event packet
10276  * @return min_bitpool_value
10277  * @note: btstack_type 1
10278  */
10279 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
10280     return event[12];
10281 }
10282 /**
10283  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
10284  * @param event packet
10285  * @return max_bitpool_value
10286  * @note: btstack_type 1
10287  */
10288 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
10289     return event[13];
10290 }
10291 
10292 /**
10293  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10294  * @param event packet
10295  * @return a2dp_cid
10296  * @note: btstack_type 2
10297  */
10298 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){
10299     return little_endian_read_16(event, 3);
10300 }
10301 /**
10302  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10303  * @param event packet
10304  * @return remote_seid
10305  * @note: btstack_type 1
10306  */
10307 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){
10308     return event[5];
10309 }
10310 /**
10311  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10312  * @param event packet
10313  * @return media_type
10314  * @note: btstack_type 1
10315  */
10316 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){
10317     return event[6];
10318 }
10319 /**
10320  * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10321  * @param event packet
10322  * @return layer_bitmap
10323  * @note: btstack_type 1
10324  */
10325 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){
10326     return event[7];
10327 }
10328 /**
10329  * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10330  * @param event packet
10331  * @return crc
10332  * @note: btstack_type 1
10333  */
10334 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){
10335     return event[8];
10336 }
10337 /**
10338  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10339  * @param event packet
10340  * @return channel_mode_bitmap
10341  * @note: btstack_type 1
10342  */
10343 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){
10344     return event[9];
10345 }
10346 /**
10347  * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10348  * @param event packet
10349  * @return media_payload_format
10350  * @note: btstack_type 1
10351  */
10352 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){
10353     return event[10];
10354 }
10355 /**
10356  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10357  * @param event packet
10358  * @return sampling_frequency_bitmap
10359  * @note: btstack_type 1
10360  */
10361 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){
10362     return event[11];
10363 }
10364 /**
10365  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10366  * @param event packet
10367  * @return vbr
10368  * @note: btstack_type 1
10369  */
10370 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){
10371     return event[12];
10372 }
10373 /**
10374  * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY
10375  * @param event packet
10376  * @return bit_rate_index_bitmap
10377  * @note: btstack_type 2
10378  */
10379 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){
10380     return little_endian_read_16(event, 13);
10381 }
10382 
10383 /**
10384  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10385  * @param event packet
10386  * @return a2dp_cid
10387  * @note: btstack_type 2
10388  */
10389 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){
10390     return little_endian_read_16(event, 3);
10391 }
10392 /**
10393  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10394  * @param event packet
10395  * @return remote_seid
10396  * @note: btstack_type 1
10397  */
10398 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){
10399     return event[5];
10400 }
10401 /**
10402  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10403  * @param event packet
10404  * @return media_type
10405  * @note: btstack_type 1
10406  */
10407 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){
10408     return event[6];
10409 }
10410 /**
10411  * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10412  * @param event packet
10413  * @return object_type_bitmap
10414  * @note: btstack_type 1
10415  */
10416 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){
10417     return event[7];
10418 }
10419 /**
10420  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10421  * @param event packet
10422  * @return sampling_frequency_bitmap
10423  * @note: btstack_type 2
10424  */
10425 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
10426     return little_endian_read_16(event, 8);
10427 }
10428 /**
10429  * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10430  * @param event packet
10431  * @return channels_bitmap
10432  * @note: btstack_type 1
10433  */
10434 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){
10435     return event[10];
10436 }
10437 /**
10438  * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10439  * @param event packet
10440  * @return bit_rate
10441  * @note: btstack_type 3
10442  */
10443 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){
10444     return little_endian_read_24(event, 11);
10445 }
10446 /**
10447  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY
10448  * @param event packet
10449  * @return vbr
10450  * @note: btstack_type 1
10451  */
10452 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){
10453     return event[14];
10454 }
10455 
10456 /**
10457  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10458  * @param event packet
10459  * @return a2dp_cid
10460  * @note: btstack_type 2
10461  */
10462 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){
10463     return little_endian_read_16(event, 3);
10464 }
10465 /**
10466  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10467  * @param event packet
10468  * @return remote_seid
10469  * @note: btstack_type 1
10470  */
10471 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){
10472     return event[5];
10473 }
10474 /**
10475  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10476  * @param event packet
10477  * @return media_type
10478  * @note: btstack_type 1
10479  */
10480 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){
10481     return event[6];
10482 }
10483 /**
10484  * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10485  * @param event packet
10486  * @return version
10487  * @note: btstack_type 1
10488  */
10489 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){
10490     return event[7];
10491 }
10492 /**
10493  * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10494  * @param event packet
10495  * @return channel_mode_bitmap
10496  * @note: btstack_type 1
10497  */
10498 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){
10499     return event[8];
10500 }
10501 /**
10502  * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10503  * @param event packet
10504  * @return sampling_frequency_bitmap
10505  * @note: btstack_type 1
10506  */
10507 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){
10508     return event[9];
10509 }
10510 /**
10511  * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10512  * @param event packet
10513  * @return vbr
10514  * @note: btstack_type 1
10515  */
10516 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){
10517     return event[10];
10518 }
10519 /**
10520  * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10521  * @param event packet
10522  * @return bit_rate_index_bitmap
10523  * @note: btstack_type 3
10524  */
10525 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){
10526     return little_endian_read_24(event, 11);
10527 }
10528 /**
10529  * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY
10530  * @param event packet
10531  * @return maximum_sul
10532  * @note: btstack_type 2
10533  */
10534 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){
10535     return little_endian_read_16(event, 14);
10536 }
10537 
10538 /**
10539  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
10540  * @param event packet
10541  * @return a2dp_cid
10542  * @note: btstack_type 2
10543  */
10544 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){
10545     return little_endian_read_16(event, 3);
10546 }
10547 /**
10548  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
10549  * @param event packet
10550  * @return remote_seid
10551  * @note: btstack_type 1
10552  */
10553 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
10554     return event[5];
10555 }
10556 /**
10557  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
10558  * @param event packet
10559  * @return media_type
10560  * @note: btstack_type 1
10561  */
10562 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
10563     return event[6];
10564 }
10565 /**
10566  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
10567  * @param event packet
10568  * @return media_codec_type
10569  * @note: btstack_type 2
10570  */
10571 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
10572     return little_endian_read_16(event, 7);
10573 }
10574 /**
10575  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
10576  * @param event packet
10577  * @return media_codec_information_len
10578  * @note: btstack_type L
10579  */
10580 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
10581     return little_endian_read_16(event, 9);
10582 }
10583 /**
10584  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
10585  * @param event packet
10586  * @return media_codec_information
10587  * @note: btstack_type V
10588  */
10589 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
10590     return &event[11];
10591 }
10592 
10593 /**
10594  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
10595  * @param event packet
10596  * @return a2dp_cid
10597  * @note: btstack_type 2
10598  */
10599 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){
10600     return little_endian_read_16(event, 3);
10601 }
10602 /**
10603  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
10604  * @param event packet
10605  * @return remote_seid
10606  * @note: btstack_type 1
10607  */
10608 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
10609     return event[5];
10610 }
10611 
10612 /**
10613  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
10614  * @param event packet
10615  * @return a2dp_cid
10616  * @note: btstack_type 2
10617  */
10618 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){
10619     return little_endian_read_16(event, 3);
10620 }
10621 /**
10622  * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
10623  * @param event packet
10624  * @return local_seid
10625  * @note: btstack_type 1
10626  */
10627 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){
10628     return event[5];
10629 }
10630 /**
10631  * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
10632  * @param event packet
10633  * @return delay_100us
10634  * @note: btstack_type 2
10635  */
10636 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){
10637     return little_endian_read_16(event, 6);
10638 }
10639 
10640 /**
10641  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
10642  * @param event packet
10643  * @return a2dp_cid
10644  * @note: btstack_type 2
10645  */
10646 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){
10647     return little_endian_read_16(event, 3);
10648 }
10649 /**
10650  * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
10651  * @param event packet
10652  * @return remote_seid
10653  * @note: btstack_type 1
10654  */
10655 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
10656     return event[5];
10657 }
10658 
10659 /**
10660  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE
10661  * @param event packet
10662  * @return a2dp_cid
10663  * @note: btstack_type 2
10664  */
10665 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){
10666     return little_endian_read_16(event, 3);
10667 }
10668 
10669 /**
10670  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
10671  * @param event packet
10672  * @return avrcp_cid
10673  * @note: btstack_type 2
10674  */
10675 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){
10676     return little_endian_read_16(event, 3);
10677 }
10678 /**
10679  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
10680  * @param event packet
10681  * @return command_type
10682  * @note: btstack_type 1
10683  */
10684 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){
10685     return event[5];
10686 }
10687 /**
10688  * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
10689  * @param event packet
10690  * @return play_status
10691  * @note: btstack_type 1
10692  */
10693 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){
10694     return event[6];
10695 }
10696 
10697 /**
10698  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
10699  * @param event packet
10700  * @return avrcp_cid
10701  * @note: btstack_type 2
10702  */
10703 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){
10704     return little_endian_read_16(event, 3);
10705 }
10706 /**
10707  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
10708  * @param event packet
10709  * @return command_type
10710  * @note: btstack_type 1
10711  */
10712 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){
10713     return event[5];
10714 }
10715 
10716 /**
10717  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END
10718  * @param event packet
10719  * @return avrcp_cid
10720  * @note: btstack_type 2
10721  */
10722 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){
10723     return little_endian_read_16(event, 3);
10724 }
10725 /**
10726  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END
10727  * @param event packet
10728  * @return command_type
10729  * @note: btstack_type 1
10730  */
10731 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){
10732     return event[5];
10733 }
10734 
10735 /**
10736  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START
10737  * @param event packet
10738  * @return avrcp_cid
10739  * @note: btstack_type 2
10740  */
10741 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){
10742     return little_endian_read_16(event, 3);
10743 }
10744 /**
10745  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START
10746  * @param event packet
10747  * @return command_type
10748  * @note: btstack_type 1
10749  */
10750 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){
10751     return event[5];
10752 }
10753 
10754 /**
10755  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
10756  * @param event packet
10757  * @return avrcp_cid
10758  * @note: btstack_type 2
10759  */
10760 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
10761     return little_endian_read_16(event, 3);
10762 }
10763 /**
10764  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
10765  * @param event packet
10766  * @return command_type
10767  * @note: btstack_type 1
10768  */
10769 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){
10770     return event[5];
10771 }
10772 /**
10773  * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED
10774  * @param event packet
10775  * @return playback_position
10776  * @note: btstack_type 4
10777  */
10778 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){
10779     return little_endian_read_32(event, 6);
10780 }
10781 
10782 /**
10783  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
10784  * @param event packet
10785  * @return avrcp_cid
10786  * @note: btstack_type 2
10787  */
10788 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){
10789     return little_endian_read_16(event, 3);
10790 }
10791 /**
10792  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
10793  * @param event packet
10794  * @return command_type
10795  * @note: btstack_type 1
10796  */
10797 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){
10798     return event[5];
10799 }
10800 /**
10801  * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED
10802  * @param event packet
10803  * @return battery_status
10804  * @note: btstack_type 1
10805  */
10806 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){
10807     return event[6];
10808 }
10809 
10810 /**
10811  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
10812  * @param event packet
10813  * @return avrcp_cid
10814  * @note: btstack_type 2
10815  */
10816 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){
10817     return little_endian_read_16(event, 3);
10818 }
10819 /**
10820  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
10821  * @param event packet
10822  * @return command_type
10823  * @note: btstack_type 1
10824  */
10825 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){
10826     return event[5];
10827 }
10828 /**
10829  * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED
10830  * @param event packet
10831  * @return system_status
10832  * @note: btstack_type 1
10833  */
10834 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){
10835     return event[6];
10836 }
10837 
10838 /**
10839  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
10840  * @param event packet
10841  * @return avrcp_cid
10842  * @note: btstack_type 2
10843  */
10844 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){
10845     return little_endian_read_16(event, 3);
10846 }
10847 /**
10848  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
10849  * @param event packet
10850  * @return command_type
10851  * @note: btstack_type 1
10852  */
10853 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){
10854     return event[5];
10855 }
10856 
10857 /**
10858  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
10859  * @param event packet
10860  * @return avrcp_cid
10861  * @note: btstack_type 2
10862  */
10863 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){
10864     return little_endian_read_16(event, 3);
10865 }
10866 /**
10867  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
10868  * @param event packet
10869  * @return command_type
10870  * @note: btstack_type 1
10871  */
10872 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){
10873     return event[5];
10874 }
10875 
10876 /**
10877  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
10878  * @param event packet
10879  * @return avrcp_cid
10880  * @note: btstack_type 2
10881  */
10882 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){
10883     return little_endian_read_16(event, 3);
10884 }
10885 /**
10886  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
10887  * @param event packet
10888  * @return command_type
10889  * @note: btstack_type 1
10890  */
10891 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){
10892     return event[5];
10893 }
10894 /**
10895  * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED
10896  * @param event packet
10897  * @return uid_counter
10898  * @note: btstack_type 2
10899  */
10900 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){
10901     return little_endian_read_16(event, 6);
10902 }
10903 
10904 /**
10905  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
10906  * @param event packet
10907  * @return avrcp_cid
10908  * @note: btstack_type 2
10909  */
10910 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){
10911     return little_endian_read_16(event, 3);
10912 }
10913 /**
10914  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
10915  * @param event packet
10916  * @return command_type
10917  * @note: btstack_type 1
10918  */
10919 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){
10920     return event[5];
10921 }
10922 /**
10923  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
10924  * @param event packet
10925  * @return absolute_volume
10926  * @note: btstack_type 1
10927  */
10928 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){
10929     return event[6];
10930 }
10931 
10932 /**
10933  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
10934  * @param event packet
10935  * @return avrcp_cid
10936  * @note: btstack_type 2
10937  */
10938 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){
10939     return little_endian_read_16(event, 3);
10940 }
10941 /**
10942  * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
10943  * @param event packet
10944  * @return command_type
10945  * @note: btstack_type 1
10946  */
10947 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){
10948     return event[5];
10949 }
10950 /**
10951  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
10952  * @param event packet
10953  * @return absolute_volume
10954  * @note: btstack_type 1
10955  */
10956 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){
10957     return event[6];
10958 }
10959 
10960 /**
10961  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10962  * @param event packet
10963  * @return avrcp_cid
10964  * @note: btstack_type 2
10965  */
10966 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){
10967     return little_endian_read_16(event, 3);
10968 }
10969 /**
10970  * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10971  * @param event packet
10972  * @return status
10973  * @note: btstack_type 1
10974  */
10975 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){
10976     return event[5];
10977 }
10978 /**
10979  * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10980  * @param event packet
10981  * @return enabled
10982  * @note: btstack_type 1
10983  */
10984 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){
10985     return event[6];
10986 }
10987 /**
10988  * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE
10989  * @param event packet
10990  * @return event_id
10991  * @note: btstack_type 1
10992  */
10993 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){
10994     return event[7];
10995 }
10996 
10997 /**
10998  * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
10999  * @param event packet
11000  * @return status
11001  * @note: btstack_type 1
11002  */
11003 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){
11004     return event[3];
11005 }
11006 /**
11007  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
11008  * @param event packet
11009  * @return avrcp_cid
11010  * @note: btstack_type 2
11011  */
11012 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){
11013     return little_endian_read_16(event, 4);
11014 }
11015 /**
11016  * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
11017  * @param event packet
11018  * @param Pointer to storage for bd_addr
11019  * @note: btstack_type B
11020  */
11021 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11022     reverse_bytes(&event[6], bd_addr, 6);
11023 }
11024 /**
11025  * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
11026  * @param event packet
11027  * @return con_handle
11028  * @note: btstack_type 2
11029  */
11030 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){
11031     return little_endian_read_16(event, 12);
11032 }
11033 
11034 /**
11035  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED
11036  * @param event packet
11037  * @return avrcp_cid
11038  * @note: btstack_type 2
11039  */
11040 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){
11041     return little_endian_read_16(event, 3);
11042 }
11043 
11044 /**
11045  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
11046  * @param event packet
11047  * @return avrcp_cid
11048  * @note: btstack_type 2
11049  */
11050 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){
11051     return little_endian_read_16(event, 3);
11052 }
11053 /**
11054  * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
11055  * @param event packet
11056  * @return command_type
11057  * @note: btstack_type 1
11058  */
11059 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){
11060     return event[5];
11061 }
11062 /**
11063  * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
11064  * @param event packet
11065  * @return repeat_mode
11066  * @note: btstack_type 1
11067  */
11068 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){
11069     return event[6];
11070 }
11071 /**
11072  * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
11073  * @param event packet
11074  * @return shuffle_mode
11075  * @note: btstack_type 1
11076  */
11077 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){
11078     return event[7];
11079 }
11080 
11081 /**
11082  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS
11083  * @param event packet
11084  * @return avrcp_cid
11085  * @note: btstack_type 2
11086  */
11087 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){
11088     return little_endian_read_16(event, 3);
11089 }
11090 /**
11091  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS
11092  * @param event packet
11093  * @return command_type
11094  * @note: btstack_type 1
11095  */
11096 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){
11097     return event[5];
11098 }
11099 /**
11100  * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS
11101  * @param event packet
11102  * @return song_length
11103  * @note: btstack_type 4
11104  */
11105 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){
11106     return little_endian_read_32(event, 6);
11107 }
11108 /**
11109  * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS
11110  * @param event packet
11111  * @return song_position
11112  * @note: btstack_type 4
11113  */
11114 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){
11115     return little_endian_read_32(event, 10);
11116 }
11117 /**
11118  * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS
11119  * @param event packet
11120  * @return play_status
11121  * @note: btstack_type 1
11122  */
11123 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){
11124     return event[14];
11125 }
11126 
11127 /**
11128  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START
11129  * @param event packet
11130  * @return avrcp_cid
11131  * @note: btstack_type 2
11132  */
11133 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){
11134     return little_endian_read_16(event, 3);
11135 }
11136 /**
11137  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START
11138  * @param event packet
11139  * @return command_type
11140  * @note: btstack_type 1
11141  */
11142 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){
11143     return event[5];
11144 }
11145 /**
11146  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START
11147  * @param event packet
11148  * @return operation_id
11149  * @note: btstack_type 1
11150  */
11151 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){
11152     return event[6];
11153 }
11154 
11155 /**
11156  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE
11157  * @param event packet
11158  * @return avrcp_cid
11159  * @note: btstack_type 2
11160  */
11161 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){
11162     return little_endian_read_16(event, 3);
11163 }
11164 /**
11165  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE
11166  * @param event packet
11167  * @return command_type
11168  * @note: btstack_type 1
11169  */
11170 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){
11171     return event[5];
11172 }
11173 /**
11174  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE
11175  * @param event packet
11176  * @return operation_id
11177  * @note: btstack_type 1
11178  */
11179 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){
11180     return event[6];
11181 }
11182 
11183 /**
11184  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
11185  * @param event packet
11186  * @return avrcp_cid
11187  * @note: btstack_type 2
11188  */
11189 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){
11190     return little_endian_read_16(event, 3);
11191 }
11192 /**
11193  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
11194  * @param event packet
11195  * @return command_type
11196  * @note: btstack_type 1
11197  */
11198 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){
11199     return event[5];
11200 }
11201 
11202 /**
11203  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY
11204  * @param event packet
11205  * @return avrcp_cid
11206  * @note: btstack_type 2
11207  */
11208 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){
11209     return little_endian_read_16(event, 3);
11210 }
11211 
11212 /**
11213  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION
11214  * @param event packet
11215  * @return avrcp_cid
11216  * @note: btstack_type 2
11217  */
11218 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){
11219     return little_endian_read_16(event, 3);
11220 }
11221 /**
11222  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION
11223  * @param event packet
11224  * @return operation_id
11225  * @note: btstack_type 1
11226  */
11227 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){
11228     return event[5];
11229 }
11230 /**
11231  * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION
11232  * @param event packet
11233  * @return button_pressed
11234  * @note: btstack_type 1
11235  */
11236 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){
11237     return event[6];
11238 }
11239 /**
11240  * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION
11241  * @param event packet
11242  * @return operands_length
11243  * @note: btstack_type 1
11244  */
11245 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){
11246     return event[7];
11247 }
11248 /**
11249  * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION
11250  * @param event packet
11251  * @return operand
11252  * @note: btstack_type 1
11253  */
11254 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){
11255     return event[8];
11256 }
11257 
11258 /**
11259  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
11260  * @param event packet
11261  * @return avrcp_cid
11262  * @note: btstack_type 2
11263  */
11264 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){
11265     return little_endian_read_16(event, 3);
11266 }
11267 /**
11268  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
11269  * @param event packet
11270  * @return command_type
11271  * @note: btstack_type 1
11272  */
11273 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){
11274     return event[5];
11275 }
11276 /**
11277  * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
11278  * @param event packet
11279  * @return track
11280  * @note: btstack_type 1
11281  */
11282 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){
11283     return event[6];
11284 }
11285 
11286 /**
11287  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
11288  * @param event packet
11289  * @return avrcp_cid
11290  * @note: btstack_type 2
11291  */
11292 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){
11293     return little_endian_read_16(event, 3);
11294 }
11295 /**
11296  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
11297  * @param event packet
11298  * @return command_type
11299  * @note: btstack_type 1
11300  */
11301 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){
11302     return event[5];
11303 }
11304 /**
11305  * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
11306  * @param event packet
11307  * @return total_tracks
11308  * @note: btstack_type 1
11309  */
11310 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){
11311     return event[6];
11312 }
11313 
11314 /**
11315  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
11316  * @param event packet
11317  * @return avrcp_cid
11318  * @note: btstack_type 2
11319  */
11320 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){
11321     return little_endian_read_16(event, 3);
11322 }
11323 /**
11324  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
11325  * @param event packet
11326  * @return command_type
11327  * @note: btstack_type 1
11328  */
11329 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){
11330     return event[5];
11331 }
11332 /**
11333  * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
11334  * @param event packet
11335  * @return song_length
11336  * @note: btstack_type 4
11337  */
11338 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){
11339     return little_endian_read_32(event, 6);
11340 }
11341 
11342 /**
11343  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
11344  * @param event packet
11345  * @return avrcp_cid
11346  * @note: btstack_type 2
11347  */
11348 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){
11349     return little_endian_read_16(event, 3);
11350 }
11351 /**
11352  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
11353  * @param event packet
11354  * @return command_type
11355  * @note: btstack_type 1
11356  */
11357 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){
11358     return event[5];
11359 }
11360 /**
11361  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
11362  * @param event packet
11363  * @return value_len
11364  * @note: btstack_type J
11365  */
11366 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){
11367     return event[6];
11368 }
11369 /**
11370  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
11371  * @param event packet
11372  * @return value
11373  * @note: btstack_type V
11374  */
11375 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){
11376     return &event[7];
11377 }
11378 
11379 /**
11380  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
11381  * @param event packet
11382  * @return avrcp_cid
11383  * @note: btstack_type 2
11384  */
11385 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){
11386     return little_endian_read_16(event, 3);
11387 }
11388 /**
11389  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
11390  * @param event packet
11391  * @return command_type
11392  * @note: btstack_type 1
11393  */
11394 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){
11395     return event[5];
11396 }
11397 /**
11398  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
11399  * @param event packet
11400  * @return value_len
11401  * @note: btstack_type J
11402  */
11403 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){
11404     return event[6];
11405 }
11406 /**
11407  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
11408  * @param event packet
11409  * @return value
11410  * @note: btstack_type V
11411  */
11412 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){
11413     return &event[7];
11414 }
11415 
11416 /**
11417  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
11418  * @param event packet
11419  * @return avrcp_cid
11420  * @note: btstack_type 2
11421  */
11422 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){
11423     return little_endian_read_16(event, 3);
11424 }
11425 /**
11426  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
11427  * @param event packet
11428  * @return command_type
11429  * @note: btstack_type 1
11430  */
11431 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){
11432     return event[5];
11433 }
11434 /**
11435  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
11436  * @param event packet
11437  * @return value_len
11438  * @note: btstack_type J
11439  */
11440 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){
11441     return event[6];
11442 }
11443 /**
11444  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
11445  * @param event packet
11446  * @return value
11447  * @note: btstack_type V
11448  */
11449 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){
11450     return &event[7];
11451 }
11452 
11453 /**
11454  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
11455  * @param event packet
11456  * @return avrcp_cid
11457  * @note: btstack_type 2
11458  */
11459 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){
11460     return little_endian_read_16(event, 3);
11461 }
11462 /**
11463  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
11464  * @param event packet
11465  * @return command_type
11466  * @note: btstack_type 1
11467  */
11468 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){
11469     return event[5];
11470 }
11471 /**
11472  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
11473  * @param event packet
11474  * @return value_len
11475  * @note: btstack_type J
11476  */
11477 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){
11478     return event[6];
11479 }
11480 /**
11481  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
11482  * @param event packet
11483  * @return value
11484  * @note: btstack_type V
11485  */
11486 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){
11487     return &event[7];
11488 }
11489 
11490 /**
11491  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO
11492  * @param event packet
11493  * @return avrcp_cid
11494  * @note: btstack_type 2
11495  */
11496 static inline uint16_t avrcp_subevent_now_playing_cover_art_info_get_avrcp_cid(const uint8_t * event){
11497     return little_endian_read_16(event, 3);
11498 }
11499 /**
11500  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO
11501  * @param event packet
11502  * @return command_type
11503  * @note: btstack_type 1
11504  */
11505 static inline uint8_t avrcp_subevent_now_playing_cover_art_info_get_command_type(const uint8_t * event){
11506     return event[5];
11507 }
11508 /**
11509  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO
11510  * @param event packet
11511  * @return value_len
11512  * @note: btstack_type J
11513  */
11514 static inline uint8_t avrcp_subevent_now_playing_cover_art_info_get_value_len(const uint8_t * event){
11515     return event[6];
11516 }
11517 /**
11518  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO
11519  * @param event packet
11520  * @return value
11521  * @note: btstack_type V
11522  */
11523 static inline const uint8_t * avrcp_subevent_now_playing_cover_art_info_get_value(const uint8_t * event){
11524     return &event[7];
11525 }
11526 
11527 /**
11528  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
11529  * @param event packet
11530  * @return avrcp_cid
11531  * @note: btstack_type 2
11532  */
11533 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){
11534     return little_endian_read_16(event, 3);
11535 }
11536 /**
11537  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
11538  * @param event packet
11539  * @return command_type
11540  * @note: btstack_type 1
11541  */
11542 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){
11543     return event[5];
11544 }
11545 /**
11546  * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
11547  * @param event packet
11548  * @return status
11549  * @note: btstack_type 1
11550  */
11551 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){
11552     return event[6];
11553 }
11554 
11555 /**
11556  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
11557  * @param event packet
11558  * @return avrcp_cid
11559  * @note: btstack_type 2
11560  */
11561 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
11562     return little_endian_read_16(event, 3);
11563 }
11564 /**
11565  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
11566  * @param event packet
11567  * @return command_type
11568  * @note: btstack_type 1
11569  */
11570 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){
11571     return event[5];
11572 }
11573 /**
11574  * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
11575  * @param event packet
11576  * @return playback_position_ms
11577  * @note: btstack_type 4
11578  */
11579 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){
11580     return little_endian_read_32(event, 6);
11581 }
11582 
11583 /**
11584  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
11585  * @param event packet
11586  * @return avrcp_cid
11587  * @note: btstack_type 2
11588  */
11589 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){
11590     return little_endian_read_16(event, 3);
11591 }
11592 /**
11593  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
11594  * @param event packet
11595  * @return command_type
11596  * @note: btstack_type 1
11597  */
11598 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){
11599     return event[5];
11600 }
11601 /**
11602  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
11603  * @param event packet
11604  * @return status
11605  * @note: btstack_type 1
11606  */
11607 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){
11608     return event[6];
11609 }
11610 /**
11611  * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID
11612  * @param event packet
11613  * @return event_id
11614  * @note: btstack_type 1
11615  */
11616 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){
11617     return event[7];
11618 }
11619 
11620 /**
11621  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
11622  * @param event packet
11623  * @return avrcp_cid
11624  * @note: btstack_type 2
11625  */
11626 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){
11627     return little_endian_read_16(event, 3);
11628 }
11629 /**
11630  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
11631  * @param event packet
11632  * @return command_type
11633  * @note: btstack_type 1
11634  */
11635 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){
11636     return event[5];
11637 }
11638 /**
11639  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE
11640  * @param event packet
11641  * @return status
11642  * @note: btstack_type 1
11643  */
11644 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){
11645     return event[6];
11646 }
11647 
11648 /**
11649  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
11650  * @param event packet
11651  * @return avrcp_cid
11652  * @note: btstack_type 2
11653  */
11654 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){
11655     return little_endian_read_16(event, 3);
11656 }
11657 /**
11658  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
11659  * @param event packet
11660  * @return command_type
11661  * @note: btstack_type 1
11662  */
11663 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){
11664     return event[5];
11665 }
11666 /**
11667  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
11668  * @param event packet
11669  * @return status
11670  * @note: btstack_type 1
11671  */
11672 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){
11673     return event[6];
11674 }
11675 /**
11676  * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID
11677  * @param event packet
11678  * @return company_id
11679  * @note: btstack_type 3
11680  */
11681 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){
11682     return little_endian_read_24(event, 7);
11683 }
11684 
11685 /**
11686  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
11687  * @param event packet
11688  * @return avrcp_cid
11689  * @note: btstack_type 2
11690  */
11691 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){
11692     return little_endian_read_16(event, 3);
11693 }
11694 /**
11695  * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
11696  * @param event packet
11697  * @return command_type
11698  * @note: btstack_type 1
11699  */
11700 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){
11701     return event[5];
11702 }
11703 /**
11704  * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE
11705  * @param event packet
11706  * @return status
11707  * @note: btstack_type 1
11708  */
11709 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){
11710     return event[6];
11711 }
11712 
11713 /**
11714  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
11715  * @param event packet
11716  * @return avrcp_cid
11717  * @note: btstack_type 2
11718  */
11719 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){
11720     return little_endian_read_16(event, 3);
11721 }
11722 /**
11723  * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
11724  * @param event packet
11725  * @return command_type
11726  * @note: btstack_type 1
11727  */
11728 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){
11729     return event[5];
11730 }
11731 /**
11732  * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
11733  * @param event packet
11734  * @return pdu_id
11735  * @note: btstack_type 1
11736  */
11737 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){
11738     return event[6];
11739 }
11740 /**
11741  * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
11742  * @param event packet
11743  * @return params_len
11744  * @note: btstack_type L
11745  */
11746 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){
11747     return little_endian_read_16(event, 7);
11748 }
11749 /**
11750  * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE
11751  * @param event packet
11752  * @return params
11753  * @note: btstack_type V
11754  */
11755 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){
11756     return &event[9];
11757 }
11758 
11759 /**
11760  * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
11761  * @param event packet
11762  * @param Pointer to storage for bd_addr
11763  * @note: btstack_type B
11764  */
11765 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11766     reverse_bytes(&event[3], bd_addr, 6);
11767 }
11768 /**
11769  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
11770  * @param event packet
11771  * @return browsing_cid
11772  * @note: btstack_type 2
11773  */
11774 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){
11775     return little_endian_read_16(event, 9);
11776 }
11777 
11778 /**
11779  * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
11780  * @param event packet
11781  * @return status
11782  * @note: btstack_type 1
11783  */
11784 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){
11785     return event[3];
11786 }
11787 /**
11788  * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
11789  * @param event packet
11790  * @param Pointer to storage for bd_addr
11791  * @note: btstack_type B
11792  */
11793 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11794     reverse_bytes(&event[4], bd_addr, 6);
11795 }
11796 /**
11797  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
11798  * @param event packet
11799  * @return browsing_cid
11800  * @note: btstack_type 2
11801  */
11802 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){
11803     return little_endian_read_16(event, 10);
11804 }
11805 
11806 /**
11807  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED
11808  * @param event packet
11809  * @return browsing_cid
11810  * @note: btstack_type 2
11811  */
11812 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){
11813     return little_endian_read_16(event, 3);
11814 }
11815 
11816 /**
11817  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
11818  * @param event packet
11819  * @return browsing_cid
11820  * @note: btstack_type 2
11821  */
11822 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){
11823     return little_endian_read_16(event, 3);
11824 }
11825 /**
11826  * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE
11827  * @param event packet
11828  * @return uid_counter
11829  * @note: btstack_type 2
11830  */
11831 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){
11832     return little_endian_read_16(event, 5);
11833 }
11834 /**
11835  * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE
11836  * @param event packet
11837  * @return browsing_status
11838  * @note: btstack_type 1
11839  */
11840 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){
11841     return event[7];
11842 }
11843 /**
11844  * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE
11845  * @param event packet
11846  * @return bluetooth_status
11847  * @note: btstack_type 1
11848  */
11849 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){
11850     return event[8];
11851 }
11852 
11853 /**
11854  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
11855  * @param event packet
11856  * @return browsing_cid
11857  * @note: btstack_type 2
11858  */
11859 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){
11860     return little_endian_read_16(event, 3);
11861 }
11862 /**
11863  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
11864  * @param event packet
11865  * @return scope
11866  * @note: btstack_type 1
11867  */
11868 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
11869     return event[5];
11870 }
11871 /**
11872  * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
11873  * @param event packet
11874  * @return attr_bitmap
11875  * @note: btstack_type 4
11876  */
11877 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){
11878     return little_endian_read_32(event, 6);
11879 }
11880 
11881 /**
11882  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
11883  * @param event packet
11884  * @return browsing_cid
11885  * @note: btstack_type 2
11886  */
11887 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){
11888     return little_endian_read_16(event, 3);
11889 }
11890 /**
11891  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
11892  * @param event packet
11893  * @return scope
11894  * @note: btstack_type 1
11895  */
11896 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){
11897     return event[5];
11898 }
11899 
11900 /**
11901  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
11902  * @param event packet
11903  * @return browsing_cid
11904  * @note: btstack_type 2
11905  */
11906 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){
11907     return little_endian_read_16(event, 3);
11908 }
11909 /**
11910  * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
11911  * @param event packet
11912  * @return player_id
11913  * @note: btstack_type 2
11914  */
11915 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){
11916     return little_endian_read_16(event, 5);
11917 }
11918 
11919 /**
11920  * @brief Get field status from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED
11921  * @param event packet
11922  * @return status
11923  * @note: btstack_type 1
11924  */
11925 static inline uint8_t avrcp_subevent_cover_art_connection_established_get_status(const uint8_t * event){
11926     return event[3];
11927 }
11928 /**
11929  * @brief Get field bd_addr from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED
11930  * @param event packet
11931  * @param Pointer to storage for bd_addr
11932  * @note: btstack_type B
11933  */
11934 static inline void avrcp_subevent_cover_art_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
11935     reverse_bytes(&event[4], bd_addr, 6);
11936 }
11937 /**
11938  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED
11939  * @param event packet
11940  * @return avrcp_cid
11941  * @note: btstack_type 2
11942  */
11943 static inline uint16_t avrcp_subevent_cover_art_connection_established_get_avrcp_cid(const uint8_t * event){
11944     return little_endian_read_16(event, 10);
11945 }
11946 /**
11947  * @brief Get field cover_art_cid from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED
11948  * @param event packet
11949  * @return cover_art_cid
11950  * @note: btstack_type 2
11951  */
11952 static inline uint16_t avrcp_subevent_cover_art_connection_established_get_cover_art_cid(const uint8_t * event){
11953     return little_endian_read_16(event, 12);
11954 }
11955 
11956 /**
11957  * @brief Get field cover_art_cid from event AVRCP_SUBEVENT_COVER_ART_OPERATION_COMPLETE
11958  * @param event packet
11959  * @return cover_art_cid
11960  * @note: btstack_type 2
11961  */
11962 static inline uint16_t avrcp_subevent_cover_art_operation_complete_get_cover_art_cid(const uint8_t * event){
11963     return little_endian_read_16(event, 3);
11964 }
11965 /**
11966  * @brief Get field status from event AVRCP_SUBEVENT_COVER_ART_OPERATION_COMPLETE
11967  * @param event packet
11968  * @return status
11969  * @note: btstack_type 1
11970  */
11971 static inline uint8_t avrcp_subevent_cover_art_operation_complete_get_status(const uint8_t * event){
11972     return event[5];
11973 }
11974 
11975 /**
11976  * @brief Get field cover_art_cid from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_RELEASED
11977  * @param event packet
11978  * @return cover_art_cid
11979  * @note: btstack_type 2
11980  */
11981 static inline uint16_t avrcp_subevent_cover_art_connection_released_get_cover_art_cid(const uint8_t * event){
11982     return little_endian_read_16(event, 3);
11983 }
11984 
11985 /**
11986  * @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION
11987  * @param event packet
11988  * @return goep_cid
11989  * @note: btstack_type 2
11990  */
11991 static inline uint16_t goep_subevent_incoming_connection_get_goep_cid(const uint8_t * event){
11992     return little_endian_read_16(event, 3);
11993 }
11994 /**
11995  * @brief Get field address from event GOEP_SUBEVENT_INCOMING_CONNECTION
11996  * @param event packet
11997  * @param Pointer to storage for address
11998  * @note: btstack_type B
11999  */
12000 static inline void goep_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
12001     reverse_bytes(&event[5], address, 6);
12002 }
12003 /**
12004  * @brief Get field handle from event GOEP_SUBEVENT_INCOMING_CONNECTION
12005  * @param event packet
12006  * @return handle
12007  * @note: btstack_type H
12008  */
12009 static inline hci_con_handle_t goep_subevent_incoming_connection_get_handle(const uint8_t * event){
12010     return little_endian_read_16(event, 11);
12011 }
12012 
12013 /**
12014  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED
12015  * @param event packet
12016  * @return goep_cid
12017  * @note: btstack_type 2
12018  */
12019 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){
12020     return little_endian_read_16(event, 3);
12021 }
12022 /**
12023  * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED
12024  * @param event packet
12025  * @return status
12026  * @note: btstack_type 1
12027  */
12028 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){
12029     return event[5];
12030 }
12031 /**
12032  * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED
12033  * @param event packet
12034  * @param Pointer to storage for bd_addr
12035  * @note: btstack_type B
12036  */
12037 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
12038     reverse_bytes(&event[6], bd_addr, 6);
12039 }
12040 /**
12041  * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED
12042  * @param event packet
12043  * @return con_handle
12044  * @note: btstack_type H
12045  */
12046 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){
12047     return little_endian_read_16(event, 12);
12048 }
12049 /**
12050  * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED
12051  * @param event packet
12052  * @return incoming
12053  * @note: btstack_type 1
12054  */
12055 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){
12056     return event[14];
12057 }
12058 
12059 /**
12060  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED
12061  * @param event packet
12062  * @return goep_cid
12063  * @note: btstack_type 2
12064  */
12065 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){
12066     return little_endian_read_16(event, 3);
12067 }
12068 
12069 /**
12070  * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW
12071  * @param event packet
12072  * @return goep_cid
12073  * @note: btstack_type 2
12074  */
12075 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){
12076     return little_endian_read_16(event, 3);
12077 }
12078 
12079 /**
12080  * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED
12081  * @param event packet
12082  * @return pbap_cid
12083  * @note: btstack_type 2
12084  */
12085 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){
12086     return little_endian_read_16(event, 3);
12087 }
12088 /**
12089  * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED
12090  * @param event packet
12091  * @return status
12092  * @note: btstack_type 1
12093  */
12094 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){
12095     return event[5];
12096 }
12097 /**
12098  * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED
12099  * @param event packet
12100  * @param Pointer to storage for bd_addr
12101  * @note: btstack_type B
12102  */
12103 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
12104     reverse_bytes(&event[6], bd_addr, 6);
12105 }
12106 /**
12107  * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED
12108  * @param event packet
12109  * @return con_handle
12110  * @note: btstack_type H
12111  */
12112 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){
12113     return little_endian_read_16(event, 12);
12114 }
12115 /**
12116  * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED
12117  * @param event packet
12118  * @return incoming
12119  * @note: btstack_type 1
12120  */
12121 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){
12122     return event[14];
12123 }
12124 
12125 /**
12126  * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED
12127  * @param event packet
12128  * @return goep_cid
12129  * @note: btstack_type 2
12130  */
12131 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){
12132     return little_endian_read_16(event, 3);
12133 }
12134 
12135 /**
12136  * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED
12137  * @param event packet
12138  * @return goep_cid
12139  * @note: btstack_type 2
12140  */
12141 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){
12142     return little_endian_read_16(event, 3);
12143 }
12144 /**
12145  * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED
12146  * @param event packet
12147  * @return status
12148  * @note: btstack_type 1
12149  */
12150 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){
12151     return event[5];
12152 }
12153 
12154 /**
12155  * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE
12156  * @param event packet
12157  * @return goep_cid
12158  * @note: btstack_type 2
12159  */
12160 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){
12161     return little_endian_read_16(event, 3);
12162 }
12163 /**
12164  * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE
12165  * @param event packet
12166  * @return status
12167  * @note: btstack_type 1
12168  */
12169 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){
12170     return event[5];
12171 }
12172 /**
12173  * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
12174  * @param event packet
12175  * @return phonebook_size
12176  * @note: btstack_type 2
12177  */
12178 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){
12179     return little_endian_read_16(event, 6);
12180 }
12181 
12182 /**
12183  * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
12184  * @param event packet
12185  * @return goep_cid
12186  * @note: btstack_type 2
12187  */
12188 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){
12189     return little_endian_read_16(event, 3);
12190 }
12191 /**
12192  * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
12193  * @param event packet
12194  * @return user_id_required
12195  * @note: btstack_type 1
12196  */
12197 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){
12198     return event[5];
12199 }
12200 /**
12201  * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
12202  * @param event packet
12203  * @return full_access
12204  * @note: btstack_type 1
12205  */
12206 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){
12207     return event[6];
12208 }
12209 
12210 /**
12211  * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT
12212  * @param event packet
12213  * @return goep_cid
12214  * @note: btstack_type 2
12215  */
12216 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){
12217     return little_endian_read_16(event, 3);
12218 }
12219 /**
12220  * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT
12221  * @param event packet
12222  * @return name_len
12223  * @note: btstack_type J
12224  */
12225 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){
12226     return event[5];
12227 }
12228 /**
12229  * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT
12230  * @param event packet
12231  * @return name
12232  * @note: btstack_type V
12233  */
12234 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){
12235     return &event[6];
12236 }
12237 /**
12238  * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT
12239  * @param event packet
12240  * @return handle_len
12241  * @note: btstack_type J
12242  */
12243 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){
12244     return event[6u + event[5]];
12245 }
12246 /**
12247  * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT
12248  * @param event packet
12249  * @return handle
12250  * @note: btstack_type V
12251  */
12252 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){
12253     return &event[6u + event[5] + 1u];
12254 }
12255 
12256 /**
12257  * @brief Get field goep_cid from event PBAP_SUBEVENT_RESET_MISSED_CALLS
12258  * @param event packet
12259  * @return goep_cid
12260  * @note: btstack_type 2
12261  */
12262 static inline uint16_t pbap_subevent_reset_missed_calls_get_goep_cid(const uint8_t * event){
12263     return little_endian_read_16(event, 3);
12264 }
12265 /**
12266  * @brief Get field phonebook from event PBAP_SUBEVENT_RESET_MISSED_CALLS
12267  * @param event packet
12268  * @return phonebook
12269  * @note: btstack_type 1
12270  */
12271 static inline uint8_t pbap_subevent_reset_missed_calls_get_phonebook(const uint8_t * event){
12272     return event[5];
12273 }
12274 
12275 /**
12276  * @brief Get field goep_cid from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
12277  * @param event packet
12278  * @return goep_cid
12279  * @note: btstack_type 2
12280  */
12281 static inline uint16_t pbap_subevent_query_phonebook_size_get_goep_cid(const uint8_t * event){
12282     return little_endian_read_16(event, 3);
12283 }
12284 /**
12285  * @brief Get field vcard_selector from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
12286  * @param event packet
12287  * @return vcard_selector
12288  * @note: btstack_type 4
12289  */
12290 static inline uint32_t pbap_subevent_query_phonebook_size_get_vcard_selector(const uint8_t * event){
12291     return little_endian_read_32(event, 5);
12292 }
12293 /**
12294  * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
12295  * @param event packet
12296  * @return vcard_selector_operator
12297  * @note: btstack_type 1
12298  */
12299 static inline uint8_t pbap_subevent_query_phonebook_size_get_vcard_selector_operator(const uint8_t * event){
12300     return event[9];
12301 }
12302 /**
12303  * @brief Get field phonebook from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE
12304  * @param event packet
12305  * @return phonebook
12306  * @note: btstack_type 1
12307  */
12308 static inline uint8_t pbap_subevent_query_phonebook_size_get_phonebook(const uint8_t * event){
12309     return event[10];
12310 }
12311 
12312 /**
12313  * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_PHONEBOOK
12314  * @param event packet
12315  * @return goep_cid
12316  * @note: btstack_type 2
12317  */
12318 static inline uint16_t pbap_subevent_pull_phonebook_get_goep_cid(const uint8_t * event){
12319     return little_endian_read_16(event, 3);
12320 }
12321 /**
12322  * @brief Get field continuation from event PBAP_SUBEVENT_PULL_PHONEBOOK
12323  * @param event packet
12324  * @return continuation
12325  * @note: btstack_type 4
12326  */
12327 static inline uint32_t pbap_subevent_pull_phonebook_get_continuation(const uint8_t * event){
12328     return little_endian_read_32(event, 5);
12329 }
12330 /**
12331  * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK
12332  * @param event packet
12333  * @return property_selector
12334  * @note: btstack_type 4
12335  */
12336 static inline uint32_t pbap_subevent_pull_phonebook_get_property_selector(const uint8_t * event){
12337     return little_endian_read_32(event, 9);
12338 }
12339 /**
12340  * @brief Get field format from event PBAP_SUBEVENT_PULL_PHONEBOOK
12341  * @param event packet
12342  * @return format
12343  * @note: btstack_type 1
12344  */
12345 static inline uint8_t pbap_subevent_pull_phonebook_get_format(const uint8_t * event){
12346     return event[13];
12347 }
12348 /**
12349  * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_PHONEBOOK
12350  * @param event packet
12351  * @return max_list_count
12352  * @note: btstack_type 2
12353  */
12354 static inline uint16_t pbap_subevent_pull_phonebook_get_max_list_count(const uint8_t * event){
12355     return little_endian_read_16(event, 14);
12356 }
12357 /**
12358  * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_PHONEBOOK
12359  * @param event packet
12360  * @return list_start_offset
12361  * @note: btstack_type 2
12362  */
12363 static inline uint16_t pbap_subevent_pull_phonebook_get_list_start_offset(const uint8_t * event){
12364     return little_endian_read_16(event, 16);
12365 }
12366 /**
12367  * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK
12368  * @param event packet
12369  * @return vcard_selector
12370  * @note: btstack_type 4
12371  */
12372 static inline uint32_t pbap_subevent_pull_phonebook_get_vcard_selector(const uint8_t * event){
12373     return little_endian_read_32(event, 18);
12374 }
12375 /**
12376  * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_PHONEBOOK
12377  * @param event packet
12378  * @return vcard_selector_operator
12379  * @note: btstack_type 1
12380  */
12381 static inline uint8_t pbap_subevent_pull_phonebook_get_vcard_selector_operator(const uint8_t * event){
12382     return event[22];
12383 }
12384 /**
12385  * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_PHONEBOOK
12386  * @param event packet
12387  * @return phonebook
12388  * @note: btstack_type 1
12389  */
12390 static inline uint8_t pbap_subevent_pull_phonebook_get_phonebook(const uint8_t * event){
12391     return event[23];
12392 }
12393 
12394 /**
12395  * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12396  * @param event packet
12397  * @return goep_cid
12398  * @note: btstack_type 2
12399  */
12400 static inline uint16_t pbap_subevent_pull_vcard_listing_get_goep_cid(const uint8_t * event){
12401     return little_endian_read_16(event, 3);
12402 }
12403 /**
12404  * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12405  * @param event packet
12406  * @return continuation
12407  * @note: btstack_type 4
12408  */
12409 static inline uint32_t pbap_subevent_pull_vcard_listing_get_continuation(const uint8_t * event){
12410     return little_endian_read_32(event, 5);
12411 }
12412 /**
12413  * @brief Get field order from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12414  * @param event packet
12415  * @return order
12416  * @note: btstack_type 1
12417  */
12418 static inline uint8_t pbap_subevent_pull_vcard_listing_get_order(const uint8_t * event){
12419     return event[9];
12420 }
12421 /**
12422  * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12423  * @param event packet
12424  * @return max_list_count
12425  * @note: btstack_type 2
12426  */
12427 static inline uint16_t pbap_subevent_pull_vcard_listing_get_max_list_count(const uint8_t * event){
12428     return little_endian_read_16(event, 10);
12429 }
12430 /**
12431  * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12432  * @param event packet
12433  * @return list_start_offset
12434  * @note: btstack_type 2
12435  */
12436 static inline uint16_t pbap_subevent_pull_vcard_listing_get_list_start_offset(const uint8_t * event){
12437     return little_endian_read_16(event, 12);
12438 }
12439 /**
12440  * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12441  * @param event packet
12442  * @return vcard_selector
12443  * @note: btstack_type 4
12444  */
12445 static inline uint32_t pbap_subevent_pull_vcard_listing_get_vcard_selector(const uint8_t * event){
12446     return little_endian_read_32(event, 14);
12447 }
12448 /**
12449  * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12450  * @param event packet
12451  * @return vcard_selector_operator
12452  * @note: btstack_type 1
12453  */
12454 static inline uint8_t pbap_subevent_pull_vcard_listing_get_vcard_selector_operator(const uint8_t * event){
12455     return event[18];
12456 }
12457 /**
12458  * @brief Get field search_property from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12459  * @param event packet
12460  * @return search_property
12461  * @note: btstack_type 1
12462  */
12463 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_property(const uint8_t * event){
12464     return event[19];
12465 }
12466 /**
12467  * @brief Get field search_value_len from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12468  * @param event packet
12469  * @return search_value_len
12470  * @note: btstack_type J
12471  */
12472 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_value_len(const uint8_t * event){
12473     return event[20];
12474 }
12475 /**
12476  * @brief Get field search_value from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12477  * @param event packet
12478  * @return search_value
12479  * @note: btstack_type V
12480  */
12481 static inline const uint8_t * pbap_subevent_pull_vcard_listing_get_search_value(const uint8_t * event){
12482     return &event[21];
12483 }
12484 /**
12485  * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_LISTING
12486  * @param event packet
12487  * @return phonebook
12488  * @note: btstack_type 1
12489  */
12490 static inline uint8_t pbap_subevent_pull_vcard_listing_get_phonebook(const uint8_t * event){
12491     return event[21u + event[20]];
12492 }
12493 
12494 /**
12495  * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
12496  * @param event packet
12497  * @return goep_cid
12498  * @note: btstack_type 2
12499  */
12500 static inline uint16_t pbap_subevent_pull_vcard_entry_get_goep_cid(const uint8_t * event){
12501     return little_endian_read_16(event, 3);
12502 }
12503 /**
12504  * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
12505  * @param event packet
12506  * @return continuation
12507  * @note: btstack_type 4
12508  */
12509 static inline uint32_t pbap_subevent_pull_vcard_entry_get_continuation(const uint8_t * event){
12510     return little_endian_read_32(event, 5);
12511 }
12512 /**
12513  * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
12514  * @param event packet
12515  * @return property_selector
12516  * @note: btstack_type 4
12517  */
12518 static inline uint32_t pbap_subevent_pull_vcard_entry_get_property_selector(const uint8_t * event){
12519     return little_endian_read_32(event, 9);
12520 }
12521 /**
12522  * @brief Get field format from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
12523  * @param event packet
12524  * @return format
12525  * @note: btstack_type 1
12526  */
12527 static inline uint8_t pbap_subevent_pull_vcard_entry_get_format(const uint8_t * event){
12528     return event[13];
12529 }
12530 /**
12531  * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
12532  * @param event packet
12533  * @return phonebook
12534  * @note: btstack_type 1
12535  */
12536 static inline uint8_t pbap_subevent_pull_vcard_entry_get_phonebook(const uint8_t * event){
12537     return event[14];
12538 }
12539 /**
12540  * @brief Get field name from event PBAP_SUBEVENT_PULL_VCARD_ENTRY
12541  * @param event packet
12542  * @return name
12543  * @note: btstack_type T
12544  */
12545 static inline const char * pbap_subevent_pull_vcard_entry_get_name(const uint8_t * event){
12546     return (const char *) &event[15];
12547 }
12548 
12549 /**
12550  * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION
12551  * @param event packet
12552  * @return hid_cid
12553  * @note: btstack_type 2
12554  */
12555 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){
12556     return little_endian_read_16(event, 3);
12557 }
12558 /**
12559  * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION
12560  * @param event packet
12561  * @param Pointer to storage for address
12562  * @note: btstack_type B
12563  */
12564 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
12565     reverse_bytes(&event[5], address, 6);
12566 }
12567 /**
12568  * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION
12569  * @param event packet
12570  * @return handle
12571  * @note: btstack_type H
12572  */
12573 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){
12574     return little_endian_read_16(event, 11);
12575 }
12576 
12577 /**
12578  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED
12579  * @param event packet
12580  * @return hid_cid
12581  * @note: btstack_type 2
12582  */
12583 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){
12584     return little_endian_read_16(event, 3);
12585 }
12586 /**
12587  * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED
12588  * @param event packet
12589  * @return status
12590  * @note: btstack_type 1
12591  */
12592 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){
12593     return event[5];
12594 }
12595 /**
12596  * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED
12597  * @param event packet
12598  * @param Pointer to storage for bd_addr
12599  * @note: btstack_type B
12600  */
12601 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
12602     reverse_bytes(&event[6], bd_addr, 6);
12603 }
12604 /**
12605  * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED
12606  * @param event packet
12607  * @return con_handle
12608  * @note: btstack_type H
12609  */
12610 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){
12611     return little_endian_read_16(event, 12);
12612 }
12613 /**
12614  * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED
12615  * @param event packet
12616  * @return incoming
12617  * @note: btstack_type 1
12618  */
12619 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){
12620     return event[14];
12621 }
12622 
12623 /**
12624  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED
12625  * @param event packet
12626  * @return hid_cid
12627  * @note: btstack_type 2
12628  */
12629 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){
12630     return little_endian_read_16(event, 3);
12631 }
12632 
12633 /**
12634  * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW
12635  * @param event packet
12636  * @return hid_cid
12637  * @note: btstack_type 2
12638  */
12639 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){
12640     return little_endian_read_16(event, 3);
12641 }
12642 
12643 /**
12644  * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND
12645  * @param event packet
12646  * @return hid_cid
12647  * @note: btstack_type 2
12648  */
12649 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){
12650     return little_endian_read_16(event, 3);
12651 }
12652 
12653 /**
12654  * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND
12655  * @param event packet
12656  * @return hid_cid
12657  * @note: btstack_type 2
12658  */
12659 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){
12660     return little_endian_read_16(event, 3);
12661 }
12662 
12663 /**
12664  * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG
12665  * @param event packet
12666  * @return hid_cid
12667  * @note: btstack_type 2
12668  */
12669 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){
12670     return little_endian_read_16(event, 3);
12671 }
12672 
12673 /**
12674  * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE
12675  * @param event packet
12676  * @return hid_cid
12677  * @note: btstack_type 2
12678  */
12679 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){
12680     return little_endian_read_16(event, 3);
12681 }
12682 /**
12683  * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE
12684  * @param event packet
12685  * @return handshake_status
12686  * @note: btstack_type 1
12687  */
12688 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){
12689     return event[5];
12690 }
12691 /**
12692  * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE
12693  * @param event packet
12694  * @return report_len
12695  * @note: btstack_type L
12696  */
12697 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){
12698     return little_endian_read_16(event, 6);
12699 }
12700 /**
12701  * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE
12702  * @param event packet
12703  * @return report
12704  * @note: btstack_type V
12705  */
12706 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){
12707     return &event[8];
12708 }
12709 
12710 /**
12711  * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE
12712  * @param event packet
12713  * @return hid_cid
12714  * @note: btstack_type 2
12715  */
12716 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){
12717     return little_endian_read_16(event, 3);
12718 }
12719 /**
12720  * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE
12721  * @param event packet
12722  * @return handshake_status
12723  * @note: btstack_type 1
12724  */
12725 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){
12726     return event[5];
12727 }
12728 
12729 /**
12730  * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
12731  * @param event packet
12732  * @return hid_cid
12733  * @note: btstack_type 2
12734  */
12735 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){
12736     return little_endian_read_16(event, 3);
12737 }
12738 /**
12739  * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
12740  * @param event packet
12741  * @return handshake_status
12742  * @note: btstack_type 1
12743  */
12744 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){
12745     return event[5];
12746 }
12747 /**
12748  * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE
12749  * @param event packet
12750  * @return protocol_mode
12751  * @note: btstack_type 1
12752  */
12753 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){
12754     return event[6];
12755 }
12756 
12757 /**
12758  * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
12759  * @param event packet
12760  * @return hid_cid
12761  * @note: btstack_type 2
12762  */
12763 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){
12764     return little_endian_read_16(event, 3);
12765 }
12766 /**
12767  * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
12768  * @param event packet
12769  * @return handshake_status
12770  * @note: btstack_type 1
12771  */
12772 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){
12773     return event[5];
12774 }
12775 /**
12776  * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE
12777  * @param event packet
12778  * @return protocol_mode
12779  * @note: btstack_type 1
12780  */
12781 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){
12782     return event[6];
12783 }
12784 
12785 /**
12786  * @brief Get field hid_cid from event HID_SUBEVENT_REPORT
12787  * @param event packet
12788  * @return hid_cid
12789  * @note: btstack_type 2
12790  */
12791 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){
12792     return little_endian_read_16(event, 3);
12793 }
12794 /**
12795  * @brief Get field report_len from event HID_SUBEVENT_REPORT
12796  * @param event packet
12797  * @return report_len
12798  * @note: btstack_type L
12799  */
12800 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){
12801     return little_endian_read_16(event, 5);
12802 }
12803 /**
12804  * @brief Get field report from event HID_SUBEVENT_REPORT
12805  * @param event packet
12806  * @return report
12807  * @note: btstack_type V
12808  */
12809 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){
12810     return &event[7];
12811 }
12812 
12813 /**
12814  * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
12815  * @param event packet
12816  * @return hid_cid
12817  * @note: btstack_type 2
12818  */
12819 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){
12820     return little_endian_read_16(event, 3);
12821 }
12822 /**
12823  * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
12824  * @param event packet
12825  * @return status
12826  * @note: btstack_type 1
12827  */
12828 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){
12829     return event[5];
12830 }
12831 
12832 /**
12833  * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
12834  * @param event packet
12835  * @return hid_cid
12836  * @note: btstack_type 2
12837  */
12838 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){
12839     return little_endian_read_16(event, 3);
12840 }
12841 /**
12842  * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
12843  * @param event packet
12844  * @return host_max_latency
12845  * @note: btstack_type 2
12846  */
12847 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){
12848     return little_endian_read_16(event, 5);
12849 }
12850 /**
12851  * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
12852  * @param event packet
12853  * @return host_min_timeout
12854  * @note: btstack_type 2
12855  */
12856 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){
12857     return little_endian_read_16(event, 7);
12858 }
12859 
12860 /**
12861  * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
12862  * @param event packet
12863  * @return con_handle
12864  * @note: btstack_type 2
12865  */
12866 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){
12867     return little_endian_read_16(event, 3);
12868 }
12869 
12870 /**
12871  * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE
12872  * @param event packet
12873  * @return con_handle
12874  * @note: btstack_type 2
12875  */
12876 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){
12877     return little_endian_read_16(event, 3);
12878 }
12879 /**
12880  * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE
12881  * @param event packet
12882  * @return protocol_mode
12883  * @note: btstack_type 1
12884  */
12885 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){
12886     return event[5];
12887 }
12888 
12889 /**
12890  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
12891  * @param event packet
12892  * @return con_handle
12893  * @note: btstack_type 2
12894  */
12895 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){
12896     return little_endian_read_16(event, 3);
12897 }
12898 /**
12899  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
12900  * @param event packet
12901  * @return enable
12902  * @note: btstack_type 1
12903  */
12904 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){
12905     return event[5];
12906 }
12907 
12908 /**
12909  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
12910  * @param event packet
12911  * @return con_handle
12912  * @note: btstack_type 2
12913  */
12914 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){
12915     return little_endian_read_16(event, 3);
12916 }
12917 /**
12918  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
12919  * @param event packet
12920  * @return enable
12921  * @note: btstack_type 1
12922  */
12923 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){
12924     return event[5];
12925 }
12926 
12927 /**
12928  * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
12929  * @param event packet
12930  * @return con_handle
12931  * @note: btstack_type 2
12932  */
12933 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){
12934     return little_endian_read_16(event, 3);
12935 }
12936 /**
12937  * @brief Get field report_id from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
12938  * @param event packet
12939  * @return report_id
12940  * @note: btstack_type 1
12941  */
12942 static inline uint8_t hids_subevent_input_report_enable_get_report_id(const uint8_t * event){
12943     return event[5];
12944 }
12945 /**
12946  * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
12947  * @param event packet
12948  * @return enable
12949  * @note: btstack_type 1
12950  */
12951 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){
12952     return event[6];
12953 }
12954 
12955 /**
12956  * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
12957  * @param event packet
12958  * @return con_handle
12959  * @note: btstack_type 2
12960  */
12961 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){
12962     return little_endian_read_16(event, 3);
12963 }
12964 /**
12965  * @brief Get field report_id from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
12966  * @param event packet
12967  * @return report_id
12968  * @note: btstack_type 1
12969  */
12970 static inline uint8_t hids_subevent_output_report_enable_get_report_id(const uint8_t * event){
12971     return event[5];
12972 }
12973 /**
12974  * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
12975  * @param event packet
12976  * @return enable
12977  * @note: btstack_type 1
12978  */
12979 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){
12980     return event[6];
12981 }
12982 
12983 /**
12984  * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
12985  * @param event packet
12986  * @return con_handle
12987  * @note: btstack_type 2
12988  */
12989 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){
12990     return little_endian_read_16(event, 3);
12991 }
12992 /**
12993  * @brief Get field report_id from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
12994  * @param event packet
12995  * @return report_id
12996  * @note: btstack_type 1
12997  */
12998 static inline uint8_t hids_subevent_feature_report_enable_get_report_id(const uint8_t * event){
12999     return event[5];
13000 }
13001 /**
13002  * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
13003  * @param event packet
13004  * @return enable
13005  * @note: btstack_type 1
13006  */
13007 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){
13008     return event[6];
13009 }
13010 
13011 /**
13012  * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND
13013  * @param event packet
13014  * @return con_handle
13015  * @note: btstack_type 2
13016  */
13017 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){
13018     return little_endian_read_16(event, 3);
13019 }
13020 
13021 /**
13022  * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND
13023  * @param event packet
13024  * @return con_handle
13025  * @note: btstack_type 2
13026  */
13027 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){
13028     return little_endian_read_16(event, 3);
13029 }
13030 
13031 /**
13032  * @brief Get field con_handle from event HIDS_SUBEVENT_SET_REPORT
13033  * @param event packet
13034  * @return con_handle
13035  * @note: btstack_type 2
13036  */
13037 static inline uint16_t hids_subevent_set_report_get_con_handle(const uint8_t * event){
13038     return little_endian_read_16(event, 3);
13039 }
13040 /**
13041  * @brief Get field report_id from event HIDS_SUBEVENT_SET_REPORT
13042  * @param event packet
13043  * @return report_id
13044  * @note: btstack_type 1
13045  */
13046 static inline uint8_t hids_subevent_set_report_get_report_id(const uint8_t * event){
13047     return event[5];
13048 }
13049 /**
13050  * @brief Get field report_type from event HIDS_SUBEVENT_SET_REPORT
13051  * @param event packet
13052  * @return report_type
13053  * @note: btstack_type 1
13054  */
13055 static inline uint8_t hids_subevent_set_report_get_report_type(const uint8_t * event){
13056     return event[6];
13057 }
13058 /**
13059  * @brief Get field report_length from event HIDS_SUBEVENT_SET_REPORT
13060  * @param event packet
13061  * @return report_length
13062  * @note: btstack_type J
13063  */
13064 static inline uint8_t hids_subevent_set_report_get_report_length(const uint8_t * event){
13065     return event[7];
13066 }
13067 /**
13068  * @brief Get field report_data from event HIDS_SUBEVENT_SET_REPORT
13069  * @param event packet
13070  * @return report_data
13071  * @note: btstack_type V
13072  */
13073 static inline const uint8_t * hids_subevent_set_report_get_report_data(const uint8_t * event){
13074     return &event[8];
13075 }
13076 
13077 /**
13078  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
13079  * @param event packet
13080  * @return con_handle
13081  * @note: btstack_type 2
13082  */
13083 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){
13084     return little_endian_read_16(event, 3);
13085 }
13086 /**
13087  * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
13088  * @param event packet
13089  * @return measurement_type
13090  * @note: btstack_type 1
13091  */
13092 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){
13093     return event[5];
13094 }
13095 /**
13096  * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
13097  * @param event packet
13098  * @return is_enhanced
13099  * @note: btstack_type 1
13100  */
13101 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){
13102     return event[6];
13103 }
13104 
13105 /**
13106  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START
13107  * @param event packet
13108  * @return con_handle
13109  * @note: btstack_type 2
13110  */
13111 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){
13112     return little_endian_read_16(event, 3);
13113 }
13114 
13115 /**
13116  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP
13117  * @param event packet
13118  * @return con_handle
13119  * @note: btstack_type 2
13120  */
13121 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){
13122     return little_endian_read_16(event, 3);
13123 }
13124 
13125 /**
13126  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
13127  * @param event packet
13128  * @return hids_cid
13129  * @note: btstack_type 2
13130  */
13131 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){
13132     return little_endian_read_16(event, 3);
13133 }
13134 /**
13135  * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
13136  * @param event packet
13137  * @return status
13138  * @note: btstack_type 1
13139  */
13140 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){
13141     return event[5];
13142 }
13143 /**
13144  * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
13145  * @param event packet
13146  * @return num_instances
13147  * @note: btstack_type 1
13148  */
13149 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){
13150     return event[6];
13151 }
13152 /**
13153  * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED
13154  * @param event packet
13155  * @return poll_bitmap
13156  * @note: btstack_type 1
13157  */
13158 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){
13159     return event[7];
13160 }
13161 
13162 /**
13163  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
13164  * @param event packet
13165  * @return hids_cid
13166  * @note: btstack_type 2
13167  */
13168 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){
13169     return little_endian_read_16(event, 3);
13170 }
13171 /**
13172  * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
13173  * @param event packet
13174  * @return sevice_index
13175  * @note: btstack_type 1
13176  */
13177 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){
13178     return event[5];
13179 }
13180 /**
13181  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
13182  * @param event packet
13183  * @return att_status
13184  * @note: btstack_type 1
13185  */
13186 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){
13187     return event[6];
13188 }
13189 /**
13190  * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL
13191  * @param event packet
13192  * @return level
13193  * @note: btstack_type 1
13194  */
13195 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){
13196     return event[7];
13197 }
13198 
13199 /**
13200  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
13201  * @param event packet
13202  * @return con_handle
13203  * @note: btstack_type H
13204  */
13205 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){
13206     return little_endian_read_16(event, 3);
13207 }
13208 /**
13209  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
13210  * @param event packet
13211  * @return att_status
13212  * @note: btstack_type 1
13213  */
13214 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){
13215     return event[5];
13216 }
13217 
13218 /**
13219  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
13220  * @param event packet
13221  * @return con_handle
13222  * @note: btstack_type H
13223  */
13224 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){
13225     return little_endian_read_16(event, 3);
13226 }
13227 /**
13228  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
13229  * @param event packet
13230  * @return att_status
13231  * @note: btstack_type 1
13232  */
13233 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){
13234     return event[5];
13235 }
13236 /**
13237  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME
13238  * @param event packet
13239  * @return value
13240  * @note: btstack_type T
13241  */
13242 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){
13243     return (const char *) &event[6];
13244 }
13245 
13246 /**
13247  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
13248  * @param event packet
13249  * @return con_handle
13250  * @note: btstack_type H
13251  */
13252 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){
13253     return little_endian_read_16(event, 3);
13254 }
13255 /**
13256  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
13257  * @param event packet
13258  * @return att_status
13259  * @note: btstack_type 1
13260  */
13261 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){
13262     return event[5];
13263 }
13264 /**
13265  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER
13266  * @param event packet
13267  * @return value
13268  * @note: btstack_type T
13269  */
13270 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){
13271     return (const char *) &event[6];
13272 }
13273 
13274 /**
13275  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
13276  * @param event packet
13277  * @return con_handle
13278  * @note: btstack_type H
13279  */
13280 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){
13281     return little_endian_read_16(event, 3);
13282 }
13283 /**
13284  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
13285  * @param event packet
13286  * @return att_status
13287  * @note: btstack_type 1
13288  */
13289 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){
13290     return event[5];
13291 }
13292 /**
13293  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER
13294  * @param event packet
13295  * @return value
13296  * @note: btstack_type T
13297  */
13298 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){
13299     return (const char *) &event[6];
13300 }
13301 
13302 /**
13303  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
13304  * @param event packet
13305  * @return con_handle
13306  * @note: btstack_type H
13307  */
13308 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){
13309     return little_endian_read_16(event, 3);
13310 }
13311 /**
13312  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
13313  * @param event packet
13314  * @return att_status
13315  * @note: btstack_type 1
13316  */
13317 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){
13318     return event[5];
13319 }
13320 /**
13321  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION
13322  * @param event packet
13323  * @return value
13324  * @note: btstack_type T
13325  */
13326 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){
13327     return (const char *) &event[6];
13328 }
13329 
13330 /**
13331  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
13332  * @param event packet
13333  * @return con_handle
13334  * @note: btstack_type H
13335  */
13336 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){
13337     return little_endian_read_16(event, 3);
13338 }
13339 /**
13340  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
13341  * @param event packet
13342  * @return att_status
13343  * @note: btstack_type 1
13344  */
13345 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){
13346     return event[5];
13347 }
13348 /**
13349  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION
13350  * @param event packet
13351  * @return value
13352  * @note: btstack_type T
13353  */
13354 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){
13355     return (const char *) &event[6];
13356 }
13357 
13358 /**
13359  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
13360  * @param event packet
13361  * @return con_handle
13362  * @note: btstack_type H
13363  */
13364 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){
13365     return little_endian_read_16(event, 3);
13366 }
13367 /**
13368  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
13369  * @param event packet
13370  * @return att_status
13371  * @note: btstack_type 1
13372  */
13373 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){
13374     return event[5];
13375 }
13376 /**
13377  * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION
13378  * @param event packet
13379  * @return value
13380  * @note: btstack_type T
13381  */
13382 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){
13383     return (const char *) &event[6];
13384 }
13385 
13386 /**
13387  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
13388  * @param event packet
13389  * @return con_handle
13390  * @note: btstack_type H
13391  */
13392 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){
13393     return little_endian_read_16(event, 3);
13394 }
13395 /**
13396  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
13397  * @param event packet
13398  * @return att_status
13399  * @note: btstack_type 1
13400  */
13401 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){
13402     return event[5];
13403 }
13404 /**
13405  * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
13406  * @param event packet
13407  * @return manufacturer_id_low
13408  * @note: btstack_type 4
13409  */
13410 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){
13411     return little_endian_read_32(event, 6);
13412 }
13413 /**
13414  * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
13415  * @param event packet
13416  * @return manufacturer_id_high
13417  * @note: btstack_type 1
13418  */
13419 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){
13420     return event[10];
13421 }
13422 /**
13423  * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID
13424  * @param event packet
13425  * @return organizationally_unique_id
13426  * @note: btstack_type 3
13427  */
13428 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){
13429     return little_endian_read_24(event, 11);
13430 }
13431 
13432 /**
13433  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
13434  * @param event packet
13435  * @return con_handle
13436  * @note: btstack_type H
13437  */
13438 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){
13439     return little_endian_read_16(event, 3);
13440 }
13441 /**
13442  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
13443  * @param event packet
13444  * @return att_status
13445  * @note: btstack_type 1
13446  */
13447 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){
13448     return event[5];
13449 }
13450 /**
13451  * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
13452  * @param event packet
13453  * @return value_a
13454  * @note: btstack_type 2
13455  */
13456 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){
13457     return little_endian_read_16(event, 6);
13458 }
13459 /**
13460  * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION
13461  * @param event packet
13462  * @return value_b
13463  * @note: btstack_type 2
13464  */
13465 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){
13466     return little_endian_read_16(event, 8);
13467 }
13468 
13469 /**
13470  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
13471  * @param event packet
13472  * @return con_handle
13473  * @note: btstack_type H
13474  */
13475 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){
13476     return little_endian_read_16(event, 3);
13477 }
13478 /**
13479  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
13480  * @param event packet
13481  * @return att_status
13482  * @note: btstack_type 1
13483  */
13484 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){
13485     return event[5];
13486 }
13487 /**
13488  * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
13489  * @param event packet
13490  * @return vendor_source_id
13491  * @note: btstack_type 1
13492  */
13493 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){
13494     return event[6];
13495 }
13496 /**
13497  * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
13498  * @param event packet
13499  * @return vendor_id
13500  * @note: btstack_type 2
13501  */
13502 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){
13503     return little_endian_read_16(event, 7);
13504 }
13505 /**
13506  * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
13507  * @param event packet
13508  * @return product_id
13509  * @note: btstack_type 2
13510  */
13511 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){
13512     return little_endian_read_16(event, 9);
13513 }
13514 /**
13515  * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID
13516  * @param event packet
13517  * @return product_version
13518  * @note: btstack_type 2
13519  */
13520 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){
13521     return little_endian_read_16(event, 11);
13522 }
13523 
13524 /**
13525  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED
13526  * @param event packet
13527  * @return con_handle
13528  * @note: btstack_type H
13529  */
13530 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){
13531     return little_endian_read_16(event, 3);
13532 }
13533 /**
13534  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED
13535  * @param event packet
13536  * @return att_status
13537  * @note: btstack_type 1
13538  */
13539 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){
13540     return event[5];
13541 }
13542 
13543 /**
13544  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_DISCONNECTED
13545  * @param event packet
13546  * @return con_handle
13547  * @note: btstack_type H
13548  */
13549 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_disconnected_get_con_handle(const uint8_t * event){
13550     return little_endian_read_16(event, 3);
13551 }
13552 
13553 /**
13554  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED
13555  * @param event packet
13556  * @return con_handle
13557  * @note: btstack_type H
13558  */
13559 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){
13560     return little_endian_read_16(event, 3);
13561 }
13562 
13563 /**
13564  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED
13565  * @param event packet
13566  * @return con_handle
13567  * @note: btstack_type H
13568  */
13569 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){
13570     return little_endian_read_16(event, 3);
13571 }
13572 
13573 /**
13574  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
13575  * @param event packet
13576  * @return hids_cid
13577  * @note: btstack_type 2
13578  */
13579 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){
13580     return little_endian_read_16(event, 3);
13581 }
13582 /**
13583  * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
13584  * @param event packet
13585  * @return status
13586  * @note: btstack_type 1
13587  */
13588 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){
13589     return event[5];
13590 }
13591 /**
13592  * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
13593  * @param event packet
13594  * @return protocol_mode
13595  * @note: btstack_type 1
13596  */
13597 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){
13598     return event[6];
13599 }
13600 /**
13601  * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
13602  * @param event packet
13603  * @return num_instances
13604  * @note: btstack_type 1
13605  */
13606 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){
13607     return event[7];
13608 }
13609 
13610 /**
13611  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_DISCONNECTED
13612  * @param event packet
13613  * @return hids_cid
13614  * @note: btstack_type 2
13615  */
13616 static inline uint16_t gattservice_subevent_hid_service_disconnected_get_hids_cid(const uint8_t * event){
13617     return little_endian_read_16(event, 3);
13618 }
13619 
13620 /**
13621  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT
13622  * @param event packet
13623  * @return hids_cid
13624  * @note: btstack_type 2
13625  */
13626 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){
13627     return little_endian_read_16(event, 3);
13628 }
13629 /**
13630  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT
13631  * @param event packet
13632  * @return service_index
13633  * @note: btstack_type 1
13634  */
13635 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){
13636     return event[5];
13637 }
13638 /**
13639  * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT
13640  * @param event packet
13641  * @return report_id
13642  * @note: btstack_type 1
13643  */
13644 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){
13645     return event[6];
13646 }
13647 /**
13648  * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT
13649  * @param event packet
13650  * @return report_len
13651  * @note: btstack_type L
13652  */
13653 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){
13654     return little_endian_read_16(event, 7);
13655 }
13656 /**
13657  * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT
13658  * @param event packet
13659  * @return report
13660  * @note: btstack_type V
13661  */
13662 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){
13663     return &event[9];
13664 }
13665 
13666 /**
13667  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION
13668  * @param event packet
13669  * @return hids_cid
13670  * @note: btstack_type 2
13671  */
13672 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){
13673     return little_endian_read_16(event, 3);
13674 }
13675 /**
13676  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION
13677  * @param event packet
13678  * @return service_index
13679  * @note: btstack_type 1
13680  */
13681 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){
13682     return event[5];
13683 }
13684 /**
13685  * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION
13686  * @param event packet
13687  * @return base_usb_hid_version
13688  * @note: btstack_type 2
13689  */
13690 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){
13691     return little_endian_read_16(event, 6);
13692 }
13693 /**
13694  * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION
13695  * @param event packet
13696  * @return country_code
13697  * @note: btstack_type 1
13698  */
13699 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){
13700     return event[8];
13701 }
13702 /**
13703  * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION
13704  * @param event packet
13705  * @return remote_wake
13706  * @note: btstack_type 1
13707  */
13708 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){
13709     return event[9];
13710 }
13711 /**
13712  * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION
13713  * @param event packet
13714  * @return normally_connectable
13715  * @note: btstack_type 1
13716  */
13717 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){
13718     return event[10];
13719 }
13720 
13721 /**
13722  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
13723  * @param event packet
13724  * @return hids_cid
13725  * @note: btstack_type 2
13726  */
13727 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){
13728     return little_endian_read_16(event, 3);
13729 }
13730 /**
13731  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
13732  * @param event packet
13733  * @return service_index
13734  * @note: btstack_type 1
13735  */
13736 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){
13737     return event[5];
13738 }
13739 /**
13740  * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE
13741  * @param event packet
13742  * @return protocol_mode
13743  * @note: btstack_type 1
13744  */
13745 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){
13746     return event[6];
13747 }
13748 
13749 /**
13750  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
13751  * @param event packet
13752  * @return hids_cid
13753  * @note: btstack_type 2
13754  */
13755 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){
13756     return little_endian_read_16(event, 3);
13757 }
13758 /**
13759  * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
13760  * @param event packet
13761  * @return configuration
13762  * @note: btstack_type 1
13763  */
13764 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){
13765     return event[5];
13766 }
13767 
13768 /**
13769  * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT_WRITTEN
13770  * @param event packet
13771  * @return hids_cid
13772  * @note: btstack_type 2
13773  */
13774 static inline uint16_t gattservice_subevent_hid_report_written_get_hids_cid(const uint8_t * event){
13775     return little_endian_read_16(event, 3);
13776 }
13777 /**
13778  * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT_WRITTEN
13779  * @param event packet
13780  * @return service_index
13781  * @note: btstack_type 1
13782  */
13783 static inline uint8_t gattservice_subevent_hid_report_written_get_service_index(const uint8_t * event){
13784     return event[5];
13785 }
13786 /**
13787  * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT_WRITTEN
13788  * @param event packet
13789  * @return report_id
13790  * @note: btstack_type 1
13791  */
13792 static inline uint8_t gattservice_subevent_hid_report_written_get_report_id(const uint8_t * event){
13793     return event[6];
13794 }
13795 
13796 /**
13797  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
13798  * @param event packet
13799  * @return con_handle
13800  * @note: btstack_type H
13801  */
13802 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){
13803     return little_endian_read_16(event, 3);
13804 }
13805 /**
13806  * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
13807  * @param event packet
13808  * @return max_scan_interval
13809  * @note: btstack_type 2
13810  */
13811 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){
13812     return little_endian_read_16(event, 5);
13813 }
13814 /**
13815  * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE
13816  * @param event packet
13817  * @return min_scan_window
13818  * @note: btstack_type 2
13819  */
13820 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){
13821     return little_endian_read_16(event, 7);
13822 }
13823 
13824 /**
13825  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_GATT_SERVICE_CHANGED
13826  * @param event packet
13827  * @return con_handle
13828  * @note: btstack_type H
13829  */
13830 static inline hci_con_handle_t gattservice_subevent_gatt_service_changed_get_con_handle(const uint8_t * event){
13831     return little_endian_read_16(event, 3);
13832 }
13833 /**
13834  * @brief Get field attribute_handle_start from event GATTSERVICE_SUBEVENT_GATT_SERVICE_CHANGED
13835  * @param event packet
13836  * @return attribute_handle_start
13837  * @note: btstack_type 2
13838  */
13839 static inline uint16_t gattservice_subevent_gatt_service_changed_get_attribute_handle_start(const uint8_t * event){
13840     return little_endian_read_16(event, 5);
13841 }
13842 /**
13843  * @brief Get field attribute_handle_end from event GATTSERVICE_SUBEVENT_GATT_SERVICE_CHANGED
13844  * @param event packet
13845  * @return attribute_handle_end
13846  * @note: btstack_type 2
13847  */
13848 static inline uint16_t gattservice_subevent_gatt_service_changed_get_attribute_handle_end(const uint8_t * event){
13849     return little_endian_read_16(event, 7);
13850 }
13851 
13852 /**
13853  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_GATT_DATABASE_HASH
13854  * @param event packet
13855  * @return con_handle
13856  * @note: btstack_type H
13857  */
13858 static inline hci_con_handle_t gattservice_subevent_gatt_database_hash_get_con_handle(const uint8_t * event){
13859     return little_endian_read_16(event, 3);
13860 }
13861 /**
13862  * @brief Get field database_hash from event GATTSERVICE_SUBEVENT_GATT_DATABASE_HASH
13863  * @param event packet
13864  * @param Pointer to storage for database_hash
13865  * @note: btstack_type K
13866  */
13867 static inline void gattservice_subevent_gatt_database_hash_get_database_hash(const uint8_t * event, uint8_t * database_hash){
13868     reverse_bytes(&event[5], database_hash, 16);
13869 }
13870 
13871 /**
13872  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED
13873  * @param event packet
13874  * @return con_handle
13875  * @note: btstack_type H
13876  */
13877 static inline hci_con_handle_t gattservice_subevent_client_connected_get_con_handle(const uint8_t * event){
13878     return little_endian_read_16(event, 3);
13879 }
13880 /**
13881  * @brief Get field cid from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED
13882  * @param event packet
13883  * @return cid
13884  * @note: btstack_type 2
13885  */
13886 static inline uint16_t gattservice_subevent_client_connected_get_cid(const uint8_t * event){
13887     return little_endian_read_16(event, 5);
13888 }
13889 /**
13890  * @brief Get field num_included_services from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED
13891  * @param event packet
13892  * @return num_included_services
13893  * @note: btstack_type 1
13894  */
13895 static inline uint8_t gattservice_subevent_client_connected_get_num_included_services(const uint8_t * event){
13896     return event[7];
13897 }
13898 /**
13899  * @brief Get field status from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED
13900  * @param event packet
13901  * @return status
13902  * @note: btstack_type 1
13903  */
13904 static inline uint8_t gattservice_subevent_client_connected_get_status(const uint8_t * event){
13905     return event[8];
13906 }
13907 
13908 /**
13909  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CLIENT_DISCONNECTED
13910  * @param event packet
13911  * @return con_handle
13912  * @note: btstack_type H
13913  */
13914 static inline hci_con_handle_t gattservice_subevent_client_disconnected_get_con_handle(const uint8_t * event){
13915     return little_endian_read_16(event, 3);
13916 }
13917 /**
13918  * @brief Get field cid from event GATTSERVICE_SUBEVENT_CLIENT_DISCONNECTED
13919  * @param event packet
13920  * @return cid
13921  * @note: btstack_type 2
13922  */
13923 static inline uint16_t gattservice_subevent_client_disconnected_get_cid(const uint8_t * event){
13924     return little_endian_read_16(event, 5);
13925 }
13926 
13927 /**
13928  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_LLS_CLIENT_CONNECTED
13929  * @param event packet
13930  * @return con_handle
13931  * @note: btstack_type H
13932  */
13933 static inline hci_con_handle_t gattservice_subevent_lls_client_connected_get_con_handle(const uint8_t * event){
13934     return little_endian_read_16(event, 3);
13935 }
13936 /**
13937  * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_CONNECTED
13938  * @param event packet
13939  * @return lls_cid
13940  * @note: btstack_type 2
13941  */
13942 static inline uint16_t gattservice_subevent_lls_client_connected_get_lls_cid(const uint8_t * event){
13943     return little_endian_read_16(event, 5);
13944 }
13945 /**
13946  * @brief Get field status from event GATTSERVICE_SUBEVENT_LLS_CLIENT_CONNECTED
13947  * @param event packet
13948  * @return status
13949  * @note: btstack_type 1
13950  */
13951 static inline uint8_t gattservice_subevent_lls_client_connected_get_status(const uint8_t * event){
13952     return event[7];
13953 }
13954 
13955 /**
13956  * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_DISCONNECTED
13957  * @param event packet
13958  * @return lls_cid
13959  * @note: btstack_type 2
13960  */
13961 static inline uint16_t gattservice_subevent_lls_client_disconnected_get_lls_cid(const uint8_t * event){
13962     return little_endian_read_16(event, 3);
13963 }
13964 
13965 /**
13966  * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_WRITE_DONE
13967  * @param event packet
13968  * @return lls_cid
13969  * @note: btstack_type 2
13970  */
13971 static inline uint16_t gattservice_subevent_lls_client_write_done_get_lls_cid(const uint8_t * event){
13972     return little_endian_read_16(event, 3);
13973 }
13974 /**
13975  * @brief Get field characteristic_uuid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_WRITE_DONE
13976  * @param event packet
13977  * @return characteristic_uuid
13978  * @note: btstack_type 2
13979  */
13980 static inline uint16_t gattservice_subevent_lls_client_write_done_get_characteristic_uuid(const uint8_t * event){
13981     return little_endian_read_16(event, 5);
13982 }
13983 /**
13984  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_LLS_CLIENT_WRITE_DONE
13985  * @param event packet
13986  * @return att_status
13987  * @note: btstack_type 1
13988  */
13989 static inline uint8_t gattservice_subevent_lls_client_write_done_get_att_status(const uint8_t * event){
13990     return event[7];
13991 }
13992 
13993 /**
13994  * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_START_ALERTING
13995  * @param event packet
13996  * @return lls_cid
13997  * @note: btstack_type 2
13998  */
13999 static inline uint16_t gattservice_subevent_lls_client_start_alerting_get_lls_cid(const uint8_t * event){
14000     return little_endian_read_16(event, 3);
14001 }
14002 
14003 /**
14004  * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_STOP_ALERTING
14005  * @param event packet
14006  * @return lls_cid
14007  * @note: btstack_type 2
14008  */
14009 static inline uint16_t gattservice_subevent_lls_client_stop_alerting_get_lls_cid(const uint8_t * event){
14010     return little_endian_read_16(event, 3);
14011 }
14012 /**
14013  * @brief Get field timeout from event GATTSERVICE_SUBEVENT_LLS_CLIENT_STOP_ALERTING
14014  * @param event packet
14015  * @return timeout
14016  * @note: btstack_type 1
14017  */
14018 static inline uint8_t gattservice_subevent_lls_client_stop_alerting_get_timeout(const uint8_t * event){
14019     return event[5];
14020 }
14021 
14022 /**
14023  * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_ALERT_LEVEL
14024  * @param event packet
14025  * @return lls_cid
14026  * @note: btstack_type 2
14027  */
14028 static inline uint16_t gattservice_subevent_lls_client_alert_level_get_lls_cid(const uint8_t * event){
14029     return little_endian_read_16(event, 3);
14030 }
14031 /**
14032  * @brief Get field value from event GATTSERVICE_SUBEVENT_LLS_CLIENT_ALERT_LEVEL
14033  * @param event packet
14034  * @return value
14035  * @note: btstack_type 1
14036  */
14037 static inline uint8_t gattservice_subevent_lls_client_alert_level_get_value(const uint8_t * event){
14038     return event[5];
14039 }
14040 
14041 /**
14042  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_IAS_CLIENT_CONNECTED
14043  * @param event packet
14044  * @return con_handle
14045  * @note: btstack_type H
14046  */
14047 static inline hci_con_handle_t gattservice_subevent_ias_client_connected_get_con_handle(const uint8_t * event){
14048     return little_endian_read_16(event, 3);
14049 }
14050 /**
14051  * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_CONNECTED
14052  * @param event packet
14053  * @return ias_cid
14054  * @note: btstack_type 2
14055  */
14056 static inline uint16_t gattservice_subevent_ias_client_connected_get_ias_cid(const uint8_t * event){
14057     return little_endian_read_16(event, 5);
14058 }
14059 /**
14060  * @brief Get field status from event GATTSERVICE_SUBEVENT_IAS_CLIENT_CONNECTED
14061  * @param event packet
14062  * @return status
14063  * @note: btstack_type 1
14064  */
14065 static inline uint8_t gattservice_subevent_ias_client_connected_get_status(const uint8_t * event){
14066     return event[7];
14067 }
14068 
14069 /**
14070  * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_DISCONNECTED
14071  * @param event packet
14072  * @return ias_cid
14073  * @note: btstack_type 2
14074  */
14075 static inline uint16_t gattservice_subevent_ias_client_disconnected_get_ias_cid(const uint8_t * event){
14076     return little_endian_read_16(event, 3);
14077 }
14078 
14079 /**
14080  * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_START_ALERTING
14081  * @param event packet
14082  * @return ias_cid
14083  * @note: btstack_type 2
14084  */
14085 static inline uint16_t gattservice_subevent_ias_client_start_alerting_get_ias_cid(const uint8_t * event){
14086     return little_endian_read_16(event, 3);
14087 }
14088 
14089 /**
14090  * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_STOP_ALERTING
14091  * @param event packet
14092  * @return ias_cid
14093  * @note: btstack_type 2
14094  */
14095 static inline uint16_t gattservice_subevent_ias_client_stop_alerting_get_ias_cid(const uint8_t * event){
14096     return little_endian_read_16(event, 3);
14097 }
14098 /**
14099  * @brief Get field timeout from event GATTSERVICE_SUBEVENT_IAS_CLIENT_STOP_ALERTING
14100  * @param event packet
14101  * @return timeout
14102  * @note: btstack_type 1
14103  */
14104 static inline uint8_t gattservice_subevent_ias_client_stop_alerting_get_timeout(const uint8_t * event){
14105     return event[5];
14106 }
14107 
14108 /**
14109  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_CONNECTED
14110  * @param event packet
14111  * @return con_handle
14112  * @note: btstack_type H
14113  */
14114 static inline hci_con_handle_t gattservice_subevent_txps_client_connected_get_con_handle(const uint8_t * event){
14115     return little_endian_read_16(event, 3);
14116 }
14117 /**
14118  * @brief Get field tpxs_cid from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_CONNECTED
14119  * @param event packet
14120  * @return tpxs_cid
14121  * @note: btstack_type 2
14122  */
14123 static inline uint16_t gattservice_subevent_txps_client_connected_get_tpxs_cid(const uint8_t * event){
14124     return little_endian_read_16(event, 5);
14125 }
14126 /**
14127  * @brief Get field status from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_CONNECTED
14128  * @param event packet
14129  * @return status
14130  * @note: btstack_type 1
14131  */
14132 static inline uint8_t gattservice_subevent_txps_client_connected_get_status(const uint8_t * event){
14133     return event[7];
14134 }
14135 
14136 /**
14137  * @brief Get field tpxs_cid from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_DISCONNECTED
14138  * @param event packet
14139  * @return tpxs_cid
14140  * @note: btstack_type 2
14141  */
14142 static inline uint16_t gattservice_subevent_txps_client_disconnected_get_tpxs_cid(const uint8_t * event){
14143     return little_endian_read_16(event, 3);
14144 }
14145 
14146 /**
14147  * @brief Get field tpxs_cid from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_TX_POWER_LEVEL
14148  * @param event packet
14149  * @return tpxs_cid
14150  * @note: btstack_type 2
14151  */
14152 static inline uint16_t gattservice_subevent_txps_client_tx_power_level_get_tpxs_cid(const uint8_t * event){
14153     return little_endian_read_16(event, 3);
14154 }
14155 /**
14156  * @brief Get field value from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_TX_POWER_LEVEL
14157  * @param event packet
14158  * @return value
14159  * @note: btstack_type 1
14160  */
14161 static inline uint8_t gattservice_subevent_txps_client_tx_power_level_get_value(const uint8_t * event){
14162     return event[5];
14163 }
14164 
14165 /**
14166  * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_LLS_SERVER_START_ALERTING
14167  * @param event packet
14168  * @return alert_level
14169  * @note: btstack_type 1
14170  */
14171 static inline uint8_t gattservice_subevent_lls_server_start_alerting_get_alert_level(const uint8_t * event){
14172     return event[3];
14173 }
14174 
14175 /**
14176  * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_LLS_SERVER_STOP_ALERTING
14177  * @param event packet
14178  * @return alert_level
14179  * @note: btstack_type 1
14180  */
14181 static inline uint8_t gattservice_subevent_lls_server_stop_alerting_get_alert_level(const uint8_t * event){
14182     return event[3];
14183 }
14184 /**
14185  * @brief Get field timeout from event GATTSERVICE_SUBEVENT_LLS_SERVER_STOP_ALERTING
14186  * @param event packet
14187  * @return timeout
14188  * @note: btstack_type 1
14189  */
14190 static inline uint8_t gattservice_subevent_lls_server_stop_alerting_get_timeout(const uint8_t * event){
14191     return event[4];
14192 }
14193 
14194 /**
14195  * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_IAS_SERVER_START_ALERTING
14196  * @param event packet
14197  * @return alert_level
14198  * @note: btstack_type 1
14199  */
14200 static inline uint8_t gattservice_subevent_ias_server_start_alerting_get_alert_level(const uint8_t * event){
14201     return event[3];
14202 }
14203 
14204 /**
14205  * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_IAS_SERVER_STOP_ALERTING
14206  * @param event packet
14207  * @return alert_level
14208  * @note: btstack_type 1
14209  */
14210 static inline uint8_t gattservice_subevent_ias_server_stop_alerting_get_alert_level(const uint8_t * event){
14211     return event[3];
14212 }
14213 /**
14214  * @brief Get field timeout from event GATTSERVICE_SUBEVENT_IAS_SERVER_STOP_ALERTING
14215  * @param event packet
14216  * @return timeout
14217  * @note: btstack_type 1
14218  */
14219 static inline uint8_t gattservice_subevent_ias_server_stop_alerting_get_timeout(const uint8_t * event){
14220     return event[4];
14221 }
14222 
14223 /**
14224  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_UDI_FOR_MEDICAL_DEVICES
14225  * @param event packet
14226  * @return con_handle
14227  * @note: btstack_type H
14228  */
14229 static inline hci_con_handle_t gattservice_subevent_device_information_udi_for_medical_devices_get_con_handle(const uint8_t * event){
14230     return little_endian_read_16(event, 3);
14231 }
14232 /**
14233  * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_UDI_FOR_MEDICAL_DEVICES
14234  * @param event packet
14235  * @return att_status
14236  * @note: btstack_type 1
14237  */
14238 static inline uint8_t gattservice_subevent_device_information_udi_for_medical_devices_get_att_status(const uint8_t * event){
14239     return event[5];
14240 }
14241 /**
14242  * @brief Get field label from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_UDI_FOR_MEDICAL_DEVICES
14243  * @param event packet
14244  * @return label
14245  * @note: btstack_type T
14246  */
14247 static inline const char * gattservice_subevent_device_information_udi_for_medical_devices_get_label(const uint8_t * event){
14248     return (const char *) &event[6];
14249 }
14250 
14251 /**
14252  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_CONNECTED
14253  * @param event packet
14254  * @return con_handle
14255  * @note: btstack_type H
14256  */
14257 static inline hci_con_handle_t leaudio_subevent_bass_server_connected_get_con_handle(const uint8_t * event){
14258     return little_endian_read_16(event, 3);
14259 }
14260 /**
14261  * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_SERVER_CONNECTED
14262  * @param event packet
14263  * @return status
14264  * @note: btstack_type 1
14265  */
14266 static inline uint8_t leaudio_subevent_bass_server_connected_get_status(const uint8_t * event){
14267     return event[5];
14268 }
14269 
14270 /**
14271  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_DISCONNECTED
14272  * @param event packet
14273  * @return con_handle
14274  * @note: btstack_type H
14275  */
14276 static inline hci_con_handle_t leaudio_subevent_bass_server_disconnected_get_con_handle(const uint8_t * event){
14277     return little_endian_read_16(event, 3);
14278 }
14279 
14280 /**
14281  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SCAN_STOPPED
14282  * @param event packet
14283  * @return con_handle
14284  * @note: btstack_type H
14285  */
14286 static inline hci_con_handle_t leaudio_subevent_bass_server_scan_stopped_get_con_handle(const uint8_t * event){
14287     return little_endian_read_16(event, 3);
14288 }
14289 
14290 /**
14291  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SCAN_STARTED
14292  * @param event packet
14293  * @return con_handle
14294  * @note: btstack_type H
14295  */
14296 static inline hci_con_handle_t leaudio_subevent_bass_server_scan_started_get_con_handle(const uint8_t * event){
14297     return little_endian_read_16(event, 3);
14298 }
14299 
14300 /**
14301  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_BROADCAST_CODE
14302  * @param event packet
14303  * @return con_handle
14304  * @note: btstack_type H
14305  */
14306 static inline hci_con_handle_t leaudio_subevent_bass_server_broadcast_code_get_con_handle(const uint8_t * event){
14307     return little_endian_read_16(event, 3);
14308 }
14309 /**
14310  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_BROADCAST_CODE
14311  * @param event packet
14312  * @return source_id
14313  * @note: btstack_type 1
14314  */
14315 static inline uint8_t leaudio_subevent_bass_server_broadcast_code_get_source_id(const uint8_t * event){
14316     return event[5];
14317 }
14318 /**
14319  * @brief Get field broadcast_code from event LEAUDIO_SUBEVENT_BASS_SERVER_BROADCAST_CODE
14320  * @param event packet
14321  * @param Pointer to storage for broadcast_code
14322  * @note: btstack_type K
14323  */
14324 static inline void leaudio_subevent_bass_server_broadcast_code_get_broadcast_code(const uint8_t * event, uint8_t * broadcast_code){
14325     reverse_bytes(&event[6], broadcast_code, 16);
14326 }
14327 
14328 /**
14329  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED
14330  * @param event packet
14331  * @return con_handle
14332  * @note: btstack_type H
14333  */
14334 static inline hci_con_handle_t leaudio_subevent_bass_server_source_added_get_con_handle(const uint8_t * event){
14335     return little_endian_read_16(event, 3);
14336 }
14337 /**
14338  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED
14339  * @param event packet
14340  * @return source_id
14341  * @note: btstack_type 1
14342  */
14343 static inline uint8_t leaudio_subevent_bass_server_source_added_get_source_id(const uint8_t * event){
14344     return event[5];
14345 }
14346 /**
14347  * @brief Get field pa_sync from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED
14348  * @param event packet
14349  * @return pa_sync
14350  * @note: btstack_type 1
14351  */
14352 static inline uint8_t leaudio_subevent_bass_server_source_added_get_pa_sync(const uint8_t * event){
14353     return event[6];
14354 }
14355 
14356 /**
14357  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED
14358  * @param event packet
14359  * @return con_handle
14360  * @note: btstack_type H
14361  */
14362 static inline hci_con_handle_t leaudio_subevent_bass_server_source_modified_get_con_handle(const uint8_t * event){
14363     return little_endian_read_16(event, 3);
14364 }
14365 /**
14366  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED
14367  * @param event packet
14368  * @return source_id
14369  * @note: btstack_type 1
14370  */
14371 static inline uint8_t leaudio_subevent_bass_server_source_modified_get_source_id(const uint8_t * event){
14372     return event[5];
14373 }
14374 /**
14375  * @brief Get field pa_sync from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED
14376  * @param event packet
14377  * @return pa_sync
14378  * @note: btstack_type 1
14379  */
14380 static inline uint8_t leaudio_subevent_bass_server_source_modified_get_pa_sync(const uint8_t * event){
14381     return event[6];
14382 }
14383 
14384 /**
14385  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED
14386  * @param event packet
14387  * @return con_handle
14388  * @note: btstack_type H
14389  */
14390 static inline hci_con_handle_t leaudio_subevent_bass_server_source_deleted_get_con_handle(const uint8_t * event){
14391     return little_endian_read_16(event, 3);
14392 }
14393 /**
14394  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED
14395  * @param event packet
14396  * @return source_id
14397  * @note: btstack_type 1
14398  */
14399 static inline uint8_t leaudio_subevent_bass_server_source_deleted_get_source_id(const uint8_t * event){
14400     return event[5];
14401 }
14402 /**
14403  * @brief Get field pa_sync from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED
14404  * @param event packet
14405  * @return pa_sync
14406  * @note: btstack_type 1
14407  */
14408 static inline uint8_t leaudio_subevent_bass_server_source_deleted_get_pa_sync(const uint8_t * event){
14409     return event[6];
14410 }
14411 
14412 /**
14413  * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_CLIENT_CONNECTED
14414  * @param event packet
14415  * @return con_handle
14416  * @note: btstack_type H
14417  */
14418 static inline hci_con_handle_t leaudio_subevent_bass_client_connected_get_con_handle(const uint8_t * event){
14419     return little_endian_read_16(event, 3);
14420 }
14421 /**
14422  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_CONNECTED
14423  * @param event packet
14424  * @return bass_cid
14425  * @note: btstack_type 2
14426  */
14427 static inline uint16_t leaudio_subevent_bass_client_connected_get_bass_cid(const uint8_t * event){
14428     return little_endian_read_16(event, 5);
14429 }
14430 /**
14431  * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_CLIENT_CONNECTED
14432  * @param event packet
14433  * @return status
14434  * @note: btstack_type 1
14435  */
14436 static inline uint8_t leaudio_subevent_bass_client_connected_get_status(const uint8_t * event){
14437     return event[7];
14438 }
14439 
14440 /**
14441  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_DISCONNECTED
14442  * @param event packet
14443  * @return bass_cid
14444  * @note: btstack_type 2
14445  */
14446 static inline uint16_t leaudio_subevent_bass_client_disconnected_get_bass_cid(const uint8_t * event){
14447     return little_endian_read_16(event, 3);
14448 }
14449 
14450 /**
14451  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE
14452  * @param event packet
14453  * @return bass_cid
14454  * @note: btstack_type 2
14455  */
14456 static inline uint16_t leaudio_subevent_bass_client_scan_operation_complete_get_bass_cid(const uint8_t * event){
14457     return little_endian_read_16(event, 3);
14458 }
14459 /**
14460  * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE
14461  * @param event packet
14462  * @return status
14463  * @note: btstack_type 1
14464  */
14465 static inline uint8_t leaudio_subevent_bass_client_scan_operation_complete_get_status(const uint8_t * event){
14466     return event[5];
14467 }
14468 /**
14469  * @brief Get field opcode from event LEAUDIO_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE
14470  * @param event packet
14471  * @return opcode
14472  * @note: btstack_type 1
14473  */
14474 static inline uint8_t leaudio_subevent_bass_client_scan_operation_complete_get_opcode(const uint8_t * event){
14475     return event[6];
14476 }
14477 
14478 /**
14479  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14480  * @param event packet
14481  * @return bass_cid
14482  * @note: btstack_type 2
14483  */
14484 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_base_get_bass_cid(const uint8_t * event){
14485     return little_endian_read_16(event, 3);
14486 }
14487 /**
14488  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14489  * @param event packet
14490  * @return source_id
14491  * @note: btstack_type 1
14492  */
14493 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_source_id(const uint8_t * event){
14494     return event[5];
14495 }
14496 /**
14497  * @brief Get field source_address_type from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14498  * @param event packet
14499  * @return source_address_type
14500  * @note: btstack_type 1
14501  */
14502 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_source_address_type(const uint8_t * event){
14503     return event[6];
14504 }
14505 /**
14506  * @brief Get field source_address from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14507  * @param event packet
14508  * @param Pointer to storage for source_address
14509  * @note: btstack_type B
14510  */
14511 static inline void leaudio_subevent_bass_client_notify_receive_state_base_get_source_address(const uint8_t * event, bd_addr_t source_address){
14512     reverse_bytes(&event[7], source_address, 6);
14513 }
14514 /**
14515  * @brief Get field source_adv_sid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14516  * @param event packet
14517  * @return source_adv_sid
14518  * @note: btstack_type 1
14519  */
14520 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_source_adv_sid(const uint8_t * event){
14521     return event[13];
14522 }
14523 /**
14524  * @brief Get field broadcast_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14525  * @param event packet
14526  * @return broadcast_id
14527  * @note: btstack_type 3
14528  */
14529 static inline uint32_t leaudio_subevent_bass_client_notify_receive_state_base_get_broadcast_id(const uint8_t * event){
14530     return little_endian_read_24(event, 14);
14531 }
14532 /**
14533  * @brief Get field pa_sync_state from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14534  * @param event packet
14535  * @return pa_sync_state
14536  * @note: btstack_type 1
14537  */
14538 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_pa_sync_state(const uint8_t * event){
14539     return event[17];
14540 }
14541 /**
14542  * @brief Get field big_encryption from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14543  * @param event packet
14544  * @return big_encryption
14545  * @note: btstack_type 1
14546  */
14547 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_big_encryption(const uint8_t * event){
14548     return event[18];
14549 }
14550 /**
14551  * @brief Get field bad_code from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14552  * @param event packet
14553  * @return bad_code
14554  * @note: btstack_type P
14555  */
14556 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_base_get_bad_code(const uint8_t * event){
14557     return (const uint8_t *) &event[19];
14558 }
14559 /**
14560  * @brief Get field subgroups_num from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE
14561  * @param event packet
14562  * @return subgroups_num
14563  * @note: btstack_type 1
14564  */
14565 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_subgroups_num(const uint8_t * event){
14566     return event[35];
14567 }
14568 
14569 /**
14570  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14571  * @param event packet
14572  * @return bass_cid
14573  * @note: btstack_type 2
14574  */
14575 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_bass_cid(const uint8_t * event){
14576     return little_endian_read_16(event, 3);
14577 }
14578 /**
14579  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14580  * @param event packet
14581  * @return source_id
14582  * @note: btstack_type 1
14583  */
14584 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_source_id(const uint8_t * event){
14585     return event[5];
14586 }
14587 /**
14588  * @brief Get field bis_sync_state from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14589  * @param event packet
14590  * @return bis_sync_state
14591  * @note: btstack_type 4
14592  */
14593 static inline uint32_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_bis_sync_state(const uint8_t * event){
14594     return little_endian_read_32(event, 6);
14595 }
14596 /**
14597  * @brief Get field metadata_mask from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14598  * @param event packet
14599  * @return metadata_mask
14600  * @note: btstack_type 1
14601  */
14602 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_metadata_mask(const uint8_t * event){
14603     return event[10];
14604 }
14605 /**
14606  * @brief Get field preferred_audio_contexts_mask from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14607  * @param event packet
14608  * @return preferred_audio_contexts_mask
14609  * @note: btstack_type 2
14610  */
14611 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_preferred_audio_contexts_mask(const uint8_t * event){
14612     return little_endian_read_16(event, 11);
14613 }
14614 /**
14615  * @brief Get field streaming_audio_contexts_mask from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14616  * @param event packet
14617  * @return streaming_audio_contexts_mask
14618  * @note: btstack_type 2
14619  */
14620 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_streaming_audio_contexts_mask(const uint8_t * event){
14621     return little_endian_read_16(event, 13);
14622 }
14623 /**
14624  * @brief Get field program_info_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14625  * @param event packet
14626  * @return program_info_length
14627  * @note: btstack_type J
14628  */
14629 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info_length(const uint8_t * event){
14630     return event[15];
14631 }
14632 /**
14633  * @brief Get field program_info from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14634  * @param event packet
14635  * @return program_info
14636  * @note: btstack_type V
14637  */
14638 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info(const uint8_t * event){
14639     return &event[16];
14640 }
14641 /**
14642  * @brief Get field language_code from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14643  * @param event packet
14644  * @return language_code
14645  * @note: btstack_type 3
14646  */
14647 static inline uint32_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_language_code(const uint8_t * event){
14648     uint8_t offset = 16u + event[15];
14649     return little_endian_read_24(event, (int)(int8_t) offset);
14650 }
14651 /**
14652  * @brief Get field ccids_num from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14653  * @param event packet
14654  * @return ccids_num
14655  * @note: btstack_type J
14656  */
14657 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_ccids_num(const uint8_t * event){
14658     return event[16u + event[15] + 3u];
14659 }
14660 /**
14661  * @brief Get field ccids from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14662  * @param event packet
14663  * @return ccids
14664  * @note: btstack_type V
14665  */
14666 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_ccids(const uint8_t * event){
14667     return &event[16u + event[15] + 3u + 1u];
14668 }
14669 /**
14670  * @brief Get field parental_rating from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14671  * @param event packet
14672  * @return parental_rating
14673  * @note: btstack_type 1
14674  */
14675 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_parental_rating(const uint8_t * event){
14676     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u]];
14677 }
14678 /**
14679  * @brief Get field program_info_uri_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14680  * @param event packet
14681  * @return program_info_uri_length
14682  * @note: btstack_type J
14683  */
14684 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri_length(const uint8_t * event){
14685     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u];
14686 }
14687 /**
14688  * @brief Get field program_info_uri from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14689  * @param event packet
14690  * @return program_info_uri
14691  * @note: btstack_type V
14692  */
14693 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri(const uint8_t * event){
14694     return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u];
14695 }
14696 /**
14697  * @brief Get field extended_metadata_type from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14698  * @param event packet
14699  * @return extended_metadata_type
14700  * @note: btstack_type 2
14701  */
14702 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_type(const uint8_t * event){
14703     uint8_t offset = 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u];
14704     return little_endian_read_16(event, (int)(int8_t) offset);
14705 }
14706 /**
14707  * @brief Get field extended_metadata_value_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14708  * @param event packet
14709  * @return extended_metadata_value_length
14710  * @note: btstack_type J
14711  */
14712 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value_length(const uint8_t * event){
14713     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u];
14714 }
14715 /**
14716  * @brief Get field extended_metadata_value from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14717  * @param event packet
14718  * @return extended_metadata_value
14719  * @note: btstack_type V
14720  */
14721 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value(const uint8_t * event){
14722     return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u];
14723 }
14724 /**
14725  * @brief Get field vendor_specific_metadata_type from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14726  * @param event packet
14727  * @return vendor_specific_metadata_type
14728  * @note: btstack_type 2
14729  */
14730 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_type(const uint8_t * event){
14731     uint8_t offset = 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u];
14732     return little_endian_read_16(event, (int)(int8_t) offset);
14733 }
14734 /**
14735  * @brief Get field vendor_specific_metadata_value_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14736  * @param event packet
14737  * @return vendor_specific_metadata_value_length
14738  * @note: btstack_type J
14739  */
14740 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value_length(const uint8_t * event){
14741     return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u] + 2u];
14742 }
14743 /**
14744  * @brief Get field vendor_specific_metadata_value from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP
14745  * @param event packet
14746  * @return vendor_specific_metadata_value
14747  * @note: btstack_type V
14748  */
14749 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value(const uint8_t * event){
14750     return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u] + 2u + 1u];
14751 }
14752 
14753 /**
14754  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE
14755  * @param event packet
14756  * @return bass_cid
14757  * @note: btstack_type 2
14758  */
14759 static inline uint16_t leaudio_subevent_bass_client_notification_complete_get_bass_cid(const uint8_t * event){
14760     return little_endian_read_16(event, 3);
14761 }
14762 /**
14763  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE
14764  * @param event packet
14765  * @return source_id
14766  * @note: btstack_type 1
14767  */
14768 static inline uint8_t leaudio_subevent_bass_client_notification_complete_get_source_id(const uint8_t * event){
14769     return event[5];
14770 }
14771 
14772 /**
14773  * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE
14774  * @param event packet
14775  * @return bass_cid
14776  * @note: btstack_type 2
14777  */
14778 static inline uint16_t leaudio_subevent_bass_client_source_operation_complete_get_bass_cid(const uint8_t * event){
14779     return little_endian_read_16(event, 3);
14780 }
14781 /**
14782  * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE
14783  * @param event packet
14784  * @return status
14785  * @note: btstack_type 1
14786  */
14787 static inline uint8_t leaudio_subevent_bass_client_source_operation_complete_get_status(const uint8_t * event){
14788     return event[5];
14789 }
14790 /**
14791  * @brief Get field opcode from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE
14792  * @param event packet
14793  * @return opcode
14794  * @note: btstack_type 1
14795  */
14796 static inline uint8_t leaudio_subevent_bass_client_source_operation_complete_get_opcode(const uint8_t * event){
14797     return event[6];
14798 }
14799 /**
14800  * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE
14801  * @param event packet
14802  * @return source_id
14803  * @note: btstack_type 1
14804  */
14805 static inline uint8_t leaudio_subevent_bass_client_source_operation_complete_get_source_id(const uint8_t * event){
14806     return event[7];
14807 }
14808 
14809 
14810 /**
14811  * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT
14812  * @param event packet
14813  * @return status
14814  * @note: btstack_type 1
14815  */
14816 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){
14817     return event[3];
14818 }
14819 
14820 /**
14821  * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
14822  * @param event packet
14823  * @return status
14824  * @note: btstack_type 1
14825  */
14826 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){
14827     return event[3];
14828 }
14829 /**
14830  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
14831  * @param event packet
14832  * @return pb_transport_cid
14833  * @note: btstack_type 2
14834  */
14835 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){
14836     return little_endian_read_16(event, 4);
14837 }
14838 /**
14839  * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN
14840  * @param event packet
14841  * @return pb_type
14842  * @note: btstack_type 1
14843  */
14844 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){
14845     return event[6];
14846 }
14847 
14848 /**
14849  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED
14850  * @param event packet
14851  * @return pb_transport_cid
14852  * @note: btstack_type 1
14853  */
14854 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){
14855     return event[3];
14856 }
14857 /**
14858  * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED
14859  * @param event packet
14860  * @return reason
14861  * @note: btstack_type 2
14862  */
14863 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){
14864     return little_endian_read_16(event, 4);
14865 }
14866 
14867 /**
14868  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER
14869  * @param event packet
14870  * @return pb_transport_cid
14871  * @note: btstack_type 2
14872  */
14873 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){
14874     return little_endian_read_16(event, 3);
14875 }
14876 /**
14877  * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER
14878  * @param event packet
14879  * @return attention_time
14880  * @note: btstack_type 1
14881  */
14882 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){
14883     return event[5];
14884 }
14885 
14886 /**
14887  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB
14888  * @param event packet
14889  * @return pb_transport_cid
14890  * @note: btstack_type 2
14891  */
14892 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){
14893     return little_endian_read_16(event, 3);
14894 }
14895 
14896 /**
14897  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB
14898  * @param event packet
14899  * @return pb_transport_cid
14900  * @note: btstack_type 2
14901  */
14902 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){
14903     return little_endian_read_16(event, 3);
14904 }
14905 
14906 /**
14907  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST
14908  * @param event packet
14909  * @return pb_transport_cid
14910  * @note: btstack_type 2
14911  */
14912 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){
14913     return little_endian_read_16(event, 3);
14914 }
14915 
14916 /**
14917  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB
14918  * @param event packet
14919  * @return pb_transport_cid
14920  * @note: btstack_type 2
14921  */
14922 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){
14923     return little_endian_read_16(event, 3);
14924 }
14925 /**
14926  * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB
14927  * @param event packet
14928  * @return output_oob
14929  * @note: btstack_type 4
14930  */
14931 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){
14932     return little_endian_read_32(event, 5);
14933 }
14934 
14935 /**
14936  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB
14937  * @param event packet
14938  * @return pb_transport_cid
14939  * @note: btstack_type 2
14940  */
14941 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){
14942     return little_endian_read_16(event, 3);
14943 }
14944 
14945 /**
14946  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB
14947  * @param event packet
14948  * @return pb_transport_cid
14949  * @note: btstack_type 2
14950  */
14951 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){
14952     return little_endian_read_16(event, 3);
14953 }
14954 
14955 /**
14956  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB
14957  * @param event packet
14958  * @return pb_transport_cid
14959  * @note: btstack_type 2
14960  */
14961 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){
14962     return little_endian_read_16(event, 3);
14963 }
14964 
14965 /**
14966  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST
14967  * @param event packet
14968  * @return pb_transport_cid
14969  * @note: btstack_type 2
14970  */
14971 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){
14972     return little_endian_read_16(event, 3);
14973 }
14974 
14975 /**
14976  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB
14977  * @param event packet
14978  * @return pb_transport_cid
14979  * @note: btstack_type 2
14980  */
14981 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){
14982     return little_endian_read_16(event, 3);
14983 }
14984 /**
14985  * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB
14986  * @param event packet
14987  * @return output_oob
14988  * @note: btstack_type 4
14989  */
14990 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){
14991     return little_endian_read_32(event, 5);
14992 }
14993 
14994 /**
14995  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB
14996  * @param event packet
14997  * @return pb_transport_cid
14998  * @note: btstack_type 2
14999  */
15000 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){
15001     return little_endian_read_16(event, 3);
15002 }
15003 
15004 /**
15005  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15006  * @param event packet
15007  * @return pb_transport_cid
15008  * @note: btstack_type 2
15009  */
15010 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){
15011     return little_endian_read_16(event, 3);
15012 }
15013 /**
15014  * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15015  * @param event packet
15016  * @return num_elements
15017  * @note: btstack_type 1
15018  */
15019 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){
15020     return event[5];
15021 }
15022 /**
15023  * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15024  * @param event packet
15025  * @return algorithms
15026  * @note: btstack_type 2
15027  */
15028 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){
15029     return little_endian_read_16(event, 6);
15030 }
15031 /**
15032  * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15033  * @param event packet
15034  * @return public_key
15035  * @note: btstack_type 1
15036  */
15037 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){
15038     return event[8];
15039 }
15040 /**
15041  * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15042  * @param event packet
15043  * @return static_oob_type
15044  * @note: btstack_type 1
15045  */
15046 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){
15047     return event[9];
15048 }
15049 /**
15050  * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15051  * @param event packet
15052  * @return output_oob_size
15053  * @note: btstack_type 1
15054  */
15055 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){
15056     return event[10];
15057 }
15058 /**
15059  * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15060  * @param event packet
15061  * @return output_oob_action
15062  * @note: btstack_type 2
15063  */
15064 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){
15065     return little_endian_read_16(event, 11);
15066 }
15067 /**
15068  * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15069  * @param event packet
15070  * @return input_oob_size
15071  * @note: btstack_type 1
15072  */
15073 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){
15074     return event[13];
15075 }
15076 /**
15077  * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES
15078  * @param event packet
15079  * @return input_oob_action
15080  * @note: btstack_type 2
15081  */
15082 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){
15083     return little_endian_read_16(event, 14);
15084 }
15085 
15086 /**
15087  * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE
15088  * @param event packet
15089  * @return pb_transport_cid
15090  * @note: btstack_type 2
15091  */
15092 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){
15093     return little_endian_read_16(event, 3);
15094 }
15095 
15096 /**
15097  * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER
15098  * @param event packet
15099  * @return attention_time
15100  * @note: btstack_type 1
15101  */
15102 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){
15103     return event[3];
15104 }
15105 
15106 /**
15107  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED
15108  * @param event packet
15109  * @return con_handle
15110  * @note: btstack_type H
15111  */
15112 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){
15113     return little_endian_read_16(event, 3);
15114 }
15115 
15116 /**
15117  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT
15118  * @param event packet
15119  * @return con_handle
15120  * @note: btstack_type H
15121  */
15122 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){
15123     return little_endian_read_16(event, 3);
15124 }
15125 
15126 /**
15127  * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED
15128  * @param event packet
15129  * @return con_handle
15130  * @note: btstack_type H
15131  */
15132 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){
15133     return little_endian_read_16(event, 3);
15134 }
15135 
15136 /**
15137  * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT
15138  * @param event packet
15139  * @return con_handle
15140  * @note: btstack_type H
15141  */
15142 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){
15143     return little_endian_read_16(event, 3);
15144 }
15145 
15146 /**
15147  * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15148  * @param event packet
15149  * @return element_index
15150  * @note: btstack_type 1
15151  */
15152 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){
15153     return event[3];
15154 }
15155 /**
15156  * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15157  * @param event packet
15158  * @return model_identifier
15159  * @note: btstack_type 4
15160  */
15161 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){
15162     return little_endian_read_32(event, 4);
15163 }
15164 /**
15165  * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15166  * @param event packet
15167  * @return state_identifier
15168  * @note: btstack_type 4
15169  */
15170 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){
15171     return little_endian_read_32(event, 8);
15172 }
15173 /**
15174  * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15175  * @param event packet
15176  * @return reason
15177  * @note: btstack_type 1
15178  */
15179 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){
15180     return event[12];
15181 }
15182 /**
15183  * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL
15184  * @param event packet
15185  * @return value
15186  * @note: btstack_type 1
15187  */
15188 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){
15189     return event[13];
15190 }
15191 
15192 /**
15193  * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16
15194  * @param event packet
15195  * @return element_index
15196  * @note: btstack_type 1
15197  */
15198 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){
15199     return event[3];
15200 }
15201 /**
15202  * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16
15203  * @param event packet
15204  * @return model_identifier
15205  * @note: btstack_type 4
15206  */
15207 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){
15208     return little_endian_read_32(event, 4);
15209 }
15210 /**
15211  * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16
15212  * @param event packet
15213  * @return state_identifier
15214  * @note: btstack_type 4
15215  */
15216 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){
15217     return little_endian_read_32(event, 8);
15218 }
15219 /**
15220  * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16
15221  * @param event packet
15222  * @return reason
15223  * @note: btstack_type 1
15224  */
15225 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){
15226     return event[12];
15227 }
15228 /**
15229  * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16
15230  * @param event packet
15231  * @return value
15232  * @note: btstack_type 2
15233  */
15234 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){
15235     return little_endian_read_16(event, 13);
15236 }
15237 
15238 /**
15239  * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15240  * @param event packet
15241  * @return element_index
15242  * @note: btstack_type 1
15243  */
15244 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){
15245     return event[3];
15246 }
15247 /**
15248  * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15249  * @param event packet
15250  * @return model_identifier
15251  * @note: btstack_type 4
15252  */
15253 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){
15254     return little_endian_read_32(event, 4);
15255 }
15256 /**
15257  * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15258  * @param event packet
15259  * @return opcode
15260  * @note: btstack_type 4
15261  */
15262 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){
15263     return little_endian_read_32(event, 8);
15264 }
15265 /**
15266  * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
15267  * @param event packet
15268  * @return dest
15269  * @note: btstack_type 2
15270  */
15271 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){
15272     return little_endian_read_16(event, 12);
15273 }
15274 
15275 /**
15276  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF
15277  * @param event packet
15278  * @return dest
15279  * @note: btstack_type 2
15280  */
15281 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){
15282     return little_endian_read_16(event, 3);
15283 }
15284 /**
15285  * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF
15286  * @param event packet
15287  * @return status
15288  * @note: btstack_type 1
15289  */
15290 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){
15291     return event[5];
15292 }
15293 /**
15294  * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF
15295  * @param event packet
15296  * @return present_value
15297  * @note: btstack_type 1
15298  */
15299 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){
15300     return event[6];
15301 }
15302 /**
15303  * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF
15304  * @param event packet
15305  * @return target_value
15306  * @note: btstack_type 1
15307  */
15308 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){
15309     return event[7];
15310 }
15311 /**
15312  * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF
15313  * @param event packet
15314  * @return remaining_time_ms
15315  * @note: btstack_type 4
15316  */
15317 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){
15318     return little_endian_read_32(event, 8);
15319 }
15320 
15321 /**
15322  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL
15323  * @param event packet
15324  * @return dest
15325  * @note: btstack_type 2
15326  */
15327 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){
15328     return little_endian_read_16(event, 3);
15329 }
15330 /**
15331  * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL
15332  * @param event packet
15333  * @return status
15334  * @note: btstack_type 1
15335  */
15336 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){
15337     return event[5];
15338 }
15339 /**
15340  * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL
15341  * @param event packet
15342  * @return present_value
15343  * @note: btstack_type 2
15344  */
15345 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){
15346     return little_endian_read_16(event, 6);
15347 }
15348 /**
15349  * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL
15350  * @param event packet
15351  * @return target_value
15352  * @note: btstack_type 2
15353  */
15354 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){
15355     return little_endian_read_16(event, 8);
15356 }
15357 /**
15358  * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL
15359  * @param event packet
15360  * @return remaining_time_ms
15361  * @note: btstack_type 4
15362  */
15363 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){
15364     return little_endian_read_32(event, 10);
15365 }
15366 
15367 /**
15368  * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15369  * @param event packet
15370  * @return dest
15371  * @note: btstack_type 2
15372  */
15373 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){
15374     return little_endian_read_16(event, 3);
15375 }
15376 /**
15377  * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15378  * @param event packet
15379  * @return netkey_index
15380  * @note: btstack_type 2
15381  */
15382 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){
15383     return little_endian_read_16(event, 5);
15384 }
15385 /**
15386  * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15387  * @param event packet
15388  * @return appkey_index
15389  * @note: btstack_type 2
15390  */
15391 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){
15392     return little_endian_read_16(event, 7);
15393 }
15394 /**
15395  * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15396  * @param event packet
15397  * @return company_id
15398  * @note: btstack_type 2
15399  */
15400 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){
15401     return little_endian_read_16(event, 9);
15402 }
15403 /**
15404  * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15405  * @param event packet
15406  * @return test_id
15407  * @note: btstack_type 1
15408  */
15409 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){
15410     return event[11];
15411 }
15412 /**
15413  * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST
15414  * @param event packet
15415  * @return acknowledged
15416  * @note: btstack_type 1
15417  */
15418 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){
15419     return event[12];
15420 }
15421 
15422 /**
15423  * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED
15424  * @param event packet
15425  * @return element_index
15426  * @note: btstack_type 1
15427  */
15428 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){
15429     return event[3];
15430 }
15431 
15432 /**
15433  * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
15434  * @param event packet
15435  * @return dest
15436  * @note: btstack_type 2
15437  */
15438 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){
15439     return little_endian_read_16(event, 3);
15440 }
15441 /**
15442  * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
15443  * @param event packet
15444  * @return status
15445  * @note: btstack_type 1
15446  */
15447 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){
15448     return event[5];
15449 }
15450 /**
15451  * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME
15452  * @param event packet
15453  * @return transition_time_gdtt
15454  * @note: btstack_type 1
15455  */
15456 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){
15457     return event[6];
15458 }
15459 
15460 /**
15461  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON
15462  * @param event packet
15463  * @return dest
15464  * @note: btstack_type 2
15465  */
15466 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){
15467     return little_endian_read_16(event, 3);
15468 }
15469 /**
15470  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON
15471  * @param event packet
15472  * @return foundation_status
15473  * @note: btstack_type 1
15474  */
15475 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){
15476     return event[5];
15477 }
15478 /**
15479  * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON
15480  * @param event packet
15481  * @return secure_network_beacon_state
15482  * @note: btstack_type 1
15483  */
15484 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){
15485     return event[6];
15486 }
15487 
15488 /**
15489  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
15490  * @param event packet
15491  * @return dest
15492  * @note: btstack_type 2
15493  */
15494 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){
15495     return little_endian_read_16(event, 3);
15496 }
15497 /**
15498  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
15499  * @param event packet
15500  * @return foundation_status
15501  * @note: btstack_type 1
15502  */
15503 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){
15504     return event[5];
15505 }
15506 /**
15507  * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL
15508  * @param event packet
15509  * @return default_ttl
15510  * @note: btstack_type 1
15511  */
15512 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){
15513     return event[6];
15514 }
15515 
15516 /**
15517  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
15518  * @param event packet
15519  * @return dest
15520  * @note: btstack_type 2
15521  */
15522 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){
15523     return little_endian_read_16(event, 3);
15524 }
15525 /**
15526  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
15527  * @param event packet
15528  * @return foundation_status
15529  * @note: btstack_type 1
15530  */
15531 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){
15532     return event[5];
15533 }
15534 /**
15535  * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY
15536  * @param event packet
15537  * @return gatt_proxy_state
15538  * @note: btstack_type 1
15539  */
15540 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){
15541     return event[6];
15542 }
15543 
15544 /**
15545  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY
15546  * @param event packet
15547  * @return dest
15548  * @note: btstack_type 2
15549  */
15550 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){
15551     return little_endian_read_16(event, 3);
15552 }
15553 /**
15554  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY
15555  * @param event packet
15556  * @return foundation_status
15557  * @note: btstack_type 1
15558  */
15559 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){
15560     return event[5];
15561 }
15562 /**
15563  * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY
15564  * @param event packet
15565  * @return relay
15566  * @note: btstack_type 1
15567  */
15568 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){
15569     return event[6];
15570 }
15571 /**
15572  * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY
15573  * @param event packet
15574  * @return retransmit_count
15575  * @note: btstack_type 1
15576  */
15577 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){
15578     return event[7];
15579 }
15580 /**
15581  * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY
15582  * @param event packet
15583  * @return retransmit_interval_ms
15584  * @note: btstack_type 1
15585  */
15586 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){
15587     return event[8];
15588 }
15589 
15590 /**
15591  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15592  * @param event packet
15593  * @return dest
15594  * @note: btstack_type 2
15595  */
15596 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){
15597     return little_endian_read_16(event, 3);
15598 }
15599 /**
15600  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15601  * @param event packet
15602  * @return foundation_status
15603  * @note: btstack_type 1
15604  */
15605 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){
15606     return event[5];
15607 }
15608 /**
15609  * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15610  * @param event packet
15611  * @return publish_address
15612  * @note: btstack_type 2
15613  */
15614 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){
15615     return little_endian_read_16(event, 6);
15616 }
15617 /**
15618  * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15619  * @param event packet
15620  * @return appkey_index
15621  * @note: btstack_type 2
15622  */
15623 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){
15624     return little_endian_read_16(event, 8);
15625 }
15626 /**
15627  * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15628  * @param event packet
15629  * @return credential_flag
15630  * @note: btstack_type 1
15631  */
15632 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){
15633     return event[10];
15634 }
15635 /**
15636  * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15637  * @param event packet
15638  * @return publish_ttl
15639  * @note: btstack_type 1
15640  */
15641 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){
15642     return event[11];
15643 }
15644 /**
15645  * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15646  * @param event packet
15647  * @return publish_period
15648  * @note: btstack_type 1
15649  */
15650 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){
15651     return event[12];
15652 }
15653 /**
15654  * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15655  * @param event packet
15656  * @return publish_retransmit_count
15657  * @note: btstack_type 1
15658  */
15659 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){
15660     return event[13];
15661 }
15662 /**
15663  * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15664  * @param event packet
15665  * @return publish_retransmit_interval_steps
15666  * @note: btstack_type 1
15667  */
15668 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){
15669     return event[14];
15670 }
15671 /**
15672  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION
15673  * @param event packet
15674  * @return model_identifier
15675  * @note: btstack_type 4
15676  */
15677 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){
15678     return little_endian_read_32(event, 15);
15679 }
15680 
15681 /**
15682  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15683  * @param event packet
15684  * @return dest
15685  * @note: btstack_type 2
15686  */
15687 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){
15688     return little_endian_read_16(event, 3);
15689 }
15690 /**
15691  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15692  * @param event packet
15693  * @return foundation_status
15694  * @note: btstack_type 1
15695  */
15696 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){
15697     return event[5];
15698 }
15699 /**
15700  * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15701  * @param event packet
15702  * @return address
15703  * @note: btstack_type 2
15704  */
15705 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){
15706     return little_endian_read_16(event, 6);
15707 }
15708 /**
15709  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION
15710  * @param event packet
15711  * @return model_identifier
15712  * @note: btstack_type 4
15713  */
15714 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){
15715     return little_endian_read_32(event, 8);
15716 }
15717 
15718 /**
15719  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15720  * @param event packet
15721  * @return dest
15722  * @note: btstack_type 2
15723  */
15724 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){
15725     return little_endian_read_16(event, 3);
15726 }
15727 /**
15728  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15729  * @param event packet
15730  * @return foundation_status
15731  * @note: btstack_type 1
15732  */
15733 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){
15734     return event[5];
15735 }
15736 /**
15737  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15738  * @param event packet
15739  * @return model_identifier
15740  * @note: btstack_type 4
15741  */
15742 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){
15743     return little_endian_read_32(event, 6);
15744 }
15745 /**
15746  * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15747  * @param event packet
15748  * @return num_subscription_addresses
15749  * @note: btstack_type 1
15750  */
15751 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){
15752     return event[10];
15753 }
15754 /**
15755  * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15756  * @param event packet
15757  * @return subscription_address_pos
15758  * @note: btstack_type 1
15759  */
15760 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){
15761     return event[11];
15762 }
15763 /**
15764  * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM
15765  * @param event packet
15766  * @return subscription_address_item
15767  * @note: btstack_type 2
15768  */
15769 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){
15770     return little_endian_read_16(event, 12);
15771 }
15772 
15773 /**
15774  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX
15775  * @param event packet
15776  * @return dest
15777  * @note: btstack_type 2
15778  */
15779 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){
15780     return little_endian_read_16(event, 3);
15781 }
15782 /**
15783  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX
15784  * @param event packet
15785  * @return foundation_status
15786  * @note: btstack_type 1
15787  */
15788 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){
15789     return event[5];
15790 }
15791 
15792 /**
15793  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15794  * @param event packet
15795  * @return dest
15796  * @note: btstack_type 2
15797  */
15798 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){
15799     return little_endian_read_16(event, 3);
15800 }
15801 /**
15802  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15803  * @param event packet
15804  * @return foundation_status
15805  * @note: btstack_type 1
15806  */
15807 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){
15808     return event[5];
15809 }
15810 /**
15811  * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15812  * @param event packet
15813  * @return num_netkey_indexes
15814  * @note: btstack_type 1
15815  */
15816 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){
15817     return event[6];
15818 }
15819 /**
15820  * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15821  * @param event packet
15822  * @return netkey_index_pos
15823  * @note: btstack_type 1
15824  */
15825 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){
15826     return event[7];
15827 }
15828 /**
15829  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM
15830  * @param event packet
15831  * @return netkey_index_item
15832  * @note: btstack_type 2
15833  */
15834 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){
15835     return little_endian_read_16(event, 8);
15836 }
15837 
15838 /**
15839  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15840  * @param event packet
15841  * @return dest
15842  * @note: btstack_type 2
15843  */
15844 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){
15845     return little_endian_read_16(event, 3);
15846 }
15847 /**
15848  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15849  * @param event packet
15850  * @return foundation_status
15851  * @note: btstack_type 1
15852  */
15853 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){
15854     return event[5];
15855 }
15856 /**
15857  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15858  * @param event packet
15859  * @return netkey_index_item
15860  * @note: btstack_type 2
15861  */
15862 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){
15863     return little_endian_read_16(event, 6);
15864 }
15865 /**
15866  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX
15867  * @param event packet
15868  * @return appkey_index_item
15869  * @note: btstack_type 2
15870  */
15871 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){
15872     return little_endian_read_16(event, 8);
15873 }
15874 
15875 /**
15876  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15877  * @param event packet
15878  * @return dest
15879  * @note: btstack_type 2
15880  */
15881 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){
15882     return little_endian_read_16(event, 3);
15883 }
15884 /**
15885  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15886  * @param event packet
15887  * @return foundation_status
15888  * @note: btstack_type 1
15889  */
15890 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){
15891     return event[5];
15892 }
15893 /**
15894  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15895  * @param event packet
15896  * @return netkey_index
15897  * @note: btstack_type 2
15898  */
15899 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){
15900     return little_endian_read_16(event, 6);
15901 }
15902 /**
15903  * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15904  * @param event packet
15905  * @return num_appkey_indexes
15906  * @note: btstack_type 1
15907  */
15908 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){
15909     return event[8];
15910 }
15911 /**
15912  * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15913  * @param event packet
15914  * @return appkey_index_pos
15915  * @note: btstack_type 1
15916  */
15917 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){
15918     return event[9];
15919 }
15920 /**
15921  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15922  * @param event packet
15923  * @return netkey_index_item
15924  * @note: btstack_type 2
15925  */
15926 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){
15927     return little_endian_read_16(event, 10);
15928 }
15929 /**
15930  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM
15931  * @param event packet
15932  * @return appkey_index_item
15933  * @note: btstack_type 2
15934  */
15935 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){
15936     return little_endian_read_16(event, 12);
15937 }
15938 
15939 /**
15940  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
15941  * @param event packet
15942  * @return dest
15943  * @note: btstack_type 2
15944  */
15945 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){
15946     return little_endian_read_16(event, 3);
15947 }
15948 /**
15949  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
15950  * @param event packet
15951  * @return foundation_status
15952  * @note: btstack_type 1
15953  */
15954 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){
15955     return event[5];
15956 }
15957 /**
15958  * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
15959  * @param event packet
15960  * @return netkey_index_item
15961  * @note: btstack_type 2
15962  */
15963 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){
15964     return little_endian_read_16(event, 6);
15965 }
15966 /**
15967  * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY
15968  * @param event packet
15969  * @return identity_status
15970  * @note: btstack_type 1
15971  */
15972 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){
15973     return event[8];
15974 }
15975 
15976 /**
15977  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
15978  * @param event packet
15979  * @return dest
15980  * @note: btstack_type 2
15981  */
15982 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){
15983     return little_endian_read_16(event, 3);
15984 }
15985 /**
15986  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
15987  * @param event packet
15988  * @return foundation_status
15989  * @note: btstack_type 1
15990  */
15991 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){
15992     return event[5];
15993 }
15994 /**
15995  * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
15996  * @param event packet
15997  * @return appkey_index
15998  * @note: btstack_type 2
15999  */
16000 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){
16001     return little_endian_read_16(event, 6);
16002 }
16003 /**
16004  * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP
16005  * @param event packet
16006  * @return model_identifier
16007  * @note: btstack_type 4
16008  */
16009 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){
16010     return little_endian_read_32(event, 8);
16011 }
16012 
16013 /**
16014  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16015  * @param event packet
16016  * @return dest
16017  * @note: btstack_type 2
16018  */
16019 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){
16020     return little_endian_read_16(event, 3);
16021 }
16022 /**
16023  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16024  * @param event packet
16025  * @return foundation_status
16026  * @note: btstack_type 1
16027  */
16028 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){
16029     return event[5];
16030 }
16031 /**
16032  * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16033  * @param event packet
16034  * @return model_id
16035  * @note: btstack_type 4
16036  */
16037 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){
16038     return little_endian_read_32(event, 6);
16039 }
16040 /**
16041  * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16042  * @param event packet
16043  * @return num_appkey_indexes
16044  * @note: btstack_type 1
16045  */
16046 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){
16047     return event[10];
16048 }
16049 /**
16050  * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16051  * @param event packet
16052  * @return appkey_index_pos
16053  * @note: btstack_type 1
16054  */
16055 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){
16056     return event[11];
16057 }
16058 /**
16059  * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM
16060  * @param event packet
16061  * @return appkey_index_item
16062  * @note: btstack_type 2
16063  */
16064 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){
16065     return little_endian_read_16(event, 12);
16066 }
16067 
16068 /**
16069  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET
16070  * @param event packet
16071  * @return dest
16072  * @note: btstack_type 2
16073  */
16074 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){
16075     return little_endian_read_16(event, 3);
16076 }
16077 /**
16078  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET
16079  * @param event packet
16080  * @return foundation_status
16081  * @note: btstack_type 1
16082  */
16083 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){
16084     return event[5];
16085 }
16086 
16087 /**
16088  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND
16089  * @param event packet
16090  * @return dest
16091  * @note: btstack_type 2
16092  */
16093 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){
16094     return little_endian_read_16(event, 3);
16095 }
16096 /**
16097  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND
16098  * @param event packet
16099  * @return foundation_status
16100  * @note: btstack_type 1
16101  */
16102 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){
16103     return event[5];
16104 }
16105 /**
16106  * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND
16107  * @param event packet
16108  * @return friend_state
16109  * @note: btstack_type 1
16110  */
16111 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){
16112     return event[6];
16113 }
16114 
16115 /**
16116  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16117  * @param event packet
16118  * @return dest
16119  * @note: btstack_type 2
16120  */
16121 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){
16122     return little_endian_read_16(event, 3);
16123 }
16124 /**
16125  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16126  * @param event packet
16127  * @return foundation_status
16128  * @note: btstack_type 1
16129  */
16130 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){
16131     return event[5];
16132 }
16133 /**
16134  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16135  * @param event packet
16136  * @return netkey_index
16137  * @note: btstack_type 2
16138  */
16139 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){
16140     return little_endian_read_16(event, 6);
16141 }
16142 /**
16143  * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE
16144  * @param event packet
16145  * @return phase
16146  * @note: btstack_type 1
16147  */
16148 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){
16149     return event[8];
16150 }
16151 
16152 /**
16153  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16154  * @param event packet
16155  * @return dest
16156  * @note: btstack_type 2
16157  */
16158 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){
16159     return little_endian_read_16(event, 3);
16160 }
16161 /**
16162  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16163  * @param event packet
16164  * @return foundation_status
16165  * @note: btstack_type 1
16166  */
16167 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){
16168     return event[5];
16169 }
16170 /**
16171  * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16172  * @param event packet
16173  * @return heartbeat_destination
16174  * @note: btstack_type 2
16175  */
16176 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){
16177     return little_endian_read_16(event, 6);
16178 }
16179 /**
16180  * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16181  * @param event packet
16182  * @return count_S
16183  * @note: btstack_type 2
16184  */
16185 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){
16186     return little_endian_read_16(event, 8);
16187 }
16188 /**
16189  * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16190  * @param event packet
16191  * @return period_S
16192  * @note: btstack_type 2
16193  */
16194 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){
16195     return little_endian_read_16(event, 10);
16196 }
16197 /**
16198  * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16199  * @param event packet
16200  * @return ttl
16201  * @note: btstack_type 1
16202  */
16203 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){
16204     return event[12];
16205 }
16206 /**
16207  * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16208  * @param event packet
16209  * @return features
16210  * @note: btstack_type 2
16211  */
16212 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){
16213     return little_endian_read_16(event, 13);
16214 }
16215 /**
16216  * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION
16217  * @param event packet
16218  * @return netkey_index
16219  * @note: btstack_type 2
16220  */
16221 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){
16222     return little_endian_read_16(event, 15);
16223 }
16224 
16225 /**
16226  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16227  * @param event packet
16228  * @return dest
16229  * @note: btstack_type 2
16230  */
16231 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){
16232     return little_endian_read_16(event, 3);
16233 }
16234 /**
16235  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16236  * @param event packet
16237  * @return foundation_status
16238  * @note: btstack_type 1
16239  */
16240 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){
16241     return event[5];
16242 }
16243 /**
16244  * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16245  * @param event packet
16246  * @return heartbeat_destination
16247  * @note: btstack_type 2
16248  */
16249 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){
16250     return little_endian_read_16(event, 6);
16251 }
16252 /**
16253  * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16254  * @param event packet
16255  * @return heartbeat_source
16256  * @note: btstack_type 2
16257  */
16258 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){
16259     return little_endian_read_16(event, 8);
16260 }
16261 /**
16262  * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16263  * @param event packet
16264  * @return count_S
16265  * @note: btstack_type 2
16266  */
16267 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){
16268     return little_endian_read_16(event, 10);
16269 }
16270 /**
16271  * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16272  * @param event packet
16273  * @return period_S
16274  * @note: btstack_type 2
16275  */
16276 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){
16277     return little_endian_read_16(event, 12);
16278 }
16279 /**
16280  * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16281  * @param event packet
16282  * @return min_hops
16283  * @note: btstack_type 1
16284  */
16285 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){
16286     return event[14];
16287 }
16288 /**
16289  * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION
16290  * @param event packet
16291  * @return max_hops
16292  * @note: btstack_type 1
16293  */
16294 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){
16295     return event[15];
16296 }
16297 
16298 /**
16299  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16300  * @param event packet
16301  * @return dest
16302  * @note: btstack_type 2
16303  */
16304 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){
16305     return little_endian_read_16(event, 3);
16306 }
16307 /**
16308  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16309  * @param event packet
16310  * @return foundation_status
16311  * @note: btstack_type 1
16312  */
16313 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){
16314     return event[5];
16315 }
16316 /**
16317  * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16318  * @param event packet
16319  * @return lpn_address
16320  * @note: btstack_type 2
16321  */
16322 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){
16323     return little_endian_read_16(event, 6);
16324 }
16325 /**
16326  * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT
16327  * @param event packet
16328  * @return poll_timeout
16329  * @note: btstack_type 3
16330  */
16331 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){
16332     return little_endian_read_24(event, 8);
16333 }
16334 
16335 /**
16336  * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16337  * @param event packet
16338  * @return dest
16339  * @note: btstack_type 2
16340  */
16341 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){
16342     return little_endian_read_16(event, 3);
16343 }
16344 /**
16345  * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16346  * @param event packet
16347  * @return foundation_status
16348  * @note: btstack_type 1
16349  */
16350 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){
16351     return event[5];
16352 }
16353 /**
16354  * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16355  * @param event packet
16356  * @return transmit_count
16357  * @note: btstack_type 1
16358  */
16359 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){
16360     return event[6];
16361 }
16362 /**
16363  * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT
16364  * @param event packet
16365  * @return transmit_interval_steps_ms
16366  * @note: btstack_type 2
16367  */
16368 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){
16369     return little_endian_read_16(event, 7);
16370 }
16371 
16372 
16373 
16374 /* API_END */
16375 
16376 #if defined __cplusplus
16377 }
16378 #endif
16379 
16380 #endif // BTSTACK_EVENT_H
16381