xref: /btstack/src/btstack_event.h (revision b7f1c2ae8dfacad78024647a54fbfc5b9a55b68e)
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_ADV_PDU_SENT_EVENT
3263  * @param event packet
3264  * @return status
3265  * @note: btstack_type 1
3266  */
3267 static inline uint8_t mesh_pb_adv_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_ADV_LINK_OPEN_EVENT
3273  * @param event packet
3274  * @return status
3275  * @note: btstack_type 1
3276  */
3277 static inline uint8_t mesh_pb_adv_link_open_event_get_status(const uint8_t * event){
3278     return event[3];
3279 }
3280 /**
3281  * @brief Get field pb_adv_cid from event MESH_PB_ADV_LINK_OPEN_EVENT
3282  * @param event packet
3283  * @return pb_adv_cid
3284  * @note: btstack_type 2
3285  */
3286 static inline uint16_t mesh_pb_adv_link_open_event_get_pb_adv_cid(const uint8_t * event){
3287     return little_endian_read_16(event, 4);
3288 }
3289 
3290 /**
3291  * @brief Get field status from event MESH_PB_ADV_LINK_CLOSED_EVENT
3292  * @param event packet
3293  * @return status
3294  * @note: btstack_type 1
3295  */
3296 static inline uint8_t mesh_pb_adv_link_closed_event_get_status(const uint8_t * event){
3297     return event[3];
3298 }
3299 /**
3300  * @brief Get field pb_adv_cid from event MESH_PB_ADV_LINK_CLOSED_EVENT
3301  * @param event packet
3302  * @return pb_adv_cid
3303  * @note: btstack_type 2
3304  */
3305 static inline uint16_t mesh_pb_adv_link_closed_event_get_pb_adv_cid(const uint8_t * event){
3306     return little_endian_read_16(event, 4);
3307 }
3308 
3309 /**
3310  * @brief Get field pb_adv_cid from event MESH_PB_PROV_ATTENTION_TIMER_EVENT
3311  * @param event packet
3312  * @return pb_adv_cid
3313  * @note: btstack_type 2
3314  */
3315 static inline uint16_t mesh_pb_prov_attention_timer_event_get_pb_adv_cid(const uint8_t * event){
3316     return little_endian_read_16(event, 3);
3317 }
3318 /**
3319  * @brief Get field attention_time from event MESH_PB_PROV_ATTENTION_TIMER_EVENT
3320  * @param event packet
3321  * @return attention_time
3322  * @note: btstack_type 1
3323  */
3324 static inline uint8_t mesh_pb_prov_attention_timer_event_get_attention_time(const uint8_t * event){
3325     return event[5];
3326 }
3327 
3328 /**
3329  * @brief Get field pb_adv_cid from event MESH_PB_PROV_START_EMIT_PUBLIC_KEY_OOB_EVENT
3330  * @param event packet
3331  * @return pb_adv_cid
3332  * @note: btstack_type 2
3333  */
3334 static inline uint16_t mesh_pb_prov_start_emit_public_key_oob_event_get_pb_adv_cid(const uint8_t * event){
3335     return little_endian_read_16(event, 3);
3336 }
3337 
3338 /**
3339  * @brief Get field pb_adv_cid from event MESH_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB_EVENT
3340  * @param event packet
3341  * @return pb_adv_cid
3342  * @note: btstack_type 2
3343  */
3344 static inline uint16_t mesh_pb_prov_stop_emit_public_key_oob_event_get_pb_adv_cid(const uint8_t * event){
3345     return little_endian_read_16(event, 3);
3346 }
3347 
3348 /**
3349  * @brief Get field pb_adv_cid from event MESH_PB_PROV_INPUT_OOB_REQUEST_EVENT
3350  * @param event packet
3351  * @return pb_adv_cid
3352  * @note: btstack_type 2
3353  */
3354 static inline uint16_t mesh_pb_prov_input_oob_request_event_get_pb_adv_cid(const uint8_t * event){
3355     return little_endian_read_16(event, 3);
3356 }
3357 
3358 /**
3359  * @brief Get field pb_adv_cid from event MESH_PB_PROV_START_EMIT_OUTPUT_OOB_EVENT
3360  * @param event packet
3361  * @return pb_adv_cid
3362  * @note: btstack_type 2
3363  */
3364 static inline uint16_t mesh_pb_prov_start_emit_output_oob_event_get_pb_adv_cid(const uint8_t * event){
3365     return little_endian_read_16(event, 3);
3366 }
3367 /**
3368  * @brief Get field output_oob from event MESH_PB_PROV_START_EMIT_OUTPUT_OOB_EVENT
3369  * @param event packet
3370  * @return output_oob
3371  * @note: btstack_type 4
3372  */
3373 static inline uint32_t mesh_pb_prov_start_emit_output_oob_event_get_output_oob(const uint8_t * event){
3374     return little_endian_read_32(event, 5);
3375 }
3376 
3377 /**
3378  * @brief Get field pb_adv_cid from event MESH_PB_PROV_STOP_EMIT_OUTPUT_OOB_EVENT
3379  * @param event packet
3380  * @return pb_adv_cid
3381  * @note: btstack_type 2
3382  */
3383 static inline uint16_t mesh_pb_prov_stop_emit_output_oob_event_get_pb_adv_cid(const uint8_t * event){
3384     return little_endian_read_16(event, 3);
3385 }
3386 
3387 /**
3388  * @brief Get field pb_adv_cid from event MESH_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB_EVENT
3389  * @param event packet
3390  * @return pb_adv_cid
3391  * @note: btstack_type 2
3392  */
3393 static inline uint16_t mesh_pb_prov_start_receive_public_key_oob_event_get_pb_adv_cid(const uint8_t * event){
3394     return little_endian_read_16(event, 3);
3395 }
3396 
3397 /**
3398  * @brief Get field pb_adv_cid from event MESH_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB_EVENT
3399  * @param event packet
3400  * @return pb_adv_cid
3401  * @note: btstack_type 2
3402  */
3403 static inline uint16_t mesh_pb_prov_stop_receive_public_key_oob_event_get_pb_adv_cid(const uint8_t * event){
3404     return little_endian_read_16(event, 3);
3405 }
3406 
3407 /**
3408  * @brief Get field pb_adv_cid from event MESH_PB_PROV_OUTPUT_OOB_REQUEST_EVENT
3409  * @param event packet
3410  * @return pb_adv_cid
3411  * @note: btstack_type 2
3412  */
3413 static inline uint16_t mesh_pb_prov_output_oob_request_event_get_pb_adv_cid(const uint8_t * event){
3414     return little_endian_read_16(event, 3);
3415 }
3416 
3417 /**
3418  * @brief Get field pb_adv_cid from event MESH_PB_PROV_START_EMIT_INPUT_OOB_EVENT
3419  * @param event packet
3420  * @return pb_adv_cid
3421  * @note: btstack_type 2
3422  */
3423 static inline uint16_t mesh_pb_prov_start_emit_input_oob_event_get_pb_adv_cid(const uint8_t * event){
3424     return little_endian_read_16(event, 3);
3425 }
3426 /**
3427  * @brief Get field output_oob from event MESH_PB_PROV_START_EMIT_INPUT_OOB_EVENT
3428  * @param event packet
3429  * @return output_oob
3430  * @note: btstack_type 4
3431  */
3432 static inline uint32_t mesh_pb_prov_start_emit_input_oob_event_get_output_oob(const uint8_t * event){
3433     return little_endian_read_32(event, 5);
3434 }
3435 
3436 /**
3437  * @brief Get field pb_adv_cid from event MESH_PB_PROV_STOP_EMIT_INPUT_OOB_EVENT
3438  * @param event packet
3439  * @return pb_adv_cid
3440  * @note: btstack_type 2
3441  */
3442 static inline uint16_t mesh_pb_prov_stop_emit_input_oob_event_get_pb_adv_cid(const uint8_t * event){
3443     return little_endian_read_16(event, 3);
3444 }
3445 
3446 /**
3447  * @brief Get field pb_adv_cid from event MESH_PB_PROV_CAPABILITIES_EVENT
3448  * @param event packet
3449  * @return pb_adv_cid
3450  * @note: btstack_type 2
3451  */
3452 static inline uint16_t mesh_pb_prov_capabilities_event_get_pb_adv_cid(const uint8_t * event){
3453     return little_endian_read_16(event, 3);
3454 }
3455 /**
3456  * @brief Get field num_elements from event MESH_PB_PROV_CAPABILITIES_EVENT
3457  * @param event packet
3458  * @return num_elements
3459  * @note: btstack_type 1
3460  */
3461 static inline uint8_t mesh_pb_prov_capabilities_event_get_num_elements(const uint8_t * event){
3462     return event[5];
3463 }
3464 /**
3465  * @brief Get field algorithms from event MESH_PB_PROV_CAPABILITIES_EVENT
3466  * @param event packet
3467  * @return algorithms
3468  * @note: btstack_type 2
3469  */
3470 static inline uint16_t mesh_pb_prov_capabilities_event_get_algorithms(const uint8_t * event){
3471     return little_endian_read_16(event, 6);
3472 }
3473 /**
3474  * @brief Get field public_key from event MESH_PB_PROV_CAPABILITIES_EVENT
3475  * @param event packet
3476  * @return public_key
3477  * @note: btstack_type 1
3478  */
3479 static inline uint8_t mesh_pb_prov_capabilities_event_get_public_key(const uint8_t * event){
3480     return event[8];
3481 }
3482 /**
3483  * @brief Get field static_oob_type from event MESH_PB_PROV_CAPABILITIES_EVENT
3484  * @param event packet
3485  * @return static_oob_type
3486  * @note: btstack_type 1
3487  */
3488 static inline uint8_t mesh_pb_prov_capabilities_event_get_static_oob_type(const uint8_t * event){
3489     return event[9];
3490 }
3491 /**
3492  * @brief Get field output_oob_size from event MESH_PB_PROV_CAPABILITIES_EVENT
3493  * @param event packet
3494  * @return output_oob_size
3495  * @note: btstack_type 1
3496  */
3497 static inline uint8_t mesh_pb_prov_capabilities_event_get_output_oob_size(const uint8_t * event){
3498     return event[10];
3499 }
3500 /**
3501  * @brief Get field output_oob_action from event MESH_PB_PROV_CAPABILITIES_EVENT
3502  * @param event packet
3503  * @return output_oob_action
3504  * @note: btstack_type 2
3505  */
3506 static inline uint16_t mesh_pb_prov_capabilities_event_get_output_oob_action(const uint8_t * event){
3507     return little_endian_read_16(event, 11);
3508 }
3509 /**
3510  * @brief Get field input_oob_size from event MESH_PB_PROV_CAPABILITIES_EVENT
3511  * @param event packet
3512  * @return input_oob_size
3513  * @note: btstack_type 1
3514  */
3515 static inline uint8_t mesh_pb_prov_capabilities_event_get_input_oob_size(const uint8_t * event){
3516     return event[13];
3517 }
3518 /**
3519  * @brief Get field input_oob_action from event MESH_PB_PROV_CAPABILITIES_EVENT
3520  * @param event packet
3521  * @return input_oob_action
3522  * @note: btstack_type 2
3523  */
3524 static inline uint16_t mesh_pb_prov_capabilities_event_get_input_oob_action(const uint8_t * event){
3525     return little_endian_read_16(event, 14);
3526 }
3527 
3528 /**
3529  * @brief Get field pb_adv_cid from event MESH_PB_PROV_COMPLETE_EVENT
3530  * @param event packet
3531  * @return pb_adv_cid
3532  * @note: btstack_type 2
3533  */
3534 static inline uint16_t mesh_pb_prov_complete_event_get_pb_adv_cid(const uint8_t * event){
3535     return little_endian_read_16(event, 3);
3536 }
3537 
3538 /**
3539  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3540  * @param event packet
3541  * @return status
3542  * @note: btstack_type 1
3543  */
3544 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
3545     return event[3];
3546 }
3547 /**
3548  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3549  * @param event packet
3550  * @return connection_handle
3551  * @note: btstack_type H
3552  */
3553 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){
3554     return little_endian_read_16(event, 4);
3555 }
3556 /**
3557  * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3558  * @param event packet
3559  * @return role
3560  * @note: btstack_type 1
3561  */
3562 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){
3563     return event[6];
3564 }
3565 /**
3566  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3567  * @param event packet
3568  * @return peer_address_type
3569  * @note: btstack_type 1
3570  */
3571 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){
3572     return event[7];
3573 }
3574 /**
3575  * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3576  * @param event packet
3577  * @param Pointer to storage for peer_address
3578  * @note: btstack_type B
3579  */
3580 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){
3581     reverse_bd_addr(&event[8], peer_address);
3582 }
3583 /**
3584  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3585  * @param event packet
3586  * @return conn_interval
3587  * @note: btstack_type 2
3588  */
3589 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){
3590     return little_endian_read_16(event, 14);
3591 }
3592 /**
3593  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3594  * @param event packet
3595  * @return conn_latency
3596  * @note: btstack_type 2
3597  */
3598 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){
3599     return little_endian_read_16(event, 16);
3600 }
3601 /**
3602  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3603  * @param event packet
3604  * @return supervision_timeout
3605  * @note: btstack_type 2
3606  */
3607 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){
3608     return little_endian_read_16(event, 18);
3609 }
3610 /**
3611  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3612  * @param event packet
3613  * @return master_clock_accuracy
3614  * @note: btstack_type 1
3615  */
3616 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){
3617     return event[20];
3618 }
3619 
3620 /**
3621  * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3622  * @param event packet
3623  * @return status
3624  * @note: btstack_type 1
3625  */
3626 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){
3627     return event[3];
3628 }
3629 /**
3630  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3631  * @param event packet
3632  * @return connection_handle
3633  * @note: btstack_type H
3634  */
3635 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){
3636     return little_endian_read_16(event, 4);
3637 }
3638 /**
3639  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3640  * @param event packet
3641  * @return conn_interval
3642  * @note: btstack_type 2
3643  */
3644 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){
3645     return little_endian_read_16(event, 6);
3646 }
3647 /**
3648  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3649  * @param event packet
3650  * @return conn_latency
3651  * @note: btstack_type 2
3652  */
3653 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){
3654     return little_endian_read_16(event, 8);
3655 }
3656 /**
3657  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE
3658  * @param event packet
3659  * @return supervision_timeout
3660  * @note: btstack_type 2
3661  */
3662 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){
3663     return little_endian_read_16(event, 10);
3664 }
3665 
3666 /**
3667  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
3668  * @param event packet
3669  * @return connection_handle
3670  * @note: btstack_type H
3671  */
3672 static inline hci_con_handle_t hci_subevent_le_read_remote_used_features_complete_get_connection_handle(const uint8_t * event){
3673     return little_endian_read_16(event, 3);
3674 }
3675 /**
3676  * @brief Get field random_number from event HCI_SUBEVENT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
3677  * @param event packet
3678  * @return random_number
3679  * @note: btstack_type D
3680  */
3681 static inline const uint8_t * hci_subevent_le_read_remote_used_features_complete_get_random_number(const uint8_t * event){
3682     return (const uint8_t *) &event[5];
3683 }
3684 /**
3685  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
3686  * @param event packet
3687  * @return encryption_diversifier
3688  * @note: btstack_type 2
3689  */
3690 static inline uint16_t hci_subevent_le_read_remote_used_features_complete_get_encryption_diversifier(const uint8_t * event){
3691     return little_endian_read_16(event, 13);
3692 }
3693 
3694 /**
3695  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
3696  * @param event packet
3697  * @return connection_handle
3698  * @note: btstack_type H
3699  */
3700 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){
3701     return little_endian_read_16(event, 3);
3702 }
3703 /**
3704  * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
3705  * @param event packet
3706  * @return random_number
3707  * @note: btstack_type D
3708  */
3709 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){
3710     return (const uint8_t *) &event[5];
3711 }
3712 /**
3713  * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST
3714  * @param event packet
3715  * @return encryption_diversifier
3716  * @note: btstack_type 2
3717  */
3718 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){
3719     return little_endian_read_16(event, 13);
3720 }
3721 
3722 /**
3723  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3724  * @param event packet
3725  * @return connection_handle
3726  * @note: btstack_type H
3727  */
3728 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){
3729     return little_endian_read_16(event, 3);
3730 }
3731 /**
3732  * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3733  * @param event packet
3734  * @return interval_min
3735  * @note: btstack_type 2
3736  */
3737 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){
3738     return little_endian_read_16(event, 5);
3739 }
3740 /**
3741  * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3742  * @param event packet
3743  * @return interval_max
3744  * @note: btstack_type 2
3745  */
3746 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){
3747     return little_endian_read_16(event, 7);
3748 }
3749 /**
3750  * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3751  * @param event packet
3752  * @return latency
3753  * @note: btstack_type 2
3754  */
3755 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){
3756     return little_endian_read_16(event, 9);
3757 }
3758 /**
3759  * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST
3760  * @param event packet
3761  * @return timeout
3762  * @note: btstack_type 2
3763  */
3764 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){
3765     return little_endian_read_16(event, 11);
3766 }
3767 
3768 /**
3769  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3770  * @param event packet
3771  * @return connection_handle
3772  * @note: btstack_type H
3773  */
3774 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){
3775     return little_endian_read_16(event, 3);
3776 }
3777 /**
3778  * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3779  * @param event packet
3780  * @return max_tx_octets
3781  * @note: btstack_type 2
3782  */
3783 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){
3784     return little_endian_read_16(event, 5);
3785 }
3786 /**
3787  * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3788  * @param event packet
3789  * @return max_tx_time
3790  * @note: btstack_type 2
3791  */
3792 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){
3793     return little_endian_read_16(event, 7);
3794 }
3795 /**
3796  * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3797  * @param event packet
3798  * @return max_rx_octets
3799  * @note: btstack_type 2
3800  */
3801 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){
3802     return little_endian_read_16(event, 9);
3803 }
3804 /**
3805  * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE
3806  * @param event packet
3807  * @return max_rx_time
3808  * @note: btstack_type 2
3809  */
3810 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){
3811     return little_endian_read_16(event, 11);
3812 }
3813 
3814 /**
3815  * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
3816  * @param event packet
3817  * @return status
3818  * @note: btstack_type 1
3819  */
3820 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){
3821     return event[3];
3822 }
3823 /**
3824  * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
3825  * @param event packet
3826  * @param Pointer to storage for dhkey_x
3827  * @note: btstack_type Q
3828  */
3829 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){
3830     reverse_bytes(&event[4], dhkey_x, 32);
3831 }
3832 /**
3833  * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE
3834  * @param event packet
3835  * @param Pointer to storage for dhkey_y
3836  * @note: btstack_type Q
3837  */
3838 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){
3839     reverse_bytes(&event[36], dhkey_y, 32);
3840 }
3841 
3842 /**
3843  * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
3844  * @param event packet
3845  * @return status
3846  * @note: btstack_type 1
3847  */
3848 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){
3849     return event[3];
3850 }
3851 /**
3852  * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE
3853  * @param event packet
3854  * @param Pointer to storage for dhkey
3855  * @note: btstack_type Q
3856  */
3857 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){
3858     reverse_bytes(&event[4], dhkey, 32);
3859 }
3860 
3861 /**
3862  * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3863  * @param event packet
3864  * @return status
3865  * @note: btstack_type 1
3866  */
3867 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){
3868     return event[3];
3869 }
3870 /**
3871  * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3872  * @param event packet
3873  * @return connection_handle
3874  * @note: btstack_type H
3875  */
3876 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){
3877     return little_endian_read_16(event, 4);
3878 }
3879 /**
3880  * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3881  * @param event packet
3882  * @return role
3883  * @note: btstack_type 1
3884  */
3885 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){
3886     return event[6];
3887 }
3888 /**
3889  * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3890  * @param event packet
3891  * @return peer_address_type
3892  * @note: btstack_type 1
3893  */
3894 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){
3895     return event[7];
3896 }
3897 /**
3898  * @brief Get field perr_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3899  * @param event packet
3900  * @param Pointer to storage for perr_addresss
3901  * @note: btstack_type B
3902  */
3903 static inline void hci_subevent_le_enhanced_connection_complete_get_perr_addresss(const uint8_t * event, bd_addr_t perr_addresss){
3904     reverse_bd_addr(&event[8], perr_addresss);
3905 }
3906 /**
3907  * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3908  * @param event packet
3909  * @param Pointer to storage for local_resolvable_private_addres
3910  * @note: btstack_type B
3911  */
3912 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){
3913     reverse_bd_addr(&event[14], local_resolvable_private_addres);
3914 }
3915 /**
3916  * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3917  * @param event packet
3918  * @param Pointer to storage for peer_resolvable_private_addres
3919  * @note: btstack_type B
3920  */
3921 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){
3922     reverse_bd_addr(&event[20], peer_resolvable_private_addres);
3923 }
3924 /**
3925  * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3926  * @param event packet
3927  * @return conn_interval
3928  * @note: btstack_type 2
3929  */
3930 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){
3931     return little_endian_read_16(event, 26);
3932 }
3933 /**
3934  * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3935  * @param event packet
3936  * @return conn_latency
3937  * @note: btstack_type 2
3938  */
3939 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){
3940     return little_endian_read_16(event, 28);
3941 }
3942 /**
3943  * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3944  * @param event packet
3945  * @return supervision_timeout
3946  * @note: btstack_type 2
3947  */
3948 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){
3949     return little_endian_read_16(event, 30);
3950 }
3951 /**
3952  * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE
3953  * @param event packet
3954  * @return master_clock_accuracy
3955  * @note: btstack_type 1
3956  */
3957 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){
3958     return event[32];
3959 }
3960 
3961 /**
3962  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
3963  * @param event packet
3964  * @return status
3965  * @note: btstack_type 1
3966  */
3967 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){
3968     return event[3];
3969 }
3970 
3971 /**
3972  * @brief Get field status from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE
3973  * @param event packet
3974  * @return status
3975  * @note: btstack_type 1
3976  */
3977 static inline uint8_t hsp_subevent_rfcomm_disconnection_complete_get_status(const uint8_t * event){
3978     return event[3];
3979 }
3980 
3981 /**
3982  * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
3983  * @param event packet
3984  * @return status
3985  * @note: btstack_type 1
3986  */
3987 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){
3988     return event[3];
3989 }
3990 /**
3991  * @brief Get field handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE
3992  * @param event packet
3993  * @return handle
3994  * @note: btstack_type H
3995  */
3996 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_handle(const uint8_t * event){
3997     return little_endian_read_16(event, 4);
3998 }
3999 
4000 /**
4001  * @brief Get field status from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE
4002  * @param event packet
4003  * @return status
4004  * @note: btstack_type 1
4005  */
4006 static inline uint8_t hsp_subevent_audio_disconnection_complete_get_status(const uint8_t * event){
4007     return event[3];
4008 }
4009 
4010 
4011 /**
4012  * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED
4013  * @param event packet
4014  * @return gain
4015  * @note: btstack_type 1
4016  */
4017 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){
4018     return event[3];
4019 }
4020 
4021 /**
4022  * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED
4023  * @param event packet
4024  * @return gain
4025  * @note: btstack_type 1
4026  */
4027 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){
4028     return event[3];
4029 }
4030 
4031 /**
4032  * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND
4033  * @param event packet
4034  * @return value_length
4035  * @note: btstack_type J
4036  */
4037 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){
4038     return event[3];
4039 }
4040 /**
4041  * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND
4042  * @param event packet
4043  * @return value
4044  * @note: btstack_type V
4045  */
4046 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){
4047     return &event[4];
4048 }
4049 
4050 /**
4051  * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION
4052  * @param event packet
4053  * @return value_length
4054  * @note: btstack_type J
4055  */
4056 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){
4057     return event[3];
4058 }
4059 /**
4060  * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION
4061  * @param event packet
4062  * @return value
4063  * @note: btstack_type V
4064  */
4065 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){
4066     return &event[4];
4067 }
4068 
4069 /**
4070  * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
4071  * @param event packet
4072  * @return status
4073  * @note: btstack_type 1
4074  */
4075 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){
4076     return event[3];
4077 }
4078 /**
4079  * @brief Get field con_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
4080  * @param event packet
4081  * @return con_handle
4082  * @note: btstack_type H
4083  */
4084 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_con_handle(const uint8_t * event){
4085     return little_endian_read_16(event, 4);
4086 }
4087 /**
4088  * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED
4089  * @param event packet
4090  * @param Pointer to storage for bd_addr
4091  * @note: btstack_type B
4092  */
4093 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4094     reverse_bd_addr(&event[6], bd_addr);
4095 }
4096 
4097 
4098 /**
4099  * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
4100  * @param event packet
4101  * @return status
4102  * @note: btstack_type 1
4103  */
4104 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){
4105     return event[3];
4106 }
4107 /**
4108  * @brief Get field handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
4109  * @param event packet
4110  * @return handle
4111  * @note: btstack_type H
4112  */
4113 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_handle(const uint8_t * event){
4114     return little_endian_read_16(event, 4);
4115 }
4116 /**
4117  * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
4118  * @param event packet
4119  * @param Pointer to storage for bd_addr
4120  * @note: btstack_type B
4121  */
4122 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4123     reverse_bd_addr(&event[6], bd_addr);
4124 }
4125 /**
4126  * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
4127  * @param event packet
4128  * @return negotiated_codec
4129  * @note: btstack_type 1
4130  */
4131 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
4132     return event[12];
4133 }
4134 
4135 
4136 /**
4137  * @brief Get field status from event HFP_SUBEVENT_COMPLETE
4138  * @param event packet
4139  * @return status
4140  * @note: btstack_type 1
4141  */
4142 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){
4143     return event[3];
4144 }
4145 
4146 /**
4147  * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4148  * @param event packet
4149  * @return indicator_index
4150  * @note: btstack_type 1
4151  */
4152 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){
4153     return event[3];
4154 }
4155 /**
4156  * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4157  * @param event packet
4158  * @return indicator_status
4159  * @note: btstack_type 1
4160  */
4161 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){
4162     return event[4];
4163 }
4164 /**
4165  * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4166  * @param event packet
4167  * @return indicator_min_range
4168  * @note: btstack_type 1
4169  */
4170 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){
4171     return event[5];
4172 }
4173 /**
4174  * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4175  * @param event packet
4176  * @return indicator_max_range
4177  * @note: btstack_type 1
4178  */
4179 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){
4180     return event[6];
4181 }
4182 /**
4183  * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4184  * @param event packet
4185  * @return indicator_mandatory
4186  * @note: btstack_type 1
4187  */
4188 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){
4189     return event[7];
4190 }
4191 /**
4192  * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4193  * @param event packet
4194  * @return indicator_enabled
4195  * @note: btstack_type 1
4196  */
4197 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){
4198     return event[8];
4199 }
4200 /**
4201  * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4202  * @param event packet
4203  * @return indicator_status_changed
4204  * @note: btstack_type 1
4205  */
4206 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){
4207     return event[9];
4208 }
4209 /**
4210  * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED
4211  * @param event packet
4212  * @return indicator_name
4213  * @note: btstack_type T
4214  */
4215 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){
4216     return (const char *) &event[10];
4217 }
4218 
4219 /**
4220  * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
4221  * @param event packet
4222  * @return network_operator_mode
4223  * @note: btstack_type 1
4224  */
4225 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){
4226     return event[3];
4227 }
4228 /**
4229  * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
4230  * @param event packet
4231  * @return network_operator_format
4232  * @note: btstack_type 1
4233  */
4234 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){
4235     return event[4];
4236 }
4237 /**
4238  * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED
4239  * @param event packet
4240  * @return network_operator_name
4241  * @note: btstack_type T
4242  */
4243 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){
4244     return (const char *) &event[5];
4245 }
4246 
4247 /**
4248  * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR
4249  * @param event packet
4250  * @return error
4251  * @note: btstack_type 1
4252  */
4253 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){
4254     return event[3];
4255 }
4256 
4257 
4258 
4259 
4260 /**
4261  * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER
4262  * @param event packet
4263  * @return number
4264  * @note: btstack_type T
4265  */
4266 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){
4267     return (const char *) &event[3];
4268 }
4269 
4270 
4271 /**
4272  * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG
4273  * @param event packet
4274  * @return number
4275  * @note: btstack_type T
4276  */
4277 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){
4278     return (const char *) &event[3];
4279 }
4280 
4281 /**
4282  * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES
4283  * @param event packet
4284  * @return dtmf
4285  * @note: btstack_type T
4286  */
4287 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){
4288     return (const char *) &event[3];
4289 }
4290 
4291 
4292 
4293 
4294 /**
4295  * @brief Get field status from event HFP_SUBEVENT_SPEAKER_VOLUME
4296  * @param event packet
4297  * @return status
4298  * @note: btstack_type 1
4299  */
4300 static inline uint8_t hfp_subevent_speaker_volume_get_status(const uint8_t * event){
4301     return event[3];
4302 }
4303 /**
4304  * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME
4305  * @param event packet
4306  * @return gain
4307  * @note: btstack_type 1
4308  */
4309 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){
4310     return event[4];
4311 }
4312 
4313 /**
4314  * @brief Get field status from event HFP_SUBEVENT_MICROPHONE_VOLUME
4315  * @param event packet
4316  * @return status
4317  * @note: btstack_type 1
4318  */
4319 static inline uint8_t hfp_subevent_microphone_volume_get_status(const uint8_t * event){
4320     return event[3];
4321 }
4322 /**
4323  * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME
4324  * @param event packet
4325  * @return gain
4326  * @note: btstack_type 1
4327  */
4328 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){
4329     return event[4];
4330 }
4331 
4332 /**
4333  * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
4334  * @param event packet
4335  * @return type
4336  * @note: btstack_type 1
4337  */
4338 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
4339     return event[3];
4340 }
4341 /**
4342  * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
4343  * @param event packet
4344  * @return number
4345  * @note: btstack_type T
4346  */
4347 static inline const char * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
4348     return (const char *) &event[4];
4349 }
4350 
4351 /**
4352  * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
4353  * @param event packet
4354  * @return type
4355  * @note: btstack_type 1
4356  */
4357 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
4358     return event[3];
4359 }
4360 /**
4361  * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
4362  * @param event packet
4363  * @return number
4364  * @note: btstack_type T
4365  */
4366 static inline const char * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
4367     return (const char *) &event[4];
4368 }
4369 
4370 /**
4371  * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4372  * @param event packet
4373  * @return clcc_idx
4374  * @note: btstack_type 1
4375  */
4376 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){
4377     return event[3];
4378 }
4379 /**
4380  * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4381  * @param event packet
4382  * @return clcc_dir
4383  * @note: btstack_type 1
4384  */
4385 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){
4386     return event[4];
4387 }
4388 /**
4389  * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4390  * @param event packet
4391  * @return clcc_status
4392  * @note: btstack_type 1
4393  */
4394 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){
4395     return event[5];
4396 }
4397 /**
4398  * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4399  * @param event packet
4400  * @return clcc_mode
4401  * @note: btstack_type 1
4402  */
4403 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){
4404     return event[6];
4405 }
4406 /**
4407  * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4408  * @param event packet
4409  * @return clcc_mpty
4410  * @note: btstack_type 1
4411  */
4412 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){
4413     return event[7];
4414 }
4415 /**
4416  * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4417  * @param event packet
4418  * @return bnip_type
4419  * @note: btstack_type 1
4420  */
4421 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){
4422     return event[8];
4423 }
4424 /**
4425  * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
4426  * @param event packet
4427  * @return bnip_number
4428  * @note: btstack_type T
4429  */
4430 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){
4431     return (const char *) &event[9];
4432 }
4433 
4434 /**
4435  * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
4436  * @param event packet
4437  * @return status
4438  * @note: btstack_type 1
4439  */
4440 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){
4441     return event[3];
4442 }
4443 /**
4444  * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
4445  * @param event packet
4446  * @return bnip_type
4447  * @note: btstack_type 1
4448  */
4449 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){
4450     return event[4];
4451 }
4452 /**
4453  * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION
4454  * @param event packet
4455  * @return bnip_number
4456  * @note: btstack_type T
4457  */
4458 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){
4459     return (const char *) &event[5];
4460 }
4461 
4462 /**
4463  * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS
4464  * @param event packet
4465  * @return value
4466  * @note: btstack_type T
4467  */
4468 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){
4469     return (const char *) &event[3];
4470 }
4471 
4472 #ifdef ENABLE_BLE
4473 /**
4474  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
4475  * @param event packet
4476  * @return handle
4477  * @note: btstack_type H
4478  */
4479 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){
4480     return little_endian_read_16(event, 3);
4481 }
4482 #endif
4483 
4484 #ifdef ENABLE_BLE
4485 /**
4486  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
4487  * @param event packet
4488  * @return handle
4489  * @note: btstack_type H
4490  */
4491 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){
4492     return little_endian_read_16(event, 3);
4493 }
4494 /**
4495  * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
4496  * @param event packet
4497  * @return attribute_id
4498  * @note: btstack_type 2
4499  */
4500 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){
4501     return little_endian_read_16(event, 5);
4502 }
4503 /**
4504  * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION
4505  * @param event packet
4506  * @return text
4507  * @note: btstack_type T
4508  */
4509 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){
4510     return (const char *) &event[7];
4511 }
4512 #endif
4513 
4514 #ifdef ENABLE_BLE
4515 /**
4516  * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED
4517  * @param event packet
4518  * @return handle
4519  * @note: btstack_type H
4520  */
4521 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){
4522     return little_endian_read_16(event, 3);
4523 }
4524 #endif
4525 
4526 /**
4527  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
4528  * @param event packet
4529  * @return avdtp_cid
4530  * @note: btstack_type 2
4531  */
4532 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){
4533     return little_endian_read_16(event, 3);
4534 }
4535 /**
4536  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
4537  * @param event packet
4538  * @return local_seid
4539  * @note: btstack_type 1
4540  */
4541 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){
4542     return event[5];
4543 }
4544 /**
4545  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT
4546  * @param event packet
4547  * @return signal_identifier
4548  * @note: btstack_type 1
4549  */
4550 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){
4551     return event[6];
4552 }
4553 
4554 /**
4555  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT
4556  * @param event packet
4557  * @return avdtp_cid
4558  * @note: btstack_type 2
4559  */
4560 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){
4561     return little_endian_read_16(event, 3);
4562 }
4563 /**
4564  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT
4565  * @param event packet
4566  * @return local_seid
4567  * @note: btstack_type 1
4568  */
4569 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){
4570     return event[5];
4571 }
4572 /**
4573  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT
4574  * @param event packet
4575  * @return signal_identifier
4576  * @note: btstack_type 1
4577  */
4578 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){
4579     return event[6];
4580 }
4581 
4582 /**
4583  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
4584  * @param event packet
4585  * @return avdtp_cid
4586  * @note: btstack_type 2
4587  */
4588 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){
4589     return little_endian_read_16(event, 3);
4590 }
4591 /**
4592  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
4593  * @param event packet
4594  * @return local_seid
4595  * @note: btstack_type 1
4596  */
4597 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){
4598     return event[5];
4599 }
4600 /**
4601  * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT
4602  * @param event packet
4603  * @return signal_identifier
4604  * @note: btstack_type 1
4605  */
4606 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){
4607     return event[6];
4608 }
4609 
4610 /**
4611  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
4612  * @param event packet
4613  * @return avdtp_cid
4614  * @note: btstack_type 2
4615  */
4616 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){
4617     return little_endian_read_16(event, 3);
4618 }
4619 /**
4620  * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
4621  * @param event packet
4622  * @param Pointer to storage for bd_addr
4623  * @note: btstack_type B
4624  */
4625 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
4626     reverse_bd_addr(&event[5], bd_addr);
4627 }
4628 /**
4629  * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
4630  * @param event packet
4631  * @return status
4632  * @note: btstack_type 1
4633  */
4634 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){
4635     return event[11];
4636 }
4637 
4638 /**
4639  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
4640  * @param event packet
4641  * @return avdtp_cid
4642  * @note: btstack_type 2
4643  */
4644 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){
4645     return little_endian_read_16(event, 3);
4646 }
4647 
4648 /**
4649  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4650  * @param event packet
4651  * @return avdtp_cid
4652  * @note: btstack_type 2
4653  */
4654 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){
4655     return little_endian_read_16(event, 3);
4656 }
4657 /**
4658  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4659  * @param event packet
4660  * @return remote_seid
4661  * @note: btstack_type 1
4662  */
4663 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){
4664     return event[5];
4665 }
4666 /**
4667  * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4668  * @param event packet
4669  * @return in_use
4670  * @note: btstack_type 1
4671  */
4672 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){
4673     return event[6];
4674 }
4675 /**
4676  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4677  * @param event packet
4678  * @return media_type
4679  * @note: btstack_type 1
4680  */
4681 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){
4682     return event[7];
4683 }
4684 /**
4685  * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND
4686  * @param event packet
4687  * @return sep_type
4688  * @note: btstack_type 1
4689  */
4690 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){
4691     return event[8];
4692 }
4693 
4694 /**
4695  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4696  * @param event packet
4697  * @return avdtp_cid
4698  * @note: btstack_type 2
4699  */
4700 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){
4701     return little_endian_read_16(event, 3);
4702 }
4703 /**
4704  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4705  * @param event packet
4706  * @return local_seid
4707  * @note: btstack_type 1
4708  */
4709 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_local_seid(const uint8_t * event){
4710     return event[5];
4711 }
4712 /**
4713  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4714  * @param event packet
4715  * @return remote_seid
4716  * @note: btstack_type 1
4717  */
4718 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){
4719     return event[6];
4720 }
4721 /**
4722  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4723  * @param event packet
4724  * @return media_type
4725  * @note: btstack_type 1
4726  */
4727 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){
4728     return event[7];
4729 }
4730 /**
4731  * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4732  * @param event packet
4733  * @return sampling_frequency_bitmap
4734  * @note: btstack_type 1
4735  */
4736 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){
4737     return event[8];
4738 }
4739 /**
4740  * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4741  * @param event packet
4742  * @return channel_mode_bitmap
4743  * @note: btstack_type 1
4744  */
4745 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){
4746     return event[9];
4747 }
4748 /**
4749  * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4750  * @param event packet
4751  * @return block_length_bitmap
4752  * @note: btstack_type 1
4753  */
4754 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){
4755     return event[10];
4756 }
4757 /**
4758  * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4759  * @param event packet
4760  * @return subbands_bitmap
4761  * @note: btstack_type 1
4762  */
4763 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){
4764     return event[11];
4765 }
4766 /**
4767  * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4768  * @param event packet
4769  * @return allocation_method_bitmap
4770  * @note: btstack_type 1
4771  */
4772 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){
4773     return event[12];
4774 }
4775 /**
4776  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4777  * @param event packet
4778  * @return min_bitpool_value
4779  * @note: btstack_type 1
4780  */
4781 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){
4782     return event[13];
4783 }
4784 /**
4785  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY
4786  * @param event packet
4787  * @return max_bitpool_value
4788  * @note: btstack_type 1
4789  */
4790 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){
4791     return event[14];
4792 }
4793 
4794 /**
4795  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4796  * @param event packet
4797  * @return avdtp_cid
4798  * @note: btstack_type 2
4799  */
4800 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){
4801     return little_endian_read_16(event, 3);
4802 }
4803 /**
4804  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4805  * @param event packet
4806  * @return local_seid
4807  * @note: btstack_type 1
4808  */
4809 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_local_seid(const uint8_t * event){
4810     return event[5];
4811 }
4812 /**
4813  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4814  * @param event packet
4815  * @return remote_seid
4816  * @note: btstack_type 1
4817  */
4818 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){
4819     return event[6];
4820 }
4821 /**
4822  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4823  * @param event packet
4824  * @return media_type
4825  * @note: btstack_type 1
4826  */
4827 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){
4828     return event[7];
4829 }
4830 /**
4831  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4832  * @param event packet
4833  * @return media_codec_type
4834  * @note: btstack_type 2
4835  */
4836 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){
4837     return little_endian_read_16(event, 8);
4838 }
4839 /**
4840  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4841  * @param event packet
4842  * @return media_codec_information_len
4843  * @note: btstack_type L
4844  */
4845 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){
4846     return little_endian_read_16(event, 10);
4847 }
4848 /**
4849  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY
4850  * @param event packet
4851  * @return media_codec_information
4852  * @note: btstack_type V
4853  */
4854 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){
4855     return &event[12];
4856 }
4857 
4858 /**
4859  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
4860  * @param event packet
4861  * @return avdtp_cid
4862  * @note: btstack_type 2
4863  */
4864 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){
4865     return little_endian_read_16(event, 3);
4866 }
4867 /**
4868  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
4869  * @param event packet
4870  * @return local_seid
4871  * @note: btstack_type 1
4872  */
4873 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_local_seid(const uint8_t * event){
4874     return event[5];
4875 }
4876 /**
4877  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY
4878  * @param event packet
4879  * @return remote_seid
4880  * @note: btstack_type 1
4881  */
4882 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){
4883     return event[6];
4884 }
4885 
4886 /**
4887  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
4888  * @param event packet
4889  * @return avdtp_cid
4890  * @note: btstack_type 2
4891  */
4892 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){
4893     return little_endian_read_16(event, 3);
4894 }
4895 /**
4896  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
4897  * @param event packet
4898  * @return local_seid
4899  * @note: btstack_type 1
4900  */
4901 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_local_seid(const uint8_t * event){
4902     return event[5];
4903 }
4904 /**
4905  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY
4906  * @param event packet
4907  * @return remote_seid
4908  * @note: btstack_type 1
4909  */
4910 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){
4911     return event[6];
4912 }
4913 
4914 /**
4915  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4916  * @param event packet
4917  * @return avdtp_cid
4918  * @note: btstack_type 2
4919  */
4920 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){
4921     return little_endian_read_16(event, 3);
4922 }
4923 /**
4924  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4925  * @param event packet
4926  * @return local_seid
4927  * @note: btstack_type 1
4928  */
4929 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_local_seid(const uint8_t * event){
4930     return event[5];
4931 }
4932 /**
4933  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4934  * @param event packet
4935  * @return remote_seid
4936  * @note: btstack_type 1
4937  */
4938 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){
4939     return event[6];
4940 }
4941 /**
4942  * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4943  * @param event packet
4944  * @return recovery_type
4945  * @note: btstack_type 1
4946  */
4947 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){
4948     return event[7];
4949 }
4950 /**
4951  * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4952  * @param event packet
4953  * @return maximum_recovery_window_size
4954  * @note: btstack_type 1
4955  */
4956 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){
4957     return event[8];
4958 }
4959 /**
4960  * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY
4961  * @param event packet
4962  * @return maximum_number_media_packets
4963  * @note: btstack_type 1
4964  */
4965 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){
4966     return event[9];
4967 }
4968 
4969 /**
4970  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4971  * @param event packet
4972  * @return avdtp_cid
4973  * @note: btstack_type 2
4974  */
4975 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){
4976     return little_endian_read_16(event, 3);
4977 }
4978 /**
4979  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4980  * @param event packet
4981  * @return local_seid
4982  * @note: btstack_type 1
4983  */
4984 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_local_seid(const uint8_t * event){
4985     return event[5];
4986 }
4987 /**
4988  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4989  * @param event packet
4990  * @return remote_seid
4991  * @note: btstack_type 1
4992  */
4993 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){
4994     return event[6];
4995 }
4996 /**
4997  * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
4998  * @param event packet
4999  * @return cp_type
5000  * @note: btstack_type 2
5001  */
5002 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){
5003     return little_endian_read_16(event, 7);
5004 }
5005 /**
5006  * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
5007  * @param event packet
5008  * @return cp_type_value_len
5009  * @note: btstack_type L
5010  */
5011 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){
5012     return little_endian_read_16(event, 9);
5013 }
5014 /**
5015  * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY
5016  * @param event packet
5017  * @return cp_type_value
5018  * @note: btstack_type V
5019  */
5020 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){
5021     return &event[11];
5022 }
5023 
5024 /**
5025  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5026  * @param event packet
5027  * @return avdtp_cid
5028  * @note: btstack_type 2
5029  */
5030 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){
5031     return little_endian_read_16(event, 3);
5032 }
5033 /**
5034  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5035  * @param event packet
5036  * @return local_seid
5037  * @note: btstack_type 1
5038  */
5039 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_local_seid(const uint8_t * event){
5040     return event[5];
5041 }
5042 /**
5043  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5044  * @param event packet
5045  * @return remote_seid
5046  * @note: btstack_type 1
5047  */
5048 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){
5049     return event[6];
5050 }
5051 /**
5052  * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5053  * @param event packet
5054  * @return fragmentation
5055  * @note: btstack_type 1
5056  */
5057 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){
5058     return event[7];
5059 }
5060 /**
5061  * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5062  * @param event packet
5063  * @return transport_identifiers_num
5064  * @note: btstack_type 1
5065  */
5066 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){
5067     return event[8];
5068 }
5069 /**
5070  * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5071  * @param event packet
5072  * @return transport_session_identifier_1
5073  * @note: btstack_type 1
5074  */
5075 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){
5076     return event[9];
5077 }
5078 /**
5079  * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5080  * @param event packet
5081  * @return transport_session_identifier_2
5082  * @note: btstack_type 1
5083  */
5084 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){
5085     return event[10];
5086 }
5087 /**
5088  * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5089  * @param event packet
5090  * @return transport_session_identifier_3
5091  * @note: btstack_type 1
5092  */
5093 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){
5094     return event[11];
5095 }
5096 /**
5097  * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5098  * @param event packet
5099  * @return tcid_1
5100  * @note: btstack_type 1
5101  */
5102 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){
5103     return event[12];
5104 }
5105 /**
5106  * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5107  * @param event packet
5108  * @return tcid_2
5109  * @note: btstack_type 1
5110  */
5111 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){
5112     return event[13];
5113 }
5114 /**
5115  * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY
5116  * @param event packet
5117  * @return tcid_3
5118  * @note: btstack_type 1
5119  */
5120 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){
5121     return event[14];
5122 }
5123 
5124 /**
5125  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
5126  * @param event packet
5127  * @return avdtp_cid
5128  * @note: btstack_type 2
5129  */
5130 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){
5131     return little_endian_read_16(event, 3);
5132 }
5133 /**
5134  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
5135  * @param event packet
5136  * @return local_seid
5137  * @note: btstack_type 1
5138  */
5139 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_local_seid(const uint8_t * event){
5140     return event[5];
5141 }
5142 /**
5143  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
5144  * @param event packet
5145  * @return remote_seid
5146  * @note: btstack_type 1
5147  */
5148 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
5149     return event[6];
5150 }
5151 
5152 /**
5153  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
5154  * @param event packet
5155  * @return avdtp_cid
5156  * @note: btstack_type 2
5157  */
5158 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){
5159     return little_endian_read_16(event, 3);
5160 }
5161 /**
5162  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
5163  * @param event packet
5164  * @return local_seid
5165  * @note: btstack_type 1
5166  */
5167 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_local_seid(const uint8_t * event){
5168     return event[5];
5169 }
5170 /**
5171  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
5172  * @param event packet
5173  * @return remote_seid
5174  * @note: btstack_type 1
5175  */
5176 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){
5177     return event[6];
5178 }
5179 /**
5180  * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
5181  * @param event packet
5182  * @return back_ch
5183  * @note: btstack_type 1
5184  */
5185 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){
5186     return event[7];
5187 }
5188 /**
5189  * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
5190  * @param event packet
5191  * @return media
5192  * @note: btstack_type 1
5193  */
5194 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){
5195     return event[8];
5196 }
5197 /**
5198  * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY
5199  * @param event packet
5200  * @return recovery
5201  * @note: btstack_type 1
5202  */
5203 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){
5204     return event[9];
5205 }
5206 
5207 /**
5208  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5209  * @param event packet
5210  * @return avdtp_cid
5211  * @note: btstack_type 2
5212  */
5213 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){
5214     return little_endian_read_16(event, 3);
5215 }
5216 /**
5217  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5218  * @param event packet
5219  * @return local_seid
5220  * @note: btstack_type 1
5221  */
5222 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){
5223     return event[5];
5224 }
5225 /**
5226  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5227  * @param event packet
5228  * @return remote_seid
5229  * @note: btstack_type 1
5230  */
5231 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){
5232     return event[6];
5233 }
5234 /**
5235  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5236  * @param event packet
5237  * @return reconfigure
5238  * @note: btstack_type 1
5239  */
5240 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
5241     return event[7];
5242 }
5243 /**
5244  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5245  * @param event packet
5246  * @return media_type
5247  * @note: btstack_type 1
5248  */
5249 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
5250     return event[8];
5251 }
5252 /**
5253  * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5254  * @param event packet
5255  * @return sampling_frequency
5256  * @note: btstack_type 2
5257  */
5258 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
5259     return little_endian_read_16(event, 9);
5260 }
5261 /**
5262  * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5263  * @param event packet
5264  * @return channel_mode
5265  * @note: btstack_type 1
5266  */
5267 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
5268     return event[11];
5269 }
5270 /**
5271  * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5272  * @param event packet
5273  * @return num_channels
5274  * @note: btstack_type 1
5275  */
5276 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
5277     return event[12];
5278 }
5279 /**
5280  * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5281  * @param event packet
5282  * @return block_length
5283  * @note: btstack_type 1
5284  */
5285 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
5286     return event[13];
5287 }
5288 /**
5289  * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5290  * @param event packet
5291  * @return subbands
5292  * @note: btstack_type 1
5293  */
5294 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
5295     return event[14];
5296 }
5297 /**
5298  * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5299  * @param event packet
5300  * @return allocation_method
5301  * @note: btstack_type 1
5302  */
5303 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
5304     return event[15];
5305 }
5306 /**
5307  * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5308  * @param event packet
5309  * @return min_bitpool_value
5310  * @note: btstack_type 1
5311  */
5312 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
5313     return event[16];
5314 }
5315 /**
5316  * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5317  * @param event packet
5318  * @return max_bitpool_value
5319  * @note: btstack_type 1
5320  */
5321 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
5322     return event[17];
5323 }
5324 
5325 /**
5326  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5327  * @param event packet
5328  * @return avdtp_cid
5329  * @note: btstack_type 2
5330  */
5331 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){
5332     return little_endian_read_16(event, 3);
5333 }
5334 /**
5335  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5336  * @param event packet
5337  * @return local_seid
5338  * @note: btstack_type 1
5339  */
5340 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){
5341     return event[5];
5342 }
5343 /**
5344  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5345  * @param event packet
5346  * @return remote_seid
5347  * @note: btstack_type 1
5348  */
5349 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){
5350     return event[6];
5351 }
5352 /**
5353  * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5354  * @param event packet
5355  * @return reconfigure
5356  * @note: btstack_type 1
5357  */
5358 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
5359     return event[7];
5360 }
5361 /**
5362  * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5363  * @param event packet
5364  * @return media_type
5365  * @note: btstack_type 1
5366  */
5367 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
5368     return event[8];
5369 }
5370 /**
5371  * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5372  * @param event packet
5373  * @return media_codec_type
5374  * @note: btstack_type 2
5375  */
5376 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
5377     return little_endian_read_16(event, 9);
5378 }
5379 /**
5380  * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5381  * @param event packet
5382  * @return media_codec_information_len
5383  * @note: btstack_type L
5384  */
5385 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
5386     return little_endian_read_16(event, 11);
5387 }
5388 /**
5389  * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5390  * @param event packet
5391  * @return media_codec_information
5392  * @note: btstack_type V
5393  */
5394 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
5395     return &event[13];
5396 }
5397 
5398 /**
5399  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5400  * @param event packet
5401  * @return avdtp_cid
5402  * @note: btstack_type 2
5403  */
5404 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){
5405     return little_endian_read_16(event, 3);
5406 }
5407 /**
5408  * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5409  * @param event packet
5410  * @param Pointer to storage for bd_addr
5411  * @note: btstack_type B
5412  */
5413 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5414     reverse_bd_addr(&event[5], bd_addr);
5415 }
5416 /**
5417  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5418  * @param event packet
5419  * @return local_seid
5420  * @note: btstack_type 1
5421  */
5422 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){
5423     return event[11];
5424 }
5425 /**
5426  * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5427  * @param event packet
5428  * @return remote_seid
5429  * @note: btstack_type 1
5430  */
5431 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){
5432     return event[12];
5433 }
5434 /**
5435  * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED
5436  * @param event packet
5437  * @return status
5438  * @note: btstack_type 1
5439  */
5440 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){
5441     return event[13];
5442 }
5443 
5444 /**
5445  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
5446  * @param event packet
5447  * @return avdtp_cid
5448  * @note: btstack_type 2
5449  */
5450 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){
5451     return little_endian_read_16(event, 3);
5452 }
5453 /**
5454  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED
5455  * @param event packet
5456  * @return local_seid
5457  * @note: btstack_type 1
5458  */
5459 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){
5460     return event[5];
5461 }
5462 
5463 /**
5464  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5465  * @param event packet
5466  * @return avdtp_cid
5467  * @note: btstack_type 2
5468  */
5469 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){
5470     return little_endian_read_16(event, 3);
5471 }
5472 /**
5473  * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5474  * @param event packet
5475  * @return local_seid
5476  * @note: btstack_type 1
5477  */
5478 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
5479     return event[5];
5480 }
5481 /**
5482  * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5483  * @param event packet
5484  * @return sequence_number
5485  * @note: btstack_type 2
5486  */
5487 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){
5488     return little_endian_read_16(event, 6);
5489 }
5490 
5491 /**
5492  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
5493  * @param event packet
5494  * @return avdtp_cid
5495  * @note: btstack_type 2
5496  */
5497 static inline uint16_t avdtp_subevent_signaling_capability_done_get_avdtp_cid(const uint8_t * event){
5498     return little_endian_read_16(event, 3);
5499 }
5500 /**
5501  * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
5502  * @param event packet
5503  * @return local_seid
5504  * @note: btstack_type 1
5505  */
5506 static inline uint8_t avdtp_subevent_signaling_capability_done_get_local_seid(const uint8_t * event){
5507     return event[5];
5508 }
5509 /**
5510  * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
5511  * @param event packet
5512  * @return remote_seid
5513  * @note: btstack_type 1
5514  */
5515 static inline uint8_t avdtp_subevent_signaling_capability_done_get_remote_seid(const uint8_t * event){
5516     return event[6];
5517 }
5518 
5519 /**
5520  * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE
5521  * @param event packet
5522  * @return avdtp_cid
5523  * @note: btstack_type 2
5524  */
5525 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){
5526     return little_endian_read_16(event, 3);
5527 }
5528 
5529 /**
5530  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5531  * @param event packet
5532  * @return a2dp_cid
5533  * @note: btstack_type 2
5534  */
5535 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){
5536     return little_endian_read_16(event, 3);
5537 }
5538 /**
5539  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW
5540  * @param event packet
5541  * @return local_seid
5542  * @note: btstack_type 1
5543  */
5544 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){
5545     return event[5];
5546 }
5547 
5548 /**
5549  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5550  * @param event packet
5551  * @return a2dp_cid
5552  * @note: btstack_type 2
5553  */
5554 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){
5555     return little_endian_read_16(event, 3);
5556 }
5557 /**
5558  * @brief Get field int_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5559  * @param event packet
5560  * @return int_seid
5561  * @note: btstack_type 1
5562  */
5563 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_int_seid(const uint8_t * event){
5564     return event[5];
5565 }
5566 /**
5567  * @brief Get field acp_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5568  * @param event packet
5569  * @return acp_seid
5570  * @note: btstack_type 1
5571  */
5572 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_acp_seid(const uint8_t * event){
5573     return event[6];
5574 }
5575 /**
5576  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5577  * @param event packet
5578  * @return reconfigure
5579  * @note: btstack_type 1
5580  */
5581 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){
5582     return event[7];
5583 }
5584 /**
5585  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5586  * @param event packet
5587  * @return media_type
5588  * @note: btstack_type 1
5589  */
5590 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){
5591     return event[8];
5592 }
5593 /**
5594  * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5595  * @param event packet
5596  * @return sampling_frequency
5597  * @note: btstack_type 2
5598  */
5599 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){
5600     return little_endian_read_16(event, 9);
5601 }
5602 /**
5603  * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5604  * @param event packet
5605  * @return channel_mode
5606  * @note: btstack_type 1
5607  */
5608 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){
5609     return event[11];
5610 }
5611 /**
5612  * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5613  * @param event packet
5614  * @return num_channels
5615  * @note: btstack_type 1
5616  */
5617 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){
5618     return event[12];
5619 }
5620 /**
5621  * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5622  * @param event packet
5623  * @return block_length
5624  * @note: btstack_type 1
5625  */
5626 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){
5627     return event[13];
5628 }
5629 /**
5630  * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5631  * @param event packet
5632  * @return subbands
5633  * @note: btstack_type 1
5634  */
5635 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){
5636     return event[14];
5637 }
5638 /**
5639  * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5640  * @param event packet
5641  * @return allocation_method
5642  * @note: btstack_type 1
5643  */
5644 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){
5645     return event[15];
5646 }
5647 /**
5648  * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5649  * @param event packet
5650  * @return min_bitpool_value
5651  * @note: btstack_type 1
5652  */
5653 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){
5654     return event[16];
5655 }
5656 /**
5657  * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
5658  * @param event packet
5659  * @return max_bitpool_value
5660  * @note: btstack_type 1
5661  */
5662 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){
5663     return event[17];
5664 }
5665 
5666 /**
5667  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5668  * @param event packet
5669  * @return a2dp_cid
5670  * @note: btstack_type 2
5671  */
5672 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){
5673     return little_endian_read_16(event, 3);
5674 }
5675 /**
5676  * @brief Get field int_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5677  * @param event packet
5678  * @return int_seid
5679  * @note: btstack_type 1
5680  */
5681 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_int_seid(const uint8_t * event){
5682     return event[5];
5683 }
5684 /**
5685  * @brief Get field acp_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5686  * @param event packet
5687  * @return acp_seid
5688  * @note: btstack_type 1
5689  */
5690 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_acp_seid(const uint8_t * event){
5691     return event[6];
5692 }
5693 /**
5694  * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5695  * @param event packet
5696  * @return reconfigure
5697  * @note: btstack_type 1
5698  */
5699 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){
5700     return event[7];
5701 }
5702 /**
5703  * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5704  * @param event packet
5705  * @return media_type
5706  * @note: btstack_type 1
5707  */
5708 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){
5709     return event[8];
5710 }
5711 /**
5712  * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5713  * @param event packet
5714  * @return media_codec_type
5715  * @note: btstack_type 2
5716  */
5717 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){
5718     return little_endian_read_16(event, 9);
5719 }
5720 /**
5721  * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5722  * @param event packet
5723  * @return media_codec_information_len
5724  * @note: btstack_type L
5725  */
5726 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){
5727     return little_endian_read_16(event, 11);
5728 }
5729 /**
5730  * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION
5731  * @param event packet
5732  * @return media_codec_information
5733  * @note: btstack_type V
5734  */
5735 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){
5736     return &event[13];
5737 }
5738 
5739 /**
5740  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5741  * @param event packet
5742  * @return a2dp_cid
5743  * @note: btstack_type 2
5744  */
5745 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){
5746     return little_endian_read_16(event, 3);
5747 }
5748 /**
5749  * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5750  * @param event packet
5751  * @param Pointer to storage for bd_addr
5752  * @note: btstack_type B
5753  */
5754 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5755     reverse_bd_addr(&event[5], bd_addr);
5756 }
5757 /**
5758  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5759  * @param event packet
5760  * @return local_seid
5761  * @note: btstack_type 1
5762  */
5763 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){
5764     return event[11];
5765 }
5766 /**
5767  * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5768  * @param event packet
5769  * @return remote_seid
5770  * @note: btstack_type 1
5771  */
5772 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){
5773     return event[12];
5774 }
5775 /**
5776  * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED
5777  * @param event packet
5778  * @return status
5779  * @note: btstack_type 1
5780  */
5781 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){
5782     return event[13];
5783 }
5784 
5785 /**
5786  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED
5787  * @param event packet
5788  * @return a2dp_cid
5789  * @note: btstack_type 2
5790  */
5791 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){
5792     return little_endian_read_16(event, 3);
5793 }
5794 /**
5795  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED
5796  * @param event packet
5797  * @return local_seid
5798  * @note: btstack_type 1
5799  */
5800 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){
5801     return event[5];
5802 }
5803 
5804 /**
5805  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED
5806  * @param event packet
5807  * @return a2dp_cid
5808  * @note: btstack_type 2
5809  */
5810 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){
5811     return little_endian_read_16(event, 3);
5812 }
5813 /**
5814  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED
5815  * @param event packet
5816  * @return local_seid
5817  * @note: btstack_type 1
5818  */
5819 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){
5820     return event[5];
5821 }
5822 
5823 /**
5824  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED
5825  * @param event packet
5826  * @return a2dp_cid
5827  * @note: btstack_type 2
5828  */
5829 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){
5830     return little_endian_read_16(event, 3);
5831 }
5832 /**
5833  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED
5834  * @param event packet
5835  * @return local_seid
5836  * @note: btstack_type 1
5837  */
5838 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){
5839     return event[5];
5840 }
5841 
5842 /**
5843  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED
5844  * @param event packet
5845  * @return a2dp_cid
5846  * @note: btstack_type 2
5847  */
5848 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){
5849     return little_endian_read_16(event, 3);
5850 }
5851 /**
5852  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED
5853  * @param event packet
5854  * @return local_seid
5855  * @note: btstack_type 1
5856  */
5857 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){
5858     return event[5];
5859 }
5860 
5861 /**
5862  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
5863  * @param event packet
5864  * @return a2dp_cid
5865  * @note: btstack_type 2
5866  */
5867 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){
5868     return little_endian_read_16(event, 3);
5869 }
5870 /**
5871  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED
5872  * @param event packet
5873  * @return local_seid
5874  * @note: btstack_type 1
5875  */
5876 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){
5877     return event[5];
5878 }
5879 /**
5880  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED
5881  * @param event packet
5882  * @return signal_identifier
5883  * @note: btstack_type 1
5884  */
5885 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){
5886     return event[6];
5887 }
5888 
5889 /**
5890  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED
5891  * @param event packet
5892  * @return a2dp_cid
5893  * @note: btstack_type 2
5894  */
5895 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){
5896     return little_endian_read_16(event, 3);
5897 }
5898 /**
5899  * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED
5900  * @param event packet
5901  * @return local_seid
5902  * @note: btstack_type 1
5903  */
5904 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){
5905     return event[5];
5906 }
5907 /**
5908  * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED
5909  * @param event packet
5910  * @return signal_identifier
5911  * @note: btstack_type 1
5912  */
5913 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){
5914     return event[6];
5915 }
5916 
5917 /**
5918  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
5919  * @param event packet
5920  * @return a2dp_cid
5921  * @note: btstack_type 2
5922  */
5923 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){
5924     return little_endian_read_16(event, 3);
5925 }
5926 /**
5927  * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
5928  * @param event packet
5929  * @param Pointer to storage for bd_addr
5930  * @note: btstack_type B
5931  */
5932 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5933     reverse_bd_addr(&event[5], bd_addr);
5934 }
5935 /**
5936  * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED
5937  * @param event packet
5938  * @return status
5939  * @note: btstack_type 1
5940  */
5941 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){
5942     return event[11];
5943 }
5944 
5945 /**
5946  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
5947  * @param event packet
5948  * @return a2dp_cid
5949  * @note: btstack_type 2
5950  */
5951 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){
5952     return little_endian_read_16(event, 3);
5953 }
5954 
5955 /**
5956  * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
5957  * @param event packet
5958  * @return a2dp_cid
5959  * @note: btstack_type 2
5960  */
5961 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){
5962     return little_endian_read_16(event, 3);
5963 }
5964 /**
5965  * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
5966  * @param event packet
5967  * @return local_seid
5968  * @note: btstack_type 1
5969  */
5970 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){
5971     return event[5];
5972 }
5973 /**
5974  * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED
5975  * @param event packet
5976  * @return status
5977  * @note: btstack_type 1
5978  */
5979 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){
5980     return event[6];
5981 }
5982 
5983 /**
5984  * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
5985  * @param event packet
5986  * @return status
5987  * @note: btstack_type 1
5988  */
5989 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){
5990     return event[3];
5991 }
5992 /**
5993  * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
5994  * @param event packet
5995  * @param Pointer to storage for bd_addr
5996  * @note: btstack_type B
5997  */
5998 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
5999     reverse_bd_addr(&event[4], bd_addr);
6000 }
6001 /**
6002  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
6003  * @param event packet
6004  * @return avrcp_cid
6005  * @note: btstack_type 2
6006  */
6007 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){
6008     return little_endian_read_16(event, 10);
6009 }
6010 
6011 /**
6012  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED
6013  * @param event packet
6014  * @return avrcp_cid
6015  * @note: btstack_type 2
6016  */
6017 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){
6018     return little_endian_read_16(event, 3);
6019 }
6020 
6021 /**
6022  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
6023  * @param event packet
6024  * @return avrcp_cid
6025  * @note: btstack_type 2
6026  */
6027 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){
6028     return little_endian_read_16(event, 3);
6029 }
6030 /**
6031  * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
6032  * @param event packet
6033  * @return command_type
6034  * @note: btstack_type 1
6035  */
6036 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){
6037     return event[5];
6038 }
6039 /**
6040  * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
6041  * @param event packet
6042  * @return repeat_mode
6043  * @note: btstack_type 1
6044  */
6045 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){
6046     return event[6];
6047 }
6048 /**
6049  * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE
6050  * @param event packet
6051  * @return shuffle_mode
6052  * @note: btstack_type 1
6053  */
6054 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){
6055     return event[7];
6056 }
6057 
6058 /**
6059  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS
6060  * @param event packet
6061  * @return avrcp_cid
6062  * @note: btstack_type 2
6063  */
6064 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){
6065     return little_endian_read_16(event, 3);
6066 }
6067 /**
6068  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS
6069  * @param event packet
6070  * @return command_type
6071  * @note: btstack_type 1
6072  */
6073 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){
6074     return event[5];
6075 }
6076 /**
6077  * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS
6078  * @param event packet
6079  * @return song_length
6080  * @note: btstack_type 4
6081  */
6082 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){
6083     return little_endian_read_32(event, 6);
6084 }
6085 /**
6086  * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS
6087  * @param event packet
6088  * @return song_position
6089  * @note: btstack_type 4
6090  */
6091 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){
6092     return little_endian_read_32(event, 10);
6093 }
6094 /**
6095  * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS
6096  * @param event packet
6097  * @return play_status
6098  * @note: btstack_type 1
6099  */
6100 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){
6101     return event[14];
6102 }
6103 
6104 /**
6105  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
6106  * @param event packet
6107  * @return avrcp_cid
6108  * @note: btstack_type 2
6109  */
6110 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){
6111     return little_endian_read_16(event, 3);
6112 }
6113 /**
6114  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
6115  * @param event packet
6116  * @return command_type
6117  * @note: btstack_type 1
6118  */
6119 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){
6120     return event[5];
6121 }
6122 /**
6123  * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
6124  * @param event packet
6125  * @return play_status
6126  * @note: btstack_type 1
6127  */
6128 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){
6129     return event[6];
6130 }
6131 
6132 /**
6133  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
6134  * @param event packet
6135  * @return avrcp_cid
6136  * @note: btstack_type 2
6137  */
6138 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){
6139     return little_endian_read_16(event, 3);
6140 }
6141 /**
6142  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
6143  * @param event packet
6144  * @return command_type
6145  * @note: btstack_type 1
6146  */
6147 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){
6148     return event[5];
6149 }
6150 
6151 /**
6152  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
6153  * @param event packet
6154  * @return avrcp_cid
6155  * @note: btstack_type 2
6156  */
6157 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){
6158     return little_endian_read_16(event, 3);
6159 }
6160 /**
6161  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
6162  * @param event packet
6163  * @return command_type
6164  * @note: btstack_type 1
6165  */
6166 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){
6167     return event[5];
6168 }
6169 
6170 /**
6171  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
6172  * @param event packet
6173  * @return avrcp_cid
6174  * @note: btstack_type 2
6175  */
6176 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){
6177     return little_endian_read_16(event, 3);
6178 }
6179 /**
6180  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED
6181  * @param event packet
6182  * @return command_type
6183  * @note: btstack_type 1
6184  */
6185 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){
6186     return event[5];
6187 }
6188 
6189 /**
6190  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
6191  * @param event packet
6192  * @return avrcp_cid
6193  * @note: btstack_type 2
6194  */
6195 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){
6196     return little_endian_read_16(event, 3);
6197 }
6198 /**
6199  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
6200  * @param event packet
6201  * @return command_type
6202  * @note: btstack_type 1
6203  */
6204 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){
6205     return event[5];
6206 }
6207 /**
6208  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED
6209  * @param event packet
6210  * @return absolute_volume
6211  * @note: btstack_type 1
6212  */
6213 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){
6214     return event[6];
6215 }
6216 
6217 /**
6218  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
6219  * @param event packet
6220  * @return avrcp_cid
6221  * @note: btstack_type 2
6222  */
6223 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){
6224     return little_endian_read_16(event, 3);
6225 }
6226 /**
6227  * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
6228  * @param event packet
6229  * @return command_type
6230  * @note: btstack_type 1
6231  */
6232 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){
6233     return event[5];
6234 }
6235 /**
6236  * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
6237  * @param event packet
6238  * @return absolute_volume
6239  * @note: btstack_type 1
6240  */
6241 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){
6242     return event[6];
6243 }
6244 
6245 /**
6246  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE
6247  * @param event packet
6248  * @return avrcp_cid
6249  * @note: btstack_type 2
6250  */
6251 static inline uint16_t avrcp_subevent_enable_notification_complete_get_avrcp_cid(const uint8_t * event){
6252     return little_endian_read_16(event, 3);
6253 }
6254 /**
6255  * @brief Get field command_type from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE
6256  * @param event packet
6257  * @return command_type
6258  * @note: btstack_type 1
6259  */
6260 static inline uint8_t avrcp_subevent_enable_notification_complete_get_command_type(const uint8_t * event){
6261     return event[5];
6262 }
6263 /**
6264  * @brief Get field notification_id from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE
6265  * @param event packet
6266  * @return notification_id
6267  * @note: btstack_type 1
6268  */
6269 static inline uint8_t avrcp_subevent_enable_notification_complete_get_notification_id(const uint8_t * event){
6270     return event[6];
6271 }
6272 
6273 /**
6274  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START
6275  * @param event packet
6276  * @return avrcp_cid
6277  * @note: btstack_type 2
6278  */
6279 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){
6280     return little_endian_read_16(event, 3);
6281 }
6282 /**
6283  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START
6284  * @param event packet
6285  * @return command_type
6286  * @note: btstack_type 1
6287  */
6288 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){
6289     return event[5];
6290 }
6291 /**
6292  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START
6293  * @param event packet
6294  * @return operation_id
6295  * @note: btstack_type 1
6296  */
6297 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){
6298     return event[6];
6299 }
6300 
6301 /**
6302  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE
6303  * @param event packet
6304  * @return avrcp_cid
6305  * @note: btstack_type 2
6306  */
6307 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){
6308     return little_endian_read_16(event, 3);
6309 }
6310 /**
6311  * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE
6312  * @param event packet
6313  * @return command_type
6314  * @note: btstack_type 1
6315  */
6316 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){
6317     return event[5];
6318 }
6319 /**
6320  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE
6321  * @param event packet
6322  * @return operation_id
6323  * @note: btstack_type 1
6324  */
6325 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){
6326     return event[6];
6327 }
6328 
6329 /**
6330  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
6331  * @param event packet
6332  * @return avrcp_cid
6333  * @note: btstack_type 2
6334  */
6335 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){
6336     return little_endian_read_16(event, 3);
6337 }
6338 /**
6339  * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE
6340  * @param event packet
6341  * @return command_type
6342  * @note: btstack_type 1
6343  */
6344 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){
6345     return event[5];
6346 }
6347 
6348 /**
6349  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_COMPANY_IDS_QUERY
6350  * @param event packet
6351  * @return avrcp_cid
6352  * @note: btstack_type 2
6353  */
6354 static inline uint16_t avrcp_subevent_company_ids_query_get_avrcp_cid(const uint8_t * event){
6355     return little_endian_read_16(event, 3);
6356 }
6357 
6358 /**
6359  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_EVENT_IDS_QUERY
6360  * @param event packet
6361  * @return avrcp_cid
6362  * @note: btstack_type 2
6363  */
6364 static inline uint16_t avrcp_subevent_event_ids_query_get_avrcp_cid(const uint8_t * event){
6365     return little_endian_read_16(event, 3);
6366 }
6367 
6368 /**
6369  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY
6370  * @param event packet
6371  * @return avrcp_cid
6372  * @note: btstack_type 2
6373  */
6374 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){
6375     return little_endian_read_16(event, 3);
6376 }
6377 
6378 /**
6379  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION
6380  * @param event packet
6381  * @return avrcp_cid
6382  * @note: btstack_type 2
6383  */
6384 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){
6385     return little_endian_read_16(event, 3);
6386 }
6387 /**
6388  * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION
6389  * @param event packet
6390  * @return operation_id
6391  * @note: btstack_type 1
6392  */
6393 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){
6394     return event[5];
6395 }
6396 /**
6397  * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION
6398  * @param event packet
6399  * @return operands_length
6400  * @note: btstack_type 1
6401  */
6402 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){
6403     return event[6];
6404 }
6405 /**
6406  * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION
6407  * @param event packet
6408  * @return operand
6409  * @note: btstack_type 1
6410  */
6411 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){
6412     return event[7];
6413 }
6414 
6415 /**
6416  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
6417  * @param event packet
6418  * @return avrcp_cid
6419  * @note: btstack_type 2
6420  */
6421 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){
6422     return little_endian_read_16(event, 3);
6423 }
6424 /**
6425  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
6426  * @param event packet
6427  * @return command_type
6428  * @note: btstack_type 1
6429  */
6430 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){
6431     return event[5];
6432 }
6433 /**
6434  * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO
6435  * @param event packet
6436  * @return track
6437  * @note: btstack_type 1
6438  */
6439 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){
6440     return event[6];
6441 }
6442 
6443 /**
6444  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
6445  * @param event packet
6446  * @return avrcp_cid
6447  * @note: btstack_type 2
6448  */
6449 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){
6450     return little_endian_read_16(event, 3);
6451 }
6452 /**
6453  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
6454  * @param event packet
6455  * @return command_type
6456  * @note: btstack_type 1
6457  */
6458 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){
6459     return event[5];
6460 }
6461 /**
6462  * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO
6463  * @param event packet
6464  * @return total_tracks
6465  * @note: btstack_type 1
6466  */
6467 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){
6468     return event[6];
6469 }
6470 
6471 /**
6472  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
6473  * @param event packet
6474  * @return avrcp_cid
6475  * @note: btstack_type 2
6476  */
6477 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){
6478     return little_endian_read_16(event, 3);
6479 }
6480 /**
6481  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
6482  * @param event packet
6483  * @return command_type
6484  * @note: btstack_type 1
6485  */
6486 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){
6487     return event[5];
6488 }
6489 /**
6490  * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO
6491  * @param event packet
6492  * @return song_length
6493  * @note: btstack_type 4
6494  */
6495 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){
6496     return little_endian_read_32(event, 6);
6497 }
6498 
6499 /**
6500  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6501  * @param event packet
6502  * @return avrcp_cid
6503  * @note: btstack_type 2
6504  */
6505 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){
6506     return little_endian_read_16(event, 3);
6507 }
6508 /**
6509  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6510  * @param event packet
6511  * @return command_type
6512  * @note: btstack_type 1
6513  */
6514 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){
6515     return event[5];
6516 }
6517 /**
6518  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6519  * @param event packet
6520  * @return value_len
6521  * @note: btstack_type J
6522  */
6523 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){
6524     return event[6];
6525 }
6526 /**
6527  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO
6528  * @param event packet
6529  * @return value
6530  * @note: btstack_type V
6531  */
6532 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){
6533     return &event[7];
6534 }
6535 
6536 /**
6537  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6538  * @param event packet
6539  * @return avrcp_cid
6540  * @note: btstack_type 2
6541  */
6542 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){
6543     return little_endian_read_16(event, 3);
6544 }
6545 /**
6546  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6547  * @param event packet
6548  * @return command_type
6549  * @note: btstack_type 1
6550  */
6551 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){
6552     return event[5];
6553 }
6554 /**
6555  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6556  * @param event packet
6557  * @return value_len
6558  * @note: btstack_type J
6559  */
6560 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){
6561     return event[6];
6562 }
6563 /**
6564  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO
6565  * @param event packet
6566  * @return value
6567  * @note: btstack_type V
6568  */
6569 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){
6570     return &event[7];
6571 }
6572 
6573 /**
6574  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6575  * @param event packet
6576  * @return avrcp_cid
6577  * @note: btstack_type 2
6578  */
6579 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){
6580     return little_endian_read_16(event, 3);
6581 }
6582 /**
6583  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6584  * @param event packet
6585  * @return command_type
6586  * @note: btstack_type 1
6587  */
6588 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){
6589     return event[5];
6590 }
6591 /**
6592  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6593  * @param event packet
6594  * @return value_len
6595  * @note: btstack_type J
6596  */
6597 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){
6598     return event[6];
6599 }
6600 /**
6601  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO
6602  * @param event packet
6603  * @return value
6604  * @note: btstack_type V
6605  */
6606 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){
6607     return &event[7];
6608 }
6609 
6610 /**
6611  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6612  * @param event packet
6613  * @return avrcp_cid
6614  * @note: btstack_type 2
6615  */
6616 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){
6617     return little_endian_read_16(event, 3);
6618 }
6619 /**
6620  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6621  * @param event packet
6622  * @return command_type
6623  * @note: btstack_type 1
6624  */
6625 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){
6626     return event[5];
6627 }
6628 /**
6629  * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6630  * @param event packet
6631  * @return value_len
6632  * @note: btstack_type J
6633  */
6634 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){
6635     return event[6];
6636 }
6637 /**
6638  * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO
6639  * @param event packet
6640  * @return value
6641  * @note: btstack_type V
6642  */
6643 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){
6644     return &event[7];
6645 }
6646 
6647 /**
6648  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
6649  * @param event packet
6650  * @return avrcp_cid
6651  * @note: btstack_type 2
6652  */
6653 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){
6654     return little_endian_read_16(event, 3);
6655 }
6656 /**
6657  * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
6658  * @param event packet
6659  * @return command_type
6660  * @note: btstack_type 1
6661  */
6662 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){
6663     return event[5];
6664 }
6665 /**
6666  * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE
6667  * @param event packet
6668  * @return status
6669  * @note: btstack_type 1
6670  */
6671 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){
6672     return event[6];
6673 }
6674 
6675 /**
6676  * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
6677  * @param event packet
6678  * @param Pointer to storage for bd_addr
6679  * @note: btstack_type B
6680  */
6681 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6682     reverse_bd_addr(&event[3], bd_addr);
6683 }
6684 /**
6685  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
6686  * @param event packet
6687  * @return browsing_cid
6688  * @note: btstack_type 2
6689  */
6690 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){
6691     return little_endian_read_16(event, 9);
6692 }
6693 
6694 /**
6695  * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
6696  * @param event packet
6697  * @return status
6698  * @note: btstack_type 1
6699  */
6700 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){
6701     return event[3];
6702 }
6703 /**
6704  * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
6705  * @param event packet
6706  * @param Pointer to storage for bd_addr
6707  * @note: btstack_type B
6708  */
6709 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6710     reverse_bd_addr(&event[4], bd_addr);
6711 }
6712 /**
6713  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
6714  * @param event packet
6715  * @return browsing_cid
6716  * @note: btstack_type 2
6717  */
6718 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){
6719     return little_endian_read_16(event, 10);
6720 }
6721 
6722 /**
6723  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED
6724  * @param event packet
6725  * @return browsing_cid
6726  * @note: btstack_type 2
6727  */
6728 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){
6729     return little_endian_read_16(event, 3);
6730 }
6731 
6732 /**
6733  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
6734  * @param event packet
6735  * @return browsing_cid
6736  * @note: btstack_type 2
6737  */
6738 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){
6739     return little_endian_read_16(event, 3);
6740 }
6741 /**
6742  * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE
6743  * @param event packet
6744  * @return uid_counter
6745  * @note: btstack_type 2
6746  */
6747 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){
6748     return little_endian_read_16(event, 5);
6749 }
6750 /**
6751  * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE
6752  * @param event packet
6753  * @return browsing_status
6754  * @note: btstack_type 1
6755  */
6756 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){
6757     return event[7];
6758 }
6759 /**
6760  * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE
6761  * @param event packet
6762  * @return bluetooth_status
6763  * @note: btstack_type 1
6764  */
6765 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){
6766     return event[8];
6767 }
6768 
6769 /**
6770  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
6771  * @param event packet
6772  * @return browsing_cid
6773  * @note: btstack_type 2
6774  */
6775 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){
6776     return little_endian_read_16(event, 3);
6777 }
6778 /**
6779  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
6780  * @param event packet
6781  * @return scope
6782  * @note: btstack_type 1
6783  */
6784 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
6785     return event[5];
6786 }
6787 /**
6788  * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
6789  * @param event packet
6790  * @return attr_bitmap
6791  * @note: btstack_type 4
6792  */
6793 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){
6794     return little_endian_read_32(event, 6);
6795 }
6796 
6797 /**
6798  * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
6799  * @param event packet
6800  * @return browsing_cid
6801  * @note: btstack_type 2
6802  */
6803 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){
6804     return little_endian_read_16(event, 3);
6805 }
6806 /**
6807  * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS
6808  * @param event packet
6809  * @return scope
6810  * @note: btstack_type 1
6811  */
6812 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){
6813     return event[5];
6814 }
6815 
6816 /**
6817  * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
6818  * @param event packet
6819  * @return avrcp_cid
6820  * @note: btstack_type 2
6821  */
6822 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){
6823     return little_endian_read_16(event, 3);
6824 }
6825 /**
6826  * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
6827  * @param event packet
6828  * @return command_type
6829  * @note: btstack_type 1
6830  */
6831 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){
6832     return event[5];
6833 }
6834 /**
6835  * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED
6836  * @param event packet
6837  * @return playback_position_ms
6838  * @note: btstack_type 4
6839  */
6840 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){
6841     return little_endian_read_32(event, 6);
6842 }
6843 
6844 /**
6845  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED
6846  * @param event packet
6847  * @return goep_cid
6848  * @note: btstack_type 2
6849  */
6850 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){
6851     return little_endian_read_16(event, 3);
6852 }
6853 /**
6854  * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED
6855  * @param event packet
6856  * @return status
6857  * @note: btstack_type 1
6858  */
6859 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){
6860     return event[5];
6861 }
6862 /**
6863  * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED
6864  * @param event packet
6865  * @param Pointer to storage for bd_addr
6866  * @note: btstack_type B
6867  */
6868 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6869     reverse_bd_addr(&event[6], bd_addr);
6870 }
6871 /**
6872  * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED
6873  * @param event packet
6874  * @return con_handle
6875  * @note: btstack_type H
6876  */
6877 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){
6878     return little_endian_read_16(event, 12);
6879 }
6880 /**
6881  * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED
6882  * @param event packet
6883  * @return incoming
6884  * @note: btstack_type 1
6885  */
6886 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){
6887     return event[14];
6888 }
6889 
6890 /**
6891  * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED
6892  * @param event packet
6893  * @return goep_cid
6894  * @note: btstack_type 2
6895  */
6896 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){
6897     return little_endian_read_16(event, 3);
6898 }
6899 
6900 /**
6901  * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW
6902  * @param event packet
6903  * @return goep_cid
6904  * @note: btstack_type 2
6905  */
6906 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){
6907     return little_endian_read_16(event, 3);
6908 }
6909 
6910 /**
6911  * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED
6912  * @param event packet
6913  * @return pbap_cid
6914  * @note: btstack_type 2
6915  */
6916 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){
6917     return little_endian_read_16(event, 3);
6918 }
6919 /**
6920  * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED
6921  * @param event packet
6922  * @return status
6923  * @note: btstack_type 1
6924  */
6925 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){
6926     return event[5];
6927 }
6928 /**
6929  * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED
6930  * @param event packet
6931  * @param Pointer to storage for bd_addr
6932  * @note: btstack_type B
6933  */
6934 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
6935     reverse_bd_addr(&event[6], bd_addr);
6936 }
6937 /**
6938  * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED
6939  * @param event packet
6940  * @return con_handle
6941  * @note: btstack_type H
6942  */
6943 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){
6944     return little_endian_read_16(event, 12);
6945 }
6946 /**
6947  * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED
6948  * @param event packet
6949  * @return incoming
6950  * @note: btstack_type 1
6951  */
6952 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){
6953     return event[14];
6954 }
6955 
6956 /**
6957  * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED
6958  * @param event packet
6959  * @return goep_cid
6960  * @note: btstack_type 2
6961  */
6962 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){
6963     return little_endian_read_16(event, 3);
6964 }
6965 
6966 /**
6967  * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED
6968  * @param event packet
6969  * @return goep_cid
6970  * @note: btstack_type 2
6971  */
6972 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){
6973     return little_endian_read_16(event, 3);
6974 }
6975 /**
6976  * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED
6977  * @param event packet
6978  * @return status
6979  * @note: btstack_type 1
6980  */
6981 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){
6982     return event[5];
6983 }
6984 
6985 /**
6986  * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE
6987  * @param event packet
6988  * @return goep_cid
6989  * @note: btstack_type 2
6990  */
6991 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){
6992     return little_endian_read_16(event, 3);
6993 }
6994 /**
6995  * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE
6996  * @param event packet
6997  * @return status
6998  * @note: btstack_type 1
6999  */
7000 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){
7001     return event[5];
7002 }
7003 /**
7004  * @brief Get field phoneboook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
7005  * @param event packet
7006  * @return phoneboook_size
7007  * @note: btstack_type 2
7008  */
7009 static inline uint16_t pbap_subevent_phonebook_size_get_phoneboook_size(const uint8_t * event){
7010     return little_endian_read_16(event, 6);
7011 }
7012 
7013 /**
7014  * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
7015  * @param event packet
7016  * @return goep_cid
7017  * @note: btstack_type 2
7018  */
7019 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){
7020     return little_endian_read_16(event, 3);
7021 }
7022 /**
7023  * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
7024  * @param event packet
7025  * @return user_id_required
7026  * @note: btstack_type 1
7027  */
7028 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){
7029     return event[5];
7030 }
7031 /**
7032  * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST
7033  * @param event packet
7034  * @return full_access
7035  * @note: btstack_type 1
7036  */
7037 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){
7038     return event[6];
7039 }
7040 
7041 /**
7042  * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT
7043  * @param event packet
7044  * @return goep_cid
7045  * @note: btstack_type 2
7046  */
7047 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){
7048     return little_endian_read_16(event, 3);
7049 }
7050 /**
7051  * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT
7052  * @param event packet
7053  * @return name_len
7054  * @note: btstack_type J
7055  */
7056 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){
7057     return event[5];
7058 }
7059 /**
7060  * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT
7061  * @param event packet
7062  * @return name
7063  * @note: btstack_type V
7064  */
7065 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){
7066     return &event[6];
7067 }
7068 /**
7069  * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT
7070  * @param event packet
7071  * @return handle_len
7072  * @note: btstack_type J
7073  */
7074 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){
7075     return event[6 + event[5]];
7076 }
7077 /**
7078  * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT
7079  * @param event packet
7080  * @return handle
7081  * @note: btstack_type V
7082  */
7083 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){
7084     return &event[6 + event[5] + 1];
7085 }
7086 
7087 /**
7088  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED
7089  * @param event packet
7090  * @return hid_cid
7091  * @note: btstack_type 2
7092  */
7093 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){
7094     return little_endian_read_16(event, 3);
7095 }
7096 /**
7097  * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED
7098  * @param event packet
7099  * @return status
7100  * @note: btstack_type 1
7101  */
7102 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){
7103     return event[5];
7104 }
7105 /**
7106  * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED
7107  * @param event packet
7108  * @param Pointer to storage for bd_addr
7109  * @note: btstack_type B
7110  */
7111 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
7112     reverse_bd_addr(&event[6], bd_addr);
7113 }
7114 /**
7115  * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED
7116  * @param event packet
7117  * @return con_handle
7118  * @note: btstack_type H
7119  */
7120 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){
7121     return little_endian_read_16(event, 12);
7122 }
7123 /**
7124  * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED
7125  * @param event packet
7126  * @return incoming
7127  * @note: btstack_type 1
7128  */
7129 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){
7130     return event[14];
7131 }
7132 
7133 /**
7134  * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED
7135  * @param event packet
7136  * @return hid_cid
7137  * @note: btstack_type 2
7138  */
7139 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){
7140     return little_endian_read_16(event, 3);
7141 }
7142 
7143 /**
7144  * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW
7145  * @param event packet
7146  * @return hid_cid
7147  * @note: btstack_type 2
7148  */
7149 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){
7150     return little_endian_read_16(event, 3);
7151 }
7152 
7153 /**
7154  * @brief Get field con_handle from event HID_SUBEVENT_SUSPEND
7155  * @param event packet
7156  * @return con_handle
7157  * @note: btstack_type 2
7158  */
7159 static inline uint16_t hid_subevent_suspend_get_con_handle(const uint8_t * event){
7160     return little_endian_read_16(event, 3);
7161 }
7162 
7163 /**
7164  * @brief Get field con_handle from event HID_SUBEVENT_EXIT_SUSPEND
7165  * @param event packet
7166  * @return con_handle
7167  * @note: btstack_type 2
7168  */
7169 static inline uint16_t hid_subevent_exit_suspend_get_con_handle(const uint8_t * event){
7170     return little_endian_read_16(event, 3);
7171 }
7172 
7173 /**
7174  * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
7175  * @param event packet
7176  * @return con_handle
7177  * @note: btstack_type 2
7178  */
7179 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){
7180     return little_endian_read_16(event, 3);
7181 }
7182 
7183 /**
7184  * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE
7185  * @param event packet
7186  * @return con_handle
7187  * @note: btstack_type 2
7188  */
7189 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){
7190     return little_endian_read_16(event, 3);
7191 }
7192 /**
7193  * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE
7194  * @param event packet
7195  * @return protocol_mode
7196  * @note: btstack_type 1
7197  */
7198 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){
7199     return event[5];
7200 }
7201 
7202 /**
7203  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
7204  * @param event packet
7205  * @return con_handle
7206  * @note: btstack_type 2
7207  */
7208 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){
7209     return little_endian_read_16(event, 3);
7210 }
7211 /**
7212  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE
7213  * @param event packet
7214  * @return enable
7215  * @note: btstack_type 1
7216  */
7217 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){
7218     return event[5];
7219 }
7220 
7221 /**
7222  * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
7223  * @param event packet
7224  * @return con_handle
7225  * @note: btstack_type 2
7226  */
7227 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){
7228     return little_endian_read_16(event, 3);
7229 }
7230 /**
7231  * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE
7232  * @param event packet
7233  * @return enable
7234  * @note: btstack_type 1
7235  */
7236 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){
7237     return event[5];
7238 }
7239 
7240 /**
7241  * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
7242  * @param event packet
7243  * @return con_handle
7244  * @note: btstack_type 2
7245  */
7246 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){
7247     return little_endian_read_16(event, 3);
7248 }
7249 /**
7250  * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE
7251  * @param event packet
7252  * @return enable
7253  * @note: btstack_type 1
7254  */
7255 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){
7256     return event[5];
7257 }
7258 
7259 /**
7260  * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
7261  * @param event packet
7262  * @return con_handle
7263  * @note: btstack_type 2
7264  */
7265 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){
7266     return little_endian_read_16(event, 3);
7267 }
7268 /**
7269  * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE
7270  * @param event packet
7271  * @return enable
7272  * @note: btstack_type 1
7273  */
7274 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){
7275     return event[5];
7276 }
7277 
7278 /**
7279  * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
7280  * @param event packet
7281  * @return con_handle
7282  * @note: btstack_type 2
7283  */
7284 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){
7285     return little_endian_read_16(event, 3);
7286 }
7287 /**
7288  * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE
7289  * @param event packet
7290  * @return enable
7291  * @note: btstack_type 1
7292  */
7293 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){
7294     return event[5];
7295 }
7296 
7297 /**
7298  * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND
7299  * @param event packet
7300  * @return con_handle
7301  * @note: btstack_type 2
7302  */
7303 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){
7304     return little_endian_read_16(event, 3);
7305 }
7306 
7307 /**
7308  * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND
7309  * @param event packet
7310  * @return con_handle
7311  * @note: btstack_type 2
7312  */
7313 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){
7314     return little_endian_read_16(event, 3);
7315 }
7316 
7317 /**
7318  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
7319  * @param event packet
7320  * @return con_handle
7321  * @note: btstack_type 2
7322  */
7323 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){
7324     return little_endian_read_16(event, 3);
7325 }
7326 /**
7327  * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
7328  * @param event packet
7329  * @return measurement_type
7330  * @note: btstack_type 1
7331  */
7332 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){
7333     return event[5];
7334 }
7335 /**
7336  * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
7337  * @param event packet
7338  * @return is_enhanced
7339  * @note: btstack_type 1
7340  */
7341 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){
7342     return event[6];
7343 }
7344 
7345 /**
7346  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START
7347  * @param event packet
7348  * @return con_handle
7349  * @note: btstack_type 2
7350  */
7351 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){
7352     return little_endian_read_16(event, 3);
7353 }
7354 
7355 /**
7356  * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP
7357  * @param event packet
7358  * @return con_handle
7359  * @note: btstack_type 2
7360  */
7361 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){
7362     return little_endian_read_16(event, 3);
7363 }
7364 
7365 /**
7366  * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED
7367  * @param event packet
7368  * @return map_cid
7369  * @note: btstack_type 2
7370  */
7371 static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){
7372     return little_endian_read_16(event, 3);
7373 }
7374 /**
7375  * @brief Get field status from event MAP_SUBEVENT_CONNECTION_OPENED
7376  * @param event packet
7377  * @return status
7378  * @note: btstack_type 1
7379  */
7380 static inline uint8_t map_subevent_connection_opened_get_status(const uint8_t * event){
7381     return event[5];
7382 }
7383 /**
7384  * @brief Get field bd_addr from event MAP_SUBEVENT_CONNECTION_OPENED
7385  * @param event packet
7386  * @param Pointer to storage for bd_addr
7387  * @note: btstack_type B
7388  */
7389 static inline void map_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
7390     reverse_bd_addr(&event[6], bd_addr);
7391 }
7392 /**
7393  * @brief Get field con_handle from event MAP_SUBEVENT_CONNECTION_OPENED
7394  * @param event packet
7395  * @return con_handle
7396  * @note: btstack_type H
7397  */
7398 static inline hci_con_handle_t map_subevent_connection_opened_get_con_handle(const uint8_t * event){
7399     return little_endian_read_16(event, 12);
7400 }
7401 /**
7402  * @brief Get field incoming from event MAP_SUBEVENT_CONNECTION_OPENED
7403  * @param event packet
7404  * @return incoming
7405  * @note: btstack_type 1
7406  */
7407 static inline uint8_t map_subevent_connection_opened_get_incoming(const uint8_t * event){
7408     return event[14];
7409 }
7410 
7411 /**
7412  * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_CLOSED
7413  * @param event packet
7414  * @return map_cid
7415  * @note: btstack_type 2
7416  */
7417 static inline uint16_t map_subevent_connection_closed_get_map_cid(const uint8_t * event){
7418     return little_endian_read_16(event, 3);
7419 }
7420 
7421 /**
7422  * @brief Get field map_cid from event MAP_SUBEVENT_OPERATION_COMPLETED
7423  * @param event packet
7424  * @return map_cid
7425  * @note: btstack_type 2
7426  */
7427 static inline uint16_t map_subevent_operation_completed_get_map_cid(const uint8_t * event){
7428     return little_endian_read_16(event, 3);
7429 }
7430 /**
7431  * @brief Get field status from event MAP_SUBEVENT_OPERATION_COMPLETED
7432  * @param event packet
7433  * @return status
7434  * @note: btstack_type 1
7435  */
7436 static inline uint8_t map_subevent_operation_completed_get_status(const uint8_t * event){
7437     return event[5];
7438 }
7439 
7440 /**
7441  * @brief Get field map_cid from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
7442  * @param event packet
7443  * @return map_cid
7444  * @note: btstack_type 2
7445  */
7446 static inline uint16_t map_subevent_folder_listing_item_get_map_cid(const uint8_t * event){
7447     return little_endian_read_16(event, 3);
7448 }
7449 /**
7450  * @brief Get field name_len from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
7451  * @param event packet
7452  * @return name_len
7453  * @note: btstack_type L
7454  */
7455 static inline uint16_t map_subevent_folder_listing_item_get_name_len(const uint8_t * event){
7456     return little_endian_read_16(event, 5);
7457 }
7458 /**
7459  * @brief Get field name from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
7460  * @param event packet
7461  * @return name
7462  * @note: btstack_type V
7463  */
7464 static inline const uint8_t * map_subevent_folder_listing_item_get_name(const uint8_t * event){
7465     return &event[7];
7466 }
7467 
7468 /**
7469  * @brief Get field map_cid from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
7470  * @param event packet
7471  * @return map_cid
7472  * @note: btstack_type 2
7473  */
7474 static inline uint16_t map_subevent_message_listing_item_get_map_cid(const uint8_t * event){
7475     return little_endian_read_16(event, 3);
7476 }
7477 /**
7478  * @brief Get field handle from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
7479  * @param event packet
7480  * @return handle
7481  * @note: btstack_type D
7482  */
7483 static inline const uint8_t * map_subevent_message_listing_item_get_handle(const uint8_t * event){
7484     return (const uint8_t *) &event[5];
7485 }
7486 
7487 /**
7488  * @brief Get field map_cid from event MAP_SUBEVENT_PARSING_DONE
7489  * @param event packet
7490  * @return map_cid
7491  * @note: btstack_type 2
7492  */
7493 static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * event){
7494     return little_endian_read_16(event, 3);
7495 }
7496 
7497 
7498 
7499 
7500 /* API_END */
7501 
7502 #if defined __cplusplus
7503 }
7504 #endif
7505 
7506 #endif // BTSTACK_EVENT_H
7507