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