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