xref: /btstack/src/btstack_event.h (revision c741b03209d068c435387bd177556612c394f5fe)
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  *  btstack_event.h
41  *
42  *  @brief BTstack event getter/setter
43  *  @note  Don't edit - generated by tool/btstack_event_generator.py
44  *
45  */
46 
47 #ifndef __BTSTACK_EVENT_H
48 #define __BTSTACK_EVENT_H
49 
50 #if defined __cplusplus
51 extern "C" {
52 #endif
53 
54 #include "btstack_util.h"
55 #include <stdint.h>
56 
57 #ifdef ENABLE_BLE
58 #include "ble/gatt_client.h"
59 #endif
60 
61 /* API_START */
62 
63 /**
64  * @brief Get event type
65  * @param event
66  * @return type of event
67  */
68 static inline uint8_t hci_event_packet_get_type(const uint8_t * event){
69     return event[0];
70 }
71 
72 /***
73  * @brief Get subevent code for a2dp event
74  * @param event packet
75  * @return subevent_code
76  */
77 static inline uint8_t hci_event_a2dp_meta_get_subevent_code(const uint8_t * event){
78     return event[2];
79 }
80 /***
81  * @brief Get subevent code for ancs event
82  * @param event packet
83  * @return subevent_code
84  */
85 static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){
86     return event[2];
87 }
88 /***
89  * @brief Get subevent code for avdtp event
90  * @param event packet
91  * @return subevent_code
92  */
93 static inline uint8_t hci_event_avdtp_meta_get_subevent_code(const uint8_t * event){
94     return event[2];
95 }
96 /***
97  * @brief Get subevent code for avrcp event
98  * @param event packet
99  * @return subevent_code
100  */
101 static inline uint8_t hci_event_avrcp_meta_get_subevent_code(const uint8_t * event){
102     return event[2];
103 }
104 /***
105  * @brief Get subevent code for gattservice event
106  * @param event packet
107  * @return subevent_code
108  */
109 static inline uint8_t hci_event_gattservice_meta_get_subevent_code(const uint8_t * event){
110     return event[2];
111 }
112 /***
113  * @brief Get subevent code for goep event
114  * @param event packet
115  * @return subevent_code
116  */
117 static inline uint8_t hci_event_goep_meta_get_subevent_code(const uint8_t * event){
118     return event[2];
119 }
120 /***
121  * @brief Get subevent code for hfp event
122  * @param event packet
123  * @return subevent_code
124  */
125 static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event){
126     return event[2];
127 }
128 /***
129  * @brief Get subevent code for hid event
130  * @param event packet
131  * @return subevent_code
132  */
133 static inline uint8_t hci_event_hid_meta_get_subevent_code(const uint8_t * event){
134     return event[2];
135 }
136 /***
137  * @brief Get subevent code for hids event
138  * @param event packet
139  * @return subevent_code
140  */
141 static inline uint8_t hci_event_hids_meta_get_subevent_code(const uint8_t * event){
142     return event[2];
143 }
144 /***
145  * @brief Get subevent code for hsp event
146  * @param event packet
147  * @return subevent_code
148  */
149 static inline uint8_t hci_event_hsp_meta_get_subevent_code(const uint8_t * event){
150     return event[2];
151 }
152 /***
153  * @brief Get subevent code for le event
154  * @param event packet
155  * @return subevent_code
156  */
157 static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){
158     return event[2];
159 }
160 /***
161  * @brief Get subevent code for pbap event
162  * @param event packet
163  * @return subevent_code
164  */
165 static inline uint8_t hci_event_pbap_meta_get_subevent_code(const uint8_t * event){
166     return event[2];
167 }
168 /**
169  * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE
170  * @param event packet
171  * @return status
172  * @note: btstack_type 1
173  */
174 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){
175     return event[2];
176 }
177 
178 /**
179  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT
180  * @param event packet
181  * @return num_responses
182  * @note: btstack_type 1
183  */
184 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){
185     return event[2];
186 }
187 /**
188  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT
189  * @param event packet
190  * @param Pointer to storage for bd_addr
191  * @note: btstack_type B
192  */
193 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
194     reverse_bd_addr(&event[3], bd_addr);
195 }
196 /**
197  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT
198  * @param event packet
199  * @return page_scan_repetition_mode
200  * @note: btstack_type 1
201  */
202 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
203     return event[9];
204 }
205 /**
206  * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT
207  * @param event packet
208  * @return reserved1
209  * @note: btstack_type 1
210  */
211 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){
212     return event[10];
213 }
214 /**
215  * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT
216  * @param event packet
217  * @return reserved2
218  * @note: btstack_type 1
219  */
220 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){
221     return event[11];
222 }
223 /**
224  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT
225  * @param event packet
226  * @return class_of_device
227  * @note: btstack_type 3
228  */
229 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){
230     return little_endian_read_24(event, 12);
231 }
232 /**
233  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT
234  * @param event packet
235  * @return clock_offset
236  * @note: btstack_type 2
237  */
238 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){
239     return little_endian_read_16(event, 15);
240 }
241 
242 /**
243  * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE
244  * @param event packet
245  * @return status
246  * @note: btstack_type 1
247  */
248 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){
249     return event[2];
250 }
251 /**
252  * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE
253  * @param event packet
254  * @return connection_handle
255  * @note: btstack_type 2
256  */
257 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){
258     return little_endian_read_16(event, 3);
259 }
260 /**
261  * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE
262  * @param event packet
263  * @param Pointer to storage for bd_addr
264  * @note: btstack_type B
265  */
266 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
267     reverse_bd_addr(&event[5], bd_addr);
268 }
269 /**
270  * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE
271  * @param event packet
272  * @return link_type
273  * @note: btstack_type 1
274  */
275 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){
276     return event[11];
277 }
278 /**
279  * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE
280  * @param event packet
281  * @return encryption_enabled
282  * @note: btstack_type 1
283  */
284 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){
285     return event[12];
286 }
287 
288 /**
289  * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST
290  * @param event packet
291  * @param Pointer to storage for bd_addr
292  * @note: btstack_type B
293  */
294 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
295     reverse_bd_addr(&event[2], bd_addr);
296 }
297 /**
298  * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST
299  * @param event packet
300  * @return class_of_device
301  * @note: btstack_type 3
302  */
303 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){
304     return little_endian_read_24(event, 8);
305 }
306 /**
307  * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST
308  * @param event packet
309  * @return link_type
310  * @note: btstack_type 1
311  */
312 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){
313     return event[11];
314 }
315 
316 /**
317  * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE
318  * @param event packet
319  * @return status
320  * @note: btstack_type 1
321  */
322 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){
323     return event[2];
324 }
325 /**
326  * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE
327  * @param event packet
328  * @return connection_handle
329  * @note: btstack_type 2
330  */
331 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){
332     return little_endian_read_16(event, 3);
333 }
334 /**
335  * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE
336  * @param event packet
337  * @return reason
338  * @note: btstack_type 1
339  */
340 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){
341     return event[5];
342 }
343 
344 /**
345  * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE
346  * @param event packet
347  * @return status
348  * @note: btstack_type 1
349  */
350 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){
351     return event[2];
352 }
353 /**
354  * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE
355  * @param event packet
356  * @return connection_handle
357  * @note: btstack_type 2
358  */
359 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){
360     return little_endian_read_16(event, 3);
361 }
362 
363 /**
364  * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
365  * @param event packet
366  * @return status
367  * @note: btstack_type 1
368  */
369 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){
370     return event[2];
371 }
372 /**
373  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
374  * @param event packet
375  * @param Pointer to storage for bd_addr
376  * @note: btstack_type B
377  */
378 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
379     reverse_bd_addr(&event[3], bd_addr);
380 }
381 /**
382  * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
383  * @param event packet
384  * @return remote_name
385  * @note: btstack_type N
386  */
387 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){
388     return (const char *) &event[9];
389 }
390 
391 /**
392  * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE
393  * @param event packet
394  * @return status
395  * @note: btstack_type 1
396  */
397 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){
398     return event[2];
399 }
400 /**
401  * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE
402  * @param event packet
403  * @return connection_handle
404  * @note: btstack_type 2
405  */
406 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){
407     return little_endian_read_16(event, 3);
408 }
409 /**
410  * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE
411  * @param event packet
412  * @return encryption_enabled
413  * @note: btstack_type 1
414  */
415 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){
416     return event[5];
417 }
418 
419 /**
420  * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
421  * @param event packet
422  * @return status
423  * @note: btstack_type 1
424  */
425 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){
426     return event[2];
427 }
428 /**
429  * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
430  * @param event packet
431  * @return connection_handle
432  * @note: btstack_type 2
433  */
434 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){
435     return little_endian_read_16(event, 3);
436 }
437 
438 /**
439  * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
440  * @param event packet
441  * @return status
442  * @note: btstack_type 1
443  */
444 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){
445     return event[2];
446 }
447 /**
448  * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
449  * @param event packet
450  * @return connection_handle
451  * @note: btstack_type 2
452  */
453 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){
454     return little_endian_read_16(event, 3);
455 }
456 /**
457  * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE
458  * @param event packet
459  * @return key_flag
460  * @note: btstack_type 1
461  */
462 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){
463     return event[5];
464 }
465 
466 /**
467  * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE
468  * @param event packet
469  * @return num_hci_command_packets
470  * @note: btstack_type 1
471  */
472 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){
473     return event[2];
474 }
475 /**
476  * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE
477  * @param event packet
478  * @return command_opcode
479  * @note: btstack_type 2
480  */
481 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){
482     return little_endian_read_16(event, 3);
483 }
484 /**
485  * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE
486  * @param event packet
487  * @return return_parameters
488  * @note: btstack_type R
489  */
490 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){
491     return &event[5];
492 }
493 
494 /**
495  * @brief Get field status from event HCI_EVENT_COMMAND_STATUS
496  * @param event packet
497  * @return status
498  * @note: btstack_type 1
499  */
500 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){
501     return event[2];
502 }
503 /**
504  * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS
505  * @param event packet
506  * @return num_hci_command_packets
507  * @note: btstack_type 1
508  */
509 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){
510     return event[3];
511 }
512 /**
513  * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS
514  * @param event packet
515  * @return command_opcode
516  * @note: btstack_type 2
517  */
518 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){
519     return little_endian_read_16(event, 4);
520 }
521 
522 /**
523  * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR
524  * @param event packet
525  * @return hardware_code
526  * @note: btstack_type 1
527  */
528 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){
529     return event[2];
530 }
531 
532 /**
533  * @brief Get field status from event HCI_EVENT_ROLE_CHANGE
534  * @param event packet
535  * @return status
536  * @note: btstack_type 1
537  */
538 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){
539     return event[2];
540 }
541 /**
542  * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE
543  * @param event packet
544  * @param Pointer to storage for bd_addr
545  * @note: btstack_type B
546  */
547 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
548     reverse_bd_addr(&event[3], bd_addr);
549 }
550 /**
551  * @brief Get field role from event HCI_EVENT_ROLE_CHANGE
552  * @param event packet
553  * @return role
554  * @note: btstack_type 1
555  */
556 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){
557     return event[9];
558 }
559 
560 /**
561  * @brief Get field status from event HCI_EVENT_MODE_CHANGE
562  * @param event packet
563  * @return status
564  * @note: btstack_type 1
565  */
566 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){
567     return event[2];
568 }
569 /**
570  * @brief Get field handle from event HCI_EVENT_MODE_CHANGE
571  * @param event packet
572  * @return handle
573  * @note: btstack_type H
574  */
575 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){
576     return little_endian_read_16(event, 3);
577 }
578 /**
579  * @brief Get field mode from event HCI_EVENT_MODE_CHANGE
580  * @param event packet
581  * @return mode
582  * @note: btstack_type 1
583  */
584 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){
585     return event[5];
586 }
587 /**
588  * @brief Get field interval from event HCI_EVENT_MODE_CHANGE
589  * @param event packet
590  * @return interval
591  * @note: btstack_type 2
592  */
593 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){
594     return little_endian_read_16(event, 6);
595 }
596 
597 /**
598  * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST
599  * @param event packet
600  * @param Pointer to storage for bd_addr
601  * @note: btstack_type B
602  */
603 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
604     reverse_bd_addr(&event[2], bd_addr);
605 }
606 
607 /**
608  * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_REQUEST
609  * @param event packet
610  * @param Pointer to storage for bd_addr
611  * @note: btstack_type B
612  */
613 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
614     reverse_bd_addr(&event[2], bd_addr);
615 }
616 
617 /**
618  * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW
619  * @param event packet
620  * @return link_type
621  * @note: btstack_type 1
622  */
623 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){
624     return event[2];
625 }
626 
627 /**
628  * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED
629  * @param event packet
630  * @return handle
631  * @note: btstack_type H
632  */
633 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){
634     return little_endian_read_16(event, 2);
635 }
636 /**
637  * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED
638  * @param event packet
639  * @return lmp_max_slots
640  * @note: btstack_type 1
641  */
642 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){
643     return event[4];
644 }
645 
646 /**
647  * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
648  * @param event packet
649  * @return status
650  * @note: btstack_type 1
651  */
652 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){
653     return event[2];
654 }
655 /**
656  * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
657  * @param event packet
658  * @return handle
659  * @note: btstack_type H
660  */
661 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){
662     return little_endian_read_16(event, 3);
663 }
664 /**
665  * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
666  * @param event packet
667  * @return clock_offset
668  * @note: btstack_type 2
669  */
670 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){
671     return little_endian_read_16(event, 5);
672 }
673 
674 /**
675  * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
676  * @param event packet
677  * @return status
678  * @note: btstack_type 1
679  */
680 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){
681     return event[2];
682 }
683 /**
684  * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
685  * @param event packet
686  * @return handle
687  * @note: btstack_type H
688  */
689 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){
690     return little_endian_read_16(event, 3);
691 }
692 /**
693  * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
694  * @param event packet
695  * @return packet_types
696  * @note: btstack_type 2
697  */
698 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){
699     return little_endian_read_16(event, 5);
700 }
701 
702 /**
703  * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
704  * @param event packet
705  * @return num_responses
706  * @note: btstack_type 1
707  */
708 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){
709     return event[2];
710 }
711 /**
712  * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
713  * @param event packet
714  * @param Pointer to storage for bd_addr
715  * @note: btstack_type B
716  */
717 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
718     reverse_bd_addr(&event[3], bd_addr);
719 }
720 /**
721  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
722  * @param event packet
723  * @return page_scan_repetition_mode
724  * @note: btstack_type 1
725  */
726 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){
727     return event[9];
728 }
729 /**
730  * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
731  * @param event packet
732  * @return reserved
733  * @note: btstack_type 1
734  */
735 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){
736     return event[10];
737 }
738 /**
739  * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
740  * @param event packet
741  * @return class_of_device
742  * @note: btstack_type 3
743  */
744 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){
745     return little_endian_read_24(event, 11);
746 }
747 /**
748  * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
749  * @param event packet
750  * @return clock_offset
751  * @note: btstack_type 2
752  */
753 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){
754     return little_endian_read_16(event, 14);
755 }
756 /**
757  * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI
758  * @param event packet
759  * @return rssi
760  * @note: btstack_type 1
761  */
762 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){
763     return event[16];
764 }
765 
766 /**
767  * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
768  * @param event packet
769  * @return status
770  * @note: btstack_type 1
771  */
772 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){
773     return event[2];
774 }
775 /**
776  * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
777  * @param event packet
778  * @return handle
779  * @note: btstack_type H
780  */
781 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){
782     return little_endian_read_16(event, 3);
783 }
784 /**
785  * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
786  * @param event packet
787  * @param Pointer to storage for bd_addr
788  * @note: btstack_type B
789  */
790 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
791     reverse_bd_addr(&event[5], bd_addr);
792 }
793 /**
794  * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
795  * @param event packet
796  * @return link_type
797  * @note: btstack_type 1
798  */
799 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){
800     return event[11];
801 }
802 /**
803  * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
804  * @param event packet
805  * @return transmission_interval
806  * @note: btstack_type 1
807  */
808 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){
809     return event[12];
810 }
811 /**
812  * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
813  * @param event packet
814  * @return retransmission_interval
815  * @note: btstack_type 1
816  */
817 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){
818     return event[13];
819 }
820 /**
821  * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
822  * @param event packet
823  * @return rx_packet_length
824  * @note: btstack_type 2
825  */
826 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){
827     return little_endian_read_16(event, 14);
828 }
829 /**
830  * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
831  * @param event packet
832  * @return tx_packet_length
833  * @note: btstack_type 2
834  */
835 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){
836     return little_endian_read_16(event, 16);
837 }
838 /**
839  * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE
840  * @param event packet
841  * @return air_mode
842  * @note: btstack_type 1
843  */
844 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){
845     return event[18];
846 }
847 
848 /**
849  * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
850  * @param event packet
851  * @return num_responses
852  * @note: btstack_type 1
853  */
854 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){
855     return event[2];
856 }
857 /**
858  * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
859  * @param event packet
860  * @param Pointer to storage for bd_addr
861  * @note: btstack_type B
862  */
863 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
864     reverse_bd_addr(&event[3], bd_addr);
865 }
866 /**
867  * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
868  * @param event packet
869  * @return page_scan_repetition_mode
870  * @note: btstack_type 1
871  */
872 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){
873     return event[9];
874 }
875 /**
876  * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
877  * @param event packet
878  * @return reserved
879  * @note: btstack_type 1
880  */
881 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){
882     return event[10];
883 }
884 /**
885  * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
886  * @param event packet
887  * @return class_of_device
888  * @note: btstack_type 3
889  */
890 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){
891     return little_endian_read_24(event, 11);
892 }
893 /**
894  * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
895  * @param event packet
896  * @return clock_offset
897  * @note: btstack_type 2
898  */
899 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){
900     return little_endian_read_16(event, 14);
901 }
902 /**
903  * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE
904  * @param event packet
905  * @return rssi
906  * @note: btstack_type 1
907  */
908 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){
909     return event[16];
910 }
911 
912 /**
913  * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
914  * @param event packet
915  * @return status
916  * @note: btstack_type 1
917  */
918 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){
919     return event[2];
920 }
921 /**
922  * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE
923  * @param event packet
924  * @return handle
925  * @note: btstack_type H
926  */
927 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){
928     return little_endian_read_16(event, 3);
929 }
930 
931 /**
932  * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST
933  * @param event packet
934  * @param Pointer to storage for bd_addr
935  * @note: btstack_type B
936  */
937 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
938     reverse_bd_addr(&event[2], bd_addr);
939 }
940 /**
941  * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST
942  * @param event packet
943  * @return numeric_value
944  * @note: btstack_type 4
945  */
946 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){
947     return little_endian_read_32(event, 8);
948 }
949 
950 /**
951  * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST
952  * @param event packet
953  * @param Pointer to storage for bd_addr
954  * @note: btstack_type B
955  */
956 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
957     reverse_bd_addr(&event[2], bd_addr);
958 }
959 
960 /**
961  * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST
962  * @param event packet
963  * @param Pointer to storage for bd_addr
964  * @note: btstack_type B
965  */
966 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
967     reverse_bd_addr(&event[2], bd_addr);
968 }
969 
970 /**
971  * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
972  * @param event packet
973  * @return status
974  * @note: btstack_type 1
975  */
976 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){
977     return event[2];
978 }
979 /**
980  * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE
981  * @param event packet
982  * @param Pointer to storage for bd_addr
983  * @note: btstack_type B
984  */
985 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
986     reverse_bd_addr(&event[3], bd_addr);
987 }
988 
989 /**
990  * @brief Get field state from event BTSTACK_EVENT_STATE
991  * @param event packet
992  * @return state
993  * @note: btstack_type 1
994  */
995 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){
996     return event[2];
997 }
998 
999 /**
1000  * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED
1001  * @param event packet
1002  * @return number_connections
1003  * @note: btstack_type 1
1004  */
1005 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){
1006     return event[2];
1007 }
1008 
1009 
1010 /**
1011  * @brief Get field discoverable from event BTSTACK_EVENT_DISCOVERABLE_ENABLED
1012  * @param event packet
1013  * @return discoverable
1014  * @note: btstack_type 1
1015  */
1016 static inline uint8_t btstack_event_discoverable_enabled_get_discoverable(const uint8_t * event){
1017     return event[2];
1018 }
1019 
1020 /**
1021  * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE
1022  * @param event packet
1023  * @return active
1024  * @note: btstack_type 1
1025  */
1026 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){
1027     return event[2];
1028 }
1029 
1030 /**
1031  * @brief Get field handle from event HCI_EVENT_SCO_CAN_SEND_NOW
1032  * @param event packet
1033  * @param Pointer to storage for handle
1034  * @note: btstack_type B
1035  */
1036 static inline void hci_event_sco_can_send_now_get_handle(const uint8_t * event, bd_addr_t handle){
1037     reverse_bd_addr(&event[2], handle);
1038 }
1039 
1040 /**
1041  * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED
1042  * @param event packet
1043  * @return status
1044  * @note: btstack_type 1
1045  */
1046 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){
1047     return event[2];
1048 }
1049 /**
1050  * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED
1051  * @param event packet
1052  * @param Pointer to storage for address
1053  * @note: btstack_type B
1054  */
1055 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1056     reverse_bd_addr(&event[3], address);
1057 }
1058 /**
1059  * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED
1060  * @param event packet
1061  * @return handle
1062  * @note: btstack_type H
1063  */
1064 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){
1065     return little_endian_read_16(event, 9);
1066 }
1067 /**
1068  * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED
1069  * @param event packet
1070  * @return psm
1071  * @note: btstack_type 2
1072  */
1073 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){
1074     return little_endian_read_16(event, 11);
1075 }
1076 /**
1077  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED
1078  * @param event packet
1079  * @return local_cid
1080  * @note: btstack_type 2
1081  */
1082 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){
1083     return little_endian_read_16(event, 13);
1084 }
1085 /**
1086  * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED
1087  * @param event packet
1088  * @return remote_cid
1089  * @note: btstack_type 2
1090  */
1091 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){
1092     return little_endian_read_16(event, 15);
1093 }
1094 /**
1095  * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1096  * @param event packet
1097  * @return local_mtu
1098  * @note: btstack_type 2
1099  */
1100 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){
1101     return little_endian_read_16(event, 17);
1102 }
1103 /**
1104  * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED
1105  * @param event packet
1106  * @return remote_mtu
1107  * @note: btstack_type 2
1108  */
1109 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){
1110     return little_endian_read_16(event, 19);
1111 }
1112 /**
1113  * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED
1114  * @param event packet
1115  * @return flush_timeout
1116  * @note: btstack_type 2
1117  */
1118 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){
1119     return little_endian_read_16(event, 21);
1120 }
1121 /**
1122  * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED
1123  * @param event packet
1124  * @return incoming
1125  * @note: btstack_type 1
1126  */
1127 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){
1128     return event[23];
1129 }
1130 
1131 /**
1132  * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED
1133  * @param event packet
1134  * @return local_cid
1135  * @note: btstack_type 2
1136  */
1137 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){
1138     return little_endian_read_16(event, 2);
1139 }
1140 
1141 /**
1142  * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION
1143  * @param event packet
1144  * @param Pointer to storage for address
1145  * @note: btstack_type B
1146  */
1147 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1148     reverse_bd_addr(&event[2], address);
1149 }
1150 /**
1151  * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION
1152  * @param event packet
1153  * @return handle
1154  * @note: btstack_type H
1155  */
1156 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){
1157     return little_endian_read_16(event, 8);
1158 }
1159 /**
1160  * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION
1161  * @param event packet
1162  * @return psm
1163  * @note: btstack_type 2
1164  */
1165 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){
1166     return little_endian_read_16(event, 10);
1167 }
1168 /**
1169  * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1170  * @param event packet
1171  * @return local_cid
1172  * @note: btstack_type 2
1173  */
1174 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){
1175     return little_endian_read_16(event, 12);
1176 }
1177 /**
1178  * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION
1179  * @param event packet
1180  * @return remote_cid
1181  * @note: btstack_type 2
1182  */
1183 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){
1184     return little_endian_read_16(event, 14);
1185 }
1186 
1187 /**
1188  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1189  * @param event packet
1190  * @return handle
1191  * @note: btstack_type H
1192  */
1193 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){
1194     return little_endian_read_16(event, 2);
1195 }
1196 /**
1197  * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1198  * @param event packet
1199  * @return interval_min
1200  * @note: btstack_type 2
1201  */
1202 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){
1203     return little_endian_read_16(event, 4);
1204 }
1205 /**
1206  * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1207  * @param event packet
1208  * @return interval_max
1209  * @note: btstack_type 2
1210  */
1211 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){
1212     return little_endian_read_16(event, 6);
1213 }
1214 /**
1215  * @brief Get field latencey from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1216  * @param event packet
1217  * @return latencey
1218  * @note: btstack_type 2
1219  */
1220 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latencey(const uint8_t * event){
1221     return little_endian_read_16(event, 8);
1222 }
1223 /**
1224  * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
1225  * @param event packet
1226  * @return timeout_multiplier
1227  * @note: btstack_type 2
1228  */
1229 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){
1230     return little_endian_read_16(event, 10);
1231 }
1232 
1233 /**
1234  * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1235  * @param event packet
1236  * @return handle
1237  * @note: btstack_type H
1238  */
1239 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){
1240     return little_endian_read_16(event, 2);
1241 }
1242 /**
1243  * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
1244  * @param event packet
1245  * @return result
1246  * @note: btstack_type 2
1247  */
1248 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){
1249     return little_endian_read_16(event, 4);
1250 }
1251 
1252 /**
1253  * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW
1254  * @param event packet
1255  * @return local_cid
1256  * @note: btstack_type 2
1257  */
1258 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){
1259     return little_endian_read_16(event, 2);
1260 }
1261 
1262 /**
1263  * @brief Get field address_type from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1264  * @param event packet
1265  * @return address_type
1266  * @note: btstack_type 1
1267  */
1268 static inline uint8_t l2cap_event_le_incoming_connection_get_address_type(const uint8_t * event){
1269     return event[2];
1270 }
1271 /**
1272  * @brief Get field address from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1273  * @param event packet
1274  * @param Pointer to storage for address
1275  * @note: btstack_type B
1276  */
1277 static inline void l2cap_event_le_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){
1278     reverse_bd_addr(&event[3], address);
1279 }
1280 /**
1281  * @brief Get field handle from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1282  * @param event packet
1283  * @return handle
1284  * @note: btstack_type H
1285  */
1286 static inline hci_con_handle_t l2cap_event_le_incoming_connection_get_handle(const uint8_t * event){
1287     return little_endian_read_16(event, 9);
1288 }
1289 /**
1290  * @brief Get field psm from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1291  * @param event packet
1292  * @return psm
1293  * @note: btstack_type 2
1294  */
1295 static inline uint16_t l2cap_event_le_incoming_connection_get_psm(const uint8_t * event){
1296     return little_endian_read_16(event, 11);
1297 }
1298 /**
1299  * @brief Get field local_cid from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1300  * @param event packet
1301  * @return local_cid
1302  * @note: btstack_type 2
1303  */
1304 static inline uint16_t l2cap_event_le_incoming_connection_get_local_cid(const uint8_t * event){
1305     return little_endian_read_16(event, 13);
1306 }
1307 /**
1308  * @brief Get field remote_cid from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1309  * @param event packet
1310  * @return remote_cid
1311  * @note: btstack_type 2
1312  */
1313 static inline uint16_t l2cap_event_le_incoming_connection_get_remote_cid(const uint8_t * event){
1314     return little_endian_read_16(event, 15);
1315 }
1316 /**
1317  * @brief Get field remote_mtu from event L2CAP_EVENT_LE_INCOMING_CONNECTION
1318  * @param event packet
1319  * @return remote_mtu
1320  * @note: btstack_type 2
1321  */
1322 static inline uint16_t l2cap_event_le_incoming_connection_get_remote_mtu(const uint8_t * event){
1323     return little_endian_read_16(event, 17);
1324 }
1325 
1326 /**
1327  * @brief Get field status from event L2CAP_EVENT_LE_CHANNEL_OPENED
1328  * @param event packet
1329  * @return status
1330  * @note: btstack_type 1
1331  */
1332 static inline uint8_t l2cap_event_le_channel_opened_get_status(const uint8_t * event){
1333     return event[2];
1334 }
1335 /**
1336  * @brief Get field address_type from event L2CAP_EVENT_LE_CHANNEL_OPENED
1337  * @param event packet
1338  * @return address_type
1339  * @note: btstack_type 1
1340  */
1341 static inline uint8_t l2cap_event_le_channel_opened_get_address_type(const uint8_t * event){
1342     return event[3];
1343 }
1344 /**
1345  * @brief Get field address from event L2CAP_EVENT_LE_CHANNEL_OPENED
1346  * @param event packet
1347  * @param Pointer to storage for address
1348  * @note: btstack_type B
1349  */
1350 static inline void l2cap_event_le_channel_opened_get_address(const uint8_t * event, bd_addr_t address){
1351     reverse_bd_addr(&event[4], address);
1352 }
1353 /**
1354  * @brief Get field handle from event L2CAP_EVENT_LE_CHANNEL_OPENED
1355  * @param event packet
1356  * @return handle
1357  * @note: btstack_type H
1358  */
1359 static inline hci_con_handle_t l2cap_event_le_channel_opened_get_handle(const uint8_t * event){
1360     return little_endian_read_16(event, 10);
1361 }
1362 /**
1363  * @brief Get field incoming from event L2CAP_EVENT_LE_CHANNEL_OPENED
1364  * @param event packet
1365  * @return incoming
1366  * @note: btstack_type 1
1367  */
1368 static inline uint8_t l2cap_event_le_channel_opened_get_incoming(const uint8_t * event){
1369     return event[12];
1370 }
1371 /**
1372  * @brief Get field psm from event L2CAP_EVENT_LE_CHANNEL_OPENED
1373  * @param event packet
1374  * @return psm
1375  * @note: btstack_type 2
1376  */
1377 static inline uint16_t l2cap_event_le_channel_opened_get_psm(const uint8_t * event){
1378     return little_endian_read_16(event, 13);
1379 }
1380 /**
1381  * @brief Get field local_cid from event L2CAP_EVENT_LE_CHANNEL_OPENED
1382  * @param event packet
1383  * @return local_cid
1384  * @note: btstack_type 2
1385  */
1386 static inline uint16_t l2cap_event_le_channel_opened_get_local_cid(const uint8_t * event){
1387     return little_endian_read_16(event, 15);
1388 }
1389 /**
1390  * @brief Get field remote_cid from event L2CAP_EVENT_LE_CHANNEL_OPENED
1391  * @param event packet
1392  * @return remote_cid
1393  * @note: btstack_type 2
1394  */
1395 static inline uint16_t l2cap_event_le_channel_opened_get_remote_cid(const uint8_t * event){
1396     return little_endian_read_16(event, 17);
1397 }
1398 /**
1399  * @brief Get field local_mtu from event L2CAP_EVENT_LE_CHANNEL_OPENED
1400  * @param event packet
1401  * @return local_mtu
1402  * @note: btstack_type 2
1403  */
1404 static inline uint16_t l2cap_event_le_channel_opened_get_local_mtu(const uint8_t * event){
1405     return little_endian_read_16(event, 19);
1406 }
1407 /**
1408  * @brief Get field remote_mtu from event L2CAP_EVENT_LE_CHANNEL_OPENED
1409  * @param event packet
1410  * @return remote_mtu
1411  * @note: btstack_type 2
1412  */
1413 static inline uint16_t l2cap_event_le_channel_opened_get_remote_mtu(const uint8_t * event){
1414     return little_endian_read_16(event, 21);
1415 }
1416 
1417 /**
1418  * @brief Get field local_cid from event L2CAP_EVENT_LE_CHANNEL_CLOSED
1419  * @param event packet
1420  * @return local_cid
1421  * @note: btstack_type 2
1422  */
1423 static inline uint16_t l2cap_event_le_channel_closed_get_local_cid(const uint8_t * event){
1424     return little_endian_read_16(event, 2);
1425 }
1426 
1427 /**
1428  * @brief Get field local_cid from event L2CAP_EVENT_LE_CAN_SEND_NOW
1429  * @param event packet
1430  * @return local_cid
1431  * @note: btstack_type 2
1432  */
1433 static inline uint16_t l2cap_event_le_can_send_now_get_local_cid(const uint8_t * event){
1434     return little_endian_read_16(event, 2);
1435 }
1436 
1437 /**
1438  * @brief Get field local_cid from event L2CAP_EVENT_LE_PACKET_SENT
1439  * @param event packet
1440  * @return local_cid
1441  * @note: btstack_type 2
1442  */
1443 static inline uint16_t l2cap_event_le_packet_sent_get_local_cid(const uint8_t * event){
1444     return little_endian_read_16(event, 2);
1445 }
1446 
1447 /**
1448  * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED
1449  * @param event packet
1450  * @return status
1451  * @note: btstack_type 1
1452  */
1453 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){
1454     return event[2];
1455 }
1456 /**
1457  * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED
1458  * @param event packet
1459  * @param Pointer to storage for bd_addr
1460  * @note: btstack_type B
1461  */
1462 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1463     reverse_bd_addr(&event[3], bd_addr);
1464 }
1465 /**
1466  * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED
1467  * @param event packet
1468  * @return con_handle
1469  * @note: btstack_type 2
1470  */
1471 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){
1472     return little_endian_read_16(event, 9);
1473 }
1474 /**
1475  * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED
1476  * @param event packet
1477  * @return server_channel
1478  * @note: btstack_type 1
1479  */
1480 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){
1481     return event[11];
1482 }
1483 /**
1484  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED
1485  * @param event packet
1486  * @return rfcomm_cid
1487  * @note: btstack_type 2
1488  */
1489 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){
1490     return little_endian_read_16(event, 12);
1491 }
1492 /**
1493  * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED
1494  * @param event packet
1495  * @return max_frame_size
1496  * @note: btstack_type 2
1497  */
1498 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){
1499     return little_endian_read_16(event, 14);
1500 }
1501 /**
1502  * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED
1503  * @param event packet
1504  * @return incoming
1505  * @note: btstack_type 1
1506  */
1507 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){
1508     return event[16];
1509 }
1510 
1511 /**
1512  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED
1513  * @param event packet
1514  * @return rfcomm_cid
1515  * @note: btstack_type 2
1516  */
1517 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){
1518     return little_endian_read_16(event, 2);
1519 }
1520 
1521 /**
1522  * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION
1523  * @param event packet
1524  * @param Pointer to storage for bd_addr
1525  * @note: btstack_type B
1526  */
1527 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
1528     reverse_bd_addr(&event[2], bd_addr);
1529 }
1530 /**
1531  * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION
1532  * @param event packet
1533  * @return server_channel
1534  * @note: btstack_type 1
1535  */
1536 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){
1537     return event[8];
1538 }
1539 /**
1540  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION
1541  * @param event packet
1542  * @return rfcomm_cid
1543  * @note: btstack_type 2
1544  */
1545 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){
1546     return little_endian_read_16(event, 9);
1547 }
1548 
1549 /**
1550  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS
1551  * @param event packet
1552  * @return rfcomm_cid
1553  * @note: btstack_type 2
1554  */
1555 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){
1556     return little_endian_read_16(event, 2);
1557 }
1558 /**
1559  * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS
1560  * @param event packet
1561  * @return line_status
1562  * @note: btstack_type 1
1563  */
1564 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){
1565     return event[4];
1566 }
1567 
1568 /**
1569  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
1570  * @param event packet
1571  * @return rfcomm_cid
1572  * @note: btstack_type 2
1573  */
1574 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){
1575     return little_endian_read_16(event, 2);
1576 }
1577 /**
1578  * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS
1579  * @param event packet
1580  * @return modem_status
1581  * @note: btstack_type 1
1582  */
1583 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){
1584     return event[4];
1585 }
1586 
1587 /**
1588  * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW
1589  * @param event packet
1590  * @return rfcomm_cid
1591  * @note: btstack_type 2
1592  */
1593 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){
1594     return little_endian_read_16(event, 2);
1595 }
1596 
1597 /**
1598  * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE
1599  * @param event packet
1600  * @return status
1601  * @note: btstack_type 1
1602  */
1603 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){
1604     return event[2];
1605 }
1606 
1607 /**
1608  * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE
1609  * @param event packet
1610  * @return rfcomm_channel
1611  * @note: btstack_type 1
1612  */
1613 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){
1614     return event[2];
1615 }
1616 /**
1617  * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE
1618  * @param event packet
1619  * @return name
1620  * @note: btstack_type T
1621  */
1622 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){
1623     return (const char *) &event[3];
1624 }
1625 
1626 /**
1627  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
1628  * @param event packet
1629  * @return record_id
1630  * @note: btstack_type 2
1631  */
1632 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){
1633     return little_endian_read_16(event, 2);
1634 }
1635 /**
1636  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
1637  * @param event packet
1638  * @return attribute_id
1639  * @note: btstack_type 2
1640  */
1641 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){
1642     return little_endian_read_16(event, 4);
1643 }
1644 /**
1645  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
1646  * @param event packet
1647  * @return attribute_length
1648  * @note: btstack_type 2
1649  */
1650 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){
1651     return little_endian_read_16(event, 6);
1652 }
1653 /**
1654  * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
1655  * @param event packet
1656  * @return data_offset
1657  * @note: btstack_type 2
1658  */
1659 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){
1660     return little_endian_read_16(event, 8);
1661 }
1662 /**
1663  * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE
1664  * @param event packet
1665  * @return data
1666  * @note: btstack_type 1
1667  */
1668 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){
1669     return event[10];
1670 }
1671 
1672 /**
1673  * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
1674  * @param event packet
1675  * @return record_id
1676  * @note: btstack_type 2
1677  */
1678 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){
1679     return little_endian_read_16(event, 2);
1680 }
1681 /**
1682  * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
1683  * @param event packet
1684  * @return attribute_id
1685  * @note: btstack_type 2
1686  */
1687 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){
1688     return little_endian_read_16(event, 4);
1689 }
1690 /**
1691  * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
1692  * @param event packet
1693  * @return attribute_length
1694  * @note: btstack_type L
1695  */
1696 static inline int sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){
1697     return little_endian_read_16(event, 6);
1698 }
1699 /**
1700  * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE
1701  * @param event packet
1702  * @return attribute_value
1703  * @note: btstack_type V
1704  */
1705 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){
1706     return &event[8];
1707 }
1708 
1709 /**
1710  * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
1711  * @param event packet
1712  * @return total_count
1713  * @note: btstack_type 2
1714  */
1715 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){
1716     return little_endian_read_16(event, 2);
1717 }
1718 /**
1719  * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
1720  * @param event packet
1721  * @return record_index
1722  * @note: btstack_type 2
1723  */
1724 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){
1725     return little_endian_read_16(event, 4);
1726 }
1727 /**
1728  * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE
1729  * @param event packet
1730  * @return record_handle
1731  * @note: btstack_type 4
1732  */
1733 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){
1734     return little_endian_read_32(event, 6);
1735 }
1736 
1737 #ifdef ENABLE_BLE
1738 /**
1739  * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE
1740  * @param event packet
1741  * @return handle
1742  * @note: btstack_type H
1743  */
1744 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){
1745     return little_endian_read_16(event, 2);
1746 }
1747 /**
1748  * @brief Get field status from event GATT_EVENT_QUERY_COMPLETE
1749  * @param event packet
1750  * @return status
1751  * @note: btstack_type 1
1752  */
1753 static inline uint8_t gatt_event_query_complete_get_status(const uint8_t * event){
1754     return event[4];
1755 }
1756 #endif
1757 
1758 #ifdef ENABLE_BLE
1759 /**
1760  * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT
1761  * @param event packet
1762  * @return handle
1763  * @note: btstack_type H
1764  */
1765 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){
1766     return little_endian_read_16(event, 2);
1767 }
1768 /**
1769  * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT
1770  * @param event packet
1771  * @param Pointer to storage for service
1772  * @note: btstack_type X
1773  */
1774 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
1775     gatt_client_deserialize_service(event, 4, service);
1776 }
1777 #endif
1778 
1779 #ifdef ENABLE_BLE
1780 /**
1781  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
1782  * @param event packet
1783  * @return handle
1784  * @note: btstack_type H
1785  */
1786 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){
1787     return little_endian_read_16(event, 2);
1788 }
1789 /**
1790  * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT
1791  * @param event packet
1792  * @param Pointer to storage for characteristic
1793  * @note: btstack_type Y
1794  */
1795 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){
1796     gatt_client_deserialize_characteristic(event, 4, characteristic);
1797 }
1798 #endif
1799 
1800 #ifdef ENABLE_BLE
1801 /**
1802  * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
1803  * @param event packet
1804  * @return handle
1805  * @note: btstack_type H
1806  */
1807 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){
1808     return little_endian_read_16(event, 2);
1809 }
1810 /**
1811  * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
1812  * @param event packet
1813  * @return include_handle
1814  * @note: btstack_type 2
1815  */
1816 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){
1817     return little_endian_read_16(event, 4);
1818 }
1819 /**
1820  * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT
1821  * @param event packet
1822  * @param Pointer to storage for service
1823  * @note: btstack_type X
1824  */
1825 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){
1826     gatt_client_deserialize_service(event, 6, service);
1827 }
1828 #endif
1829 
1830 #ifdef ENABLE_BLE
1831 /**
1832  * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
1833  * @param event packet
1834  * @return handle
1835  * @note: btstack_type H
1836  */
1837 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){
1838     return little_endian_read_16(event, 2);
1839 }
1840 /**
1841  * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT
1842  * @param event packet
1843  * @param Pointer to storage for characteristic_descriptor
1844  * @note: btstack_type Z
1845  */
1846 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){
1847     gatt_client_deserialize_characteristic_descriptor(event, 4, characteristic_descriptor);
1848 }
1849 #endif
1850 
1851 #ifdef ENABLE_BLE
1852 /**
1853  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
1854  * @param event packet
1855  * @return handle
1856  * @note: btstack_type H
1857  */
1858 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){
1859     return little_endian_read_16(event, 2);
1860 }
1861 /**
1862  * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
1863  * @param event packet
1864  * @return value_handle
1865  * @note: btstack_type 2
1866  */
1867 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){
1868     return little_endian_read_16(event, 4);
1869 }
1870 /**
1871  * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
1872  * @param event packet
1873  * @return value_length
1874  * @note: btstack_type L
1875  */
1876 static inline int gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){
1877     return little_endian_read_16(event, 6);
1878 }
1879 /**
1880  * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT
1881  * @param event packet
1882  * @return value
1883  * @note: btstack_type V
1884  */
1885 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){
1886     return &event[8];
1887 }
1888 #endif
1889 
1890 #ifdef ENABLE_BLE
1891 /**
1892  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
1893  * @param event packet
1894  * @return handle
1895  * @note: btstack_type H
1896  */
1897 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){
1898     return little_endian_read_16(event, 2);
1899 }
1900 /**
1901  * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
1902  * @param event packet
1903  * @return value_handle
1904  * @note: btstack_type 2
1905  */
1906 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){
1907     return little_endian_read_16(event, 4);
1908 }
1909 /**
1910  * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
1911  * @param event packet
1912  * @return value_offset
1913  * @note: btstack_type 2
1914  */
1915 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){
1916     return little_endian_read_16(event, 6);
1917 }
1918 /**
1919  * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
1920  * @param event packet
1921  * @return value_length
1922  * @note: btstack_type L
1923  */
1924 static inline int gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){
1925     return little_endian_read_16(event, 8);
1926 }
1927 /**
1928  * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT
1929  * @param event packet
1930  * @return value
1931  * @note: btstack_type V
1932  */
1933 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){
1934     return &event[10];
1935 }
1936 #endif
1937 
1938 #ifdef ENABLE_BLE
1939 /**
1940  * @brief Get field handle from event GATT_EVENT_NOTIFICATION
1941  * @param event packet
1942  * @return handle
1943  * @note: btstack_type H
1944  */
1945 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){
1946     return little_endian_read_16(event, 2);
1947 }
1948 /**
1949  * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION
1950  * @param event packet
1951  * @return value_handle
1952  * @note: btstack_type 2
1953  */
1954 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){
1955     return little_endian_read_16(event, 4);
1956 }
1957 /**
1958  * @brief Get field value_length from event GATT_EVENT_NOTIFICATION
1959  * @param event packet
1960  * @return value_length
1961  * @note: btstack_type L
1962  */
1963 static inline int gatt_event_notification_get_value_length(const uint8_t * event){
1964     return little_endian_read_16(event, 6);
1965 }
1966 /**
1967  * @brief Get field value from event GATT_EVENT_NOTIFICATION
1968  * @param event packet
1969  * @return value
1970  * @note: btstack_type V
1971  */
1972 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){
1973     return &event[8];
1974 }
1975 #endif
1976 
1977 #ifdef ENABLE_BLE
1978 /**
1979  * @brief Get field handle from event GATT_EVENT_INDICATION
1980  * @param event packet
1981  * @return handle
1982  * @note: btstack_type H
1983  */
1984 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){
1985     return little_endian_read_16(event, 2);
1986 }
1987 /**
1988  * @brief Get field value_handle from event GATT_EVENT_INDICATION
1989  * @param event packet
1990  * @return value_handle
1991  * @note: btstack_type 2
1992  */
1993 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){
1994     return little_endian_read_16(event, 4);
1995 }
1996 /**
1997  * @brief Get field value_length from event GATT_EVENT_INDICATION
1998  * @param event packet
1999  * @return value_length
2000  * @note: btstack_type L
2001  */
2002 static inline int gatt_event_indication_get_value_length(const uint8_t * event){
2003     return little_endian_read_16(event, 6);
2004 }
2005 /**
2006  * @brief Get field value from event GATT_EVENT_INDICATION
2007  * @param event packet
2008  * @return value
2009  * @note: btstack_type V
2010  */
2011 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){
2012     return &event[8];
2013 }
2014 #endif
2015 
2016 #ifdef ENABLE_BLE
2017 /**
2018  * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2019  * @param event packet
2020  * @return handle
2021  * @note: btstack_type H
2022  */
2023 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2024     return little_endian_read_16(event, 2);
2025 }
2026 /**
2027  * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2028  * @param event packet
2029  * @return descriptor_handle
2030  * @note: btstack_type 2
2031  */
2032 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){
2033     return little_endian_read_16(event, 4);
2034 }
2035 /**
2036  * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2037  * @param event packet
2038  * @return descriptor_length
2039  * @note: btstack_type L
2040  */
2041 static inline int gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2042     return little_endian_read_16(event, 6);
2043 }
2044 /**
2045  * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2046  * @param event packet
2047  * @return descriptor
2048  * @note: btstack_type V
2049  */
2050 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2051     return &event[8];
2052 }
2053 #endif
2054 
2055 #ifdef ENABLE_BLE
2056 /**
2057  * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2058  * @param event packet
2059  * @return handle
2060  * @note: btstack_type H
2061  */
2062 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2063     return little_endian_read_16(event, 2);
2064 }
2065 /**
2066  * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2067  * @param event packet
2068  * @return descriptor_offset
2069  * @note: btstack_type 2
2070  */
2071 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){
2072     return little_endian_read_16(event, 4);
2073 }
2074 /**
2075  * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2076  * @param event packet
2077  * @return descriptor_length
2078  * @note: btstack_type L
2079  */
2080 static inline int gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2081     return little_endian_read_16(event, 6);
2082 }
2083 /**
2084  * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2085  * @param event packet
2086  * @return descriptor
2087  * @note: btstack_type V
2088  */
2089 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2090     return &event[8];
2091 }
2092 #endif
2093 
2094 #ifdef ENABLE_BLE
2095 /**
2096  * @brief Get field handle from event GATT_EVENT_MTU
2097  * @param event packet
2098  * @return handle
2099  * @note: btstack_type H
2100  */
2101 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){
2102     return little_endian_read_16(event, 2);
2103 }
2104 /**
2105  * @brief Get field MTU from event GATT_EVENT_MTU
2106  * @param event packet
2107  * @return MTU
2108  * @note: btstack_type 2
2109  */
2110 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){
2111     return little_endian_read_16(event, 4);
2112 }
2113 #endif
2114 
2115 #ifdef ENABLE_BLE
2116 /**
2117  * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE
2118  * @param event packet
2119  * @return handle
2120  * @note: btstack_type H
2121  */
2122 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){
2123     return little_endian_read_16(event, 2);
2124 }
2125 #endif
2126 
2127 /**
2128  * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
2129  * @param event packet
2130  * @return handle
2131  * @note: btstack_type H
2132  */
2133 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){
2134     return little_endian_read_16(event, 2);
2135 }
2136 /**
2137  * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
2138  * @param event packet
2139  * @return MTU
2140  * @note: btstack_type 2
2141  */
2142 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){
2143     return little_endian_read_16(event, 4);
2144 }
2145 
2146 /**
2147  * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2148  * @param event packet
2149  * @return status
2150  * @note: btstack_type 1
2151  */
2152 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){
2153     return event[2];
2154 }
2155 /**
2156  * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2157  * @param event packet
2158  * @return conn_handle
2159  * @note: btstack_type H
2160  */
2161 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){
2162     return little_endian_read_16(event, 3);
2163 }
2164 /**
2165  * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
2166  * @param event packet
2167  * @return attribute_handle
2168  * @note: btstack_type 2
2169  */
2170 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){
2171     return little_endian_read_16(event, 5);
2172 }
2173 
2174 
2175 /**
2176  * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED
2177  * @param event packet
2178  * @return status
2179  * @note: btstack_type 1
2180  */
2181 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){
2182     return event[2];
2183 }
2184 /**
2185  * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED
2186  * @param event packet
2187  * @return service_uuid
2188  * @note: btstack_type 2
2189  */
2190 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){
2191     return little_endian_read_16(event, 3);
2192 }
2193 
2194 /**
2195  * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED
2196  * @param event packet
2197  * @return status
2198  * @note: btstack_type 1
2199  */
2200 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){
2201     return event[2];
2202 }
2203 /**
2204  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED
2205  * @param event packet
2206  * @return bnep_cid
2207  * @note: btstack_type 2
2208  */
2209 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){
2210     return little_endian_read_16(event, 3);
2211 }
2212 /**
2213  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED
2214  * @param event packet
2215  * @return source_uuid
2216  * @note: btstack_type 2
2217  */
2218 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){
2219     return little_endian_read_16(event, 5);
2220 }
2221 /**
2222  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED
2223  * @param event packet
2224  * @return destination_uuid
2225  * @note: btstack_type 2
2226  */
2227 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){
2228     return little_endian_read_16(event, 7);
2229 }
2230 /**
2231  * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED
2232  * @param event packet
2233  * @return mtu
2234  * @note: btstack_type 2
2235  */
2236 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){
2237     return little_endian_read_16(event, 9);
2238 }
2239 /**
2240  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED
2241  * @param event packet
2242  * @param Pointer to storage for remote_address
2243  * @note: btstack_type B
2244  */
2245 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2246     reverse_bd_addr(&event[11], remote_address);
2247 }
2248 
2249 /**
2250  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED
2251  * @param event packet
2252  * @return bnep_cid
2253  * @note: btstack_type 2
2254  */
2255 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){
2256     return little_endian_read_16(event, 2);
2257 }
2258 /**
2259  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED
2260  * @param event packet
2261  * @return source_uuid
2262  * @note: btstack_type 2
2263  */
2264 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){
2265     return little_endian_read_16(event, 4);
2266 }
2267 /**
2268  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED
2269  * @param event packet
2270  * @return destination_uuid
2271  * @note: btstack_type 2
2272  */
2273 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){
2274     return little_endian_read_16(event, 6);
2275 }
2276 /**
2277  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED
2278  * @param event packet
2279  * @param Pointer to storage for remote_address
2280  * @note: btstack_type B
2281  */
2282 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2283     reverse_bd_addr(&event[8], remote_address);
2284 }
2285 
2286 /**
2287  * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT
2288  * @param event packet
2289  * @return bnep_cid
2290  * @note: btstack_type 2
2291  */
2292 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){
2293     return little_endian_read_16(event, 2);
2294 }
2295 /**
2296  * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
2297  * @param event packet
2298  * @return source_uuid
2299  * @note: btstack_type 2
2300  */
2301 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){
2302     return little_endian_read_16(event, 4);
2303 }
2304 /**
2305  * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT
2306  * @param event packet
2307  * @return destination_uuid
2308  * @note: btstack_type 2
2309  */
2310 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){
2311     return little_endian_read_16(event, 6);
2312 }
2313 /**
2314  * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT
2315  * @param event packet
2316  * @param Pointer to storage for remote_address
2317  * @note: btstack_type B
2318  */
2319 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2320     reverse_bd_addr(&event[8], remote_address);
2321 }
2322 /**
2323  * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT
2324  * @param event packet
2325  * @return channel_state
2326  * @note: btstack_type 1
2327  */
2328 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){
2329     return event[14];
2330 }
2331 
2332 /**
2333  * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW
2334  * @param event packet
2335  * @return bnep_cid
2336  * @note: btstack_type 2
2337  */
2338 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){
2339     return little_endian_read_16(event, 2);
2340 }
2341 /**
2342  * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW
2343  * @param event packet
2344  * @return source_uuid
2345  * @note: btstack_type 2
2346  */
2347 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){
2348     return little_endian_read_16(event, 4);
2349 }
2350 /**
2351  * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW
2352  * @param event packet
2353  * @return destination_uuid
2354  * @note: btstack_type 2
2355  */
2356 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){
2357     return little_endian_read_16(event, 6);
2358 }
2359 /**
2360  * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW
2361  * @param event packet
2362  * @param Pointer to storage for remote_address
2363  * @note: btstack_type B
2364  */
2365 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){
2366     reverse_bd_addr(&event[8], remote_address);
2367 }
2368 
2369 #ifdef ENABLE_BLE
2370 /**
2371  * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST
2372  * @param event packet
2373  * @return handle
2374  * @note: btstack_type H
2375  */
2376 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){
2377     return little_endian_read_16(event, 2);
2378 }
2379 /**
2380  * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST
2381  * @param event packet
2382  * @return addr_type
2383  * @note: btstack_type 1
2384  */
2385 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){
2386     return event[4];
2387 }
2388 /**
2389  * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST
2390  * @param event packet
2391  * @param Pointer to storage for address
2392  * @note: btstack_type B
2393  */
2394 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){
2395     reverse_bd_addr(&event[5], address);
2396 }
2397 #endif
2398 
2399 #ifdef ENABLE_BLE
2400 /**
2401  * @brief Get field handle from event SM_EVENT_JUST_WORKS_CANCEL
2402  * @param event packet
2403  * @return handle
2404  * @note: btstack_type H
2405  */
2406 static inline hci_con_handle_t sm_event_just_works_cancel_get_handle(const uint8_t * event){
2407     return little_endian_read_16(event, 2);
2408 }
2409 /**
2410  * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_CANCEL
2411  * @param event packet
2412  * @return addr_type
2413  * @note: btstack_type 1
2414  */
2415 static inline uint8_t sm_event_just_works_cancel_get_addr_type(const uint8_t * event){
2416     return event[4];
2417 }
2418 /**
2419  * @brief Get field address from event SM_EVENT_JUST_WORKS_CANCEL
2420  * @param event packet
2421  * @param Pointer to storage for address
2422  * @note: btstack_type B
2423  */
2424 static inline void sm_event_just_works_cancel_get_address(const uint8_t * event, bd_addr_t address){
2425     reverse_bd_addr(&event[5], address);
2426 }
2427 #endif
2428 
2429 #ifdef ENABLE_BLE
2430 /**
2431  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2432  * @param event packet
2433  * @return handle
2434  * @note: btstack_type H
2435  */
2436 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){
2437     return little_endian_read_16(event, 2);
2438 }
2439 /**
2440  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2441  * @param event packet
2442  * @return addr_type
2443  * @note: btstack_type 1
2444  */
2445 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){
2446     return event[4];
2447 }
2448 /**
2449  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2450  * @param event packet
2451  * @param Pointer to storage for address
2452  * @note: btstack_type B
2453  */
2454 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){
2455     reverse_bd_addr(&event[5], address);
2456 }
2457 /**
2458  * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER
2459  * @param event packet
2460  * @return passkey
2461  * @note: btstack_type 4
2462  */
2463 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){
2464     return little_endian_read_32(event, 11);
2465 }
2466 #endif
2467 
2468 #ifdef ENABLE_BLE
2469 /**
2470  * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
2471  * @param event packet
2472  * @return handle
2473  * @note: btstack_type H
2474  */
2475 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){
2476     return little_endian_read_16(event, 2);
2477 }
2478 /**
2479  * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
2480  * @param event packet
2481  * @return addr_type
2482  * @note: btstack_type 1
2483  */
2484 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){
2485     return event[4];
2486 }
2487 /**
2488  * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL
2489  * @param event packet
2490  * @param Pointer to storage for address
2491  * @note: btstack_type B
2492  */
2493 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){
2494     reverse_bd_addr(&event[5], address);
2495 }
2496 #endif
2497 
2498 #ifdef ENABLE_BLE
2499 /**
2500  * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER
2501  * @param event packet
2502  * @return handle
2503  * @note: btstack_type H
2504  */
2505 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){
2506     return little_endian_read_16(event, 2);
2507 }
2508 /**
2509  * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER
2510  * @param event packet
2511  * @return addr_type
2512  * @note: btstack_type 1
2513  */
2514 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){
2515     return event[4];
2516 }
2517 /**
2518  * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER
2519  * @param event packet
2520  * @param Pointer to storage for address
2521  * @note: btstack_type B
2522  */
2523 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){
2524     reverse_bd_addr(&event[5], address);
2525 }
2526 #endif
2527 
2528 #ifdef ENABLE_BLE
2529 /**
2530  * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_CANCEL
2531  * @param event packet
2532  * @return handle
2533  * @note: btstack_type H
2534  */
2535 static inline hci_con_handle_t sm_event_passkey_input_cancel_get_handle(const uint8_t * event){
2536     return little_endian_read_16(event, 2);
2537 }
2538 /**
2539  * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_CANCEL
2540  * @param event packet
2541  * @return addr_type
2542  * @note: btstack_type 1
2543  */
2544 static inline uint8_t sm_event_passkey_input_cancel_get_addr_type(const uint8_t * event){
2545     return event[4];
2546 }
2547 /**
2548  * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_CANCEL
2549  * @param event packet
2550  * @param Pointer to storage for address
2551  * @note: btstack_type B
2552  */
2553 static inline void sm_event_passkey_input_cancel_get_address(const uint8_t * event, bd_addr_t address){
2554     reverse_bd_addr(&event[5], address);
2555 }
2556 #endif
2557 
2558 #ifdef ENABLE_BLE
2559 /**
2560  * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2561  * @param event packet
2562  * @return handle
2563  * @note: btstack_type H
2564  */
2565 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){
2566     return little_endian_read_16(event, 2);
2567 }
2568 /**
2569  * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2570  * @param event packet
2571  * @return addr_type
2572  * @note: btstack_type 1
2573  */
2574 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){
2575     return event[4];
2576 }
2577 /**
2578  * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2579  * @param event packet
2580  * @param Pointer to storage for address
2581  * @note: btstack_type B
2582  */
2583 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){
2584     reverse_bd_addr(&event[5], address);
2585 }
2586 /**
2587  * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST
2588  * @param event packet
2589  * @return passkey
2590  * @note: btstack_type 4
2591  */
2592 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){
2593     return little_endian_read_32(event, 11);
2594 }
2595 #endif
2596 
2597 #ifdef ENABLE_BLE
2598 /**
2599  * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_CANCEL
2600  * @param event packet
2601  * @return handle
2602  * @note: btstack_type H
2603  */
2604 static inline hci_con_handle_t sm_event_numeric_comparison_cancel_get_handle(const uint8_t * event){
2605     return little_endian_read_16(event, 2);
2606 }
2607 /**
2608  * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_CANCEL
2609  * @param event packet
2610  * @return addr_type
2611  * @note: btstack_type 1
2612  */
2613 static inline uint8_t sm_event_numeric_comparison_cancel_get_addr_type(const uint8_t * event){
2614     return event[4];
2615 }
2616 /**
2617  * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_CANCEL
2618  * @param event packet
2619  * @param Pointer to storage for address
2620  * @note: btstack_type B
2621  */
2622 static inline void sm_event_numeric_comparison_cancel_get_address(const uint8_t * event, bd_addr_t address){
2623     reverse_bd_addr(&event[5], address);
2624 }
2625 #endif
2626 
2627 #ifdef ENABLE_BLE
2628 /**
2629  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED
2630  * @param event packet
2631  * @return handle
2632  * @note: btstack_type H
2633  */
2634 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){
2635     return little_endian_read_16(event, 2);
2636 }
2637 /**
2638  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED
2639  * @param event packet
2640  * @return addr_type
2641  * @note: btstack_type 1
2642  */
2643 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){
2644     return event[4];
2645 }
2646 /**
2647  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED
2648  * @param event packet
2649  * @param Pointer to storage for address
2650  * @note: btstack_type B
2651  */
2652 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){
2653     reverse_bd_addr(&event[5], address);
2654 }
2655 #endif
2656 
2657 #ifdef ENABLE_BLE
2658 /**
2659  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED
2660  * @param event packet
2661  * @return handle
2662  * @note: btstack_type H
2663  */
2664 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){
2665     return little_endian_read_16(event, 2);
2666 }
2667 /**
2668  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED
2669  * @param event packet
2670  * @return addr_type
2671  * @note: btstack_type 1
2672  */
2673 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){
2674     return event[4];
2675 }
2676 /**
2677  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED
2678  * @param event packet
2679  * @param Pointer to storage for address
2680  * @note: btstack_type B
2681  */
2682 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){
2683     reverse_bd_addr(&event[5], address);
2684 }
2685 #endif
2686 
2687 #ifdef ENABLE_BLE
2688 /**
2689  * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
2690  * @param event packet
2691  * @return handle
2692  * @note: btstack_type H
2693  */
2694 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){
2695     return little_endian_read_16(event, 2);
2696 }
2697 /**
2698  * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
2699  * @param event packet
2700  * @return addr_type
2701  * @note: btstack_type 1
2702  */
2703 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){
2704     return event[4];
2705 }
2706 /**
2707  * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
2708  * @param event packet
2709  * @param Pointer to storage for address
2710  * @note: btstack_type B
2711  */
2712 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){
2713     reverse_bd_addr(&event[5], address);
2714 }
2715 /**
2716  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
2717  * @param event packet
2718  * @return identity_addr_type
2719  * @note: btstack_type 1
2720  */
2721 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){
2722     return event[11];
2723 }
2724 /**
2725  * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
2726  * @param event packet
2727  * @param Pointer to storage for identity_address
2728  * @note: btstack_type B
2729  */
2730 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
2731     reverse_bd_addr(&event[12], identity_address);
2732 }
2733 /**
2734  * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED
2735  * @param event packet
2736  * @return index
2737  * @note: btstack_type 2
2738  */
2739 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){
2740     return little_endian_read_16(event, 18);
2741 }
2742 #endif
2743 
2744 #ifdef ENABLE_BLE
2745 /**
2746  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST
2747  * @param event packet
2748  * @return handle
2749  * @note: btstack_type H
2750  */
2751 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){
2752     return little_endian_read_16(event, 2);
2753 }
2754 /**
2755  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST
2756  * @param event packet
2757  * @return addr_type
2758  * @note: btstack_type 1
2759  */
2760 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){
2761     return event[4];
2762 }
2763 /**
2764  * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST
2765  * @param event packet
2766  * @param Pointer to storage for address
2767  * @note: btstack_type B
2768  */
2769 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){
2770     reverse_bd_addr(&event[5], address);
2771 }
2772 #endif
2773 
2774 #ifdef ENABLE_BLE
2775 /**
2776  * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT
2777  * @param event packet
2778  * @return handle
2779  * @note: btstack_type H
2780  */
2781 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){
2782     return little_endian_read_16(event, 2);
2783 }
2784 /**
2785  * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT
2786  * @param event packet
2787  * @return addr_type
2788  * @note: btstack_type 1
2789  */
2790 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){
2791     return event[4];
2792 }
2793 /**
2794  * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT
2795  * @param event packet
2796  * @param Pointer to storage for address
2797  * @note: btstack_type B
2798  */
2799 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){
2800     reverse_bd_addr(&event[5], address);
2801 }
2802 /**
2803  * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT
2804  * @param event packet
2805  * @return authorization_result
2806  * @note: btstack_type 1
2807  */
2808 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){
2809     return event[11];
2810 }
2811 #endif
2812 
2813 #ifdef ENABLE_BLE
2814 /**
2815  * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION
2816  * @param event packet
2817  * @return handle
2818  * @note: btstack_type H
2819  */
2820 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){
2821     return little_endian_read_16(event, 2);
2822 }
2823 /**
2824  * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION
2825  * @param event packet
2826  * @return action
2827  * @note: btstack_type 1
2828  */
2829 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){
2830     return event[4];
2831 }
2832 #endif
2833 
2834 #ifdef ENABLE_BLE
2835 /**
2836  * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED
2837  * @param event packet
2838  * @return handle
2839  * @note: btstack_type H
2840  */
2841 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){
2842     return little_endian_read_16(event, 2);
2843 }
2844 /**
2845  * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED
2846  * @param event packet
2847  * @return addr_type
2848  * @note: btstack_type 1
2849  */
2850 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){
2851     return event[4];
2852 }
2853 /**
2854  * @brief Get field address from event SM_EVENT_IDENTITY_CREATED
2855  * @param event packet
2856  * @param Pointer to storage for address
2857  * @note: btstack_type B
2858  */
2859 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){
2860     reverse_bd_addr(&event[5], address);
2861 }
2862 /**
2863  * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED
2864  * @param event packet
2865  * @return identity_addr_type
2866  * @note: btstack_type 1
2867  */
2868 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){
2869     return event[11];
2870 }
2871 /**
2872  * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED
2873  * @param event packet
2874  * @param Pointer to storage for identity_address
2875  * @note: btstack_type B
2876  */
2877 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){
2878     reverse_bd_addr(&event[12], identity_address);
2879 }
2880 /**
2881  * @brief Get field index from event SM_EVENT_IDENTITY_CREATED
2882  * @param event packet
2883  * @return index
2884  * @note: btstack_type 2
2885  */
2886 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){
2887     return little_endian_read_16(event, 18);
2888 }
2889 #endif
2890 
2891 #ifdef ENABLE_BLE
2892 /**
2893  * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE
2894  * @param event packet
2895  * @return handle
2896  * @note: btstack_type H
2897  */
2898 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){
2899     return little_endian_read_16(event, 2);
2900 }
2901 /**
2902  * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE
2903  * @param event packet
2904  * @return addr_type
2905  * @note: btstack_type 1
2906  */
2907 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){
2908     return event[4];
2909 }
2910 /**
2911  * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE
2912  * @param event packet
2913  * @param Pointer to storage for address
2914  * @note: btstack_type B
2915  */
2916 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){
2917     reverse_bd_addr(&event[5], address);
2918 }
2919 /**
2920  * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE
2921  * @param event packet
2922  * @return status
2923  * @note: btstack_type 1
2924  */
2925 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){
2926     return event[11];
2927 }
2928 /**
2929  * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE
2930  * @param event packet
2931  * @return reason
2932  * @note: btstack_type 1
2933  */
2934 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){
2935     return event[12];
2936 }
2937 #endif
2938 
2939 /**
2940  * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL
2941  * @param event packet
2942  * @return handle
2943  * @note: btstack_type H
2944  */
2945 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){
2946     return little_endian_read_16(event, 2);
2947 }
2948 /**
2949  * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL
2950  * @param event packet
2951  * @return security_level
2952  * @note: btstack_type 1
2953  */
2954 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){
2955     return event[4];
2956 }
2957 
2958 /**
2959  * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
2960  * @param event packet
2961  * @return status
2962  * @note: btstack_type 1
2963  */
2964 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){
2965     return event[2];
2966 }
2967 /**
2968  * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED
2969  * @param event packet
2970  * @param Pointer to storage for address
2971  * @note: btstack_type B
2972  */
2973 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){
2974     reverse_bd_addr(&event[3], address);
2975 }
2976 
2977 /**
2978  * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT
2979  * @param event packet
2980  * @return advertising_event_type
2981  * @note: btstack_type 1
2982  */
2983 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){
2984     return event[2];
2985 }
2986 /**
2987  * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT
2988  * @param event packet
2989  * @return address_type
2990  * @note: btstack_type 1
2991  */
2992 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){
2993     return event[3];
2994 }
2995 /**
2996  * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT
2997  * @param event packet
2998  * @param Pointer to storage for address
2999  * @note: btstack_type B
3000  */
3001 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){
3002     reverse_bd_addr(&event[4], address);
3003 }
3004 /**
3005  * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT
3006  * @param event packet
3007  * @return rssi
3008  * @note: btstack_type 1
3009  */
3010 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){
3011     return event[10];
3012 }
3013 /**
3014  * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT
3015  * @param event packet
3016  * @return data_length
3017  * @note: btstack_type J
3018  */
3019 static inline int gap_event_advertising_report_get_data_length(const uint8_t * event){
3020     return event[11];
3021 }
3022 /**
3023  * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT
3024  * @param event packet
3025  * @return data
3026  * @note: btstack_type V
3027  */
3028 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){
3029     return &event[12];
3030 }
3031 
3032 /**
3033  * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT
3034  * @param event packet
3035  * @param Pointer to storage for bd_addr
3036  * @note: btstack_type B
3037  */
3038 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
3039     reverse_bd_addr(&event[2], bd_addr);
3040 }
3041 /**
3042  * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT
3043  * @param event packet
3044  * @return page_scan_repetition_mode
3045  * @note: btstack_type 1
3046  */
3047 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){
3048     return event[8];
3049 }
3050 /**
3051  * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT
3052  * @param event packet
3053  * @return class_of_device
3054  * @note: btstack_type 3
3055  */
3056 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){
3057     return little_endian_read_24(event, 9);
3058 }
3059 /**
3060  * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT
3061  * @param event packet
3062  * @return clock_offset
3063  * @note: btstack_type 2
3064  */
3065 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){
3066     return little_endian_read_16(event, 12);
3067 }
3068 /**
3069  * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT
3070  * @param event packet
3071  * @return rssi_available
3072  * @note: btstack_type 1
3073  */
3074 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){
3075     return event[14];
3076 }
3077 /**
3078  * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT
3079  * @param event packet
3080  * @return rssi
3081  * @note: btstack_type 1
3082  */
3083 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){
3084     return event[15];
3085 }
3086 /**
3087  * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT
3088  * @param event packet
3089  * @return name_available
3090  * @note: btstack_type 1
3091  */
3092 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){
3093     return event[16];
3094 }
3095 /**
3096  * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT
3097  * @param event packet
3098  * @return name_len
3099  * @note: btstack_type J
3100  */
3101 static inline int gap_event_inquiry_result_get_name_len(const uint8_t * event){
3102     return event[17];
3103 }
3104 /**
3105  * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT
3106  * @param event packet
3107  * @return name
3108  * @note: btstack_type V
3109  */
3110 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){
3111     return &event[18];
3112 }
3113 
3114 /**
3115  * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE
3116  * @param event packet
3117  * @return status
3118  * @note: btstack_type 1
3119  */
3120 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){
3121     return event[2];
3122 }
3123 
3124 /**
3125  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3126  * @param event packet
3127  * @return status
3128  * @note: btstack_type 1
3129  */
3130 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
3131     return event[3];
3132 }
3133 /**
3134  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3135  * @param event packet
3136  * @return connection_handle
3137  * @note: btstack_type H
3138  */
3139 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){
3140     return little_endian_read_16(event, 4);
3141 }
3142 /**
3143  * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3144  * @param event packet
3145  * @return role
3146  * @note: btstack_type 1
3147  */
3148 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){
3149     return event[6];
3150 }
3151 /**
3152  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3153  * @param event packet
3154  * @return peer_address_type
3155  * @note: btstack_type 1
3156  */
3157 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){
3158     return event[7];
3159 }
3160 /**
3161  * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3162  * @param event packet
3163  * @param Pointer to storage for peer_address
3164  * @note: btstack_type B
3165  */
3166 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){
3167     reverse_bd_addr(&event[8], peer_address);
3168 }
3169 /**
3170  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3171  * @param event packet
3172  * @return conn_interval
3173  * @note: btstack_type 2
3174  */
3175 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){
3176     return little_endian_read_16(event, 14);
3177 }
3178 /**
3179  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3180  * @param event packet
3181  * @return conn_latency
3182  * @note: btstack_type 2
3183  */
3184 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){
3185     return little_endian_read_16(event, 16);
3186 }
3187 /**
3188  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3189  * @param event packet
3190  * @return supervision_timeout
3191  * @note: btstack_type 2
3192  */
3193 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){
3194     return little_endian_read_16(event, 18);
3195 }
3196 /**
3197  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3198  * @param event packet
3199  * @return master_clock_accuracy
3200  * @note: btstack_type 1
3201  */
3202 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){
3203     return event[20];
3204 }
3205 
3206 /**
3207  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3208  * @param event packet
3209  * @return status
3210  * @note: btstack_type 1
3211  */
3212 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){
3213     return event[3];
3214 }
3215 /**
3216  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3217  * @param event packet
3218  * @return connection_handle
3219  * @note: btstack_type H
3220  */
3221 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){
3222     return little_endian_read_16(event, 4);
3223 }
3224 /**
3225  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3226  * @param event packet
3227  * @return conn_interval
3228  * @note: btstack_type 2
3229  */
3230 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){
3231     return little_endian_read_16(event, 6);
3232 }
3233 /**
3234  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3235  * @param event packet
3236  * @return conn_latency
3237  * @note: btstack_type 2
3238  */
3239 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){
3240     return little_endian_read_16(event, 8);
3241 }
3242 /**
3243  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3244  * @param event packet
3245  * @return supervision_timeout
3246  * @note: btstack_type 2
3247  */
3248 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){
3249     return little_endian_read_16(event, 10);
3250 }
3251 
3252 /**
3253  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
3254  * @param event packet
3255  * @return connection_handle
3256  * @note: btstack_type H
3257  */
3258 static inline hci_con_handle_t hci_subevent_le_read_remote_used_features_complete_get_connection_handle(const uint8_t * event){
3259     return little_endian_read_16(event, 3);
3260 }
3261 /**
3262  * @brief Get field random_number from event HCI_SUBEVENT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
3263  * @param event packet
3264  * @return random_number
3265  * @note: btstack_type D
3266  */
3267 static inline const uint8_t * hci_subevent_le_read_remote_used_features_complete_get_random_number(const uint8_t * event){
3268     return (const uint8_t *) &event[5];
3269 }
3270 /**
3271  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
3272  * @param event packet
3273  * @return encryption_diversifier
3274  * @note: btstack_type 2
3275  */
3276 static inline uint16_t hci_subevent_le_read_remote_used_features_complete_get_encryption_diversifier(const uint8_t * event){
3277     return little_endian_read_16(event, 13);
3278 }
3279 
3280 /**
3281  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
3282  * @param event packet
3283  * @return connection_handle
3284  * @note: btstack_type H
3285  */
3286 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){
3287     return little_endian_read_16(event, 3);
3288 }
3289 /**
3290  * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
3291  * @param event packet
3292  * @return random_number
3293  * @note: btstack_type D
3294  */
3295 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){
3296     return (const uint8_t *) &event[5];
3297 }
3298 /**
3299  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
3300  * @param event packet
3301  * @return encryption_diversifier
3302  * @note: btstack_type 2
3303  */
3304 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){
3305     return little_endian_read_16(event, 13);
3306 }
3307 
3308 /**
3309  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3310  * @param event packet
3311  * @return connection_handle
3312  * @note: btstack_type H
3313  */
3314 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){
3315     return little_endian_read_16(event, 3);
3316 }
3317 /**
3318  * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3319  * @param event packet
3320  * @return interval_min
3321  * @note: btstack_type 2
3322  */
3323 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){
3324     return little_endian_read_16(event, 5);
3325 }
3326 /**
3327  * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3328  * @param event packet
3329  * @return interval_max
3330  * @note: btstack_type 2
3331  */
3332 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){
3333     return little_endian_read_16(event, 7);
3334 }
3335 /**
3336  * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3337  * @param event packet
3338  * @return latency
3339  * @note: btstack_type 2
3340  */
3341 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){
3342     return little_endian_read_16(event, 9);
3343 }
3344 /**
3345  * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3346  * @param event packet
3347  * @return timeout
3348  * @note: btstack_type 2
3349  */
3350 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){
3351     return little_endian_read_16(event, 11);
3352 }
3353 
3354 /**
3355  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3356  * @param event packet
3357  * @return connection_handle
3358  * @note: btstack_type H
3359  */
3360 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){
3361     return little_endian_read_16(event, 3);
3362 }
3363 /**
3364  * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3365  * @param event packet
3366  * @return max_tx_octets
3367  * @note: btstack_type 2
3368  */
3369 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){
3370     return little_endian_read_16(event, 5);
3371 }
3372 /**
3373  * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3374  * @param event packet
3375  * @return max_tx_time
3376  * @note: btstack_type 2
3377  */
3378 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){
3379     return little_endian_read_16(event, 7);
3380 }
3381 /**
3382  * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3383  * @param event packet
3384  * @return max_rx_octets
3385  * @note: btstack_type 2
3386  */
3387 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){
3388     return little_endian_read_16(event, 9);
3389 }
3390 /**
3391  * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3392  * @param event packet
3393  * @return max_rx_time
3394  * @note: btstack_type 2
3395  */
3396 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){
3397     return little_endian_read_16(event, 11);
3398 }
3399 
3400 /**
3401  * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
3402  * @param event packet
3403  * @return status
3404  * @note: btstack_type 1
3405  */
3406 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){
3407     return event[3];
3408 }
3409 /**
3410  * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
3411  * @param event packet
3412  * @param Pointer to storage for dhkey_x
3413  * @note: btstack_type Q
3414  */
3415 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){
3416     reverse_bytes(&event[4], dhkey_x, 32);
3417 }
3418 /**
3419  * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
3420  * @param event packet
3421  * @param Pointer to storage for dhkey_y
3422  * @note: btstack_type Q
3423  */
3424 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){
3425     reverse_bytes(&event[36], dhkey_y, 32);
3426 }
3427 
3428 /**
3429  * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
3430  * @param event packet
3431  * @return status
3432  * @note: btstack_type 1
3433  */
3434 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){
3435     return event[3];
3436 }
3437 /**
3438  * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
3439  * @param event packet
3440  * @param Pointer to storage for dhkey
3441  * @note: btstack_type Q
3442  */
3443 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){
3444     reverse_bytes(&event[4], dhkey, 32);
3445 }
3446 
3447 /**
3448  * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3449  * @param event packet
3450  * @return status
3451  * @note: btstack_type 1
3452  */
3453 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){
3454     return event[3];
3455 }
3456 /**
3457  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3458  * @param event packet
3459  * @return connection_handle
3460  * @note: btstack_type H
3461  */
3462 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){
3463     return little_endian_read_16(event, 4);
3464 }
3465 /**
3466  * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3467  * @param event packet
3468  * @return role
3469  * @note: btstack_type 1
3470  */
3471 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){
3472     return event[6];
3473 }
3474 /**
3475  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3476  * @param event packet
3477  * @return peer_address_type
3478  * @note: btstack_type 1
3479  */
3480 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){
3481     return event[7];
3482 }
3483 /**
3484  * @brief Get field perr_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3485  * @param event packet
3486  * @param Pointer to storage for perr_addresss
3487  * @note: btstack_type B
3488  */
3489 static inline void hci_subevent_le_enhanced_connection_complete_get_perr_addresss(const uint8_t * event, bd_addr_t perr_addresss){
3490     reverse_bd_addr(&event[8], perr_addresss);
3491 }
3492 /**
3493  * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3494  * @param event packet
3495  * @param Pointer to storage for local_resolvable_private_addres
3496  * @note: btstack_type B
3497  */
3498 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){
3499     reverse_bd_addr(&event[14], local_resolvable_private_addres);
3500 }
3501 /**
3502  * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3503  * @param event packet
3504  * @param Pointer to storage for peer_resolvable_private_addres
3505  * @note: btstack_type B
3506  */
3507 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){
3508     reverse_bd_addr(&event[20], peer_resolvable_private_addres);
3509 }
3510 /**
3511  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3512  * @param event packet
3513  * @return conn_interval
3514  * @note: btstack_type 2
3515  */
3516 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){
3517     return little_endian_read_16(event, 26);
3518 }
3519 /**
3520  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3521  * @param event packet
3522  * @return conn_latency
3523  * @note: btstack_type 2
3524  */
3525 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){
3526     return little_endian_read_16(event, 28);
3527 }
3528 /**
3529  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3530  * @param event packet
3531  * @return supervision_timeout
3532  * @note: btstack_type 2
3533  */
3534 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){
3535     return little_endian_read_16(event, 30);
3536 }
3537 /**
3538  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3539  * @param event packet
3540  * @return master_clock_accuracy
3541  * @note: btstack_type 1
3542  */
3543 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){
3544     return event[32];
3545 }
3546 
3547 /**
3548  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
3549  * @param event packet
3550  * @return status
3551  * @note: btstack_type 1
3552  */
3553 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){
3554     return event[3];
3555 }
3556 
3557 /**
3558  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE
3559  * @param event packet
3560  * @return status
3561  * @note: btstack_type 1
3562  */
3563 static inline uint8_t hsp_subevent_rfcomm_disconnection_complete_get_status(const uint8_t * event){
3564     return event[3];
3565 }
3566 
3567 /**
3568  * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
3569  * @param event packet
3570  * @return status
3571  * @note: btstack_type 1
3572  */
3573 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){
3574     return event[3];
3575 }
3576 /**
3577  * @brief Get field handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
3578  * @param event packet
3579  * @return handle
3580  * @note: btstack_type H
3581  */
3582 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_handle(const uint8_t * event){
3583     return little_endian_read_16(event, 4);
3584 }
3585 
3586 /**
3587  * @brief Get field status from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
3588  * @param event packet
3589  * @return status
3590  * @note: btstack_type 1
3591  */
3592 static inline uint8_t hsp_subevent_audio_disconnection_complete_get_status(const uint8_t * event){
3593     return event[3];
3594 }
3595 
3596 
3597 /**
3598  * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
3599  * @param event packet
3600  * @return gain
3601  * @note: btstack_type 1
3602  */
3603 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){
3604     return event[3];
3605 }
3606 
3607 /**
3608  * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
3609  * @param event packet
3610  * @return gain
3611  * @note: btstack_type 1
3612  */
3613 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){
3614     return event[3];
3615 }
3616 
3617 /**
3618  * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND
3619  * @param event packet
3620  * @return value_length
3621  * @note: btstack_type J
3622  */
3623 static inline int hsp_subevent_hs_command_get_value_length(const uint8_t * event){
3624     return event[3];
3625 }
3626 /**
3627  * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND
3628  * @param event packet
3629  * @return value
3630  * @note: btstack_type V
3631  */
3632 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){
3633     return &event[4];
3634 }
3635 
3636 /**
3637  * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION
3638  * @param event packet
3639  * @return value_length
3640  * @note: btstack_type J
3641  */
3642 static inline int hsp_subevent_ag_indication_get_value_length(const uint8_t * event){
3643     return event[3];
3644 }
3645 /**
3646  * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION
3647  * @param event packet
3648  * @return value
3649  * @note: btstack_type V
3650  */
3651 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){
3652     return &event[4];
3653 }
3654 
3655 /**
3656  * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
3657  * @param event packet
3658  * @return status
3659  * @note: btstack_type 1
3660  */
3661 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){
3662     return event[3];
3663 }
3664 /**
3665  * @brief Get field con_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
3666  * @param event packet
3667  * @return con_handle
3668  * @note: btstack_type H
3669  */
3670 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_con_handle(const uint8_t * event){
3671     return little_endian_read_16(event, 4);
3672 }
3673 /**
3674  * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
3675  * @param event packet
3676  * @param Pointer to storage for bd_addr
3677  * @note: btstack_type B
3678  */
3679 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
3680     reverse_bd_addr(&event[6], bd_addr);
3681 }
3682 
3683 
3684 /**
3685  * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
3686  * @param event packet
3687  * @return status
3688  * @note: btstack_type 1
3689  */
3690 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){
3691     return event[3];
3692 }
3693 /**
3694  * @brief Get field handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
3695  * @param event packet
3696  * @return handle
3697  * @note: btstack_type H
3698  */
3699 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_handle(const uint8_t * event){
3700     return little_endian_read_16(event, 4);
3701 }
3702 /**
3703  * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
3704  * @param event packet
3705  * @param Pointer to storage for bd_addr
3706  * @note: btstack_type B
3707  */
3708 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
3709     reverse_bd_addr(&event[6], bd_addr);
3710 }
3711 /**
3712  * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
3713  * @param event packet
3714  * @return negotiated_codec
3715  * @note: btstack_type 1
3716  */
3717 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
3718     return event[12];
3719 }
3720 
3721 
3722 /**
3723  * @brief Get field status from event HFP_SUBEVENT_COMPLETE
3724  * @param event packet
3725  * @return status
3726  * @note: btstack_type 1
3727  */
3728 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){
3729     return event[3];
3730 }
3731 
3732 /**
3733  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3734  * @param event packet
3735  * @return indicator_index
3736  * @note: btstack_type 1
3737  */
3738 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){
3739     return event[3];
3740 }
3741 /**
3742  * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3743  * @param event packet
3744  * @return indicator_status
3745  * @note: btstack_type 1
3746  */
3747 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){
3748     return event[4];
3749 }
3750 /**
3751  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3752  * @param event packet
3753  * @return indicator_min_range
3754  * @note: btstack_type 1
3755  */
3756 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){
3757     return event[5];
3758 }
3759 /**
3760  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3761  * @param event packet
3762  * @return indicator_max_range
3763  * @note: btstack_type 1
3764  */
3765 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){
3766     return event[6];
3767 }
3768 /**
3769  * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3770  * @param event packet
3771  * @return indicator_mandatory
3772  * @note: btstack_type 1
3773  */
3774 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){
3775     return event[7];
3776 }
3777 /**
3778  * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3779  * @param event packet
3780  * @return indicator_enabled
3781  * @note: btstack_type 1
3782  */
3783 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){
3784     return event[8];
3785 }
3786 /**
3787  * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3788  * @param event packet
3789  * @return indicator_status_changed
3790  * @note: btstack_type 1
3791  */
3792 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){
3793     return event[9];
3794 }
3795 /**
3796  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
3797  * @param event packet
3798  * @return indicator_name
3799  * @note: btstack_type T
3800  */
3801 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){
3802     return (const char *) &event[10];
3803 }
3804 
3805 /**
3806  * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
3807  * @param event packet
3808  * @return network_operator_mode
3809  * @note: btstack_type 1
3810  */
3811 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){
3812     return event[3];
3813 }
3814 /**
3815  * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
3816  * @param event packet
3817  * @return network_operator_format
3818  * @note: btstack_type 1
3819  */
3820 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){
3821     return event[4];
3822 }
3823 /**
3824  * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
3825  * @param event packet
3826  * @return network_operator_name
3827  * @note: btstack_type T
3828  */
3829 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){
3830     return (const char *) &event[5];
3831 }
3832 
3833 /**
3834  * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
3835  * @param event packet
3836  * @return error
3837  * @note: btstack_type 1
3838  */
3839 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){
3840     return event[3];
3841 }
3842 
3843 
3844 
3845 
3846 /**
3847  * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
3848  * @param event packet
3849  * @return number
3850  * @note: btstack_type T
3851  */
3852 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){
3853     return (const char *) &event[3];
3854 }
3855 
3856 
3857 /**
3858  * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
3859  * @param event packet
3860  * @return number
3861  * @note: btstack_type T
3862  */
3863 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){
3864     return (const char *) &event[3];
3865 }
3866 
3867 /**
3868  * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
3869  * @param event packet
3870  * @return dtmf
3871  * @note: btstack_type T
3872  */
3873 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){
3874     return (const char *) &event[3];
3875 }
3876 
3877 
3878 
3879 
3880 /**
3881  * @brief Get field status from event HFP_SUBEVENT_SPEAKER_VOLUME
3882  * @param event packet
3883  * @return status
3884  * @note: btstack_type 1
3885  */
3886 static inline uint8_t hfp_subevent_speaker_volume_get_status(const uint8_t * event){
3887     return event[3];
3888 }
3889 /**
3890  * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME
3891  * @param event packet
3892  * @return gain
3893  * @note: btstack_type 1
3894  */
3895 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){
3896     return event[4];
3897 }
3898 
3899 /**
3900  * @brief Get field status from event HFP_SUBEVENT_MICROPHONE_VOLUME
3901  * @param event packet
3902  * @return status
3903  * @note: btstack_type 1
3904  */
3905 static inline uint8_t hfp_subevent_microphone_volume_get_status(const uint8_t * event){
3906     return event[3];
3907 }
3908 /**
3909  * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME
3910  * @param event packet
3911  * @return gain
3912  * @note: btstack_type 1
3913  */
3914 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){
3915     return event[4];
3916 }
3917 
3918 /**
3919  * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
3920  * @param event packet
3921  * @return type
3922  * @note: btstack_type 1
3923  */
3924 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
3925     return event[3];
3926 }
3927 /**
3928  * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
3929  * @param event packet
3930  * @return number
3931  * @note: btstack_type T
3932  */
3933 static inline const char * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
3934     return (const char *) &event[4];
3935 }
3936 
3937 /**
3938  * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
3939  * @param event packet
3940  * @return type
3941  * @note: btstack_type 1
3942  */
3943 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
3944     return event[3];
3945 }
3946 /**
3947  * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
3948  * @param event packet
3949  * @return number
3950  * @note: btstack_type T
3951  */
3952 static inline const char * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
3953     return (const char *) &event[4];
3954 }
3955 
3956 /**
3957  * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
3958  * @param event packet
3959  * @return clcc_idx
3960  * @note: btstack_type 1
3961  */
3962 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){
3963     return event[3];
3964 }
3965 /**
3966  * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
3967  * @param event packet
3968  * @return clcc_dir
3969  * @note: btstack_type 1
3970  */
3971 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){
3972     return event[4];
3973 }
3974 /**
3975  * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
3976  * @param event packet
3977  * @return clcc_status
3978  * @note: btstack_type 1
3979  */
3980 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){
3981     return event[5];
3982 }
3983 /**
3984  * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
3985  * @param event packet
3986  * @return clcc_mpty
3987  * @note: btstack_type 1
3988  */
3989 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){
3990     return event[6];
3991 }
3992 /**
3993  * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
3994  * @param event packet
3995  * @return bnip_type
3996  * @note: btstack_type 1
3997  */
3998 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){
3999     return event[7];
4000 }
4001 /**
4002  * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4003  * @param event packet
4004  * @return bnip_number
4005  * @note: btstack_type T
4006  */
4007 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){
4008     return (const char *) &event[8];
4009 }
4010 
4011 /**
4012  * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
4013  * @param event packet
4014  * @return status
4015  * @note: btstack_type 1
4016  */
4017 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){
4018     return event[3];
4019 }
4020 /**
4021  * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
4022  * @param event packet
4023  * @return bnip_type
4024  * @note: btstack_type 1
4025  */
4026 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){
4027     return event[4];
4028 }
4029 /**
4030  * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
4031  * @param event packet
4032  * @return bnip_number
4033  * @note: btstack_type T
4034  */
4035 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){
4036     return (const char *) &event[5];
4037 }
4038 
4039 /**
4040  * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
4041  * @param event packet
4042  * @return value
4043  * @note: btstack_type T
4044  */
4045 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){
4046     return (const char *) &event[3];
4047 }
4048 
4049 #ifdef ENABLE_BLE
4050 /**
4051  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
4052  * @param event packet
4053  * @return handle
4054  * @note: btstack_type H
4055  */
4056 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){
4057     return little_endian_read_16(event, 3);
4058 }
4059 #endif
4060 
4061 #ifdef ENABLE_BLE
4062 /**
4063  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
4064  * @param event packet
4065  * @return handle
4066  * @note: btstack_type H
4067  */
4068 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){
4069     return little_endian_read_16(event, 3);
4070 }
4071 /**
4072  * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
4073  * @param event packet
4074  * @return attribute_id
4075  * @note: btstack_type 2
4076  */
4077 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){
4078     return little_endian_read_16(event, 5);
4079 }
4080 /**
4081  * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
4082  * @param event packet
4083  * @return text
4084  * @note: btstack_type T
4085  */
4086 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){
4087     return (const char *) &event[7];
4088 }
4089 #endif
4090 
4091 #ifdef ENABLE_BLE
4092 /**
4093  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED
4094  * @param event packet
4095  * @return handle
4096  * @note: btstack_type H
4097  */
4098 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){
4099     return little_endian_read_16(event, 3);
4100 }
4101 #endif
4102 
4103 /**
4104  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
4105  * @param event packet
4106  * @return avdtp_cid
4107  * @note: btstack_type 2
4108  */
4109 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){
4110     return little_endian_read_16(event, 3);
4111 }
4112 /**
4113  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
4114  * @param event packet
4115  * @return local_seid
4116  * @note: btstack_type 1
4117  */
4118 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){
4119     return event[5];
4120 }
4121 /**
4122  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
4123  * @param event packet
4124  * @return signal_identifier
4125  * @note: btstack_type 1
4126  */
4127 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){
4128     return event[6];
4129 }
4130 
4131 /**
4132  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT
4133  * @param event packet
4134  * @return avdtp_cid
4135  * @note: btstack_type 2
4136  */
4137 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){
4138     return little_endian_read_16(event, 3);
4139 }
4140 /**
4141  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT
4142  * @param event packet
4143  * @return local_seid
4144  * @note: btstack_type 1
4145  */
4146 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){
4147     return event[5];
4148 }
4149 /**
4150  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT
4151  * @param event packet
4152  * @return signal_identifier
4153  * @note: btstack_type 1
4154  */
4155 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){
4156     return event[6];
4157 }
4158 
4159 /**
4160  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
4161  * @param event packet
4162  * @return avdtp_cid
4163  * @note: btstack_type 2
4164  */
4165 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){
4166     return little_endian_read_16(event, 3);
4167 }
4168 /**
4169  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
4170  * @param event packet
4171  * @return local_seid
4172  * @note: btstack_type 1
4173  */
4174 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){
4175     return event[5];
4176 }
4177 /**
4178  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
4179  * @param event packet
4180  * @return signal_identifier
4181  * @note: btstack_type 1
4182  */
4183 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){
4184     return event[6];
4185 }
4186 
4187 /**
4188  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
4189  * @param event packet
4190  * @return avdtp_cid
4191  * @note: btstack_type 2
4192  */
4193 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){
4194     return little_endian_read_16(event, 3);
4195 }
4196 /**
4197  * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
4198  * @param event packet
4199  * @param Pointer to storage for bd_addr
4200  * @note: btstack_type B
4201  */
4202 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4203     reverse_bd_addr(&event[5], bd_addr);
4204 }
4205 /**
4206  * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
4207  * @param event packet
4208  * @return status
4209  * @note: btstack_type 1
4210  */
4211 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){
4212     return event[11];
4213 }
4214 
4215 /**
4216  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
4217  * @param event packet
4218  * @return avdtp_cid
4219  * @note: btstack_type 2
4220  */
4221 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){
4222     return little_endian_read_16(event, 3);
4223 }
4224 
4225 /**
4226  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4227  * @param event packet
4228  * @return avdtp_cid
4229  * @note: btstack_type 2
4230  */
4231 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){
4232     return little_endian_read_16(event, 3);
4233 }
4234 /**
4235  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4236  * @param event packet
4237  * @return remote_seid
4238  * @note: btstack_type 1
4239  */
4240 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){
4241     return event[5];
4242 }
4243 /**
4244  * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4245  * @param event packet
4246  * @return in_use
4247  * @note: btstack_type 1
4248  */
4249 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){
4250     return event[6];
4251 }
4252 /**
4253  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4254  * @param event packet
4255  * @return media_type
4256  * @note: btstack_type 1
4257  */
4258 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){
4259     return event[7];
4260 }
4261 /**
4262  * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4263  * @param event packet
4264  * @return sep_type
4265  * @note: btstack_type 1
4266  */
4267 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){
4268     return event[8];
4269 }
4270 
4271 /**
4272  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4273  * @param event packet
4274  * @return avdtp_cid
4275  * @note: btstack_type 2
4276  */
4277 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){
4278     return little_endian_read_16(event, 3);
4279 }
4280 /**
4281  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4282  * @param event packet
4283  * @return local_seid
4284  * @note: btstack_type 1
4285  */
4286 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_local_seid(const uint8_t * event){
4287     return event[5];
4288 }
4289 /**
4290  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4291  * @param event packet
4292  * @return remote_seid
4293  * @note: btstack_type 1
4294  */
4295 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
4296     return event[6];
4297 }
4298 /**
4299  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4300  * @param event packet
4301  * @return media_type
4302  * @note: btstack_type 1
4303  */
4304 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
4305     return event[7];
4306 }
4307 /**
4308  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4309  * @param event packet
4310  * @return sampling_frequency_bitmap
4311  * @note: btstack_type 1
4312  */
4313 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
4314     return event[8];
4315 }
4316 /**
4317  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4318  * @param event packet
4319  * @return channel_mode_bitmap
4320  * @note: btstack_type 1
4321  */
4322 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
4323     return event[9];
4324 }
4325 /**
4326  * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4327  * @param event packet
4328  * @return block_length_bitmap
4329  * @note: btstack_type 1
4330  */
4331 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
4332     return event[10];
4333 }
4334 /**
4335  * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4336  * @param event packet
4337  * @return subbands_bitmap
4338  * @note: btstack_type 1
4339  */
4340 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
4341     return event[11];
4342 }
4343 /**
4344  * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4345  * @param event packet
4346  * @return allocation_method_bitmap
4347  * @note: btstack_type 1
4348  */
4349 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
4350     return event[12];
4351 }
4352 /**
4353  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4354  * @param event packet
4355  * @return min_bitpool_value
4356  * @note: btstack_type 1
4357  */
4358 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
4359     return event[13];
4360 }
4361 /**
4362  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4363  * @param event packet
4364  * @return max_bitpool_value
4365  * @note: btstack_type 1
4366  */
4367 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
4368     return event[14];
4369 }
4370 
4371 /**
4372  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4373  * @param event packet
4374  * @return avdtp_cid
4375  * @note: btstack_type 2
4376  */
4377 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){
4378     return little_endian_read_16(event, 3);
4379 }
4380 /**
4381  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4382  * @param event packet
4383  * @return local_seid
4384  * @note: btstack_type 1
4385  */
4386 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_local_seid(const uint8_t * event){
4387     return event[5];
4388 }
4389 /**
4390  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4391  * @param event packet
4392  * @return remote_seid
4393  * @note: btstack_type 1
4394  */
4395 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
4396     return event[6];
4397 }
4398 /**
4399  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4400  * @param event packet
4401  * @return media_type
4402  * @note: btstack_type 1
4403  */
4404 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
4405     return event[7];
4406 }
4407 /**
4408  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4409  * @param event packet
4410  * @return media_codec_type
4411  * @note: btstack_type 2
4412  */
4413 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
4414     return little_endian_read_16(event, 8);
4415 }
4416 /**
4417  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4418  * @param event packet
4419  * @return media_codec_information_len
4420  * @note: btstack_type L
4421  */
4422 static inline int avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
4423     return little_endian_read_16(event, 10);
4424 }
4425 /**
4426  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4427  * @param event packet
4428  * @return media_codec_information
4429  * @note: btstack_type V
4430  */
4431 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
4432     return &event[12];
4433 }
4434 
4435 /**
4436  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
4437  * @param event packet
4438  * @return avdtp_cid
4439  * @note: btstack_type 2
4440  */
4441 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){
4442     return little_endian_read_16(event, 3);
4443 }
4444 /**
4445  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
4446  * @param event packet
4447  * @return local_seid
4448  * @note: btstack_type 1
4449  */
4450 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_local_seid(const uint8_t * event){
4451     return event[5];
4452 }
4453 /**
4454  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
4455  * @param event packet
4456  * @return remote_seid
4457  * @note: btstack_type 1
4458  */
4459 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){
4460     return event[6];
4461 }
4462 
4463 /**
4464  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
4465  * @param event packet
4466  * @return avdtp_cid
4467  * @note: btstack_type 2
4468  */
4469 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){
4470     return little_endian_read_16(event, 3);
4471 }
4472 /**
4473  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
4474  * @param event packet
4475  * @return local_seid
4476  * @note: btstack_type 1
4477  */
4478 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_local_seid(const uint8_t * event){
4479     return event[5];
4480 }
4481 /**
4482  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
4483  * @param event packet
4484  * @return remote_seid
4485  * @note: btstack_type 1
4486  */
4487 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){
4488     return event[6];
4489 }
4490 
4491 /**
4492  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4493  * @param event packet
4494  * @return avdtp_cid
4495  * @note: btstack_type 2
4496  */
4497 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){
4498     return little_endian_read_16(event, 3);
4499 }
4500 /**
4501  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4502  * @param event packet
4503  * @return local_seid
4504  * @note: btstack_type 1
4505  */
4506 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_local_seid(const uint8_t * event){
4507     return event[5];
4508 }
4509 /**
4510  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4511  * @param event packet
4512  * @return remote_seid
4513  * @note: btstack_type 1
4514  */
4515 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){
4516     return event[6];
4517 }
4518 /**
4519  * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4520  * @param event packet
4521  * @return recovery_type
4522  * @note: btstack_type 1
4523  */
4524 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){
4525     return event[7];
4526 }
4527 /**
4528  * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4529  * @param event packet
4530  * @return maximum_recovery_window_size
4531  * @note: btstack_type 1
4532  */
4533 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){
4534     return event[8];
4535 }
4536 /**
4537  * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4538  * @param event packet
4539  * @return maximum_number_media_packets
4540  * @note: btstack_type 1
4541  */
4542 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){
4543     return event[9];
4544 }
4545 
4546 /**
4547  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4548  * @param event packet
4549  * @return avdtp_cid
4550  * @note: btstack_type 2
4551  */
4552 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){
4553     return little_endian_read_16(event, 3);
4554 }
4555 /**
4556  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4557  * @param event packet
4558  * @return local_seid
4559  * @note: btstack_type 1
4560  */
4561 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_local_seid(const uint8_t * event){
4562     return event[5];
4563 }
4564 /**
4565  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4566  * @param event packet
4567  * @return remote_seid
4568  * @note: btstack_type 1
4569  */
4570 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){
4571     return event[6];
4572 }
4573 /**
4574  * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4575  * @param event packet
4576  * @return cp_type
4577  * @note: btstack_type 2
4578  */
4579 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){
4580     return little_endian_read_16(event, 7);
4581 }
4582 /**
4583  * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4584  * @param event packet
4585  * @return cp_type_value_len
4586  * @note: btstack_type L
4587  */
4588 static inline int avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){
4589     return little_endian_read_16(event, 9);
4590 }
4591 /**
4592  * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4593  * @param event packet
4594  * @return cp_type_value
4595  * @note: btstack_type V
4596  */
4597 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){
4598     return &event[11];
4599 }
4600 
4601 /**
4602  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4603  * @param event packet
4604  * @return avdtp_cid
4605  * @note: btstack_type 2
4606  */
4607 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){
4608     return little_endian_read_16(event, 3);
4609 }
4610 /**
4611  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4612  * @param event packet
4613  * @return local_seid
4614  * @note: btstack_type 1
4615  */
4616 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_local_seid(const uint8_t * event){
4617     return event[5];
4618 }
4619 /**
4620  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4621  * @param event packet
4622  * @return remote_seid
4623  * @note: btstack_type 1
4624  */
4625 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){
4626     return event[6];
4627 }
4628 /**
4629  * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4630  * @param event packet
4631  * @return fragmentation
4632  * @note: btstack_type 1
4633  */
4634 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){
4635     return event[7];
4636 }
4637 /**
4638  * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4639  * @param event packet
4640  * @return transport_identifiers_num
4641  * @note: btstack_type 1
4642  */
4643 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){
4644     return event[8];
4645 }
4646 /**
4647  * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4648  * @param event packet
4649  * @return transport_session_identifier_1
4650  * @note: btstack_type 1
4651  */
4652 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){
4653     return event[9];
4654 }
4655 /**
4656  * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4657  * @param event packet
4658  * @return transport_session_identifier_2
4659  * @note: btstack_type 1
4660  */
4661 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){
4662     return event[10];
4663 }
4664 /**
4665  * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4666  * @param event packet
4667  * @return transport_session_identifier_3
4668  * @note: btstack_type 1
4669  */
4670 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){
4671     return event[11];
4672 }
4673 /**
4674  * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4675  * @param event packet
4676  * @return tcid_1
4677  * @note: btstack_type 1
4678  */
4679 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){
4680     return event[12];
4681 }
4682 /**
4683  * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4684  * @param event packet
4685  * @return tcid_2
4686  * @note: btstack_type 1
4687  */
4688 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){
4689     return event[13];
4690 }
4691 /**
4692  * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
4693  * @param event packet
4694  * @return tcid_3
4695  * @note: btstack_type 1
4696  */
4697 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){
4698     return event[14];
4699 }
4700 
4701 /**
4702  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
4703  * @param event packet
4704  * @return avdtp_cid
4705  * @note: btstack_type 2
4706  */
4707 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){
4708     return little_endian_read_16(event, 3);
4709 }
4710 /**
4711  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
4712  * @param event packet
4713  * @return local_seid
4714  * @note: btstack_type 1
4715  */
4716 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_local_seid(const uint8_t * event){
4717     return event[5];
4718 }
4719 /**
4720  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
4721  * @param event packet
4722  * @return remote_seid
4723  * @note: btstack_type 1
4724  */
4725 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
4726     return event[6];
4727 }
4728 
4729 /**
4730  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
4731  * @param event packet
4732  * @return avdtp_cid
4733  * @note: btstack_type 2
4734  */
4735 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){
4736     return little_endian_read_16(event, 3);
4737 }
4738 /**
4739  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
4740  * @param event packet
4741  * @return local_seid
4742  * @note: btstack_type 1
4743  */
4744 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_local_seid(const uint8_t * event){
4745     return event[5];
4746 }
4747 /**
4748  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
4749  * @param event packet
4750  * @return remote_seid
4751  * @note: btstack_type 1
4752  */
4753 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){
4754     return event[6];
4755 }
4756 /**
4757  * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
4758  * @param event packet
4759  * @return back_ch
4760  * @note: btstack_type 1
4761  */
4762 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){
4763     return event[7];
4764 }
4765 /**
4766  * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
4767  * @param event packet
4768  * @return media
4769  * @note: btstack_type 1
4770  */
4771 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){
4772     return event[8];
4773 }
4774 /**
4775  * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
4776  * @param event packet
4777  * @return recovery
4778  * @note: btstack_type 1
4779  */
4780 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){
4781     return event[9];
4782 }
4783 
4784 /**
4785  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4786  * @param event packet
4787  * @return avdtp_cid
4788  * @note: btstack_type 2
4789  */
4790 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){
4791     return little_endian_read_16(event, 3);
4792 }
4793 /**
4794  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4795  * @param event packet
4796  * @return local_seid
4797  * @note: btstack_type 1
4798  */
4799 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
4800     return event[5];
4801 }
4802 /**
4803  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4804  * @param event packet
4805  * @return remote_seid
4806  * @note: btstack_type 1
4807  */
4808 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
4809     return event[6];
4810 }
4811 /**
4812  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4813  * @param event packet
4814  * @return reconfigure
4815  * @note: btstack_type 1
4816  */
4817 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
4818     return event[7];
4819 }
4820 /**
4821  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4822  * @param event packet
4823  * @return media_type
4824  * @note: btstack_type 1
4825  */
4826 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
4827     return event[8];
4828 }
4829 /**
4830  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4831  * @param event packet
4832  * @return sampling_frequency
4833  * @note: btstack_type 2
4834  */
4835 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
4836     return little_endian_read_16(event, 9);
4837 }
4838 /**
4839  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4840  * @param event packet
4841  * @return channel_mode
4842  * @note: btstack_type 1
4843  */
4844 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
4845     return event[11];
4846 }
4847 /**
4848  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4849  * @param event packet
4850  * @return num_channels
4851  * @note: btstack_type 1
4852  */
4853 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
4854     return event[12];
4855 }
4856 /**
4857  * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4858  * @param event packet
4859  * @return block_length
4860  * @note: btstack_type 1
4861  */
4862 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
4863     return event[13];
4864 }
4865 /**
4866  * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4867  * @param event packet
4868  * @return subbands
4869  * @note: btstack_type 1
4870  */
4871 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
4872     return event[14];
4873 }
4874 /**
4875  * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4876  * @param event packet
4877  * @return allocation_method
4878  * @note: btstack_type 1
4879  */
4880 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
4881     return event[15];
4882 }
4883 /**
4884  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4885  * @param event packet
4886  * @return min_bitpool_value
4887  * @note: btstack_type 1
4888  */
4889 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
4890     return event[16];
4891 }
4892 /**
4893  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
4894  * @param event packet
4895  * @return max_bitpool_value
4896  * @note: btstack_type 1
4897  */
4898 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
4899     return event[17];
4900 }
4901 
4902 /**
4903  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4904  * @param event packet
4905  * @return avdtp_cid
4906  * @note: btstack_type 2
4907  */
4908 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){
4909     return little_endian_read_16(event, 3);
4910 }
4911 /**
4912  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4913  * @param event packet
4914  * @return local_seid
4915  * @note: btstack_type 1
4916  */
4917 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
4918     return event[5];
4919 }
4920 /**
4921  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4922  * @param event packet
4923  * @return remote_seid
4924  * @note: btstack_type 1
4925  */
4926 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
4927     return event[6];
4928 }
4929 /**
4930  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4931  * @param event packet
4932  * @return reconfigure
4933  * @note: btstack_type 1
4934  */
4935 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
4936     return event[7];
4937 }
4938 /**
4939  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4940  * @param event packet
4941  * @return media_type
4942  * @note: btstack_type 1
4943  */
4944 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
4945     return event[8];
4946 }
4947 /**
4948  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4949  * @param event packet
4950  * @return media_codec_type
4951  * @note: btstack_type 2
4952  */
4953 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
4954     return little_endian_read_16(event, 9);
4955 }
4956 /**
4957  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4958  * @param event packet
4959  * @return media_codec_information_len
4960  * @note: btstack_type L
4961  */
4962 static inline int avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
4963     return little_endian_read_16(event, 11);
4964 }
4965 /**
4966  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
4967  * @param event packet
4968  * @return media_codec_information
4969  * @note: btstack_type V
4970  */
4971 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
4972     return &event[13];
4973 }
4974 
4975 /**
4976  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
4977  * @param event packet
4978  * @return avdtp_cid
4979  * @note: btstack_type 2
4980  */
4981 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){
4982     return little_endian_read_16(event, 3);
4983 }
4984 /**
4985  * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
4986  * @param event packet
4987  * @param Pointer to storage for bd_addr
4988  * @note: btstack_type B
4989  */
4990 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4991     reverse_bd_addr(&event[5], bd_addr);
4992 }
4993 /**
4994  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
4995  * @param event packet
4996  * @return local_seid
4997  * @note: btstack_type 1
4998  */
4999 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){
5000     return event[11];
5001 }
5002 /**
5003  * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5004  * @param event packet
5005  * @return remote_seid
5006  * @note: btstack_type 1
5007  */
5008 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){
5009     return event[12];
5010 }
5011 /**
5012  * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5013  * @param event packet
5014  * @return status
5015  * @note: btstack_type 1
5016  */
5017 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){
5018     return event[13];
5019 }
5020 
5021 /**
5022  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
5023  * @param event packet
5024  * @return avdtp_cid
5025  * @note: btstack_type 2
5026  */
5027 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){
5028     return little_endian_read_16(event, 3);
5029 }
5030 /**
5031  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
5032  * @param event packet
5033  * @return local_seid
5034  * @note: btstack_type 1
5035  */
5036 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){
5037     return event[5];
5038 }
5039 
5040 /**
5041  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5042  * @param event packet
5043  * @return avdtp_cid
5044  * @note: btstack_type 2
5045  */
5046 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){
5047     return little_endian_read_16(event, 3);
5048 }
5049 /**
5050  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5051  * @param event packet
5052  * @return local_seid
5053  * @note: btstack_type 1
5054  */
5055 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
5056     return event[5];
5057 }
5058 /**
5059  * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5060  * @param event packet
5061  * @return sequence_number
5062  * @note: btstack_type 2
5063  */
5064 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){
5065     return little_endian_read_16(event, 6);
5066 }
5067 
5068 /**
5069  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
5070  * @param event packet
5071  * @return avdtp_cid
5072  * @note: btstack_type 2
5073  */
5074 static inline uint16_t avdtp_subevent_signaling_capability_done_get_avdtp_cid(const uint8_t * event){
5075     return little_endian_read_16(event, 3);
5076 }
5077 /**
5078  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
5079  * @param event packet
5080  * @return local_seid
5081  * @note: btstack_type 1
5082  */
5083 static inline uint8_t avdtp_subevent_signaling_capability_done_get_local_seid(const uint8_t * event){
5084     return event[5];
5085 }
5086 /**
5087  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
5088  * @param event packet
5089  * @return remote_seid
5090  * @note: btstack_type 1
5091  */
5092 static inline uint8_t avdtp_subevent_signaling_capability_done_get_remote_seid(const uint8_t * event){
5093     return event[6];
5094 }
5095 
5096 /**
5097  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE
5098  * @param event packet
5099  * @return avdtp_cid
5100  * @note: btstack_type 2
5101  */
5102 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){
5103     return little_endian_read_16(event, 3);
5104 }
5105 
5106 /**
5107  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5108  * @param event packet
5109  * @return a2dp_cid
5110  * @note: btstack_type 2
5111  */
5112 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){
5113     return little_endian_read_16(event, 3);
5114 }
5115 /**
5116  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5117  * @param event packet
5118  * @return local_seid
5119  * @note: btstack_type 1
5120  */
5121 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
5122     return event[5];
5123 }
5124 
5125 /**
5126  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5127  * @param event packet
5128  * @return a2dp_cid
5129  * @note: btstack_type 2
5130  */
5131 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){
5132     return little_endian_read_16(event, 3);
5133 }
5134 /**
5135  * @brief Get field int_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5136  * @param event packet
5137  * @return int_seid
5138  * @note: btstack_type 1
5139  */
5140 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_int_seid(const uint8_t * event){
5141     return event[5];
5142 }
5143 /**
5144  * @brief Get field acp_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5145  * @param event packet
5146  * @return acp_seid
5147  * @note: btstack_type 1
5148  */
5149 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_acp_seid(const uint8_t * event){
5150     return event[6];
5151 }
5152 /**
5153  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5154  * @param event packet
5155  * @return reconfigure
5156  * @note: btstack_type 1
5157  */
5158 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
5159     return event[7];
5160 }
5161 /**
5162  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5163  * @param event packet
5164  * @return media_type
5165  * @note: btstack_type 1
5166  */
5167 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
5168     return event[8];
5169 }
5170 /**
5171  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5172  * @param event packet
5173  * @return sampling_frequency
5174  * @note: btstack_type 2
5175  */
5176 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
5177     return little_endian_read_16(event, 9);
5178 }
5179 /**
5180  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5181  * @param event packet
5182  * @return channel_mode
5183  * @note: btstack_type 1
5184  */
5185 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
5186     return event[11];
5187 }
5188 /**
5189  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5190  * @param event packet
5191  * @return num_channels
5192  * @note: btstack_type 1
5193  */
5194 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
5195     return event[12];
5196 }
5197 /**
5198  * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5199  * @param event packet
5200  * @return block_length
5201  * @note: btstack_type 1
5202  */
5203 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
5204     return event[13];
5205 }
5206 /**
5207  * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5208  * @param event packet
5209  * @return subbands
5210  * @note: btstack_type 1
5211  */
5212 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
5213     return event[14];
5214 }
5215 /**
5216  * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5217  * @param event packet
5218  * @return allocation_method
5219  * @note: btstack_type 1
5220  */
5221 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
5222     return event[15];
5223 }
5224 /**
5225  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5226  * @param event packet
5227  * @return min_bitpool_value
5228  * @note: btstack_type 1
5229  */
5230 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
5231     return event[16];
5232 }
5233 /**
5234  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5235  * @param event packet
5236  * @return max_bitpool_value
5237  * @note: btstack_type 1
5238  */
5239 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
5240     return event[17];
5241 }
5242 
5243 /**
5244  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5245  * @param event packet
5246  * @return a2dp_cid
5247  * @note: btstack_type 2
5248  */
5249 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){
5250     return little_endian_read_16(event, 3);
5251 }
5252 /**
5253  * @brief Get field int_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5254  * @param event packet
5255  * @return int_seid
5256  * @note: btstack_type 1
5257  */
5258 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_int_seid(const uint8_t * event){
5259     return event[5];
5260 }
5261 /**
5262  * @brief Get field acp_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5263  * @param event packet
5264  * @return acp_seid
5265  * @note: btstack_type 1
5266  */
5267 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_acp_seid(const uint8_t * event){
5268     return event[6];
5269 }
5270 /**
5271  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5272  * @param event packet
5273  * @return reconfigure
5274  * @note: btstack_type 1
5275  */
5276 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
5277     return event[7];
5278 }
5279 /**
5280  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5281  * @param event packet
5282  * @return media_type
5283  * @note: btstack_type 1
5284  */
5285 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
5286     return event[8];
5287 }
5288 /**
5289  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5290  * @param event packet
5291  * @return media_codec_type
5292  * @note: btstack_type 2
5293  */
5294 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
5295     return little_endian_read_16(event, 9);
5296 }
5297 /**
5298  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5299  * @param event packet
5300  * @return media_codec_information_len
5301  * @note: btstack_type L
5302  */
5303 static inline int a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
5304     return little_endian_read_16(event, 11);
5305 }
5306 /**
5307  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5308  * @param event packet
5309  * @return media_codec_information
5310  * @note: btstack_type V
5311  */
5312 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
5313     return &event[13];
5314 }
5315 
5316 /**
5317  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5318  * @param event packet
5319  * @return a2dp_cid
5320  * @note: btstack_type 2
5321  */
5322 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){
5323     return little_endian_read_16(event, 3);
5324 }
5325 /**
5326  * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5327  * @param event packet
5328  * @param Pointer to storage for bd_addr
5329  * @note: btstack_type B
5330  */
5331 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5332     reverse_bd_addr(&event[5], bd_addr);
5333 }
5334 /**
5335  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5336  * @param event packet
5337  * @return local_seid
5338  * @note: btstack_type 1
5339  */
5340 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){
5341     return event[11];
5342 }
5343 /**
5344  * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5345  * @param event packet
5346  * @return remote_seid
5347  * @note: btstack_type 1
5348  */
5349 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){
5350     return event[12];
5351 }
5352 /**
5353  * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5354  * @param event packet
5355  * @return status
5356  * @note: btstack_type 1
5357  */
5358 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){
5359     return event[13];
5360 }
5361 
5362 /**
5363  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED
5364  * @param event packet
5365  * @return a2dp_cid
5366  * @note: btstack_type 2
5367  */
5368 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){
5369     return little_endian_read_16(event, 3);
5370 }
5371 /**
5372  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED
5373  * @param event packet
5374  * @return local_seid
5375  * @note: btstack_type 1
5376  */
5377 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){
5378     return event[5];
5379 }
5380 
5381 /**
5382  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED
5383  * @param event packet
5384  * @return a2dp_cid
5385  * @note: btstack_type 2
5386  */
5387 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){
5388     return little_endian_read_16(event, 3);
5389 }
5390 /**
5391  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED
5392  * @param event packet
5393  * @return local_seid
5394  * @note: btstack_type 1
5395  */
5396 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){
5397     return event[5];
5398 }
5399 
5400 /**
5401  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED
5402  * @param event packet
5403  * @return a2dp_cid
5404  * @note: btstack_type 2
5405  */
5406 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){
5407     return little_endian_read_16(event, 3);
5408 }
5409 /**
5410  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED
5411  * @param event packet
5412  * @return local_seid
5413  * @note: btstack_type 1
5414  */
5415 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){
5416     return event[5];
5417 }
5418 
5419 /**
5420  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED
5421  * @param event packet
5422  * @return a2dp_cid
5423  * @note: btstack_type 2
5424  */
5425 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){
5426     return little_endian_read_16(event, 3);
5427 }
5428 /**
5429  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED
5430  * @param event packet
5431  * @return local_seid
5432  * @note: btstack_type 1
5433  */
5434 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){
5435     return event[5];
5436 }
5437 
5438 /**
5439  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
5440  * @param event packet
5441  * @return a2dp_cid
5442  * @note: btstack_type 2
5443  */
5444 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){
5445     return little_endian_read_16(event, 3);
5446 }
5447 /**
5448  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
5449  * @param event packet
5450  * @return local_seid
5451  * @note: btstack_type 1
5452  */
5453 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){
5454     return event[5];
5455 }
5456 /**
5457  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED
5458  * @param event packet
5459  * @return signal_identifier
5460  * @note: btstack_type 1
5461  */
5462 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){
5463     return event[6];
5464 }
5465 
5466 /**
5467  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED
5468  * @param event packet
5469  * @return a2dp_cid
5470  * @note: btstack_type 2
5471  */
5472 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){
5473     return little_endian_read_16(event, 3);
5474 }
5475 /**
5476  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED
5477  * @param event packet
5478  * @return local_seid
5479  * @note: btstack_type 1
5480  */
5481 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){
5482     return event[5];
5483 }
5484 /**
5485  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED
5486  * @param event packet
5487  * @return signal_identifier
5488  * @note: btstack_type 1
5489  */
5490 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){
5491     return event[6];
5492 }
5493 
5494 /**
5495  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
5496  * @param event packet
5497  * @return a2dp_cid
5498  * @note: btstack_type 2
5499  */
5500 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){
5501     return little_endian_read_16(event, 3);
5502 }
5503 /**
5504  * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
5505  * @param event packet
5506  * @param Pointer to storage for bd_addr
5507  * @note: btstack_type B
5508  */
5509 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5510     reverse_bd_addr(&event[5], bd_addr);
5511 }
5512 /**
5513  * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
5514  * @param event packet
5515  * @return status
5516  * @note: btstack_type 1
5517  */
5518 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){
5519     return event[11];
5520 }
5521 
5522 /**
5523  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
5524  * @param event packet
5525  * @return a2dp_cid
5526  * @note: btstack_type 2
5527  */
5528 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){
5529     return little_endian_read_16(event, 3);
5530 }
5531 
5532 /**
5533  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
5534  * @param event packet
5535  * @return a2dp_cid
5536  * @note: btstack_type 2
5537  */
5538 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){
5539     return little_endian_read_16(event, 3);
5540 }
5541 /**
5542  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
5543  * @param event packet
5544  * @return local_seid
5545  * @note: btstack_type 1
5546  */
5547 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){
5548     return event[5];
5549 }
5550 /**
5551  * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED
5552  * @param event packet
5553  * @return status
5554  * @note: btstack_type 1
5555  */
5556 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){
5557     return event[6];
5558 }
5559 
5560 /**
5561  * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
5562  * @param event packet
5563  * @return status
5564  * @note: btstack_type 1
5565  */
5566 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){
5567     return event[3];
5568 }
5569 /**
5570  * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
5571  * @param event packet
5572  * @param Pointer to storage for bd_addr
5573  * @note: btstack_type B
5574  */
5575 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5576     reverse_bd_addr(&event[4], bd_addr);
5577 }
5578 /**
5579  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
5580  * @param event packet
5581  * @return avrcp_cid
5582  * @note: btstack_type 2
5583  */
5584 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){
5585     return little_endian_read_16(event, 10);
5586 }
5587 
5588 /**
5589  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED
5590  * @param event packet
5591  * @return avrcp_cid
5592  * @note: btstack_type 2
5593  */
5594 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){
5595     return little_endian_read_16(event, 3);
5596 }
5597 
5598 /**
5599  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
5600  * @param event packet
5601  * @return avrcp_cid
5602  * @note: btstack_type 2
5603  */
5604 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){
5605     return little_endian_read_16(event, 3);
5606 }
5607 /**
5608  * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
5609  * @param event packet
5610  * @return command_type
5611  * @note: btstack_type 1
5612  */
5613 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){
5614     return event[5];
5615 }
5616 /**
5617  * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
5618  * @param event packet
5619  * @return repeat_mode
5620  * @note: btstack_type 1
5621  */
5622 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){
5623     return event[6];
5624 }
5625 /**
5626  * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
5627  * @param event packet
5628  * @return shuffle_mode
5629  * @note: btstack_type 1
5630  */
5631 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){
5632     return event[7];
5633 }
5634 
5635 /**
5636  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS
5637  * @param event packet
5638  * @return avrcp_cid
5639  * @note: btstack_type 2
5640  */
5641 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){
5642     return little_endian_read_16(event, 3);
5643 }
5644 /**
5645  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS
5646  * @param event packet
5647  * @return command_type
5648  * @note: btstack_type 1
5649  */
5650 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){
5651     return event[5];
5652 }
5653 /**
5654  * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS
5655  * @param event packet
5656  * @return song_length
5657  * @note: btstack_type 4
5658  */
5659 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){
5660     return little_endian_read_32(event, 6);
5661 }
5662 /**
5663  * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS
5664  * @param event packet
5665  * @return song_position
5666  * @note: btstack_type 4
5667  */
5668 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){
5669     return little_endian_read_32(event, 10);
5670 }
5671 /**
5672  * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS
5673  * @param event packet
5674  * @return play_status
5675  * @note: btstack_type 1
5676  */
5677 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){
5678     return event[14];
5679 }
5680 
5681 /**
5682  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
5683  * @param event packet
5684  * @return avrcp_cid
5685  * @note: btstack_type 2
5686  */
5687 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){
5688     return little_endian_read_16(event, 3);
5689 }
5690 /**
5691  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
5692  * @param event packet
5693  * @return command_type
5694  * @note: btstack_type 1
5695  */
5696 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){
5697     return event[5];
5698 }
5699 /**
5700  * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
5701  * @param event packet
5702  * @return play_status
5703  * @note: btstack_type 1
5704  */
5705 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){
5706     return event[6];
5707 }
5708 
5709 /**
5710  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
5711  * @param event packet
5712  * @return avrcp_cid
5713  * @note: btstack_type 2
5714  */
5715 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){
5716     return little_endian_read_16(event, 3);
5717 }
5718 /**
5719  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
5720  * @param event packet
5721  * @return command_type
5722  * @note: btstack_type 1
5723  */
5724 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){
5725     return event[5];
5726 }
5727 
5728 /**
5729  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
5730  * @param event packet
5731  * @return avrcp_cid
5732  * @note: btstack_type 2
5733  */
5734 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){
5735     return little_endian_read_16(event, 3);
5736 }
5737 /**
5738  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
5739  * @param event packet
5740  * @return command_type
5741  * @note: btstack_type 1
5742  */
5743 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){
5744     return event[5];
5745 }
5746 
5747 /**
5748  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
5749  * @param event packet
5750  * @return avrcp_cid
5751  * @note: btstack_type 2
5752  */
5753 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){
5754     return little_endian_read_16(event, 3);
5755 }
5756 /**
5757  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
5758  * @param event packet
5759  * @return command_type
5760  * @note: btstack_type 1
5761  */
5762 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){
5763     return event[5];
5764 }
5765 
5766 /**
5767  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
5768  * @param event packet
5769  * @return avrcp_cid
5770  * @note: btstack_type 2
5771  */
5772 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){
5773     return little_endian_read_16(event, 3);
5774 }
5775 /**
5776  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
5777  * @param event packet
5778  * @return command_type
5779  * @note: btstack_type 1
5780  */
5781 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){
5782     return event[5];
5783 }
5784 /**
5785  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
5786  * @param event packet
5787  * @return absolute_volume
5788  * @note: btstack_type 1
5789  */
5790 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){
5791     return event[6];
5792 }
5793 
5794 /**
5795  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
5796  * @param event packet
5797  * @return avrcp_cid
5798  * @note: btstack_type 2
5799  */
5800 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){
5801     return little_endian_read_16(event, 3);
5802 }
5803 /**
5804  * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
5805  * @param event packet
5806  * @return command_type
5807  * @note: btstack_type 1
5808  */
5809 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){
5810     return event[5];
5811 }
5812 /**
5813  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
5814  * @param event packet
5815  * @return absolute_volume
5816  * @note: btstack_type 1
5817  */
5818 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){
5819     return event[6];
5820 }
5821 
5822 /**
5823  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE
5824  * @param event packet
5825  * @return avrcp_cid
5826  * @note: btstack_type 2
5827  */
5828 static inline uint16_t avrcp_subevent_enable_notification_complete_get_avrcp_cid(const uint8_t * event){
5829     return little_endian_read_16(event, 3);
5830 }
5831 /**
5832  * @brief Get field command_type from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE
5833  * @param event packet
5834  * @return command_type
5835  * @note: btstack_type 1
5836  */
5837 static inline uint8_t avrcp_subevent_enable_notification_complete_get_command_type(const uint8_t * event){
5838     return event[5];
5839 }
5840 /**
5841  * @brief Get field notification_id from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE
5842  * @param event packet
5843  * @return notification_id
5844  * @note: btstack_type 1
5845  */
5846 static inline uint8_t avrcp_subevent_enable_notification_complete_get_notification_id(const uint8_t * event){
5847     return event[6];
5848 }
5849 
5850 /**
5851  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START
5852  * @param event packet
5853  * @return avrcp_cid
5854  * @note: btstack_type 2
5855  */
5856 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){
5857     return little_endian_read_16(event, 3);
5858 }
5859 /**
5860  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START
5861  * @param event packet
5862  * @return command_type
5863  * @note: btstack_type 1
5864  */
5865 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){
5866     return event[5];
5867 }
5868 /**
5869  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START
5870  * @param event packet
5871  * @return operation_id
5872  * @note: btstack_type 1
5873  */
5874 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){
5875     return event[6];
5876 }
5877 
5878 /**
5879  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE
5880  * @param event packet
5881  * @return avrcp_cid
5882  * @note: btstack_type 2
5883  */
5884 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){
5885     return little_endian_read_16(event, 3);
5886 }
5887 /**
5888  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE
5889  * @param event packet
5890  * @return command_type
5891  * @note: btstack_type 1
5892  */
5893 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){
5894     return event[5];
5895 }
5896 /**
5897  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE
5898  * @param event packet
5899  * @return operation_id
5900  * @note: btstack_type 1
5901  */
5902 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){
5903     return event[6];
5904 }
5905 
5906 /**
5907  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
5908  * @param event packet
5909  * @return avrcp_cid
5910  * @note: btstack_type 2
5911  */
5912 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){
5913     return little_endian_read_16(event, 3);
5914 }
5915 /**
5916  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
5917  * @param event packet
5918  * @return command_type
5919  * @note: btstack_type 1
5920  */
5921 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){
5922     return event[5];
5923 }
5924 
5925 /**
5926  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_COMPANY_IDS_QUERY
5927  * @param event packet
5928  * @return avrcp_cid
5929  * @note: btstack_type 2
5930  */
5931 static inline uint16_t avrcp_subevent_company_ids_query_get_avrcp_cid(const uint8_t * event){
5932     return little_endian_read_16(event, 3);
5933 }
5934 
5935 /**
5936  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_EVENT_IDS_QUERY
5937  * @param event packet
5938  * @return avrcp_cid
5939  * @note: btstack_type 2
5940  */
5941 static inline uint16_t avrcp_subevent_event_ids_query_get_avrcp_cid(const uint8_t * event){
5942     return little_endian_read_16(event, 3);
5943 }
5944 
5945 /**
5946  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY
5947  * @param event packet
5948  * @return avrcp_cid
5949  * @note: btstack_type 2
5950  */
5951 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){
5952     return little_endian_read_16(event, 3);
5953 }
5954 
5955 /**
5956  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION
5957  * @param event packet
5958  * @return avrcp_cid
5959  * @note: btstack_type 2
5960  */
5961 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){
5962     return little_endian_read_16(event, 3);
5963 }
5964 /**
5965  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION
5966  * @param event packet
5967  * @return operation_id
5968  * @note: btstack_type 1
5969  */
5970 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){
5971     return event[5];
5972 }
5973 /**
5974  * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION
5975  * @param event packet
5976  * @return operands_length
5977  * @note: btstack_type 1
5978  */
5979 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){
5980     return event[6];
5981 }
5982 /**
5983  * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION
5984  * @param event packet
5985  * @return operand
5986  * @note: btstack_type 1
5987  */
5988 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){
5989     return event[7];
5990 }
5991 
5992 /**
5993  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
5994  * @param event packet
5995  * @return avrcp_cid
5996  * @note: btstack_type 2
5997  */
5998 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){
5999     return little_endian_read_16(event, 3);
6000 }
6001 /**
6002  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
6003  * @param event packet
6004  * @return command_type
6005  * @note: btstack_type 1
6006  */
6007 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){
6008     return event[5];
6009 }
6010 /**
6011  * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
6012  * @param event packet
6013  * @return track
6014  * @note: btstack_type 1
6015  */
6016 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){
6017     return event[6];
6018 }
6019 
6020 /**
6021  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
6022  * @param event packet
6023  * @return avrcp_cid
6024  * @note: btstack_type 2
6025  */
6026 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){
6027     return little_endian_read_16(event, 3);
6028 }
6029 /**
6030  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
6031  * @param event packet
6032  * @return command_type
6033  * @note: btstack_type 1
6034  */
6035 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){
6036     return event[5];
6037 }
6038 /**
6039  * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
6040  * @param event packet
6041  * @return total_tracks
6042  * @note: btstack_type 1
6043  */
6044 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){
6045     return event[6];
6046 }
6047 
6048 /**
6049  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
6050  * @param event packet
6051  * @return avrcp_cid
6052  * @note: btstack_type 2
6053  */
6054 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){
6055     return little_endian_read_16(event, 3);
6056 }
6057 /**
6058  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
6059  * @param event packet
6060  * @return command_type
6061  * @note: btstack_type 1
6062  */
6063 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){
6064     return event[5];
6065 }
6066 /**
6067  * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
6068  * @param event packet
6069  * @return song_length
6070  * @note: btstack_type 4
6071  */
6072 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){
6073     return little_endian_read_32(event, 6);
6074 }
6075 
6076 /**
6077  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6078  * @param event packet
6079  * @return avrcp_cid
6080  * @note: btstack_type 2
6081  */
6082 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){
6083     return little_endian_read_16(event, 3);
6084 }
6085 /**
6086  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6087  * @param event packet
6088  * @return command_type
6089  * @note: btstack_type 1
6090  */
6091 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){
6092     return event[5];
6093 }
6094 /**
6095  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6096  * @param event packet
6097  * @return value_len
6098  * @note: btstack_type J
6099  */
6100 static inline int avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){
6101     return event[6];
6102 }
6103 /**
6104  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6105  * @param event packet
6106  * @return value
6107  * @note: btstack_type V
6108  */
6109 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){
6110     return &event[7];
6111 }
6112 
6113 /**
6114  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6115  * @param event packet
6116  * @return avrcp_cid
6117  * @note: btstack_type 2
6118  */
6119 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){
6120     return little_endian_read_16(event, 3);
6121 }
6122 /**
6123  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6124  * @param event packet
6125  * @return command_type
6126  * @note: btstack_type 1
6127  */
6128 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){
6129     return event[5];
6130 }
6131 /**
6132  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6133  * @param event packet
6134  * @return value_len
6135  * @note: btstack_type J
6136  */
6137 static inline int avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){
6138     return event[6];
6139 }
6140 /**
6141  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6142  * @param event packet
6143  * @return value
6144  * @note: btstack_type V
6145  */
6146 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){
6147     return &event[7];
6148 }
6149 
6150 /**
6151  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6152  * @param event packet
6153  * @return avrcp_cid
6154  * @note: btstack_type 2
6155  */
6156 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){
6157     return little_endian_read_16(event, 3);
6158 }
6159 /**
6160  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6161  * @param event packet
6162  * @return command_type
6163  * @note: btstack_type 1
6164  */
6165 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){
6166     return event[5];
6167 }
6168 /**
6169  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6170  * @param event packet
6171  * @return value_len
6172  * @note: btstack_type J
6173  */
6174 static inline int avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){
6175     return event[6];
6176 }
6177 /**
6178  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6179  * @param event packet
6180  * @return value
6181  * @note: btstack_type V
6182  */
6183 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){
6184     return &event[7];
6185 }
6186 
6187 /**
6188  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6189  * @param event packet
6190  * @return avrcp_cid
6191  * @note: btstack_type 2
6192  */
6193 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){
6194     return little_endian_read_16(event, 3);
6195 }
6196 /**
6197  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6198  * @param event packet
6199  * @return command_type
6200  * @note: btstack_type 1
6201  */
6202 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){
6203     return event[5];
6204 }
6205 /**
6206  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6207  * @param event packet
6208  * @return value_len
6209  * @note: btstack_type J
6210  */
6211 static inline int avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){
6212     return event[6];
6213 }
6214 /**
6215  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6216  * @param event packet
6217  * @return value
6218  * @note: btstack_type V
6219  */
6220 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){
6221     return &event[7];
6222 }
6223 
6224 /**
6225  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
6226  * @param event packet
6227  * @return avrcp_cid
6228  * @note: btstack_type 2
6229  */
6230 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){
6231     return little_endian_read_16(event, 3);
6232 }
6233 /**
6234  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
6235  * @param event packet
6236  * @return command_type
6237  * @note: btstack_type 1
6238  */
6239 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){
6240     return event[5];
6241 }
6242 /**
6243  * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
6244  * @param event packet
6245  * @return status
6246  * @note: btstack_type 1
6247  */
6248 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){
6249     return event[6];
6250 }
6251 
6252 /**
6253  * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
6254  * @param event packet
6255  * @param Pointer to storage for bd_addr
6256  * @note: btstack_type B
6257  */
6258 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6259     reverse_bd_addr(&event[3], bd_addr);
6260 }
6261 /**
6262  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
6263  * @param event packet
6264  * @return browsing_cid
6265  * @note: btstack_type 2
6266  */
6267 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){
6268     return little_endian_read_16(event, 9);
6269 }
6270 
6271 /**
6272  * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
6273  * @param event packet
6274  * @return status
6275  * @note: btstack_type 1
6276  */
6277 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){
6278     return event[3];
6279 }
6280 /**
6281  * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
6282  * @param event packet
6283  * @param Pointer to storage for bd_addr
6284  * @note: btstack_type B
6285  */
6286 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6287     reverse_bd_addr(&event[4], bd_addr);
6288 }
6289 /**
6290  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
6291  * @param event packet
6292  * @return browsing_cid
6293  * @note: btstack_type 2
6294  */
6295 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){
6296     return little_endian_read_16(event, 10);
6297 }
6298 
6299 /**
6300  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED
6301  * @param event packet
6302  * @return browsing_cid
6303  * @note: btstack_type 2
6304  */
6305 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){
6306     return little_endian_read_16(event, 3);
6307 }
6308 
6309 /**
6310  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
6311  * @param event packet
6312  * @return browsing_cid
6313  * @note: btstack_type 2
6314  */
6315 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){
6316     return little_endian_read_16(event, 3);
6317 }
6318 /**
6319  * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE
6320  * @param event packet
6321  * @return uid_counter
6322  * @note: btstack_type 2
6323  */
6324 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){
6325     return little_endian_read_16(event, 5);
6326 }
6327 /**
6328  * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE
6329  * @param event packet
6330  * @return browsing_status
6331  * @note: btstack_type 1
6332  */
6333 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){
6334     return event[7];
6335 }
6336 /**
6337  * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE
6338  * @param event packet
6339  * @return bluetooth_status
6340  * @note: btstack_type 1
6341  */
6342 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){
6343     return event[8];
6344 }
6345 
6346 /**
6347  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
6348  * @param event packet
6349  * @return browsing_cid
6350  * @note: btstack_type 2
6351  */
6352 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){
6353     return little_endian_read_16(event, 3);
6354 }
6355 /**
6356  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
6357  * @param event packet
6358  * @return scope
6359  * @note: btstack_type 1
6360  */
6361 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
6362     return event[5];
6363 }
6364 /**
6365  * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
6366  * @param event packet
6367  * @return attr_bitmap
6368  * @note: btstack_type 4
6369  */
6370 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){
6371     return little_endian_read_32(event, 6);
6372 }
6373 
6374 /**
6375  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
6376  * @param event packet
6377  * @return browsing_cid
6378  * @note: btstack_type 2
6379  */
6380 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){
6381     return little_endian_read_16(event, 3);
6382 }
6383 /**
6384  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
6385  * @param event packet
6386  * @return scope
6387  * @note: btstack_type 1
6388  */
6389 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){
6390     return event[5];
6391 }
6392 
6393 /**
6394  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
6395  * @param event packet
6396  * @return avrcp_cid
6397  * @note: btstack_type 2
6398  */
6399 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
6400     return little_endian_read_16(event, 3);
6401 }
6402 /**
6403  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
6404  * @param event packet
6405  * @return command_type
6406  * @note: btstack_type 1
6407  */
6408 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){
6409     return event[5];
6410 }
6411 /**
6412  * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
6413  * @param event packet
6414  * @return playback_position_ms
6415  * @note: btstack_type 4
6416  */
6417 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){
6418     return little_endian_read_32(event, 6);
6419 }
6420 
6421 /**
6422  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED
6423  * @param event packet
6424  * @return goep_cid
6425  * @note: btstack_type 2
6426  */
6427 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){
6428     return little_endian_read_16(event, 3);
6429 }
6430 /**
6431  * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED
6432  * @param event packet
6433  * @return status
6434  * @note: btstack_type 1
6435  */
6436 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){
6437     return event[5];
6438 }
6439 /**
6440  * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED
6441  * @param event packet
6442  * @param Pointer to storage for bd_addr
6443  * @note: btstack_type B
6444  */
6445 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6446     reverse_bd_addr(&event[6], bd_addr);
6447 }
6448 /**
6449  * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED
6450  * @param event packet
6451  * @return con_handle
6452  * @note: btstack_type H
6453  */
6454 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){
6455     return little_endian_read_16(event, 12);
6456 }
6457 /**
6458  * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED
6459  * @param event packet
6460  * @return incoming
6461  * @note: btstack_type 1
6462  */
6463 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){
6464     return event[14];
6465 }
6466 
6467 /**
6468  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED
6469  * @param event packet
6470  * @return goep_cid
6471  * @note: btstack_type 2
6472  */
6473 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){
6474     return little_endian_read_16(event, 3);
6475 }
6476 
6477 /**
6478  * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW
6479  * @param event packet
6480  * @return goep_cid
6481  * @note: btstack_type 2
6482  */
6483 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){
6484     return little_endian_read_16(event, 3);
6485 }
6486 
6487 /**
6488  * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED
6489  * @param event packet
6490  * @return pbap_cid
6491  * @note: btstack_type 2
6492  */
6493 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){
6494     return little_endian_read_16(event, 3);
6495 }
6496 /**
6497  * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED
6498  * @param event packet
6499  * @return status
6500  * @note: btstack_type 1
6501  */
6502 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){
6503     return event[5];
6504 }
6505 /**
6506  * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED
6507  * @param event packet
6508  * @param Pointer to storage for bd_addr
6509  * @note: btstack_type B
6510  */
6511 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6512     reverse_bd_addr(&event[6], bd_addr);
6513 }
6514 /**
6515  * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED
6516  * @param event packet
6517  * @return con_handle
6518  * @note: btstack_type H
6519  */
6520 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){
6521     return little_endian_read_16(event, 12);
6522 }
6523 /**
6524  * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED
6525  * @param event packet
6526  * @return incoming
6527  * @note: btstack_type 1
6528  */
6529 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){
6530     return event[14];
6531 }
6532 
6533 /**
6534  * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED
6535  * @param event packet
6536  * @return goep_cid
6537  * @note: btstack_type 2
6538  */
6539 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){
6540     return little_endian_read_16(event, 3);
6541 }
6542 
6543 /**
6544  * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED
6545  * @param event packet
6546  * @return goep_cid
6547  * @note: btstack_type 2
6548  */
6549 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){
6550     return little_endian_read_16(event, 3);
6551 }
6552 /**
6553  * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED
6554  * @param event packet
6555  * @return status
6556  * @note: btstack_type 1
6557  */
6558 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){
6559     return event[5];
6560 }
6561 
6562 /**
6563  * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE
6564  * @param event packet
6565  * @return goep_cid
6566  * @note: btstack_type 2
6567  */
6568 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){
6569     return little_endian_read_16(event, 3);
6570 }
6571 /**
6572  * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE
6573  * @param event packet
6574  * @return status
6575  * @note: btstack_type 1
6576  */
6577 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){
6578     return event[5];
6579 }
6580 /**
6581  * @brief Get field phoneboook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
6582  * @param event packet
6583  * @return phoneboook_size
6584  * @note: btstack_type 2
6585  */
6586 static inline uint16_t pbap_subevent_phonebook_size_get_phoneboook_size(const uint8_t * event){
6587     return little_endian_read_16(event, 6);
6588 }
6589 
6590 /**
6591  * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
6592  * @param event packet
6593  * @return goep_cid
6594  * @note: btstack_type 2
6595  */
6596 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){
6597     return little_endian_read_16(event, 3);
6598 }
6599 /**
6600  * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
6601  * @param event packet
6602  * @return user_id_required
6603  * @note: btstack_type 1
6604  */
6605 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){
6606     return event[5];
6607 }
6608 /**
6609  * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
6610  * @param event packet
6611  * @return full_access
6612  * @note: btstack_type 1
6613  */
6614 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){
6615     return event[6];
6616 }
6617 
6618 /**
6619  * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT
6620  * @param event packet
6621  * @return goep_cid
6622  * @note: btstack_type 2
6623  */
6624 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){
6625     return little_endian_read_16(event, 3);
6626 }
6627 /**
6628  * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT
6629  * @param event packet
6630  * @return name_len
6631  * @note: btstack_type J
6632  */
6633 static inline int pbap_subevent_card_result_get_name_len(const uint8_t * event){
6634     return event[5];
6635 }
6636 /**
6637  * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT
6638  * @param event packet
6639  * @return name
6640  * @note: btstack_type V
6641  */
6642 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){
6643     return &event[6];
6644 }
6645 /**
6646  * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT
6647  * @param event packet
6648  * @return handle_len
6649  * @note: btstack_type J
6650  */
6651 static inline int pbap_subevent_card_result_get_handle_len(const uint8_t * event){
6652     return event[6 + event[5]];
6653 }
6654 /**
6655  * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT
6656  * @param event packet
6657  * @return handle
6658  * @note: btstack_type V
6659  */
6660 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){
6661     return &event[6 + event[5] + 1];
6662 }
6663 
6664 /**
6665  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED
6666  * @param event packet
6667  * @return hid_cid
6668  * @note: btstack_type 2
6669  */
6670 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){
6671     return little_endian_read_16(event, 3);
6672 }
6673 /**
6674  * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED
6675  * @param event packet
6676  * @return status
6677  * @note: btstack_type 1
6678  */
6679 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){
6680     return event[5];
6681 }
6682 /**
6683  * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED
6684  * @param event packet
6685  * @param Pointer to storage for bd_addr
6686  * @note: btstack_type B
6687  */
6688 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6689     reverse_bd_addr(&event[6], bd_addr);
6690 }
6691 /**
6692  * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED
6693  * @param event packet
6694  * @return con_handle
6695  * @note: btstack_type H
6696  */
6697 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){
6698     return little_endian_read_16(event, 12);
6699 }
6700 /**
6701  * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED
6702  * @param event packet
6703  * @return incoming
6704  * @note: btstack_type 1
6705  */
6706 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){
6707     return event[14];
6708 }
6709 
6710 /**
6711  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED
6712  * @param event packet
6713  * @return hid_cid
6714  * @note: btstack_type 2
6715  */
6716 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){
6717     return little_endian_read_16(event, 3);
6718 }
6719 
6720 /**
6721  * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW
6722  * @param event packet
6723  * @return hid_cid
6724  * @note: btstack_type 2
6725  */
6726 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){
6727     return little_endian_read_16(event, 3);
6728 }
6729 
6730 /**
6731  * @brief Get field con_handle from event HID_SUBEVENT_SUSPEND
6732  * @param event packet
6733  * @return con_handle
6734  * @note: btstack_type 2
6735  */
6736 static inline uint16_t hid_subevent_suspend_get_con_handle(const uint8_t * event){
6737     return little_endian_read_16(event, 3);
6738 }
6739 
6740 /**
6741  * @brief Get field con_handle from event HID_SUBEVENT_EXIT_SUSPEND
6742  * @param event packet
6743  * @return con_handle
6744  * @note: btstack_type 2
6745  */
6746 static inline uint16_t hid_subevent_exit_suspend_get_con_handle(const uint8_t * event){
6747     return little_endian_read_16(event, 3);
6748 }
6749 
6750 /**
6751  * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
6752  * @param event packet
6753  * @return con_handle
6754  * @note: btstack_type 2
6755  */
6756 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){
6757     return little_endian_read_16(event, 3);
6758 }
6759 
6760 /**
6761  * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE
6762  * @param event packet
6763  * @return con_handle
6764  * @note: btstack_type 2
6765  */
6766 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){
6767     return little_endian_read_16(event, 3);
6768 }
6769 /**
6770  * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE
6771  * @param event packet
6772  * @return protocol_mode
6773  * @note: btstack_type 1
6774  */
6775 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){
6776     return event[5];
6777 }
6778 
6779 /**
6780  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
6781  * @param event packet
6782  * @return con_handle
6783  * @note: btstack_type 2
6784  */
6785 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){
6786     return little_endian_read_16(event, 3);
6787 }
6788 /**
6789  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
6790  * @param event packet
6791  * @return enable
6792  * @note: btstack_type 1
6793  */
6794 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){
6795     return event[5];
6796 }
6797 
6798 /**
6799  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
6800  * @param event packet
6801  * @return con_handle
6802  * @note: btstack_type 2
6803  */
6804 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){
6805     return little_endian_read_16(event, 3);
6806 }
6807 /**
6808  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
6809  * @param event packet
6810  * @return enable
6811  * @note: btstack_type 1
6812  */
6813 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){
6814     return event[5];
6815 }
6816 
6817 /**
6818  * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
6819  * @param event packet
6820  * @return con_handle
6821  * @note: btstack_type 2
6822  */
6823 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){
6824     return little_endian_read_16(event, 3);
6825 }
6826 /**
6827  * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
6828  * @param event packet
6829  * @return enable
6830  * @note: btstack_type 1
6831  */
6832 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){
6833     return event[5];
6834 }
6835 
6836 /**
6837  * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
6838  * @param event packet
6839  * @return con_handle
6840  * @note: btstack_type 2
6841  */
6842 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){
6843     return little_endian_read_16(event, 3);
6844 }
6845 /**
6846  * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
6847  * @param event packet
6848  * @return enable
6849  * @note: btstack_type 1
6850  */
6851 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){
6852     return event[5];
6853 }
6854 
6855 /**
6856  * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
6857  * @param event packet
6858  * @return con_handle
6859  * @note: btstack_type 2
6860  */
6861 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){
6862     return little_endian_read_16(event, 3);
6863 }
6864 /**
6865  * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
6866  * @param event packet
6867  * @return enable
6868  * @note: btstack_type 1
6869  */
6870 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){
6871     return event[5];
6872 }
6873 
6874 /**
6875  * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND
6876  * @param event packet
6877  * @return con_handle
6878  * @note: btstack_type 2
6879  */
6880 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){
6881     return little_endian_read_16(event, 3);
6882 }
6883 
6884 /**
6885  * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND
6886  * @param event packet
6887  * @return con_handle
6888  * @note: btstack_type 2
6889  */
6890 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){
6891     return little_endian_read_16(event, 3);
6892 }
6893 
6894 /**
6895  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
6896  * @param event packet
6897  * @return con_handle
6898  * @note: btstack_type 2
6899  */
6900 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){
6901     return little_endian_read_16(event, 3);
6902 }
6903 /**
6904  * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
6905  * @param event packet
6906  * @return measurement_type
6907  * @note: btstack_type 1
6908  */
6909 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){
6910     return event[5];
6911 }
6912 /**
6913  * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
6914  * @param event packet
6915  * @return is_enhanced
6916  * @note: btstack_type 1
6917  */
6918 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){
6919     return event[6];
6920 }
6921 
6922 /**
6923  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START
6924  * @param event packet
6925  * @return con_handle
6926  * @note: btstack_type 2
6927  */
6928 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){
6929     return little_endian_read_16(event, 3);
6930 }
6931 
6932 /**
6933  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP
6934  * @param event packet
6935  * @return con_handle
6936  * @note: btstack_type 2
6937  */
6938 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){
6939     return little_endian_read_16(event, 3);
6940 }
6941 
6942 
6943 
6944 /* API_END */
6945 
6946 #if defined __cplusplus
6947 }
6948 #endif
6949 
6950 #endif // __BTSTACK_EVENT_H
6951