1 /* 2 * Copyright (C) 2016 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. Neither the name of the copyright holders nor the names of 14 * contributors may be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * 4. Any redistribution, use, or modification is done solely for 17 * personal benefit and not for any commercial purpose or for 18 * monetary gain. 19 * 20 * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 24 * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * Please inquire about commercial licensing options at 34 * [email protected] 35 * 36 */ 37 38 39 /** 40 * HCI Event Getter 41 * 42 * Note: Don't edit this file. It is generated by tool/btstack_event_generator.py 43 * 44 */ 45 46 #ifndef BTSTACK_EVENT_H 47 #define BTSTACK_EVENT_H 48 49 #if defined __cplusplus 50 extern "C" { 51 #endif 52 53 #include "btstack_util.h" 54 #include <stdint.h> 55 56 #ifdef ENABLE_BLE 57 #include "ble/gatt_client.h" 58 #endif 59 60 /* API_START */ 61 62 /** 63 * @brief Get event type 64 * @param event 65 * @return type of event 66 */ 67 static inline uint8_t hci_event_packet_get_type(const uint8_t * event){ 68 return event[0]; 69 } 70 71 /*** 72 * @brief Get subevent code for a2dp event 73 * @param event packet 74 * @return subevent_code 75 */ 76 static inline uint8_t hci_event_a2dp_meta_get_subevent_code(const uint8_t * event){ 77 return event[2]; 78 } 79 /*** 80 * @brief Get subevent code for ancs event 81 * @param event packet 82 * @return subevent_code 83 */ 84 static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){ 85 return event[2]; 86 } 87 /*** 88 * @brief Get subevent code for avdtp event 89 * @param event packet 90 * @return subevent_code 91 */ 92 static inline uint8_t hci_event_avdtp_meta_get_subevent_code(const uint8_t * event){ 93 return event[2]; 94 } 95 /*** 96 * @brief Get subevent code for avrcp event 97 * @param event packet 98 * @return subevent_code 99 */ 100 static inline uint8_t hci_event_avrcp_meta_get_subevent_code(const uint8_t * event){ 101 return event[2]; 102 } 103 /*** 104 * @brief Get subevent code for gap event 105 * @param event packet 106 * @return subevent_code 107 */ 108 static inline uint8_t hci_event_gap_meta_get_subevent_code(const uint8_t * event){ 109 return event[2]; 110 } 111 /*** 112 * @brief Get subevent code for gattservice event 113 * @param event packet 114 * @return subevent_code 115 */ 116 static inline uint8_t hci_event_gattservice_meta_get_subevent_code(const uint8_t * event){ 117 return event[2]; 118 } 119 /*** 120 * @brief Get subevent code for goep event 121 * @param event packet 122 * @return subevent_code 123 */ 124 static inline uint8_t hci_event_goep_meta_get_subevent_code(const uint8_t * event){ 125 return event[2]; 126 } 127 /*** 128 * @brief Get subevent code for hfp event 129 * @param event packet 130 * @return subevent_code 131 */ 132 static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event){ 133 return event[2]; 134 } 135 /*** 136 * @brief Get subevent code for hid event 137 * @param event packet 138 * @return subevent_code 139 */ 140 static inline uint8_t hci_event_hid_meta_get_subevent_code(const uint8_t * event){ 141 return event[2]; 142 } 143 /*** 144 * @brief Get subevent code for hids event 145 * @param event packet 146 * @return subevent_code 147 */ 148 static inline uint8_t hci_event_hids_meta_get_subevent_code(const uint8_t * event){ 149 return event[2]; 150 } 151 /*** 152 * @brief Get subevent code for hsp event 153 * @param event packet 154 * @return subevent_code 155 */ 156 static inline uint8_t hci_event_hsp_meta_get_subevent_code(const uint8_t * event){ 157 return event[2]; 158 } 159 /*** 160 * @brief Get subevent code for le event 161 * @param event packet 162 * @return subevent_code 163 */ 164 static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){ 165 return event[2]; 166 } 167 /*** 168 * @brief Get subevent code for map event 169 * @param event packet 170 * @return subevent_code 171 */ 172 static inline uint8_t hci_event_map_meta_get_subevent_code(const uint8_t * event){ 173 return event[2]; 174 } 175 /*** 176 * @brief Get subevent code for mesh event 177 * @param event packet 178 * @return subevent_code 179 */ 180 static inline uint8_t hci_event_mesh_meta_get_subevent_code(const uint8_t * event){ 181 return event[2]; 182 } 183 /*** 184 * @brief Get subevent code for pbap event 185 * @param event packet 186 * @return subevent_code 187 */ 188 static inline uint8_t hci_event_pbap_meta_get_subevent_code(const uint8_t * event){ 189 return event[2]; 190 } 191 /** 192 * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE 193 * @param event packet 194 * @return status 195 * @note: btstack_type 1 196 */ 197 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){ 198 return event[2]; 199 } 200 201 /** 202 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT 203 * @param event packet 204 * @return num_responses 205 * @note: btstack_type 1 206 */ 207 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){ 208 return event[2]; 209 } 210 /** 211 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT 212 * @param event packet 213 * @param Pointer to storage for bd_addr 214 * @note: btstack_type B 215 */ 216 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 217 reverse_bytes(&event[3], bd_addr, 6); 218 } 219 /** 220 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT 221 * @param event packet 222 * @return page_scan_repetition_mode 223 * @note: btstack_type 1 224 */ 225 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 226 return event[9]; 227 } 228 /** 229 * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT 230 * @param event packet 231 * @return reserved1 232 * @note: btstack_type 1 233 */ 234 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){ 235 return event[10]; 236 } 237 /** 238 * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT 239 * @param event packet 240 * @return reserved2 241 * @note: btstack_type 1 242 */ 243 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){ 244 return event[11]; 245 } 246 /** 247 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT 248 * @param event packet 249 * @return class_of_device 250 * @note: btstack_type 3 251 */ 252 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){ 253 return little_endian_read_24(event, 12); 254 } 255 /** 256 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT 257 * @param event packet 258 * @return clock_offset 259 * @note: btstack_type 2 260 */ 261 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){ 262 return little_endian_read_16(event, 15); 263 } 264 265 /** 266 * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE 267 * @param event packet 268 * @return status 269 * @note: btstack_type 1 270 */ 271 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){ 272 return event[2]; 273 } 274 /** 275 * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE 276 * @param event packet 277 * @return connection_handle 278 * @note: btstack_type 2 279 */ 280 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){ 281 return little_endian_read_16(event, 3); 282 } 283 /** 284 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE 285 * @param event packet 286 * @param Pointer to storage for bd_addr 287 * @note: btstack_type B 288 */ 289 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 290 reverse_bytes(&event[5], bd_addr, 6); 291 } 292 /** 293 * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE 294 * @param event packet 295 * @return link_type 296 * @note: btstack_type 1 297 */ 298 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){ 299 return event[11]; 300 } 301 /** 302 * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE 303 * @param event packet 304 * @return encryption_enabled 305 * @note: btstack_type 1 306 */ 307 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){ 308 return event[12]; 309 } 310 311 /** 312 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST 313 * @param event packet 314 * @param Pointer to storage for bd_addr 315 * @note: btstack_type B 316 */ 317 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 318 reverse_bytes(&event[2], bd_addr, 6); 319 } 320 /** 321 * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST 322 * @param event packet 323 * @return class_of_device 324 * @note: btstack_type 3 325 */ 326 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){ 327 return little_endian_read_24(event, 8); 328 } 329 /** 330 * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST 331 * @param event packet 332 * @return link_type 333 * @note: btstack_type 1 334 */ 335 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){ 336 return event[11]; 337 } 338 339 /** 340 * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE 341 * @param event packet 342 * @return status 343 * @note: btstack_type 1 344 */ 345 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){ 346 return event[2]; 347 } 348 /** 349 * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE 350 * @param event packet 351 * @return connection_handle 352 * @note: btstack_type 2 353 */ 354 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){ 355 return little_endian_read_16(event, 3); 356 } 357 /** 358 * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE 359 * @param event packet 360 * @return reason 361 * @note: btstack_type 1 362 */ 363 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){ 364 return event[5]; 365 } 366 367 /** 368 * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE 369 * @param event packet 370 * @return status 371 * @note: btstack_type 1 372 */ 373 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){ 374 return event[2]; 375 } 376 /** 377 * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE 378 * @param event packet 379 * @return connection_handle 380 * @note: btstack_type 2 381 */ 382 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){ 383 return little_endian_read_16(event, 3); 384 } 385 386 /** 387 * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 388 * @param event packet 389 * @return status 390 * @note: btstack_type 1 391 */ 392 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){ 393 return event[2]; 394 } 395 /** 396 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 397 * @param event packet 398 * @param Pointer to storage for bd_addr 399 * @note: btstack_type B 400 */ 401 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 402 reverse_bytes(&event[3], bd_addr, 6); 403 } 404 /** 405 * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 406 * @param event packet 407 * @return remote_name 408 * @note: btstack_type N 409 */ 410 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){ 411 return (const char *) &event[9]; 412 } 413 414 /** 415 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE 416 * @param event packet 417 * @return status 418 * @note: btstack_type 1 419 */ 420 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){ 421 return event[2]; 422 } 423 /** 424 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE 425 * @param event packet 426 * @return connection_handle 427 * @note: btstack_type 2 428 */ 429 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){ 430 return little_endian_read_16(event, 3); 431 } 432 /** 433 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE 434 * @param event packet 435 * @return encryption_enabled 436 * @note: btstack_type 1 437 */ 438 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){ 439 return event[5]; 440 } 441 442 /** 443 * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 444 * @param event packet 445 * @return status 446 * @note: btstack_type 1 447 */ 448 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){ 449 return event[2]; 450 } 451 /** 452 * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 453 * @param event packet 454 * @return connection_handle 455 * @note: btstack_type 2 456 */ 457 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){ 458 return little_endian_read_16(event, 3); 459 } 460 461 /** 462 * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 463 * @param event packet 464 * @return status 465 * @note: btstack_type 1 466 */ 467 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){ 468 return event[2]; 469 } 470 /** 471 * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 472 * @param event packet 473 * @return connection_handle 474 * @note: btstack_type 2 475 */ 476 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){ 477 return little_endian_read_16(event, 3); 478 } 479 /** 480 * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 481 * @param event packet 482 * @return key_flag 483 * @note: btstack_type 1 484 */ 485 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){ 486 return event[5]; 487 } 488 489 /** 490 * @brief Get field status from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 491 * @param event packet 492 * @return status 493 * @note: btstack_type 1 494 */ 495 static inline uint8_t hci_event_read_remote_version_information_complete_get_status(const uint8_t * event){ 496 return event[2]; 497 } 498 /** 499 * @brief Get field connection_handle from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 500 * @param event packet 501 * @return connection_handle 502 * @note: btstack_type 2 503 */ 504 static inline uint16_t hci_event_read_remote_version_information_complete_get_connection_handle(const uint8_t * event){ 505 return little_endian_read_16(event, 3); 506 } 507 /** 508 * @brief Get field version from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 509 * @param event packet 510 * @return version 511 * @note: btstack_type 1 512 */ 513 static inline uint8_t hci_event_read_remote_version_information_complete_get_version(const uint8_t * event){ 514 return event[5]; 515 } 516 /** 517 * @brief Get field manufacturer_name from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 518 * @param event packet 519 * @return manufacturer_name 520 * @note: btstack_type 2 521 */ 522 static inline uint16_t hci_event_read_remote_version_information_complete_get_manufacturer_name(const uint8_t * event){ 523 return little_endian_read_16(event, 6); 524 } 525 /** 526 * @brief Get field subversion from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 527 * @param event packet 528 * @return subversion 529 * @note: btstack_type 2 530 */ 531 static inline uint16_t hci_event_read_remote_version_information_complete_get_subversion(const uint8_t * event){ 532 return little_endian_read_16(event, 8); 533 } 534 535 /** 536 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE 537 * @param event packet 538 * @return num_hci_command_packets 539 * @note: btstack_type 1 540 */ 541 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){ 542 return event[2]; 543 } 544 /** 545 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE 546 * @param event packet 547 * @return command_opcode 548 * @note: btstack_type 2 549 */ 550 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){ 551 return little_endian_read_16(event, 3); 552 } 553 /** 554 * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE 555 * @param event packet 556 * @return return_parameters 557 * @note: btstack_type R 558 */ 559 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){ 560 return &event[5]; 561 } 562 563 /** 564 * @brief Get field status from event HCI_EVENT_COMMAND_STATUS 565 * @param event packet 566 * @return status 567 * @note: btstack_type 1 568 */ 569 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){ 570 return event[2]; 571 } 572 /** 573 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS 574 * @param event packet 575 * @return num_hci_command_packets 576 * @note: btstack_type 1 577 */ 578 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){ 579 return event[3]; 580 } 581 /** 582 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS 583 * @param event packet 584 * @return command_opcode 585 * @note: btstack_type 2 586 */ 587 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){ 588 return little_endian_read_16(event, 4); 589 } 590 591 /** 592 * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR 593 * @param event packet 594 * @return hardware_code 595 * @note: btstack_type 1 596 */ 597 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){ 598 return event[2]; 599 } 600 601 /** 602 * @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED 603 * @param event packet 604 * @return handle 605 * @note: btstack_type H 606 */ 607 static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){ 608 return little_endian_read_16(event, 2); 609 } 610 611 /** 612 * @brief Get field status from event HCI_EVENT_ROLE_CHANGE 613 * @param event packet 614 * @return status 615 * @note: btstack_type 1 616 */ 617 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){ 618 return event[2]; 619 } 620 /** 621 * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE 622 * @param event packet 623 * @param Pointer to storage for bd_addr 624 * @note: btstack_type B 625 */ 626 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 627 reverse_bytes(&event[3], bd_addr, 6); 628 } 629 /** 630 * @brief Get field role from event HCI_EVENT_ROLE_CHANGE 631 * @param event packet 632 * @return role 633 * @note: btstack_type 1 634 */ 635 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){ 636 return event[9]; 637 } 638 639 /** 640 * @brief Get field status from event HCI_EVENT_MODE_CHANGE 641 * @param event packet 642 * @return status 643 * @note: btstack_type 1 644 */ 645 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){ 646 return event[2]; 647 } 648 /** 649 * @brief Get field handle from event HCI_EVENT_MODE_CHANGE 650 * @param event packet 651 * @return handle 652 * @note: btstack_type H 653 */ 654 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){ 655 return little_endian_read_16(event, 3); 656 } 657 /** 658 * @brief Get field mode from event HCI_EVENT_MODE_CHANGE 659 * @param event packet 660 * @return mode 661 * @note: btstack_type 1 662 */ 663 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){ 664 return event[5]; 665 } 666 /** 667 * @brief Get field interval from event HCI_EVENT_MODE_CHANGE 668 * @param event packet 669 * @return interval 670 * @note: btstack_type 2 671 */ 672 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){ 673 return little_endian_read_16(event, 6); 674 } 675 676 /** 677 * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST 678 * @param event packet 679 * @param Pointer to storage for bd_addr 680 * @note: btstack_type B 681 */ 682 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 683 reverse_bytes(&event[2], bd_addr, 6); 684 } 685 686 /** 687 * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_REQUEST 688 * @param event packet 689 * @param Pointer to storage for bd_addr 690 * @note: btstack_type B 691 */ 692 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 693 reverse_bytes(&event[2], bd_addr, 6); 694 } 695 696 /** 697 * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW 698 * @param event packet 699 * @return link_type 700 * @note: btstack_type 1 701 */ 702 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){ 703 return event[2]; 704 } 705 706 /** 707 * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED 708 * @param event packet 709 * @return handle 710 * @note: btstack_type H 711 */ 712 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){ 713 return little_endian_read_16(event, 2); 714 } 715 /** 716 * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED 717 * @param event packet 718 * @return lmp_max_slots 719 * @note: btstack_type 1 720 */ 721 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){ 722 return event[4]; 723 } 724 725 /** 726 * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 727 * @param event packet 728 * @return status 729 * @note: btstack_type 1 730 */ 731 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){ 732 return event[2]; 733 } 734 /** 735 * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 736 * @param event packet 737 * @return handle 738 * @note: btstack_type H 739 */ 740 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){ 741 return little_endian_read_16(event, 3); 742 } 743 /** 744 * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 745 * @param event packet 746 * @return clock_offset 747 * @note: btstack_type 2 748 */ 749 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){ 750 return little_endian_read_16(event, 5); 751 } 752 753 /** 754 * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 755 * @param event packet 756 * @return status 757 * @note: btstack_type 1 758 */ 759 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){ 760 return event[2]; 761 } 762 /** 763 * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 764 * @param event packet 765 * @return handle 766 * @note: btstack_type H 767 */ 768 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){ 769 return little_endian_read_16(event, 3); 770 } 771 /** 772 * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 773 * @param event packet 774 * @return packet_types 775 * @note: btstack_type 2 776 */ 777 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){ 778 return little_endian_read_16(event, 5); 779 } 780 781 /** 782 * @brief Get field handle from event HCI_EVENT_QOS_VIOLATION 783 * @param event packet 784 * @return handle 785 * @note: btstack_type H 786 */ 787 static inline hci_con_handle_t hci_event_qos_violation_get_handle(const uint8_t * event){ 788 return little_endian_read_16(event, 2); 789 } 790 791 /** 792 * @brief Get field handle from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE 793 * @param event packet 794 * @return handle 795 * @note: btstack_type H 796 */ 797 static inline hci_con_handle_t hci_event_page_scan_repetition_mode_change_get_handle(const uint8_t * event){ 798 return little_endian_read_16(event, 2); 799 } 800 /** 801 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE 802 * @param event packet 803 * @return page_scan_repetition_mode 804 * @note: btstack_type 1 805 */ 806 static inline uint8_t hci_event_page_scan_repetition_mode_change_get_page_scan_repetition_mode(const uint8_t * event){ 807 return event[4]; 808 } 809 810 /** 811 * @brief Get field status from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 812 * @param event packet 813 * @return status 814 * @note: btstack_type 1 815 */ 816 static inline uint8_t hci_event_flow_specification_complete_get_status(const uint8_t * event){ 817 return event[2]; 818 } 819 /** 820 * @brief Get field handle from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 821 * @param event packet 822 * @return handle 823 * @note: btstack_type H 824 */ 825 static inline hci_con_handle_t hci_event_flow_specification_complete_get_handle(const uint8_t * event){ 826 return little_endian_read_16(event, 3); 827 } 828 /** 829 * @brief Get field unused from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 830 * @param event packet 831 * @return unused 832 * @note: btstack_type 1 833 */ 834 static inline uint8_t hci_event_flow_specification_complete_get_unused(const uint8_t * event){ 835 return event[5]; 836 } 837 /** 838 * @brief Get field flow_direction from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 839 * @param event packet 840 * @return flow_direction 841 * @note: btstack_type 1 842 */ 843 static inline uint8_t hci_event_flow_specification_complete_get_flow_direction(const uint8_t * event){ 844 return event[6]; 845 } 846 /** 847 * @brief Get field service_type from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 848 * @param event packet 849 * @return service_type 850 * @note: btstack_type 1 851 */ 852 static inline uint8_t hci_event_flow_specification_complete_get_service_type(const uint8_t * event){ 853 return event[7]; 854 } 855 /** 856 * @brief Get field token_rate from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 857 * @param event packet 858 * @return token_rate 859 * @note: btstack_type 4 860 */ 861 static inline uint32_t hci_event_flow_specification_complete_get_token_rate(const uint8_t * event){ 862 return little_endian_read_32(event, 8); 863 } 864 /** 865 * @brief Get field token_bucket_size from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 866 * @param event packet 867 * @return token_bucket_size 868 * @note: btstack_type 4 869 */ 870 static inline uint32_t hci_event_flow_specification_complete_get_token_bucket_size(const uint8_t * event){ 871 return little_endian_read_32(event, 12); 872 } 873 /** 874 * @brief Get field peak_bandwidth from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 875 * @param event packet 876 * @return peak_bandwidth 877 * @note: btstack_type 4 878 */ 879 static inline uint32_t hci_event_flow_specification_complete_get_peak_bandwidth(const uint8_t * event){ 880 return little_endian_read_32(event, 16); 881 } 882 /** 883 * @brief Get field access_latency from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 884 * @param event packet 885 * @return access_latency 886 * @note: btstack_type 4 887 */ 888 static inline uint32_t hci_event_flow_specification_complete_get_access_latency(const uint8_t * event){ 889 return little_endian_read_32(event, 20); 890 } 891 892 /** 893 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 894 * @param event packet 895 * @return num_responses 896 * @note: btstack_type 1 897 */ 898 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){ 899 return event[2]; 900 } 901 /** 902 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 903 * @param event packet 904 * @param Pointer to storage for bd_addr 905 * @note: btstack_type B 906 */ 907 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 908 reverse_bytes(&event[3], bd_addr, 6); 909 } 910 /** 911 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 912 * @param event packet 913 * @return page_scan_repetition_mode 914 * @note: btstack_type 1 915 */ 916 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){ 917 return event[9]; 918 } 919 /** 920 * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 921 * @param event packet 922 * @return reserved 923 * @note: btstack_type 1 924 */ 925 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){ 926 return event[10]; 927 } 928 /** 929 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 930 * @param event packet 931 * @return class_of_device 932 * @note: btstack_type 3 933 */ 934 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){ 935 return little_endian_read_24(event, 11); 936 } 937 /** 938 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 939 * @param event packet 940 * @return clock_offset 941 * @note: btstack_type 2 942 */ 943 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){ 944 return little_endian_read_16(event, 14); 945 } 946 /** 947 * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 948 * @param event packet 949 * @return rssi 950 * @note: btstack_type 1 951 */ 952 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){ 953 return event[16]; 954 } 955 956 /** 957 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 958 * @param event packet 959 * @return status 960 * @note: btstack_type 1 961 */ 962 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){ 963 return event[2]; 964 } 965 /** 966 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 967 * @param event packet 968 * @return handle 969 * @note: btstack_type H 970 */ 971 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){ 972 return little_endian_read_16(event, 3); 973 } 974 /** 975 * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 976 * @param event packet 977 * @param Pointer to storage for bd_addr 978 * @note: btstack_type B 979 */ 980 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 981 reverse_bytes(&event[5], bd_addr, 6); 982 } 983 /** 984 * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 985 * @param event packet 986 * @return link_type 987 * @note: btstack_type 1 988 */ 989 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){ 990 return event[11]; 991 } 992 /** 993 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 994 * @param event packet 995 * @return transmission_interval 996 * @note: btstack_type 1 997 */ 998 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){ 999 return event[12]; 1000 } 1001 /** 1002 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1003 * @param event packet 1004 * @return retransmission_interval 1005 * @note: btstack_type 1 1006 */ 1007 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){ 1008 return event[13]; 1009 } 1010 /** 1011 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1012 * @param event packet 1013 * @return rx_packet_length 1014 * @note: btstack_type 2 1015 */ 1016 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){ 1017 return little_endian_read_16(event, 14); 1018 } 1019 /** 1020 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1021 * @param event packet 1022 * @return tx_packet_length 1023 * @note: btstack_type 2 1024 */ 1025 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){ 1026 return little_endian_read_16(event, 16); 1027 } 1028 /** 1029 * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1030 * @param event packet 1031 * @return air_mode 1032 * @note: btstack_type 1 1033 */ 1034 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){ 1035 return event[18]; 1036 } 1037 1038 /** 1039 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1040 * @param event packet 1041 * @return status 1042 * @note: btstack_type 1 1043 */ 1044 static inline uint8_t hci_event_synchronous_connection_changed_get_status(const uint8_t * event){ 1045 return event[2]; 1046 } 1047 /** 1048 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1049 * @param event packet 1050 * @return handle 1051 * @note: btstack_type H 1052 */ 1053 static inline hci_con_handle_t hci_event_synchronous_connection_changed_get_handle(const uint8_t * event){ 1054 return little_endian_read_16(event, 3); 1055 } 1056 /** 1057 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1058 * @param event packet 1059 * @return transmission_interval 1060 * @note: btstack_type 1 1061 */ 1062 static inline uint8_t hci_event_synchronous_connection_changed_get_transmission_interval(const uint8_t * event){ 1063 return event[5]; 1064 } 1065 /** 1066 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1067 * @param event packet 1068 * @return retransmission_interval 1069 * @note: btstack_type 1 1070 */ 1071 static inline uint8_t hci_event_synchronous_connection_changed_get_retransmission_interval(const uint8_t * event){ 1072 return event[6]; 1073 } 1074 /** 1075 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1076 * @param event packet 1077 * @return rx_packet_length 1078 * @note: btstack_type 2 1079 */ 1080 static inline uint16_t hci_event_synchronous_connection_changed_get_rx_packet_length(const uint8_t * event){ 1081 return little_endian_read_16(event, 7); 1082 } 1083 /** 1084 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1085 * @param event packet 1086 * @return tx_packet_length 1087 * @note: btstack_type 2 1088 */ 1089 static inline uint16_t hci_event_synchronous_connection_changed_get_tx_packet_length(const uint8_t * event){ 1090 return little_endian_read_16(event, 9); 1091 } 1092 1093 /** 1094 * @brief Get field status from event HCI_EVENT_SNIFF_SUBRATING 1095 * @param event packet 1096 * @return status 1097 * @note: btstack_type 1 1098 */ 1099 static inline uint8_t hci_event_sniff_subrating_get_status(const uint8_t * event){ 1100 return event[2]; 1101 } 1102 /** 1103 * @brief Get field handle from event HCI_EVENT_SNIFF_SUBRATING 1104 * @param event packet 1105 * @return handle 1106 * @note: btstack_type H 1107 */ 1108 static inline hci_con_handle_t hci_event_sniff_subrating_get_handle(const uint8_t * event){ 1109 return little_endian_read_16(event, 3); 1110 } 1111 /** 1112 * @brief Get field max_tx_latency from event HCI_EVENT_SNIFF_SUBRATING 1113 * @param event packet 1114 * @return max_tx_latency 1115 * @note: btstack_type 2 1116 */ 1117 static inline uint16_t hci_event_sniff_subrating_get_max_tx_latency(const uint8_t * event){ 1118 return little_endian_read_16(event, 5); 1119 } 1120 /** 1121 * @brief Get field max_rx_latency from event HCI_EVENT_SNIFF_SUBRATING 1122 * @param event packet 1123 * @return max_rx_latency 1124 * @note: btstack_type 2 1125 */ 1126 static inline uint16_t hci_event_sniff_subrating_get_max_rx_latency(const uint8_t * event){ 1127 return little_endian_read_16(event, 7); 1128 } 1129 /** 1130 * @brief Get field min_remote_timeout from event HCI_EVENT_SNIFF_SUBRATING 1131 * @param event packet 1132 * @return min_remote_timeout 1133 * @note: btstack_type 2 1134 */ 1135 static inline uint16_t hci_event_sniff_subrating_get_min_remote_timeout(const uint8_t * event){ 1136 return little_endian_read_16(event, 9); 1137 } 1138 /** 1139 * @brief Get field min_local_timeout from event HCI_EVENT_SNIFF_SUBRATING 1140 * @param event packet 1141 * @return min_local_timeout 1142 * @note: btstack_type 2 1143 */ 1144 static inline uint16_t hci_event_sniff_subrating_get_min_local_timeout(const uint8_t * event){ 1145 return little_endian_read_16(event, 11); 1146 } 1147 1148 /** 1149 * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1150 * @param event packet 1151 * @return num_responses 1152 * @note: btstack_type 1 1153 */ 1154 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){ 1155 return event[2]; 1156 } 1157 /** 1158 * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1159 * @param event packet 1160 * @param Pointer to storage for bd_addr 1161 * @note: btstack_type B 1162 */ 1163 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1164 reverse_bytes(&event[3], bd_addr, 6); 1165 } 1166 /** 1167 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1168 * @param event packet 1169 * @return page_scan_repetition_mode 1170 * @note: btstack_type 1 1171 */ 1172 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){ 1173 return event[9]; 1174 } 1175 /** 1176 * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1177 * @param event packet 1178 * @return reserved 1179 * @note: btstack_type 1 1180 */ 1181 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){ 1182 return event[10]; 1183 } 1184 /** 1185 * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1186 * @param event packet 1187 * @return class_of_device 1188 * @note: btstack_type 3 1189 */ 1190 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){ 1191 return little_endian_read_24(event, 11); 1192 } 1193 /** 1194 * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1195 * @param event packet 1196 * @return clock_offset 1197 * @note: btstack_type 2 1198 */ 1199 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){ 1200 return little_endian_read_16(event, 14); 1201 } 1202 /** 1203 * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1204 * @param event packet 1205 * @return rssi 1206 * @note: btstack_type 1 1207 */ 1208 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){ 1209 return event[16]; 1210 } 1211 1212 /** 1213 * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 1214 * @param event packet 1215 * @return status 1216 * @note: btstack_type 1 1217 */ 1218 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){ 1219 return event[2]; 1220 } 1221 /** 1222 * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 1223 * @param event packet 1224 * @return handle 1225 * @note: btstack_type H 1226 */ 1227 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){ 1228 return little_endian_read_16(event, 3); 1229 } 1230 1231 /** 1232 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST 1233 * @param event packet 1234 * @param Pointer to storage for bd_addr 1235 * @note: btstack_type B 1236 */ 1237 static inline void hci_event_io_capability_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1238 reverse_bytes(&event[2], bd_addr, 6); 1239 } 1240 1241 /** 1242 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1243 * @param event packet 1244 * @param Pointer to storage for bd_addr 1245 * @note: btstack_type B 1246 */ 1247 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1248 reverse_bytes(&event[2], bd_addr, 6); 1249 } 1250 /** 1251 * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1252 * @param event packet 1253 * @return io_capability 1254 * @note: btstack_type 1 1255 */ 1256 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){ 1257 return event[8]; 1258 } 1259 /** 1260 * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1261 * @param event packet 1262 * @return oob_data_present 1263 * @note: btstack_type 1 1264 */ 1265 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){ 1266 return event[9]; 1267 } 1268 /** 1269 * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1270 * @param event packet 1271 * @return authentication_requirements 1272 * @note: btstack_type 1 1273 */ 1274 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){ 1275 return event[10]; 1276 } 1277 1278 /** 1279 * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1280 * @param event packet 1281 * @param Pointer to storage for bd_addr 1282 * @note: btstack_type B 1283 */ 1284 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1285 reverse_bytes(&event[2], bd_addr, 6); 1286 } 1287 /** 1288 * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1289 * @param event packet 1290 * @return numeric_value 1291 * @note: btstack_type 4 1292 */ 1293 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){ 1294 return little_endian_read_32(event, 8); 1295 } 1296 1297 /** 1298 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST 1299 * @param event packet 1300 * @param Pointer to storage for bd_addr 1301 * @note: btstack_type B 1302 */ 1303 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1304 reverse_bytes(&event[2], bd_addr, 6); 1305 } 1306 1307 /** 1308 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST 1309 * @param event packet 1310 * @param Pointer to storage for bd_addr 1311 * @note: btstack_type B 1312 */ 1313 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1314 reverse_bytes(&event[2], bd_addr, 6); 1315 } 1316 1317 /** 1318 * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1319 * @param event packet 1320 * @return status 1321 * @note: btstack_type 1 1322 */ 1323 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){ 1324 return event[2]; 1325 } 1326 /** 1327 * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1328 * @param event packet 1329 * @param Pointer to storage for bd_addr 1330 * @note: btstack_type B 1331 */ 1332 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1333 reverse_bytes(&event[3], bd_addr, 6); 1334 } 1335 1336 /** 1337 * @brief Get field handle from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 1338 * @param event packet 1339 * @return handle 1340 * @note: btstack_type H 1341 */ 1342 static inline hci_con_handle_t hci_event_link_supervision_timeout_changed_get_handle(const uint8_t * event){ 1343 return little_endian_read_16(event, 2); 1344 } 1345 /** 1346 * @brief Get field link_supervision_timeout from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 1347 * @param event packet 1348 * @return link_supervision_timeout 1349 * @note: btstack_type 2 1350 */ 1351 static inline uint16_t hci_event_link_supervision_timeout_changed_get_link_supervision_timeout(const uint8_t * event){ 1352 return little_endian_read_16(event, 4); 1353 } 1354 1355 /** 1356 * @brief Get field handle from event HCI_EVENT_ENHANCED_FLUSH_COMPLETE 1357 * @param event packet 1358 * @return handle 1359 * @note: btstack_type H 1360 */ 1361 static inline hci_con_handle_t hci_event_enhanced_flush_complete_get_handle(const uint8_t * event){ 1362 return little_endian_read_16(event, 2); 1363 } 1364 1365 /** 1366 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1367 * @param event packet 1368 * @param Pointer to storage for bd_addr 1369 * @note: btstack_type B 1370 */ 1371 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1372 reverse_bytes(&event[2], bd_addr, 6); 1373 } 1374 /** 1375 * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1376 * @param event packet 1377 * @return numeric_value 1378 * @note: btstack_type 4 1379 */ 1380 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){ 1381 return little_endian_read_32(event, 8); 1382 } 1383 1384 /** 1385 * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION 1386 * @param event packet 1387 * @param Pointer to storage for bd_addr 1388 * @note: btstack_type B 1389 */ 1390 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1391 reverse_bytes(&event[2], bd_addr, 6); 1392 } 1393 /** 1394 * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION 1395 * @param event packet 1396 * @return notification_type 1397 * @note: btstack_type 1 1398 */ 1399 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){ 1400 return event[8]; 1401 } 1402 1403 /** 1404 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1405 * @param event packet 1406 * @return status 1407 * @note: btstack_type 1 1408 */ 1409 static inline uint8_t hci_event_encryption_change_v2_get_status(const uint8_t * event){ 1410 return event[2]; 1411 } 1412 /** 1413 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1414 * @param event packet 1415 * @return connection_handle 1416 * @note: btstack_type 2 1417 */ 1418 static inline uint16_t hci_event_encryption_change_v2_get_connection_handle(const uint8_t * event){ 1419 return little_endian_read_16(event, 3); 1420 } 1421 /** 1422 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1423 * @param event packet 1424 * @return encryption_enabled 1425 * @note: btstack_type 1 1426 */ 1427 static inline uint8_t hci_event_encryption_change_v2_get_encryption_enabled(const uint8_t * event){ 1428 return event[5]; 1429 } 1430 /** 1431 * @brief Get field encryption_key_size from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1432 * @param event packet 1433 * @return encryption_key_size 1434 * @note: btstack_type 1 1435 */ 1436 static inline uint8_t hci_event_encryption_change_v2_get_encryption_key_size(const uint8_t * event){ 1437 return event[6]; 1438 } 1439 1440 /** 1441 * @brief Get field state from event BTSTACK_EVENT_STATE 1442 * @param event packet 1443 * @return state 1444 * @note: btstack_type 1 1445 */ 1446 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){ 1447 return event[2]; 1448 } 1449 1450 /** 1451 * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1452 * @param event packet 1453 * @return number_connections 1454 * @note: btstack_type 1 1455 */ 1456 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){ 1457 return event[2]; 1458 } 1459 1460 1461 /** 1462 * @brief Get field discoverable from event BTSTACK_EVENT_SCAN_MODE_CHANGED 1463 * @param event packet 1464 * @return discoverable 1465 * @note: btstack_type 1 1466 */ 1467 static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){ 1468 return event[2]; 1469 } 1470 /** 1471 * @brief Get field connectable from event BTSTACK_EVENT_SCAN_MODE_CHANGED 1472 * @param event packet 1473 * @return connectable 1474 * @note: btstack_type 1 1475 */ 1476 static inline uint8_t btstack_event_scan_mode_changed_get_connectable(const uint8_t * event){ 1477 return event[3]; 1478 } 1479 1480 /** 1481 * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE 1482 * @param event packet 1483 * @return active 1484 * @note: btstack_type 1 1485 */ 1486 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){ 1487 return event[2]; 1488 } 1489 1490 /** 1491 * @brief Get field vendor_id from event HCI_EVENT_TRANSPORT_USB_INFO 1492 * @param event packet 1493 * @return vendor_id 1494 * @note: btstack_type 2 1495 */ 1496 static inline uint16_t hci_event_transport_usb_info_get_vendor_id(const uint8_t * event){ 1497 return little_endian_read_16(event, 2); 1498 } 1499 /** 1500 * @brief Get field product_id from event HCI_EVENT_TRANSPORT_USB_INFO 1501 * @param event packet 1502 * @return product_id 1503 * @note: btstack_type 2 1504 */ 1505 static inline uint16_t hci_event_transport_usb_info_get_product_id(const uint8_t * event){ 1506 return little_endian_read_16(event, 4); 1507 } 1508 /** 1509 * @brief Get field path_len from event HCI_EVENT_TRANSPORT_USB_INFO 1510 * @param event packet 1511 * @return path_len 1512 * @note: btstack_type J 1513 */ 1514 static inline uint8_t hci_event_transport_usb_info_get_path_len(const uint8_t * event){ 1515 return event[6]; 1516 } 1517 /** 1518 * @brief Get field path from event HCI_EVENT_TRANSPORT_USB_INFO 1519 * @param event packet 1520 * @return path 1521 * @note: btstack_type V 1522 */ 1523 static inline const uint8_t * hci_event_transport_usb_info_get_path(const uint8_t * event){ 1524 return &event[7]; 1525 } 1526 1527 /** 1528 * @brief Get field big_handle from event HCI_EVENT_BIS_CAN_SEND_NOW 1529 * @param event packet 1530 * @return big_handle 1531 * @note: btstack_type 1 1532 */ 1533 static inline uint8_t hci_event_bis_can_send_now_get_big_handle(const uint8_t * event){ 1534 return event[2]; 1535 } 1536 /** 1537 * @brief Get field bis_index from event HCI_EVENT_BIS_CAN_SEND_NOW 1538 * @param event packet 1539 * @return bis_index 1540 * @note: btstack_type 1 1541 */ 1542 static inline uint8_t hci_event_bis_can_send_now_get_bis_index(const uint8_t * event){ 1543 return event[3]; 1544 } 1545 /** 1546 * @brief Get field con_handle from event HCI_EVENT_BIS_CAN_SEND_NOW 1547 * @param event packet 1548 * @return con_handle 1549 * @note: btstack_type H 1550 */ 1551 static inline hci_con_handle_t hci_event_bis_can_send_now_get_con_handle(const uint8_t * event){ 1552 return little_endian_read_16(event, 4); 1553 } 1554 1555 /** 1556 * @brief Get field cis_con_handle from event HCI_EVENT_CIS_CAN_SEND_NOW 1557 * @param event packet 1558 * @return cis_con_handle 1559 * @note: btstack_type H 1560 */ 1561 static inline hci_con_handle_t hci_event_cis_can_send_now_get_cis_con_handle(const uint8_t * event){ 1562 return little_endian_read_16(event, 2); 1563 } 1564 1565 1566 /** 1567 * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED 1568 * @param event packet 1569 * @return status 1570 * @note: btstack_type 1 1571 */ 1572 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){ 1573 return event[2]; 1574 } 1575 /** 1576 * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED 1577 * @param event packet 1578 * @param Pointer to storage for address 1579 * @note: btstack_type B 1580 */ 1581 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1582 reverse_bytes(&event[3], address, 6); 1583 } 1584 /** 1585 * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED 1586 * @param event packet 1587 * @return handle 1588 * @note: btstack_type H 1589 */ 1590 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){ 1591 return little_endian_read_16(event, 9); 1592 } 1593 /** 1594 * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED 1595 * @param event packet 1596 * @return psm 1597 * @note: btstack_type 2 1598 */ 1599 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){ 1600 return little_endian_read_16(event, 11); 1601 } 1602 /** 1603 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED 1604 * @param event packet 1605 * @return local_cid 1606 * @note: btstack_type 2 1607 */ 1608 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){ 1609 return little_endian_read_16(event, 13); 1610 } 1611 /** 1612 * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED 1613 * @param event packet 1614 * @return remote_cid 1615 * @note: btstack_type 2 1616 */ 1617 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){ 1618 return little_endian_read_16(event, 15); 1619 } 1620 /** 1621 * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1622 * @param event packet 1623 * @return local_mtu 1624 * @note: btstack_type 2 1625 */ 1626 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){ 1627 return little_endian_read_16(event, 17); 1628 } 1629 /** 1630 * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1631 * @param event packet 1632 * @return remote_mtu 1633 * @note: btstack_type 2 1634 */ 1635 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){ 1636 return little_endian_read_16(event, 19); 1637 } 1638 /** 1639 * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED 1640 * @param event packet 1641 * @return flush_timeout 1642 * @note: btstack_type 2 1643 */ 1644 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){ 1645 return little_endian_read_16(event, 21); 1646 } 1647 /** 1648 * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED 1649 * @param event packet 1650 * @return incoming 1651 * @note: btstack_type 1 1652 */ 1653 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){ 1654 return event[23]; 1655 } 1656 /** 1657 * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED 1658 * @param event packet 1659 * @return mode 1660 * @note: btstack_type 1 1661 */ 1662 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){ 1663 return event[24]; 1664 } 1665 /** 1666 * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED 1667 * @param event packet 1668 * @return fcs 1669 * @note: btstack_type 1 1670 */ 1671 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){ 1672 return event[25]; 1673 } 1674 1675 /** 1676 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED 1677 * @param event packet 1678 * @return local_cid 1679 * @note: btstack_type 2 1680 */ 1681 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){ 1682 return little_endian_read_16(event, 2); 1683 } 1684 1685 /** 1686 * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION 1687 * @param event packet 1688 * @param Pointer to storage for address 1689 * @note: btstack_type B 1690 */ 1691 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1692 reverse_bytes(&event[2], address, 6); 1693 } 1694 /** 1695 * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION 1696 * @param event packet 1697 * @return handle 1698 * @note: btstack_type H 1699 */ 1700 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){ 1701 return little_endian_read_16(event, 8); 1702 } 1703 /** 1704 * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION 1705 * @param event packet 1706 * @return psm 1707 * @note: btstack_type 2 1708 */ 1709 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){ 1710 return little_endian_read_16(event, 10); 1711 } 1712 /** 1713 * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1714 * @param event packet 1715 * @return local_cid 1716 * @note: btstack_type 2 1717 */ 1718 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){ 1719 return little_endian_read_16(event, 12); 1720 } 1721 /** 1722 * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1723 * @param event packet 1724 * @return remote_cid 1725 * @note: btstack_type 2 1726 */ 1727 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){ 1728 return little_endian_read_16(event, 14); 1729 } 1730 1731 /** 1732 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1733 * @param event packet 1734 * @return handle 1735 * @note: btstack_type H 1736 */ 1737 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){ 1738 return little_endian_read_16(event, 2); 1739 } 1740 /** 1741 * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1742 * @param event packet 1743 * @return interval_min 1744 * @note: btstack_type 2 1745 */ 1746 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){ 1747 return little_endian_read_16(event, 4); 1748 } 1749 /** 1750 * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1751 * @param event packet 1752 * @return interval_max 1753 * @note: btstack_type 2 1754 */ 1755 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){ 1756 return little_endian_read_16(event, 6); 1757 } 1758 /** 1759 * @brief Get field latency from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1760 * @param event packet 1761 * @return latency 1762 * @note: btstack_type 2 1763 */ 1764 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latency(const uint8_t * event){ 1765 return little_endian_read_16(event, 8); 1766 } 1767 /** 1768 * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1769 * @param event packet 1770 * @return timeout_multiplier 1771 * @note: btstack_type 2 1772 */ 1773 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){ 1774 return little_endian_read_16(event, 10); 1775 } 1776 1777 /** 1778 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1779 * @param event packet 1780 * @return handle 1781 * @note: btstack_type H 1782 */ 1783 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){ 1784 return little_endian_read_16(event, 2); 1785 } 1786 /** 1787 * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1788 * @param event packet 1789 * @return result 1790 * @note: btstack_type 2 1791 */ 1792 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){ 1793 return little_endian_read_16(event, 4); 1794 } 1795 1796 /** 1797 * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE 1798 * @param event packet 1799 * @return con_handle 1800 * @note: btstack_type H 1801 */ 1802 static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){ 1803 return little_endian_read_16(event, 2); 1804 } 1805 /** 1806 * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE 1807 * @param event packet 1808 * @return extended_feature_mask 1809 * @note: btstack_type 2 1810 */ 1811 static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){ 1812 return little_endian_read_16(event, 4); 1813 } 1814 /** 1815 * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE 1816 * @param event packet 1817 * @return fixed_channels_supported 1818 * @note: btstack_type 2 1819 */ 1820 static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){ 1821 return little_endian_read_16(event, 6); 1822 } 1823 1824 /** 1825 * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW 1826 * @param event packet 1827 * @return local_cid 1828 * @note: btstack_type 2 1829 */ 1830 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){ 1831 return little_endian_read_16(event, 2); 1832 } 1833 1834 /** 1835 * @brief Get field local_cid from event L2CAP_EVENT_PACKET_SENT 1836 * @param event packet 1837 * @return local_cid 1838 * @note: btstack_type 2 1839 */ 1840 static inline uint16_t l2cap_event_packet_sent_get_local_cid(const uint8_t * event){ 1841 return little_endian_read_16(event, 2); 1842 } 1843 1844 /** 1845 * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED 1846 * @param event packet 1847 * @return local_cid 1848 * @note: btstack_type 2 1849 */ 1850 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1851 return little_endian_read_16(event, 2); 1852 } 1853 1854 /** 1855 * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1856 * @param event packet 1857 * @return address_type 1858 * @note: btstack_type 1 1859 */ 1860 static inline uint8_t l2cap_event_cbm_incoming_connection_get_address_type(const uint8_t * event){ 1861 return event[2]; 1862 } 1863 /** 1864 * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1865 * @param event packet 1866 * @param Pointer to storage for address 1867 * @note: btstack_type B 1868 */ 1869 static inline void l2cap_event_cbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1870 reverse_bytes(&event[3], address, 6); 1871 } 1872 /** 1873 * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1874 * @param event packet 1875 * @return handle 1876 * @note: btstack_type H 1877 */ 1878 static inline hci_con_handle_t l2cap_event_cbm_incoming_connection_get_handle(const uint8_t * event){ 1879 return little_endian_read_16(event, 9); 1880 } 1881 /** 1882 * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1883 * @param event packet 1884 * @return psm 1885 * @note: btstack_type 2 1886 */ 1887 static inline uint16_t l2cap_event_cbm_incoming_connection_get_psm(const uint8_t * event){ 1888 return little_endian_read_16(event, 11); 1889 } 1890 /** 1891 * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1892 * @param event packet 1893 * @return local_cid 1894 * @note: btstack_type 2 1895 */ 1896 static inline uint16_t l2cap_event_cbm_incoming_connection_get_local_cid(const uint8_t * event){ 1897 return little_endian_read_16(event, 13); 1898 } 1899 /** 1900 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1901 * @param event packet 1902 * @return remote_cid 1903 * @note: btstack_type 2 1904 */ 1905 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_cid(const uint8_t * event){ 1906 return little_endian_read_16(event, 15); 1907 } 1908 /** 1909 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1910 * @param event packet 1911 * @return remote_mtu 1912 * @note: btstack_type 2 1913 */ 1914 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_mtu(const uint8_t * event){ 1915 return little_endian_read_16(event, 17); 1916 } 1917 1918 /** 1919 * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1920 * @param event packet 1921 * @return status 1922 * @note: btstack_type 1 1923 */ 1924 static inline uint8_t l2cap_event_cbm_channel_opened_get_status(const uint8_t * event){ 1925 return event[2]; 1926 } 1927 /** 1928 * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1929 * @param event packet 1930 * @return address_type 1931 * @note: btstack_type 1 1932 */ 1933 static inline uint8_t l2cap_event_cbm_channel_opened_get_address_type(const uint8_t * event){ 1934 return event[3]; 1935 } 1936 /** 1937 * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1938 * @param event packet 1939 * @param Pointer to storage for address 1940 * @note: btstack_type B 1941 */ 1942 static inline void l2cap_event_cbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1943 reverse_bytes(&event[4], address, 6); 1944 } 1945 /** 1946 * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1947 * @param event packet 1948 * @return handle 1949 * @note: btstack_type H 1950 */ 1951 static inline hci_con_handle_t l2cap_event_cbm_channel_opened_get_handle(const uint8_t * event){ 1952 return little_endian_read_16(event, 10); 1953 } 1954 /** 1955 * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1956 * @param event packet 1957 * @return incoming 1958 * @note: btstack_type 1 1959 */ 1960 static inline uint8_t l2cap_event_cbm_channel_opened_get_incoming(const uint8_t * event){ 1961 return event[12]; 1962 } 1963 /** 1964 * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1965 * @param event packet 1966 * @return psm 1967 * @note: btstack_type 2 1968 */ 1969 static inline uint16_t l2cap_event_cbm_channel_opened_get_psm(const uint8_t * event){ 1970 return little_endian_read_16(event, 13); 1971 } 1972 /** 1973 * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1974 * @param event packet 1975 * @return local_cid 1976 * @note: btstack_type 2 1977 */ 1978 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_cid(const uint8_t * event){ 1979 return little_endian_read_16(event, 15); 1980 } 1981 /** 1982 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1983 * @param event packet 1984 * @return remote_cid 1985 * @note: btstack_type 2 1986 */ 1987 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_cid(const uint8_t * event){ 1988 return little_endian_read_16(event, 17); 1989 } 1990 /** 1991 * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1992 * @param event packet 1993 * @return local_mtu 1994 * @note: btstack_type 2 1995 */ 1996 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_mtu(const uint8_t * event){ 1997 return little_endian_read_16(event, 19); 1998 } 1999 /** 2000 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2001 * @param event packet 2002 * @return remote_mtu 2003 * @note: btstack_type 2 2004 */ 2005 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_mtu(const uint8_t * event){ 2006 return little_endian_read_16(event, 21); 2007 } 2008 2009 2010 /** 2011 * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2012 * @param event packet 2013 * @return address_type 2014 * @note: btstack_type 1 2015 */ 2016 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_address_type(const uint8_t * event){ 2017 return event[2]; 2018 } 2019 /** 2020 * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2021 * @param event packet 2022 * @param Pointer to storage for address 2023 * @note: btstack_type B 2024 */ 2025 static inline void l2cap_event_ecbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 2026 reverse_bytes(&event[3], address, 6); 2027 } 2028 /** 2029 * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2030 * @param event packet 2031 * @return handle 2032 * @note: btstack_type H 2033 */ 2034 static inline hci_con_handle_t l2cap_event_ecbm_incoming_connection_get_handle(const uint8_t * event){ 2035 return little_endian_read_16(event, 9); 2036 } 2037 /** 2038 * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2039 * @param event packet 2040 * @return psm 2041 * @note: btstack_type 2 2042 */ 2043 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_psm(const uint8_t * event){ 2044 return little_endian_read_16(event, 11); 2045 } 2046 /** 2047 * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2048 * @param event packet 2049 * @return num_channels 2050 * @note: btstack_type 1 2051 */ 2052 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_num_channels(const uint8_t * event){ 2053 return event[13]; 2054 } 2055 /** 2056 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2057 * @param event packet 2058 * @return local_cid 2059 * @note: btstack_type 2 2060 */ 2061 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_local_cid(const uint8_t * event){ 2062 return little_endian_read_16(event, 14); 2063 } 2064 2065 /** 2066 * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2067 * @param event packet 2068 * @return status 2069 * @note: btstack_type 1 2070 */ 2071 static inline uint8_t l2cap_event_ecbm_channel_opened_get_status(const uint8_t * event){ 2072 return event[2]; 2073 } 2074 /** 2075 * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2076 * @param event packet 2077 * @return address_type 2078 * @note: btstack_type 1 2079 */ 2080 static inline uint8_t l2cap_event_ecbm_channel_opened_get_address_type(const uint8_t * event){ 2081 return event[3]; 2082 } 2083 /** 2084 * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2085 * @param event packet 2086 * @param Pointer to storage for address 2087 * @note: btstack_type B 2088 */ 2089 static inline void l2cap_event_ecbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 2090 reverse_bytes(&event[4], address, 6); 2091 } 2092 /** 2093 * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2094 * @param event packet 2095 * @return handle 2096 * @note: btstack_type H 2097 */ 2098 static inline hci_con_handle_t l2cap_event_ecbm_channel_opened_get_handle(const uint8_t * event){ 2099 return little_endian_read_16(event, 10); 2100 } 2101 /** 2102 * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2103 * @param event packet 2104 * @return incoming 2105 * @note: btstack_type 1 2106 */ 2107 static inline uint8_t l2cap_event_ecbm_channel_opened_get_incoming(const uint8_t * event){ 2108 return event[12]; 2109 } 2110 /** 2111 * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2112 * @param event packet 2113 * @return psm 2114 * @note: btstack_type 2 2115 */ 2116 static inline uint16_t l2cap_event_ecbm_channel_opened_get_psm(const uint8_t * event){ 2117 return little_endian_read_16(event, 13); 2118 } 2119 /** 2120 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2121 * @param event packet 2122 * @return local_cid 2123 * @note: btstack_type 2 2124 */ 2125 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_cid(const uint8_t * event){ 2126 return little_endian_read_16(event, 15); 2127 } 2128 /** 2129 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2130 * @param event packet 2131 * @return remote_cid 2132 * @note: btstack_type 2 2133 */ 2134 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_cid(const uint8_t * event){ 2135 return little_endian_read_16(event, 17); 2136 } 2137 /** 2138 * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2139 * @param event packet 2140 * @return local_mtu 2141 * @note: btstack_type 2 2142 */ 2143 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_mtu(const uint8_t * event){ 2144 return little_endian_read_16(event, 19); 2145 } 2146 /** 2147 * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2148 * @param event packet 2149 * @return remote_mtu 2150 * @note: btstack_type 2 2151 */ 2152 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_mtu(const uint8_t * event){ 2153 return little_endian_read_16(event, 21); 2154 } 2155 2156 /** 2157 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED 2158 * @param event packet 2159 * @return remote_cid 2160 * @note: btstack_type 2 2161 */ 2162 static inline uint16_t l2cap_event_ecbm_reconfigured_get_remote_cid(const uint8_t * event){ 2163 return little_endian_read_16(event, 2); 2164 } 2165 /** 2166 * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED 2167 * @param event packet 2168 * @return mtu 2169 * @note: btstack_type 2 2170 */ 2171 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mtu(const uint8_t * event){ 2172 return little_endian_read_16(event, 4); 2173 } 2174 /** 2175 * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED 2176 * @param event packet 2177 * @return mps 2178 * @note: btstack_type 2 2179 */ 2180 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mps(const uint8_t * event){ 2181 return little_endian_read_16(event, 6); 2182 } 2183 2184 /** 2185 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 2186 * @param event packet 2187 * @return local_cid 2188 * @note: btstack_type 2 2189 */ 2190 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_local_cid(const uint8_t * event){ 2191 return little_endian_read_16(event, 2); 2192 } 2193 /** 2194 * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 2195 * @param event packet 2196 * @return reconfigure_result 2197 * @note: btstack_type 2 2198 */ 2199 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){ 2200 return little_endian_read_16(event, 4); 2201 } 2202 2203 /** 2204 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED 2205 * @param event packet 2206 * @return status 2207 * @note: btstack_type 1 2208 */ 2209 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){ 2210 return event[2]; 2211 } 2212 /** 2213 * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED 2214 * @param event packet 2215 * @param Pointer to storage for bd_addr 2216 * @note: btstack_type B 2217 */ 2218 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 2219 reverse_bytes(&event[3], bd_addr, 6); 2220 } 2221 /** 2222 * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED 2223 * @param event packet 2224 * @return con_handle 2225 * @note: btstack_type 2 2226 */ 2227 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){ 2228 return little_endian_read_16(event, 9); 2229 } 2230 /** 2231 * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED 2232 * @param event packet 2233 * @return server_channel 2234 * @note: btstack_type 1 2235 */ 2236 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){ 2237 return event[11]; 2238 } 2239 /** 2240 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED 2241 * @param event packet 2242 * @return rfcomm_cid 2243 * @note: btstack_type 2 2244 */ 2245 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){ 2246 return little_endian_read_16(event, 12); 2247 } 2248 /** 2249 * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED 2250 * @param event packet 2251 * @return max_frame_size 2252 * @note: btstack_type 2 2253 */ 2254 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){ 2255 return little_endian_read_16(event, 14); 2256 } 2257 /** 2258 * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED 2259 * @param event packet 2260 * @return incoming 2261 * @note: btstack_type 1 2262 */ 2263 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){ 2264 return event[16]; 2265 } 2266 2267 /** 2268 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED 2269 * @param event packet 2270 * @return rfcomm_cid 2271 * @note: btstack_type 2 2272 */ 2273 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){ 2274 return little_endian_read_16(event, 2); 2275 } 2276 2277 /** 2278 * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION 2279 * @param event packet 2280 * @param Pointer to storage for bd_addr 2281 * @note: btstack_type B 2282 */ 2283 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 2284 reverse_bytes(&event[2], bd_addr, 6); 2285 } 2286 /** 2287 * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION 2288 * @param event packet 2289 * @return server_channel 2290 * @note: btstack_type 1 2291 */ 2292 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){ 2293 return event[8]; 2294 } 2295 /** 2296 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION 2297 * @param event packet 2298 * @return rfcomm_cid 2299 * @note: btstack_type 2 2300 */ 2301 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){ 2302 return little_endian_read_16(event, 9); 2303 } 2304 /** 2305 * @brief Get field con_handle from event RFCOMM_EVENT_INCOMING_CONNECTION 2306 * @param event packet 2307 * @return con_handle 2308 * @note: btstack_type H 2309 */ 2310 static inline hci_con_handle_t rfcomm_event_incoming_connection_get_con_handle(const uint8_t * event){ 2311 return little_endian_read_16(event, 11); 2312 } 2313 2314 /** 2315 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS 2316 * @param event packet 2317 * @return rfcomm_cid 2318 * @note: btstack_type 2 2319 */ 2320 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){ 2321 return little_endian_read_16(event, 2); 2322 } 2323 /** 2324 * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS 2325 * @param event packet 2326 * @return line_status 2327 * @note: btstack_type 1 2328 */ 2329 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){ 2330 return event[4]; 2331 } 2332 2333 /** 2334 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 2335 * @param event packet 2336 * @return rfcomm_cid 2337 * @note: btstack_type 2 2338 */ 2339 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){ 2340 return little_endian_read_16(event, 2); 2341 } 2342 /** 2343 * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 2344 * @param event packet 2345 * @return modem_status 2346 * @note: btstack_type 1 2347 */ 2348 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){ 2349 return event[4]; 2350 } 2351 2352 /** 2353 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW 2354 * @param event packet 2355 * @return rfcomm_cid 2356 * @note: btstack_type 2 2357 */ 2358 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){ 2359 return little_endian_read_16(event, 2); 2360 } 2361 2362 /** 2363 * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE 2364 * @param event packet 2365 * @return status 2366 * @note: btstack_type 1 2367 */ 2368 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){ 2369 return event[2]; 2370 } 2371 2372 /** 2373 * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE 2374 * @param event packet 2375 * @return rfcomm_channel 2376 * @note: btstack_type 1 2377 */ 2378 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){ 2379 return event[2]; 2380 } 2381 /** 2382 * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE 2383 * @param event packet 2384 * @return name 2385 * @note: btstack_type T 2386 */ 2387 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){ 2388 return (const char *) &event[3]; 2389 } 2390 2391 /** 2392 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2393 * @param event packet 2394 * @return record_id 2395 * @note: btstack_type 2 2396 */ 2397 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){ 2398 return little_endian_read_16(event, 2); 2399 } 2400 /** 2401 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2402 * @param event packet 2403 * @return attribute_id 2404 * @note: btstack_type 2 2405 */ 2406 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){ 2407 return little_endian_read_16(event, 4); 2408 } 2409 /** 2410 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2411 * @param event packet 2412 * @return attribute_length 2413 * @note: btstack_type 2 2414 */ 2415 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){ 2416 return little_endian_read_16(event, 6); 2417 } 2418 /** 2419 * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2420 * @param event packet 2421 * @return data_offset 2422 * @note: btstack_type 2 2423 */ 2424 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){ 2425 return little_endian_read_16(event, 8); 2426 } 2427 /** 2428 * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2429 * @param event packet 2430 * @return data 2431 * @note: btstack_type 1 2432 */ 2433 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){ 2434 return event[10]; 2435 } 2436 2437 /** 2438 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2439 * @param event packet 2440 * @return record_id 2441 * @note: btstack_type 2 2442 */ 2443 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){ 2444 return little_endian_read_16(event, 2); 2445 } 2446 /** 2447 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2448 * @param event packet 2449 * @return attribute_id 2450 * @note: btstack_type 2 2451 */ 2452 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){ 2453 return little_endian_read_16(event, 4); 2454 } 2455 /** 2456 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2457 * @param event packet 2458 * @return attribute_length 2459 * @note: btstack_type L 2460 */ 2461 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){ 2462 return little_endian_read_16(event, 6); 2463 } 2464 /** 2465 * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2466 * @param event packet 2467 * @return attribute_value 2468 * @note: btstack_type V 2469 */ 2470 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){ 2471 return &event[8]; 2472 } 2473 2474 /** 2475 * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2476 * @param event packet 2477 * @return total_count 2478 * @note: btstack_type 2 2479 */ 2480 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){ 2481 return little_endian_read_16(event, 2); 2482 } 2483 /** 2484 * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2485 * @param event packet 2486 * @return record_index 2487 * @note: btstack_type 2 2488 */ 2489 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){ 2490 return little_endian_read_16(event, 4); 2491 } 2492 /** 2493 * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2494 * @param event packet 2495 * @return record_handle 2496 * @note: btstack_type 4 2497 */ 2498 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){ 2499 return little_endian_read_32(event, 6); 2500 } 2501 2502 #ifdef ENABLE_BLE 2503 /** 2504 * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE 2505 * @param event packet 2506 * @return handle 2507 * @note: btstack_type H 2508 */ 2509 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){ 2510 return little_endian_read_16(event, 2); 2511 } 2512 /** 2513 * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE 2514 * @param event packet 2515 * @return att_status 2516 * @note: btstack_type 1 2517 */ 2518 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){ 2519 return event[4]; 2520 } 2521 #endif 2522 2523 #ifdef ENABLE_BLE 2524 /** 2525 * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT 2526 * @param event packet 2527 * @return handle 2528 * @note: btstack_type H 2529 */ 2530 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){ 2531 return little_endian_read_16(event, 2); 2532 } 2533 /** 2534 * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT 2535 * @param event packet 2536 * @param Pointer to storage for service 2537 * @note: btstack_type X 2538 */ 2539 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2540 gatt_client_deserialize_service(event, 4, service); 2541 } 2542 #endif 2543 2544 #ifdef ENABLE_BLE 2545 /** 2546 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2547 * @param event packet 2548 * @return handle 2549 * @note: btstack_type H 2550 */ 2551 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){ 2552 return little_endian_read_16(event, 2); 2553 } 2554 /** 2555 * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2556 * @param event packet 2557 * @param Pointer to storage for characteristic 2558 * @note: btstack_type Y 2559 */ 2560 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){ 2561 gatt_client_deserialize_characteristic(event, 4, characteristic); 2562 } 2563 #endif 2564 2565 #ifdef ENABLE_BLE 2566 /** 2567 * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2568 * @param event packet 2569 * @return handle 2570 * @note: btstack_type H 2571 */ 2572 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){ 2573 return little_endian_read_16(event, 2); 2574 } 2575 /** 2576 * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2577 * @param event packet 2578 * @return include_handle 2579 * @note: btstack_type 2 2580 */ 2581 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){ 2582 return little_endian_read_16(event, 4); 2583 } 2584 /** 2585 * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2586 * @param event packet 2587 * @param Pointer to storage for service 2588 * @note: btstack_type X 2589 */ 2590 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2591 gatt_client_deserialize_service(event, 6, service); 2592 } 2593 #endif 2594 2595 #ifdef ENABLE_BLE 2596 /** 2597 * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2598 * @param event packet 2599 * @return handle 2600 * @note: btstack_type H 2601 */ 2602 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){ 2603 return little_endian_read_16(event, 2); 2604 } 2605 /** 2606 * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2607 * @param event packet 2608 * @param Pointer to storage for characteristic_descriptor 2609 * @note: btstack_type Z 2610 */ 2611 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){ 2612 gatt_client_deserialize_characteristic_descriptor(event, 4, characteristic_descriptor); 2613 } 2614 #endif 2615 2616 #ifdef ENABLE_BLE 2617 /** 2618 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2619 * @param event packet 2620 * @return handle 2621 * @note: btstack_type H 2622 */ 2623 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){ 2624 return little_endian_read_16(event, 2); 2625 } 2626 /** 2627 * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2628 * @param event packet 2629 * @return value_handle 2630 * @note: btstack_type 2 2631 */ 2632 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2633 return little_endian_read_16(event, 4); 2634 } 2635 /** 2636 * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2637 * @param event packet 2638 * @return value_length 2639 * @note: btstack_type L 2640 */ 2641 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2642 return little_endian_read_16(event, 6); 2643 } 2644 /** 2645 * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2646 * @param event packet 2647 * @return value 2648 * @note: btstack_type V 2649 */ 2650 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){ 2651 return &event[8]; 2652 } 2653 #endif 2654 2655 #ifdef ENABLE_BLE 2656 /** 2657 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2658 * @param event packet 2659 * @return handle 2660 * @note: btstack_type H 2661 */ 2662 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){ 2663 return little_endian_read_16(event, 2); 2664 } 2665 /** 2666 * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2667 * @param event packet 2668 * @return value_handle 2669 * @note: btstack_type 2 2670 */ 2671 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2672 return little_endian_read_16(event, 4); 2673 } 2674 /** 2675 * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2676 * @param event packet 2677 * @return value_offset 2678 * @note: btstack_type 2 2679 */ 2680 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){ 2681 return little_endian_read_16(event, 6); 2682 } 2683 /** 2684 * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2685 * @param event packet 2686 * @return value_length 2687 * @note: btstack_type L 2688 */ 2689 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2690 return little_endian_read_16(event, 8); 2691 } 2692 /** 2693 * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2694 * @param event packet 2695 * @return value 2696 * @note: btstack_type V 2697 */ 2698 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){ 2699 return &event[10]; 2700 } 2701 #endif 2702 2703 #ifdef ENABLE_BLE 2704 /** 2705 * @brief Get field handle from event GATT_EVENT_NOTIFICATION 2706 * @param event packet 2707 * @return handle 2708 * @note: btstack_type H 2709 */ 2710 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){ 2711 return little_endian_read_16(event, 2); 2712 } 2713 /** 2714 * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION 2715 * @param event packet 2716 * @return value_handle 2717 * @note: btstack_type 2 2718 */ 2719 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){ 2720 return little_endian_read_16(event, 4); 2721 } 2722 /** 2723 * @brief Get field value_length from event GATT_EVENT_NOTIFICATION 2724 * @param event packet 2725 * @return value_length 2726 * @note: btstack_type L 2727 */ 2728 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){ 2729 return little_endian_read_16(event, 6); 2730 } 2731 /** 2732 * @brief Get field value from event GATT_EVENT_NOTIFICATION 2733 * @param event packet 2734 * @return value 2735 * @note: btstack_type V 2736 */ 2737 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){ 2738 return &event[8]; 2739 } 2740 #endif 2741 2742 #ifdef ENABLE_BLE 2743 /** 2744 * @brief Get field handle from event GATT_EVENT_INDICATION 2745 * @param event packet 2746 * @return handle 2747 * @note: btstack_type H 2748 */ 2749 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){ 2750 return little_endian_read_16(event, 2); 2751 } 2752 /** 2753 * @brief Get field value_handle from event GATT_EVENT_INDICATION 2754 * @param event packet 2755 * @return value_handle 2756 * @note: btstack_type 2 2757 */ 2758 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){ 2759 return little_endian_read_16(event, 4); 2760 } 2761 /** 2762 * @brief Get field value_length from event GATT_EVENT_INDICATION 2763 * @param event packet 2764 * @return value_length 2765 * @note: btstack_type L 2766 */ 2767 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){ 2768 return little_endian_read_16(event, 6); 2769 } 2770 /** 2771 * @brief Get field value from event GATT_EVENT_INDICATION 2772 * @param event packet 2773 * @return value 2774 * @note: btstack_type V 2775 */ 2776 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){ 2777 return &event[8]; 2778 } 2779 #endif 2780 2781 #ifdef ENABLE_BLE 2782 /** 2783 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2784 * @param event packet 2785 * @return handle 2786 * @note: btstack_type H 2787 */ 2788 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 2789 return little_endian_read_16(event, 2); 2790 } 2791 /** 2792 * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2793 * @param event packet 2794 * @return descriptor_handle 2795 * @note: btstack_type 2 2796 */ 2797 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){ 2798 return little_endian_read_16(event, 4); 2799 } 2800 /** 2801 * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2802 * @param event packet 2803 * @return descriptor_length 2804 * @note: btstack_type L 2805 */ 2806 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 2807 return little_endian_read_16(event, 6); 2808 } 2809 /** 2810 * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2811 * @param event packet 2812 * @return descriptor 2813 * @note: btstack_type V 2814 */ 2815 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 2816 return &event[8]; 2817 } 2818 #endif 2819 2820 #ifdef ENABLE_BLE 2821 /** 2822 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2823 * @param event packet 2824 * @return handle 2825 * @note: btstack_type H 2826 */ 2827 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 2828 return little_endian_read_16(event, 2); 2829 } 2830 /** 2831 * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2832 * @param event packet 2833 * @return descriptor_offset 2834 * @note: btstack_type 2 2835 */ 2836 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){ 2837 return little_endian_read_16(event, 4); 2838 } 2839 /** 2840 * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2841 * @param event packet 2842 * @return descriptor_length 2843 * @note: btstack_type L 2844 */ 2845 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 2846 return little_endian_read_16(event, 6); 2847 } 2848 /** 2849 * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2850 * @param event packet 2851 * @return descriptor 2852 * @note: btstack_type V 2853 */ 2854 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 2855 return &event[8]; 2856 } 2857 #endif 2858 2859 #ifdef ENABLE_BLE 2860 /** 2861 * @brief Get field handle from event GATT_EVENT_MTU 2862 * @param event packet 2863 * @return handle 2864 * @note: btstack_type H 2865 */ 2866 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){ 2867 return little_endian_read_16(event, 2); 2868 } 2869 /** 2870 * @brief Get field MTU from event GATT_EVENT_MTU 2871 * @param event packet 2872 * @return MTU 2873 * @note: btstack_type 2 2874 */ 2875 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){ 2876 return little_endian_read_16(event, 4); 2877 } 2878 #endif 2879 2880 #ifdef ENABLE_BLE 2881 /** 2882 * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 2883 * @param event packet 2884 * @return handle 2885 * @note: btstack_type H 2886 */ 2887 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){ 2888 return little_endian_read_16(event, 2); 2889 } 2890 #endif 2891 2892 /** 2893 * @brief Get field address_type from event ATT_EVENT_CONNECTED 2894 * @param event packet 2895 * @return address_type 2896 * @note: btstack_type 1 2897 */ 2898 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){ 2899 return event[2]; 2900 } 2901 /** 2902 * @brief Get field address from event ATT_EVENT_CONNECTED 2903 * @param event packet 2904 * @param Pointer to storage for address 2905 * @note: btstack_type B 2906 */ 2907 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){ 2908 reverse_bytes(&event[3], address, 6); 2909 } 2910 /** 2911 * @brief Get field handle from event ATT_EVENT_CONNECTED 2912 * @param event packet 2913 * @return handle 2914 * @note: btstack_type H 2915 */ 2916 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){ 2917 return little_endian_read_16(event, 9); 2918 } 2919 2920 /** 2921 * @brief Get field handle from event ATT_EVENT_DISCONNECTED 2922 * @param event packet 2923 * @return handle 2924 * @note: btstack_type H 2925 */ 2926 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){ 2927 return little_endian_read_16(event, 2); 2928 } 2929 2930 /** 2931 * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 2932 * @param event packet 2933 * @return handle 2934 * @note: btstack_type H 2935 */ 2936 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){ 2937 return little_endian_read_16(event, 2); 2938 } 2939 /** 2940 * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 2941 * @param event packet 2942 * @return MTU 2943 * @note: btstack_type 2 2944 */ 2945 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){ 2946 return little_endian_read_16(event, 4); 2947 } 2948 2949 /** 2950 * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2951 * @param event packet 2952 * @return status 2953 * @note: btstack_type 1 2954 */ 2955 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){ 2956 return event[2]; 2957 } 2958 /** 2959 * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2960 * @param event packet 2961 * @return conn_handle 2962 * @note: btstack_type H 2963 */ 2964 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){ 2965 return little_endian_read_16(event, 3); 2966 } 2967 /** 2968 * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2969 * @param event packet 2970 * @return attribute_handle 2971 * @note: btstack_type 2 2972 */ 2973 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){ 2974 return little_endian_read_16(event, 5); 2975 } 2976 2977 2978 /** 2979 * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED 2980 * @param event packet 2981 * @return status 2982 * @note: btstack_type 1 2983 */ 2984 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){ 2985 return event[2]; 2986 } 2987 /** 2988 * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED 2989 * @param event packet 2990 * @return service_uuid 2991 * @note: btstack_type 2 2992 */ 2993 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){ 2994 return little_endian_read_16(event, 3); 2995 } 2996 2997 /** 2998 * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED 2999 * @param event packet 3000 * @return status 3001 * @note: btstack_type 1 3002 */ 3003 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){ 3004 return event[2]; 3005 } 3006 /** 3007 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED 3008 * @param event packet 3009 * @return bnep_cid 3010 * @note: btstack_type 2 3011 */ 3012 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){ 3013 return little_endian_read_16(event, 3); 3014 } 3015 /** 3016 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED 3017 * @param event packet 3018 * @return source_uuid 3019 * @note: btstack_type 2 3020 */ 3021 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){ 3022 return little_endian_read_16(event, 5); 3023 } 3024 /** 3025 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED 3026 * @param event packet 3027 * @return destination_uuid 3028 * @note: btstack_type 2 3029 */ 3030 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){ 3031 return little_endian_read_16(event, 7); 3032 } 3033 /** 3034 * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED 3035 * @param event packet 3036 * @return mtu 3037 * @note: btstack_type 2 3038 */ 3039 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){ 3040 return little_endian_read_16(event, 9); 3041 } 3042 /** 3043 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED 3044 * @param event packet 3045 * @param Pointer to storage for remote_address 3046 * @note: btstack_type B 3047 */ 3048 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3049 reverse_bytes(&event[11], remote_address, 6); 3050 } 3051 /** 3052 * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED 3053 * @param event packet 3054 * @return con_handle 3055 * @note: btstack_type H 3056 */ 3057 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){ 3058 return little_endian_read_16(event, 17); 3059 } 3060 3061 /** 3062 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED 3063 * @param event packet 3064 * @return bnep_cid 3065 * @note: btstack_type 2 3066 */ 3067 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){ 3068 return little_endian_read_16(event, 2); 3069 } 3070 /** 3071 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED 3072 * @param event packet 3073 * @return source_uuid 3074 * @note: btstack_type 2 3075 */ 3076 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){ 3077 return little_endian_read_16(event, 4); 3078 } 3079 /** 3080 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED 3081 * @param event packet 3082 * @return destination_uuid 3083 * @note: btstack_type 2 3084 */ 3085 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){ 3086 return little_endian_read_16(event, 6); 3087 } 3088 /** 3089 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED 3090 * @param event packet 3091 * @param Pointer to storage for remote_address 3092 * @note: btstack_type B 3093 */ 3094 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3095 reverse_bytes(&event[8], remote_address, 6); 3096 } 3097 3098 /** 3099 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT 3100 * @param event packet 3101 * @return bnep_cid 3102 * @note: btstack_type 2 3103 */ 3104 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){ 3105 return little_endian_read_16(event, 2); 3106 } 3107 /** 3108 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 3109 * @param event packet 3110 * @return source_uuid 3111 * @note: btstack_type 2 3112 */ 3113 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){ 3114 return little_endian_read_16(event, 4); 3115 } 3116 /** 3117 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 3118 * @param event packet 3119 * @return destination_uuid 3120 * @note: btstack_type 2 3121 */ 3122 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){ 3123 return little_endian_read_16(event, 6); 3124 } 3125 /** 3126 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT 3127 * @param event packet 3128 * @param Pointer to storage for remote_address 3129 * @note: btstack_type B 3130 */ 3131 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3132 reverse_bytes(&event[8], remote_address, 6); 3133 } 3134 /** 3135 * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT 3136 * @param event packet 3137 * @return channel_state 3138 * @note: btstack_type 1 3139 */ 3140 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){ 3141 return event[14]; 3142 } 3143 3144 /** 3145 * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW 3146 * @param event packet 3147 * @return bnep_cid 3148 * @note: btstack_type 2 3149 */ 3150 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){ 3151 return little_endian_read_16(event, 2); 3152 } 3153 /** 3154 * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW 3155 * @param event packet 3156 * @return source_uuid 3157 * @note: btstack_type 2 3158 */ 3159 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){ 3160 return little_endian_read_16(event, 4); 3161 } 3162 /** 3163 * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW 3164 * @param event packet 3165 * @return destination_uuid 3166 * @note: btstack_type 2 3167 */ 3168 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){ 3169 return little_endian_read_16(event, 6); 3170 } 3171 /** 3172 * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW 3173 * @param event packet 3174 * @param Pointer to storage for remote_address 3175 * @note: btstack_type B 3176 */ 3177 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3178 reverse_bytes(&event[8], remote_address, 6); 3179 } 3180 3181 #ifdef ENABLE_BLE 3182 /** 3183 * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST 3184 * @param event packet 3185 * @return handle 3186 * @note: btstack_type H 3187 */ 3188 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){ 3189 return little_endian_read_16(event, 2); 3190 } 3191 /** 3192 * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST 3193 * @param event packet 3194 * @return addr_type 3195 * @note: btstack_type 1 3196 */ 3197 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){ 3198 return event[4]; 3199 } 3200 /** 3201 * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST 3202 * @param event packet 3203 * @param Pointer to storage for address 3204 * @note: btstack_type B 3205 */ 3206 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){ 3207 reverse_bytes(&event[5], address, 6); 3208 } 3209 /** 3210 * @brief Get field secure_connection from event SM_EVENT_JUST_WORKS_REQUEST 3211 * @param event packet 3212 * @return secure_connection 3213 * @note: btstack_type 1 3214 */ 3215 static inline uint8_t sm_event_just_works_request_get_secure_connection(const uint8_t * event){ 3216 return event[11]; 3217 } 3218 #endif 3219 3220 #ifdef ENABLE_BLE 3221 /** 3222 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3223 * @param event packet 3224 * @return handle 3225 * @note: btstack_type H 3226 */ 3227 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){ 3228 return little_endian_read_16(event, 2); 3229 } 3230 /** 3231 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3232 * @param event packet 3233 * @return addr_type 3234 * @note: btstack_type 1 3235 */ 3236 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){ 3237 return event[4]; 3238 } 3239 /** 3240 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3241 * @param event packet 3242 * @param Pointer to storage for address 3243 * @note: btstack_type B 3244 */ 3245 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){ 3246 reverse_bytes(&event[5], address, 6); 3247 } 3248 /** 3249 * @brief Get field secure_connection from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3250 * @param event packet 3251 * @return secure_connection 3252 * @note: btstack_type 1 3253 */ 3254 static inline uint8_t sm_event_passkey_display_number_get_secure_connection(const uint8_t * event){ 3255 return event[11]; 3256 } 3257 /** 3258 * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3259 * @param event packet 3260 * @return passkey 3261 * @note: btstack_type 4 3262 */ 3263 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){ 3264 return little_endian_read_32(event, 12); 3265 } 3266 #endif 3267 3268 #ifdef ENABLE_BLE 3269 /** 3270 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3271 * @param event packet 3272 * @return handle 3273 * @note: btstack_type H 3274 */ 3275 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){ 3276 return little_endian_read_16(event, 2); 3277 } 3278 /** 3279 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3280 * @param event packet 3281 * @return addr_type 3282 * @note: btstack_type 1 3283 */ 3284 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){ 3285 return event[4]; 3286 } 3287 /** 3288 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3289 * @param event packet 3290 * @param Pointer to storage for address 3291 * @note: btstack_type B 3292 */ 3293 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){ 3294 reverse_bytes(&event[5], address, 6); 3295 } 3296 #endif 3297 3298 #ifdef ENABLE_BLE 3299 /** 3300 * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER 3301 * @param event packet 3302 * @return handle 3303 * @note: btstack_type H 3304 */ 3305 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){ 3306 return little_endian_read_16(event, 2); 3307 } 3308 /** 3309 * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER 3310 * @param event packet 3311 * @return addr_type 3312 * @note: btstack_type 1 3313 */ 3314 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){ 3315 return event[4]; 3316 } 3317 /** 3318 * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER 3319 * @param event packet 3320 * @param Pointer to storage for address 3321 * @note: btstack_type B 3322 */ 3323 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){ 3324 reverse_bytes(&event[5], address, 6); 3325 } 3326 /** 3327 * @brief Get field secure_connection from event SM_EVENT_PASSKEY_INPUT_NUMBER 3328 * @param event packet 3329 * @return secure_connection 3330 * @note: btstack_type 1 3331 */ 3332 static inline uint8_t sm_event_passkey_input_number_get_secure_connection(const uint8_t * event){ 3333 return event[11]; 3334 } 3335 #endif 3336 3337 #ifdef ENABLE_BLE 3338 /** 3339 * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3340 * @param event packet 3341 * @return handle 3342 * @note: btstack_type H 3343 */ 3344 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){ 3345 return little_endian_read_16(event, 2); 3346 } 3347 /** 3348 * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3349 * @param event packet 3350 * @return addr_type 3351 * @note: btstack_type 1 3352 */ 3353 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){ 3354 return event[4]; 3355 } 3356 /** 3357 * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3358 * @param event packet 3359 * @param Pointer to storage for address 3360 * @note: btstack_type B 3361 */ 3362 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){ 3363 reverse_bytes(&event[5], address, 6); 3364 } 3365 /** 3366 * @brief Get field secure_connection from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3367 * @param event packet 3368 * @return secure_connection 3369 * @note: btstack_type 1 3370 */ 3371 static inline uint8_t sm_event_numeric_comparison_request_get_secure_connection(const uint8_t * event){ 3372 return event[11]; 3373 } 3374 /** 3375 * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3376 * @param event packet 3377 * @return passkey 3378 * @note: btstack_type 4 3379 */ 3380 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){ 3381 return little_endian_read_32(event, 12); 3382 } 3383 #endif 3384 3385 #ifdef ENABLE_BLE 3386 /** 3387 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3388 * @param event packet 3389 * @return handle 3390 * @note: btstack_type H 3391 */ 3392 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){ 3393 return little_endian_read_16(event, 2); 3394 } 3395 /** 3396 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3397 * @param event packet 3398 * @return addr_type 3399 * @note: btstack_type 1 3400 */ 3401 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){ 3402 return event[4]; 3403 } 3404 /** 3405 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3406 * @param event packet 3407 * @param Pointer to storage for address 3408 * @note: btstack_type B 3409 */ 3410 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){ 3411 reverse_bytes(&event[5], address, 6); 3412 } 3413 #endif 3414 3415 #ifdef ENABLE_BLE 3416 /** 3417 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3418 * @param event packet 3419 * @return handle 3420 * @note: btstack_type H 3421 */ 3422 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){ 3423 return little_endian_read_16(event, 2); 3424 } 3425 /** 3426 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3427 * @param event packet 3428 * @return addr_type 3429 * @note: btstack_type 1 3430 */ 3431 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){ 3432 return event[4]; 3433 } 3434 /** 3435 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3436 * @param event packet 3437 * @param Pointer to storage for address 3438 * @note: btstack_type B 3439 */ 3440 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){ 3441 reverse_bytes(&event[5], address, 6); 3442 } 3443 #endif 3444 3445 #ifdef ENABLE_BLE 3446 /** 3447 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3448 * @param event packet 3449 * @return handle 3450 * @note: btstack_type H 3451 */ 3452 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){ 3453 return little_endian_read_16(event, 2); 3454 } 3455 /** 3456 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3457 * @param event packet 3458 * @return addr_type 3459 * @note: btstack_type 1 3460 */ 3461 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){ 3462 return event[4]; 3463 } 3464 /** 3465 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3466 * @param event packet 3467 * @param Pointer to storage for address 3468 * @note: btstack_type B 3469 */ 3470 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){ 3471 reverse_bytes(&event[5], address, 6); 3472 } 3473 /** 3474 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3475 * @param event packet 3476 * @return identity_addr_type 3477 * @note: btstack_type 1 3478 */ 3479 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){ 3480 return event[11]; 3481 } 3482 /** 3483 * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3484 * @param event packet 3485 * @param Pointer to storage for identity_address 3486 * @note: btstack_type B 3487 */ 3488 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 3489 reverse_bytes(&event[12], identity_address, 6); 3490 } 3491 /** 3492 * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3493 * @param event packet 3494 * @return index 3495 * @note: btstack_type 2 3496 */ 3497 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){ 3498 return little_endian_read_16(event, 18); 3499 } 3500 #endif 3501 3502 #ifdef ENABLE_BLE 3503 /** 3504 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST 3505 * @param event packet 3506 * @return handle 3507 * @note: btstack_type H 3508 */ 3509 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){ 3510 return little_endian_read_16(event, 2); 3511 } 3512 /** 3513 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST 3514 * @param event packet 3515 * @return addr_type 3516 * @note: btstack_type 1 3517 */ 3518 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){ 3519 return event[4]; 3520 } 3521 /** 3522 * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST 3523 * @param event packet 3524 * @param Pointer to storage for address 3525 * @note: btstack_type B 3526 */ 3527 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){ 3528 reverse_bytes(&event[5], address, 6); 3529 } 3530 #endif 3531 3532 #ifdef ENABLE_BLE 3533 /** 3534 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT 3535 * @param event packet 3536 * @return handle 3537 * @note: btstack_type H 3538 */ 3539 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){ 3540 return little_endian_read_16(event, 2); 3541 } 3542 /** 3543 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT 3544 * @param event packet 3545 * @return addr_type 3546 * @note: btstack_type 1 3547 */ 3548 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){ 3549 return event[4]; 3550 } 3551 /** 3552 * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT 3553 * @param event packet 3554 * @param Pointer to storage for address 3555 * @note: btstack_type B 3556 */ 3557 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){ 3558 reverse_bytes(&event[5], address, 6); 3559 } 3560 /** 3561 * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT 3562 * @param event packet 3563 * @return authorization_result 3564 * @note: btstack_type 1 3565 */ 3566 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){ 3567 return event[11]; 3568 } 3569 #endif 3570 3571 #ifdef ENABLE_BLE 3572 /** 3573 * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION 3574 * @param event packet 3575 * @return handle 3576 * @note: btstack_type H 3577 */ 3578 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){ 3579 return little_endian_read_16(event, 2); 3580 } 3581 /** 3582 * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION 3583 * @param event packet 3584 * @return action 3585 * @note: btstack_type 1 3586 */ 3587 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){ 3588 return event[4]; 3589 } 3590 #endif 3591 3592 #ifdef ENABLE_BLE 3593 /** 3594 * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED 3595 * @param event packet 3596 * @return handle 3597 * @note: btstack_type H 3598 */ 3599 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){ 3600 return little_endian_read_16(event, 2); 3601 } 3602 /** 3603 * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED 3604 * @param event packet 3605 * @return addr_type 3606 * @note: btstack_type 1 3607 */ 3608 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){ 3609 return event[4]; 3610 } 3611 /** 3612 * @brief Get field address from event SM_EVENT_IDENTITY_CREATED 3613 * @param event packet 3614 * @param Pointer to storage for address 3615 * @note: btstack_type B 3616 */ 3617 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){ 3618 reverse_bytes(&event[5], address, 6); 3619 } 3620 /** 3621 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED 3622 * @param event packet 3623 * @return identity_addr_type 3624 * @note: btstack_type 1 3625 */ 3626 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){ 3627 return event[11]; 3628 } 3629 /** 3630 * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED 3631 * @param event packet 3632 * @param Pointer to storage for identity_address 3633 * @note: btstack_type B 3634 */ 3635 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 3636 reverse_bytes(&event[12], identity_address, 6); 3637 } 3638 /** 3639 * @brief Get field index from event SM_EVENT_IDENTITY_CREATED 3640 * @param event packet 3641 * @return index 3642 * @note: btstack_type 2 3643 */ 3644 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){ 3645 return little_endian_read_16(event, 18); 3646 } 3647 #endif 3648 3649 #ifdef ENABLE_BLE 3650 /** 3651 * @brief Get field handle from event SM_EVENT_PAIRING_STARTED 3652 * @param event packet 3653 * @return handle 3654 * @note: btstack_type H 3655 */ 3656 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){ 3657 return little_endian_read_16(event, 2); 3658 } 3659 /** 3660 * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED 3661 * @param event packet 3662 * @return addr_type 3663 * @note: btstack_type 1 3664 */ 3665 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){ 3666 return event[4]; 3667 } 3668 /** 3669 * @brief Get field address from event SM_EVENT_PAIRING_STARTED 3670 * @param event packet 3671 * @param Pointer to storage for address 3672 * @note: btstack_type B 3673 */ 3674 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){ 3675 reverse_bytes(&event[5], address, 6); 3676 } 3677 #endif 3678 3679 #ifdef ENABLE_BLE 3680 /** 3681 * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE 3682 * @param event packet 3683 * @return handle 3684 * @note: btstack_type H 3685 */ 3686 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){ 3687 return little_endian_read_16(event, 2); 3688 } 3689 /** 3690 * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE 3691 * @param event packet 3692 * @return addr_type 3693 * @note: btstack_type 1 3694 */ 3695 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){ 3696 return event[4]; 3697 } 3698 /** 3699 * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE 3700 * @param event packet 3701 * @param Pointer to storage for address 3702 * @note: btstack_type B 3703 */ 3704 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){ 3705 reverse_bytes(&event[5], address, 6); 3706 } 3707 /** 3708 * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE 3709 * @param event packet 3710 * @return status 3711 * @note: btstack_type 1 3712 */ 3713 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){ 3714 return event[11]; 3715 } 3716 /** 3717 * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE 3718 * @param event packet 3719 * @return reason 3720 * @note: btstack_type 1 3721 */ 3722 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){ 3723 return event[12]; 3724 } 3725 #endif 3726 3727 #ifdef ENABLE_BLE 3728 /** 3729 * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED 3730 * @param event packet 3731 * @return handle 3732 * @note: btstack_type H 3733 */ 3734 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){ 3735 return little_endian_read_16(event, 2); 3736 } 3737 /** 3738 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED 3739 * @param event packet 3740 * @return addr_type 3741 * @note: btstack_type 1 3742 */ 3743 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){ 3744 return event[4]; 3745 } 3746 /** 3747 * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED 3748 * @param event packet 3749 * @param Pointer to storage for address 3750 * @note: btstack_type B 3751 */ 3752 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){ 3753 reverse_bytes(&event[5], address, 6); 3754 } 3755 #endif 3756 3757 #ifdef ENABLE_BLE 3758 /** 3759 * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE 3760 * @param event packet 3761 * @return handle 3762 * @note: btstack_type H 3763 */ 3764 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){ 3765 return little_endian_read_16(event, 2); 3766 } 3767 /** 3768 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE 3769 * @param event packet 3770 * @return addr_type 3771 * @note: btstack_type 1 3772 */ 3773 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){ 3774 return event[4]; 3775 } 3776 /** 3777 * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE 3778 * @param event packet 3779 * @param Pointer to storage for address 3780 * @note: btstack_type B 3781 */ 3782 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){ 3783 reverse_bytes(&event[5], address, 6); 3784 } 3785 /** 3786 * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE 3787 * @param event packet 3788 * @return status 3789 * @note: btstack_type 1 3790 */ 3791 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){ 3792 return event[11]; 3793 } 3794 #endif 3795 3796 /** 3797 * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL 3798 * @param event packet 3799 * @return handle 3800 * @note: btstack_type H 3801 */ 3802 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){ 3803 return little_endian_read_16(event, 2); 3804 } 3805 /** 3806 * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL 3807 * @param event packet 3808 * @return security_level 3809 * @note: btstack_type 1 3810 */ 3811 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){ 3812 return event[4]; 3813 } 3814 3815 /** 3816 * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 3817 * @param event packet 3818 * @return status 3819 * @note: btstack_type 1 3820 */ 3821 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){ 3822 return event[2]; 3823 } 3824 /** 3825 * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 3826 * @param event packet 3827 * @param Pointer to storage for address 3828 * @note: btstack_type B 3829 */ 3830 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){ 3831 reverse_bytes(&event[3], address, 6); 3832 } 3833 3834 /** 3835 * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT 3836 * @param event packet 3837 * @return advertising_event_type 3838 * @note: btstack_type 1 3839 */ 3840 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){ 3841 return event[2]; 3842 } 3843 /** 3844 * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT 3845 * @param event packet 3846 * @return address_type 3847 * @note: btstack_type 1 3848 */ 3849 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){ 3850 return event[3]; 3851 } 3852 /** 3853 * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT 3854 * @param event packet 3855 * @param Pointer to storage for address 3856 * @note: btstack_type B 3857 */ 3858 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 3859 reverse_bytes(&event[4], address, 6); 3860 } 3861 /** 3862 * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT 3863 * @param event packet 3864 * @return rssi 3865 * @note: btstack_type 1 3866 */ 3867 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){ 3868 return event[10]; 3869 } 3870 /** 3871 * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT 3872 * @param event packet 3873 * @return data_length 3874 * @note: btstack_type J 3875 */ 3876 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){ 3877 return event[11]; 3878 } 3879 /** 3880 * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT 3881 * @param event packet 3882 * @return data 3883 * @note: btstack_type V 3884 */ 3885 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){ 3886 return &event[12]; 3887 } 3888 3889 /** 3890 * @brief Get field advertising_event_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3891 * @param event packet 3892 * @return advertising_event_type 3893 * @note: btstack_type 2 3894 */ 3895 static inline uint16_t gap_event_extended_advertising_report_get_advertising_event_type(const uint8_t * event){ 3896 return little_endian_read_16(event, 2); 3897 } 3898 /** 3899 * @brief Get field address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3900 * @param event packet 3901 * @return address_type 3902 * @note: btstack_type 1 3903 */ 3904 static inline uint8_t gap_event_extended_advertising_report_get_address_type(const uint8_t * event){ 3905 return event[4]; 3906 } 3907 /** 3908 * @brief Get field address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3909 * @param event packet 3910 * @param Pointer to storage for address 3911 * @note: btstack_type B 3912 */ 3913 static inline void gap_event_extended_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 3914 reverse_bytes(&event[5], address, 6); 3915 } 3916 /** 3917 * @brief Get field primary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3918 * @param event packet 3919 * @return primary_phy 3920 * @note: btstack_type 1 3921 */ 3922 static inline uint8_t gap_event_extended_advertising_report_get_primary_phy(const uint8_t * event){ 3923 return event[11]; 3924 } 3925 /** 3926 * @brief Get field secondary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3927 * @param event packet 3928 * @return secondary_phy 3929 * @note: btstack_type 1 3930 */ 3931 static inline uint8_t gap_event_extended_advertising_report_get_secondary_phy(const uint8_t * event){ 3932 return event[12]; 3933 } 3934 /** 3935 * @brief Get field advertising_sid from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3936 * @param event packet 3937 * @return advertising_sid 3938 * @note: btstack_type 1 3939 */ 3940 static inline uint8_t gap_event_extended_advertising_report_get_advertising_sid(const uint8_t * event){ 3941 return event[13]; 3942 } 3943 /** 3944 * @brief Get field tx_power from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3945 * @param event packet 3946 * @return tx_power 3947 * @note: btstack_type 1 3948 */ 3949 static inline uint8_t gap_event_extended_advertising_report_get_tx_power(const uint8_t * event){ 3950 return event[14]; 3951 } 3952 /** 3953 * @brief Get field rssi from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3954 * @param event packet 3955 * @return rssi 3956 * @note: btstack_type 1 3957 */ 3958 static inline uint8_t gap_event_extended_advertising_report_get_rssi(const uint8_t * event){ 3959 return event[15]; 3960 } 3961 /** 3962 * @brief Get field periodic_advertising_interval from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3963 * @param event packet 3964 * @return periodic_advertising_interval 3965 * @note: btstack_type 2 3966 */ 3967 static inline uint16_t gap_event_extended_advertising_report_get_periodic_advertising_interval(const uint8_t * event){ 3968 return little_endian_read_16(event, 16); 3969 } 3970 /** 3971 * @brief Get field direct_address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3972 * @param event packet 3973 * @return direct_address_type 3974 * @note: btstack_type 1 3975 */ 3976 static inline uint8_t gap_event_extended_advertising_report_get_direct_address_type(const uint8_t * event){ 3977 return event[18]; 3978 } 3979 /** 3980 * @brief Get field direct_address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3981 * @param event packet 3982 * @param Pointer to storage for direct_address 3983 * @note: btstack_type B 3984 */ 3985 static inline void gap_event_extended_advertising_report_get_direct_address(const uint8_t * event, bd_addr_t direct_address){ 3986 reverse_bytes(&event[19], direct_address, 6); 3987 } 3988 /** 3989 * @brief Get field data_length from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3990 * @param event packet 3991 * @return data_length 3992 * @note: btstack_type J 3993 */ 3994 static inline uint8_t gap_event_extended_advertising_report_get_data_length(const uint8_t * event){ 3995 return event[25]; 3996 } 3997 /** 3998 * @brief Get field data from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3999 * @param event packet 4000 * @return data 4001 * @note: btstack_type V 4002 */ 4003 static inline const uint8_t * gap_event_extended_advertising_report_get_data(const uint8_t * event){ 4004 return &event[26]; 4005 } 4006 4007 /** 4008 * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT 4009 * @param event packet 4010 * @param Pointer to storage for bd_addr 4011 * @note: btstack_type B 4012 */ 4013 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4014 reverse_bytes(&event[2], bd_addr, 6); 4015 } 4016 /** 4017 * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT 4018 * @param event packet 4019 * @return page_scan_repetition_mode 4020 * @note: btstack_type 1 4021 */ 4022 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 4023 return event[8]; 4024 } 4025 /** 4026 * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT 4027 * @param event packet 4028 * @return class_of_device 4029 * @note: btstack_type 3 4030 */ 4031 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){ 4032 return little_endian_read_24(event, 9); 4033 } 4034 /** 4035 * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT 4036 * @param event packet 4037 * @return clock_offset 4038 * @note: btstack_type 2 4039 */ 4040 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){ 4041 return little_endian_read_16(event, 12); 4042 } 4043 /** 4044 * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT 4045 * @param event packet 4046 * @return rssi_available 4047 * @note: btstack_type 1 4048 */ 4049 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){ 4050 return event[14]; 4051 } 4052 /** 4053 * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT 4054 * @param event packet 4055 * @return rssi 4056 * @note: btstack_type 1 4057 */ 4058 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){ 4059 return event[15]; 4060 } 4061 /** 4062 * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT 4063 * @param event packet 4064 * @return device_id_available 4065 * @note: btstack_type 1 4066 */ 4067 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){ 4068 return event[16]; 4069 } 4070 /** 4071 * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT 4072 * @param event packet 4073 * @return device_id_vendor_id_source 4074 * @note: btstack_type 2 4075 */ 4076 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){ 4077 return little_endian_read_16(event, 17); 4078 } 4079 /** 4080 * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT 4081 * @param event packet 4082 * @return device_id_vendor_id 4083 * @note: btstack_type 2 4084 */ 4085 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){ 4086 return little_endian_read_16(event, 19); 4087 } 4088 /** 4089 * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT 4090 * @param event packet 4091 * @return device_id_product_id 4092 * @note: btstack_type 2 4093 */ 4094 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){ 4095 return little_endian_read_16(event, 21); 4096 } 4097 /** 4098 * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT 4099 * @param event packet 4100 * @return device_id_version 4101 * @note: btstack_type 2 4102 */ 4103 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){ 4104 return little_endian_read_16(event, 23); 4105 } 4106 /** 4107 * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT 4108 * @param event packet 4109 * @return name_available 4110 * @note: btstack_type 1 4111 */ 4112 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){ 4113 return event[25]; 4114 } 4115 /** 4116 * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT 4117 * @param event packet 4118 * @return name_len 4119 * @note: btstack_type J 4120 */ 4121 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){ 4122 return event[26]; 4123 } 4124 /** 4125 * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT 4126 * @param event packet 4127 * @return name 4128 * @note: btstack_type V 4129 */ 4130 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){ 4131 return &event[27]; 4132 } 4133 4134 /** 4135 * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE 4136 * @param event packet 4137 * @return status 4138 * @note: btstack_type 1 4139 */ 4140 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){ 4141 return event[2]; 4142 } 4143 4144 /** 4145 * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT 4146 * @param event packet 4147 * @return con_handle 4148 * @note: btstack_type H 4149 */ 4150 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){ 4151 return little_endian_read_16(event, 2); 4152 } 4153 /** 4154 * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT 4155 * @param event packet 4156 * @return rssi 4157 * @note: btstack_type 1 4158 */ 4159 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){ 4160 return event[4]; 4161 } 4162 4163 /** 4164 * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA 4165 * @param event packet 4166 * @return oob_data_present 4167 * @note: btstack_type 1 4168 */ 4169 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){ 4170 return event[2]; 4171 } 4172 /** 4173 * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA 4174 * @param event packet 4175 * @param Pointer to storage for c_192 4176 * @note: btstack_type K 4177 */ 4178 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){ 4179 reverse_bytes(&event[3], c_192, 16); 4180 } 4181 /** 4182 * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA 4183 * @param event packet 4184 * @param Pointer to storage for r_192 4185 * @note: btstack_type K 4186 */ 4187 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){ 4188 reverse_bytes(&event[19], r_192, 16); 4189 } 4190 /** 4191 * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA 4192 * @param event packet 4193 * @param Pointer to storage for c_256 4194 * @note: btstack_type K 4195 */ 4196 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){ 4197 reverse_bytes(&event[35], c_256, 16); 4198 } 4199 /** 4200 * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA 4201 * @param event packet 4202 * @param Pointer to storage for r_256 4203 * @note: btstack_type K 4204 */ 4205 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){ 4206 reverse_bytes(&event[51], r_256, 16); 4207 } 4208 4209 /** 4210 * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED 4211 * @param event packet 4212 * @return con_handle 4213 * @note: btstack_type H 4214 */ 4215 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){ 4216 return little_endian_read_16(event, 2); 4217 } 4218 /** 4219 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED 4220 * @param event packet 4221 * @param Pointer to storage for bd_addr 4222 * @note: btstack_type B 4223 */ 4224 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4225 reverse_bytes(&event[4], bd_addr, 6); 4226 } 4227 /** 4228 * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED 4229 * @param event packet 4230 * @return ssp 4231 * @note: btstack_type 1 4232 */ 4233 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){ 4234 return event[10]; 4235 } 4236 /** 4237 * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED 4238 * @param event packet 4239 * @return initiator 4240 * @note: btstack_type 1 4241 */ 4242 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){ 4243 return event[11]; 4244 } 4245 4246 /** 4247 * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE 4248 * @param event packet 4249 * @return con_handle 4250 * @note: btstack_type H 4251 */ 4252 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){ 4253 return little_endian_read_16(event, 2); 4254 } 4255 /** 4256 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE 4257 * @param event packet 4258 * @param Pointer to storage for bd_addr 4259 * @note: btstack_type B 4260 */ 4261 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4262 reverse_bytes(&event[4], bd_addr, 6); 4263 } 4264 /** 4265 * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE 4266 * @param event packet 4267 * @return status 4268 * @note: btstack_type 1 4269 */ 4270 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){ 4271 return event[10]; 4272 } 4273 4274 /** 4275 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4276 * @param event packet 4277 * @return status 4278 * @note: btstack_type 1 4279 */ 4280 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){ 4281 return event[3]; 4282 } 4283 /** 4284 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4285 * @param event packet 4286 * @return connection_handle 4287 * @note: btstack_type H 4288 */ 4289 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){ 4290 return little_endian_read_16(event, 4); 4291 } 4292 /** 4293 * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4294 * @param event packet 4295 * @return role 4296 * @note: btstack_type 1 4297 */ 4298 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){ 4299 return event[6]; 4300 } 4301 /** 4302 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4303 * @param event packet 4304 * @return peer_address_type 4305 * @note: btstack_type 1 4306 */ 4307 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){ 4308 return event[7]; 4309 } 4310 /** 4311 * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4312 * @param event packet 4313 * @param Pointer to storage for peer_address 4314 * @note: btstack_type B 4315 */ 4316 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){ 4317 reverse_bytes(&event[8], peer_address, 6); 4318 } 4319 /** 4320 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4321 * @param event packet 4322 * @return conn_interval 4323 * @note: btstack_type 2 4324 */ 4325 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){ 4326 return little_endian_read_16(event, 14); 4327 } 4328 /** 4329 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4330 * @param event packet 4331 * @return conn_latency 4332 * @note: btstack_type 2 4333 */ 4334 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){ 4335 return little_endian_read_16(event, 16); 4336 } 4337 /** 4338 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4339 * @param event packet 4340 * @return supervision_timeout 4341 * @note: btstack_type 2 4342 */ 4343 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){ 4344 return little_endian_read_16(event, 18); 4345 } 4346 /** 4347 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4348 * @param event packet 4349 * @return master_clock_accuracy 4350 * @note: btstack_type 1 4351 */ 4352 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 4353 return event[20]; 4354 } 4355 4356 /** 4357 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4358 * @param event packet 4359 * @return status 4360 * @note: btstack_type 1 4361 */ 4362 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){ 4363 return event[3]; 4364 } 4365 /** 4366 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4367 * @param event packet 4368 * @return connection_handle 4369 * @note: btstack_type H 4370 */ 4371 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){ 4372 return little_endian_read_16(event, 4); 4373 } 4374 /** 4375 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4376 * @param event packet 4377 * @return conn_interval 4378 * @note: btstack_type 2 4379 */ 4380 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){ 4381 return little_endian_read_16(event, 6); 4382 } 4383 /** 4384 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4385 * @param event packet 4386 * @return conn_latency 4387 * @note: btstack_type 2 4388 */ 4389 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){ 4390 return little_endian_read_16(event, 8); 4391 } 4392 /** 4393 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4394 * @param event packet 4395 * @return supervision_timeout 4396 * @note: btstack_type 2 4397 */ 4398 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){ 4399 return little_endian_read_16(event, 10); 4400 } 4401 4402 /** 4403 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 4404 * @param event packet 4405 * @return connection_handle 4406 * @note: btstack_type H 4407 */ 4408 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){ 4409 return little_endian_read_16(event, 3); 4410 } 4411 /** 4412 * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 4413 * @param event packet 4414 * @return le_features 4415 * @note: btstack_type D 4416 */ 4417 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){ 4418 return (const uint8_t *) &event[5]; 4419 } 4420 4421 /** 4422 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4423 * @param event packet 4424 * @return connection_handle 4425 * @note: btstack_type H 4426 */ 4427 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){ 4428 return little_endian_read_16(event, 3); 4429 } 4430 /** 4431 * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4432 * @param event packet 4433 * @return random_number 4434 * @note: btstack_type D 4435 */ 4436 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){ 4437 return (const uint8_t *) &event[5]; 4438 } 4439 /** 4440 * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4441 * @param event packet 4442 * @return encryption_diversifier 4443 * @note: btstack_type 2 4444 */ 4445 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){ 4446 return little_endian_read_16(event, 13); 4447 } 4448 4449 /** 4450 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4451 * @param event packet 4452 * @return connection_handle 4453 * @note: btstack_type H 4454 */ 4455 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){ 4456 return little_endian_read_16(event, 3); 4457 } 4458 /** 4459 * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4460 * @param event packet 4461 * @return interval_min 4462 * @note: btstack_type 2 4463 */ 4464 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){ 4465 return little_endian_read_16(event, 5); 4466 } 4467 /** 4468 * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4469 * @param event packet 4470 * @return interval_max 4471 * @note: btstack_type 2 4472 */ 4473 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){ 4474 return little_endian_read_16(event, 7); 4475 } 4476 /** 4477 * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4478 * @param event packet 4479 * @return latency 4480 * @note: btstack_type 2 4481 */ 4482 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){ 4483 return little_endian_read_16(event, 9); 4484 } 4485 /** 4486 * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4487 * @param event packet 4488 * @return timeout 4489 * @note: btstack_type 2 4490 */ 4491 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){ 4492 return little_endian_read_16(event, 11); 4493 } 4494 4495 /** 4496 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4497 * @param event packet 4498 * @return connection_handle 4499 * @note: btstack_type H 4500 */ 4501 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){ 4502 return little_endian_read_16(event, 3); 4503 } 4504 /** 4505 * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4506 * @param event packet 4507 * @return max_tx_octets 4508 * @note: btstack_type 2 4509 */ 4510 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){ 4511 return little_endian_read_16(event, 5); 4512 } 4513 /** 4514 * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4515 * @param event packet 4516 * @return max_tx_time 4517 * @note: btstack_type 2 4518 */ 4519 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){ 4520 return little_endian_read_16(event, 7); 4521 } 4522 /** 4523 * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4524 * @param event packet 4525 * @return max_rx_octets 4526 * @note: btstack_type 2 4527 */ 4528 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){ 4529 return little_endian_read_16(event, 9); 4530 } 4531 /** 4532 * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4533 * @param event packet 4534 * @return max_rx_time 4535 * @note: btstack_type 2 4536 */ 4537 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){ 4538 return little_endian_read_16(event, 11); 4539 } 4540 4541 /** 4542 * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4543 * @param event packet 4544 * @return status 4545 * @note: btstack_type 1 4546 */ 4547 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){ 4548 return event[3]; 4549 } 4550 /** 4551 * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4552 * @param event packet 4553 * @param Pointer to storage for dhkey_x 4554 * @note: btstack_type Q 4555 */ 4556 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){ 4557 reverse_bytes(&event[4], dhkey_x, 32); 4558 } 4559 /** 4560 * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4561 * @param event packet 4562 * @param Pointer to storage for dhkey_y 4563 * @note: btstack_type Q 4564 */ 4565 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){ 4566 reverse_bytes(&event[36], dhkey_y, 32); 4567 } 4568 4569 /** 4570 * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 4571 * @param event packet 4572 * @return status 4573 * @note: btstack_type 1 4574 */ 4575 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){ 4576 return event[3]; 4577 } 4578 /** 4579 * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 4580 * @param event packet 4581 * @param Pointer to storage for dhkey 4582 * @note: btstack_type Q 4583 */ 4584 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){ 4585 reverse_bytes(&event[4], dhkey, 32); 4586 } 4587 4588 /** 4589 * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4590 * @param event packet 4591 * @return status 4592 * @note: btstack_type 1 4593 */ 4594 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){ 4595 return event[3]; 4596 } 4597 /** 4598 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4599 * @param event packet 4600 * @return connection_handle 4601 * @note: btstack_type H 4602 */ 4603 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){ 4604 return little_endian_read_16(event, 4); 4605 } 4606 /** 4607 * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4608 * @param event packet 4609 * @return role 4610 * @note: btstack_type 1 4611 */ 4612 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){ 4613 return event[6]; 4614 } 4615 /** 4616 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4617 * @param event packet 4618 * @return peer_address_type 4619 * @note: btstack_type 1 4620 */ 4621 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){ 4622 return event[7]; 4623 } 4624 /** 4625 * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4626 * @param event packet 4627 * @param Pointer to storage for peer_addresss 4628 * @note: btstack_type B 4629 */ 4630 static inline void hci_subevent_le_enhanced_connection_complete_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){ 4631 reverse_bytes(&event[8], peer_addresss, 6); 4632 } 4633 /** 4634 * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4635 * @param event packet 4636 * @param Pointer to storage for local_resolvable_private_addres 4637 * @note: btstack_type B 4638 */ 4639 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){ 4640 reverse_bytes(&event[14], local_resolvable_private_addres, 6); 4641 } 4642 /** 4643 * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4644 * @param event packet 4645 * @param Pointer to storage for peer_resolvable_private_addres 4646 * @note: btstack_type B 4647 */ 4648 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){ 4649 reverse_bytes(&event[20], peer_resolvable_private_addres, 6); 4650 } 4651 /** 4652 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4653 * @param event packet 4654 * @return conn_interval 4655 * @note: btstack_type 2 4656 */ 4657 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){ 4658 return little_endian_read_16(event, 26); 4659 } 4660 /** 4661 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4662 * @param event packet 4663 * @return conn_latency 4664 * @note: btstack_type 2 4665 */ 4666 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){ 4667 return little_endian_read_16(event, 28); 4668 } 4669 /** 4670 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4671 * @param event packet 4672 * @return supervision_timeout 4673 * @note: btstack_type 2 4674 */ 4675 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){ 4676 return little_endian_read_16(event, 30); 4677 } 4678 /** 4679 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4680 * @param event packet 4681 * @return master_clock_accuracy 4682 * @note: btstack_type 1 4683 */ 4684 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 4685 return event[32]; 4686 } 4687 4688 /** 4689 * @brief Get field status from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 4690 * @param event packet 4691 * @return status 4692 * @note: btstack_type 1 4693 */ 4694 static inline uint8_t hci_subevent_le_phy_update_complete_get_status(const uint8_t * event){ 4695 return event[3]; 4696 } 4697 /** 4698 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 4699 * @param event packet 4700 * @return connection_handle 4701 * @note: btstack_type H 4702 */ 4703 static inline hci_con_handle_t hci_subevent_le_phy_update_complete_get_connection_handle(const uint8_t * event){ 4704 return little_endian_read_16(event, 4); 4705 } 4706 /** 4707 * @brief Get field tx_phy from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 4708 * @param event packet 4709 * @return tx_phy 4710 * @note: btstack_type 1 4711 */ 4712 static inline uint8_t hci_subevent_le_phy_update_complete_get_tx_phy(const uint8_t * event){ 4713 return event[6]; 4714 } 4715 4716 /** 4717 * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4718 * @param event packet 4719 * @return status 4720 * @note: btstack_type 1 4721 */ 4722 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_status(const uint8_t * event){ 4723 return event[3]; 4724 } 4725 /** 4726 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4727 * @param event packet 4728 * @return sync_handle 4729 * @note: btstack_type H 4730 */ 4731 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_establishment_get_sync_handle(const uint8_t * event){ 4732 return little_endian_read_16(event, 4); 4733 } 4734 /** 4735 * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4736 * @param event packet 4737 * @return advertising_sid 4738 * @note: btstack_type 1 4739 */ 4740 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertising_sid(const uint8_t * event){ 4741 return event[6]; 4742 } 4743 /** 4744 * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4745 * @param event packet 4746 * @return advertiser_address_type 4747 * @note: btstack_type 1 4748 */ 4749 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address_type(const uint8_t * event){ 4750 return event[7]; 4751 } 4752 /** 4753 * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4754 * @param event packet 4755 * @param Pointer to storage for advertiser_address 4756 * @note: btstack_type B 4757 */ 4758 static inline void hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){ 4759 reverse_bytes(&event[8], advertiser_address, 6); 4760 } 4761 /** 4762 * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4763 * @param event packet 4764 * @return advertiser_phy 4765 * @note: btstack_type 1 4766 */ 4767 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_phy(const uint8_t * event){ 4768 return event[14]; 4769 } 4770 /** 4771 * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4772 * @param event packet 4773 * @return periodic_advertising_interval 4774 * @note: btstack_type 2 4775 */ 4776 static inline uint16_t hci_subevent_le_periodic_advertising_sync_establishment_get_periodic_advertising_interval(const uint8_t * event){ 4777 return little_endian_read_16(event, 15); 4778 } 4779 /** 4780 * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4781 * @param event packet 4782 * @return advertiser_clock_accuracy 4783 * @note: btstack_type 1 4784 */ 4785 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_clock_accuracy(const uint8_t * event){ 4786 return event[17]; 4787 } 4788 4789 /** 4790 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4791 * @param event packet 4792 * @return sync_handle 4793 * @note: btstack_type H 4794 */ 4795 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_report_get_sync_handle(const uint8_t * event){ 4796 return little_endian_read_16(event, 3); 4797 } 4798 /** 4799 * @brief Get field tx_power from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4800 * @param event packet 4801 * @return tx_power 4802 * @note: btstack_type 1 4803 */ 4804 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_tx_power(const uint8_t * event){ 4805 return event[5]; 4806 } 4807 /** 4808 * @brief Get field rssi from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4809 * @param event packet 4810 * @return rssi 4811 * @note: btstack_type 1 4812 */ 4813 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_rssi(const uint8_t * event){ 4814 return event[6]; 4815 } 4816 /** 4817 * @brief Get field cte_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4818 * @param event packet 4819 * @return cte_type 4820 * @note: btstack_type 1 4821 */ 4822 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_cte_type(const uint8_t * event){ 4823 return event[7]; 4824 } 4825 /** 4826 * @brief Get field data_status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4827 * @param event packet 4828 * @return data_status 4829 * @note: btstack_type 1 4830 */ 4831 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_status(const uint8_t * event){ 4832 return event[8]; 4833 } 4834 /** 4835 * @brief Get field data_length from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4836 * @param event packet 4837 * @return data_length 4838 * @note: btstack_type J 4839 */ 4840 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_length(const uint8_t * event){ 4841 return event[9]; 4842 } 4843 /** 4844 * @brief Get field data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4845 * @param event packet 4846 * @return data 4847 * @note: btstack_type V 4848 */ 4849 static inline const uint8_t * hci_subevent_le_periodic_advertising_report_get_data(const uint8_t * event){ 4850 return &event[10]; 4851 } 4852 4853 /** 4854 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_LOST 4855 * @param event packet 4856 * @return sync_handle 4857 * @note: btstack_type H 4858 */ 4859 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_lost_get_sync_handle(const uint8_t * event){ 4860 return little_endian_read_16(event, 3); 4861 } 4862 4863 4864 /** 4865 * @brief Get field status from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4866 * @param event packet 4867 * @return status 4868 * @note: btstack_type 1 4869 */ 4870 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_status(const uint8_t * event){ 4871 return event[3]; 4872 } 4873 /** 4874 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4875 * @param event packet 4876 * @return advertising_handle 4877 * @note: btstack_type 1 4878 */ 4879 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_advertising_handle(const uint8_t * event){ 4880 return event[4]; 4881 } 4882 /** 4883 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4884 * @param event packet 4885 * @return connection_handle 4886 * @note: btstack_type H 4887 */ 4888 static inline hci_con_handle_t hci_subevent_le_advertising_set_terminated_get_connection_handle(const uint8_t * event){ 4889 return little_endian_read_16(event, 5); 4890 } 4891 /** 4892 * @brief Get field num_completed_exteneded_advertising_events from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4893 * @param event packet 4894 * @return num_completed_exteneded_advertising_events 4895 * @note: btstack_type 1 4896 */ 4897 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_num_completed_exteneded_advertising_events(const uint8_t * event){ 4898 return event[7]; 4899 } 4900 4901 /** 4902 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 4903 * @param event packet 4904 * @return advertising_handle 4905 * @note: btstack_type 1 4906 */ 4907 static inline uint8_t hci_subevent_le_scan_request_received_get_advertising_handle(const uint8_t * event){ 4908 return event[3]; 4909 } 4910 /** 4911 * @brief Get field scanner_address_type from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 4912 * @param event packet 4913 * @return scanner_address_type 4914 * @note: btstack_type 1 4915 */ 4916 static inline uint8_t hci_subevent_le_scan_request_received_get_scanner_address_type(const uint8_t * event){ 4917 return event[4]; 4918 } 4919 /** 4920 * @brief Get field scanner_address from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 4921 * @param event packet 4922 * @param Pointer to storage for scanner_address 4923 * @note: btstack_type B 4924 */ 4925 static inline void hci_subevent_le_scan_request_received_get_scanner_address(const uint8_t * event, bd_addr_t scanner_address){ 4926 reverse_bytes(&event[5], scanner_address, 6); 4927 } 4928 4929 /** 4930 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM 4931 * @param event packet 4932 * @return connection_handle 4933 * @note: btstack_type H 4934 */ 4935 static inline hci_con_handle_t hci_subevent_le_channel_selection_algorithm_get_connection_handle(const uint8_t * event){ 4936 return little_endian_read_16(event, 3); 4937 } 4938 /** 4939 * @brief Get field channel_selection_algorithm from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM 4940 * @param event packet 4941 * @return channel_selection_algorithm 4942 * @note: btstack_type 1 4943 */ 4944 static inline uint8_t hci_subevent_le_channel_selection_algorithm_get_channel_selection_algorithm(const uint8_t * event){ 4945 return event[5]; 4946 } 4947 4948 /** 4949 * @brief Get field status from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED 4950 * @param event packet 4951 * @return status 4952 * @note: btstack_type 1 4953 */ 4954 static inline uint8_t hci_subevent_le_le_cte_request_failed_get_status(const uint8_t * event){ 4955 return event[3]; 4956 } 4957 /** 4958 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED 4959 * @param event packet 4960 * @return connection_handle 4961 * @note: btstack_type H 4962 */ 4963 static inline hci_con_handle_t hci_subevent_le_le_cte_request_failed_get_connection_handle(const uint8_t * event){ 4964 return little_endian_read_16(event, 4); 4965 } 4966 4967 /** 4968 * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4969 * @param event packet 4970 * @return status 4971 * @note: btstack_type 1 4972 */ 4973 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_status(const uint8_t * event){ 4974 return event[3]; 4975 } 4976 /** 4977 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4978 * @param event packet 4979 * @return connection_handle 4980 * @note: btstack_type H 4981 */ 4982 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_connection_handle(const uint8_t * event){ 4983 return little_endian_read_16(event, 4); 4984 } 4985 /** 4986 * @brief Get field service_data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4987 * @param event packet 4988 * @return service_data 4989 * @note: btstack_type 2 4990 */ 4991 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_service_data(const uint8_t * event){ 4992 return little_endian_read_16(event, 6); 4993 } 4994 /** 4995 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4996 * @param event packet 4997 * @return sync_handle 4998 * @note: btstack_type H 4999 */ 5000 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_sync_handle(const uint8_t * event){ 5001 return little_endian_read_16(event, 8); 5002 } 5003 /** 5004 * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5005 * @param event packet 5006 * @return advertising_sid 5007 * @note: btstack_type 1 5008 */ 5009 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertising_sid(const uint8_t * event){ 5010 return event[10]; 5011 } 5012 /** 5013 * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5014 * @param event packet 5015 * @return advertiser_address_type 5016 * @note: btstack_type 1 5017 */ 5018 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address_type(const uint8_t * event){ 5019 return event[11]; 5020 } 5021 /** 5022 * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5023 * @param event packet 5024 * @param Pointer to storage for advertiser_address 5025 * @note: btstack_type B 5026 */ 5027 static inline void hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){ 5028 reverse_bytes(&event[12], advertiser_address, 6); 5029 } 5030 /** 5031 * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5032 * @param event packet 5033 * @return advertiser_phy 5034 * @note: btstack_type 1 5035 */ 5036 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_phy(const uint8_t * event){ 5037 return event[18]; 5038 } 5039 /** 5040 * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5041 * @param event packet 5042 * @return periodic_advertising_interval 5043 * @note: btstack_type 2 5044 */ 5045 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_periodic_advertising_interval(const uint8_t * event){ 5046 return little_endian_read_16(event, 19); 5047 } 5048 /** 5049 * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5050 * @param event packet 5051 * @return advertiser_clock_accuracy 5052 * @note: btstack_type 1 5053 */ 5054 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_clock_accuracy(const uint8_t * event){ 5055 return event[21]; 5056 } 5057 5058 /** 5059 * @brief Get field status from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5060 * @param event packet 5061 * @return status 5062 * @note: btstack_type 1 5063 */ 5064 static inline uint8_t hci_subevent_le_cis_established_get_status(const uint8_t * event){ 5065 return event[3]; 5066 } 5067 /** 5068 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5069 * @param event packet 5070 * @return connection_handle 5071 * @note: btstack_type H 5072 */ 5073 static inline hci_con_handle_t hci_subevent_le_cis_established_get_connection_handle(const uint8_t * event){ 5074 return little_endian_read_16(event, 4); 5075 } 5076 /** 5077 * @brief Get field cig_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5078 * @param event packet 5079 * @return cig_sync_delay 5080 * @note: btstack_type 3 5081 */ 5082 static inline uint32_t hci_subevent_le_cis_established_get_cig_sync_delay(const uint8_t * event){ 5083 return little_endian_read_24(event, 6); 5084 } 5085 /** 5086 * @brief Get field cis_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5087 * @param event packet 5088 * @return cis_sync_delay 5089 * @note: btstack_type 3 5090 */ 5091 static inline uint32_t hci_subevent_le_cis_established_get_cis_sync_delay(const uint8_t * event){ 5092 return little_endian_read_24(event, 9); 5093 } 5094 /** 5095 * @brief Get field transport_latency_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5096 * @param event packet 5097 * @return transport_latency_c_to_p 5098 * @note: btstack_type 3 5099 */ 5100 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_c_to_p(const uint8_t * event){ 5101 return little_endian_read_24(event, 12); 5102 } 5103 /** 5104 * @brief Get field transport_latency_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5105 * @param event packet 5106 * @return transport_latency_p_to_c 5107 * @note: btstack_type 3 5108 */ 5109 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_p_to_c(const uint8_t * event){ 5110 return little_endian_read_24(event, 15); 5111 } 5112 /** 5113 * @brief Get field phy_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5114 * @param event packet 5115 * @return phy_c_to_p 5116 * @note: btstack_type 1 5117 */ 5118 static inline uint8_t hci_subevent_le_cis_established_get_phy_c_to_p(const uint8_t * event){ 5119 return event[18]; 5120 } 5121 /** 5122 * @brief Get field phy_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5123 * @param event packet 5124 * @return phy_p_to_c 5125 * @note: btstack_type 1 5126 */ 5127 static inline uint8_t hci_subevent_le_cis_established_get_phy_p_to_c(const uint8_t * event){ 5128 return event[19]; 5129 } 5130 /** 5131 * @brief Get field nse from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5132 * @param event packet 5133 * @return nse 5134 * @note: btstack_type 1 5135 */ 5136 static inline uint8_t hci_subevent_le_cis_established_get_nse(const uint8_t * event){ 5137 return event[20]; 5138 } 5139 /** 5140 * @brief Get field bn_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5141 * @param event packet 5142 * @return bn_c_to_p 5143 * @note: btstack_type 1 5144 */ 5145 static inline uint8_t hci_subevent_le_cis_established_get_bn_c_to_p(const uint8_t * event){ 5146 return event[21]; 5147 } 5148 /** 5149 * @brief Get field bn_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5150 * @param event packet 5151 * @return bn_p_to_c 5152 * @note: btstack_type 1 5153 */ 5154 static inline uint8_t hci_subevent_le_cis_established_get_bn_p_to_c(const uint8_t * event){ 5155 return event[22]; 5156 } 5157 /** 5158 * @brief Get field ft_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5159 * @param event packet 5160 * @return ft_c_to_p 5161 * @note: btstack_type 1 5162 */ 5163 static inline uint8_t hci_subevent_le_cis_established_get_ft_c_to_p(const uint8_t * event){ 5164 return event[23]; 5165 } 5166 /** 5167 * @brief Get field ft_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5168 * @param event packet 5169 * @return ft_p_to_c 5170 * @note: btstack_type 1 5171 */ 5172 static inline uint8_t hci_subevent_le_cis_established_get_ft_p_to_c(const uint8_t * event){ 5173 return event[24]; 5174 } 5175 /** 5176 * @brief Get field max_pdu_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5177 * @param event packet 5178 * @return max_pdu_c_to_p 5179 * @note: btstack_type 2 5180 */ 5181 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_c_to_p(const uint8_t * event){ 5182 return little_endian_read_16(event, 25); 5183 } 5184 /** 5185 * @brief Get field max_pdu_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5186 * @param event packet 5187 * @return max_pdu_p_to_c 5188 * @note: btstack_type 2 5189 */ 5190 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_p_to_c(const uint8_t * event){ 5191 return little_endian_read_16(event, 27); 5192 } 5193 /** 5194 * @brief Get field iso_interval from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5195 * @param event packet 5196 * @return iso_interval 5197 * @note: btstack_type 2 5198 */ 5199 static inline uint16_t hci_subevent_le_cis_established_get_iso_interval(const uint8_t * event){ 5200 return little_endian_read_16(event, 29); 5201 } 5202 5203 /** 5204 * @brief Get field acl_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST 5205 * @param event packet 5206 * @return acl_connection_handle 5207 * @note: btstack_type H 5208 */ 5209 static inline hci_con_handle_t hci_subevent_le_cis_request_get_acl_connection_handle(const uint8_t * event){ 5210 return little_endian_read_16(event, 3); 5211 } 5212 /** 5213 * @brief Get field cis_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST 5214 * @param event packet 5215 * @return cis_connection_handle 5216 * @note: btstack_type H 5217 */ 5218 static inline hci_con_handle_t hci_subevent_le_cis_request_get_cis_connection_handle(const uint8_t * event){ 5219 return little_endian_read_16(event, 5); 5220 } 5221 /** 5222 * @brief Get field cig_id from event HCI_SUBEVENT_LE_CIS_REQUEST 5223 * @param event packet 5224 * @return cig_id 5225 * @note: btstack_type 1 5226 */ 5227 static inline uint8_t hci_subevent_le_cis_request_get_cig_id(const uint8_t * event){ 5228 return event[7]; 5229 } 5230 /** 5231 * @brief Get field cis_id from event HCI_SUBEVENT_LE_CIS_REQUEST 5232 * @param event packet 5233 * @return cis_id 5234 * @note: btstack_type 1 5235 */ 5236 static inline uint8_t hci_subevent_le_cis_request_get_cis_id(const uint8_t * event){ 5237 return event[8]; 5238 } 5239 5240 /** 5241 * @brief Get field big_handle from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE 5242 * @param event packet 5243 * @return big_handle 5244 * @note: btstack_type 1 5245 */ 5246 static inline uint8_t hci_subevent_le_terminate_big_complete_get_big_handle(const uint8_t * event){ 5247 return event[3]; 5248 } 5249 /** 5250 * @brief Get field reason from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE 5251 * @param event packet 5252 * @return reason 5253 * @note: btstack_type 1 5254 */ 5255 static inline uint8_t hci_subevent_le_terminate_big_complete_get_reason(const uint8_t * event){ 5256 return event[4]; 5257 } 5258 5259 /** 5260 * @brief Get field big_handle from event HCI_SUBEVENT_LE_BIG_SYNC_LOST 5261 * @param event packet 5262 * @return big_handle 5263 * @note: btstack_type 1 5264 */ 5265 static inline uint8_t hci_subevent_le_big_sync_lost_get_big_handle(const uint8_t * event){ 5266 return event[3]; 5267 } 5268 /** 5269 * @brief Get field reason from event HCI_SUBEVENT_LE_BIG_SYNC_LOST 5270 * @param event packet 5271 * @return reason 5272 * @note: btstack_type 1 5273 */ 5274 static inline uint8_t hci_subevent_le_big_sync_lost_get_reason(const uint8_t * event){ 5275 return event[4]; 5276 } 5277 5278 /** 5279 * @brief Get field status from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5280 * @param event packet 5281 * @return status 5282 * @note: btstack_type 1 5283 */ 5284 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_status(const uint8_t * event){ 5285 return event[3]; 5286 } 5287 /** 5288 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5289 * @param event packet 5290 * @return connection_handle 5291 * @note: btstack_type H 5292 */ 5293 static inline hci_con_handle_t hci_subevent_le_request_peer_sca_complete_get_connection_handle(const uint8_t * event){ 5294 return little_endian_read_16(event, 4); 5295 } 5296 /** 5297 * @brief Get field peer_clock_accuracy from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5298 * @param event packet 5299 * @return peer_clock_accuracy 5300 * @note: btstack_type 1 5301 */ 5302 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_peer_clock_accuracy(const uint8_t * event){ 5303 return event[6]; 5304 } 5305 5306 /** 5307 * @brief Get field status from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5308 * @param event packet 5309 * @return status 5310 * @note: btstack_type 1 5311 */ 5312 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_status(const uint8_t * event){ 5313 return event[3]; 5314 } 5315 /** 5316 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5317 * @param event packet 5318 * @return connection_handle 5319 * @note: btstack_type H 5320 */ 5321 static inline hci_con_handle_t hci_subevent_le_transmit_power_reporting_get_connection_handle(const uint8_t * event){ 5322 return little_endian_read_16(event, 4); 5323 } 5324 /** 5325 * @brief Get field reason from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5326 * @param event packet 5327 * @return reason 5328 * @note: btstack_type 1 5329 */ 5330 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_reason(const uint8_t * event){ 5331 return event[6]; 5332 } 5333 /** 5334 * @brief Get field phy from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5335 * @param event packet 5336 * @return phy 5337 * @note: btstack_type 1 5338 */ 5339 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_phy(const uint8_t * event){ 5340 return event[7]; 5341 } 5342 /** 5343 * @brief Get field tx_power_level from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5344 * @param event packet 5345 * @return tx_power_level 5346 * @note: btstack_type 1 5347 */ 5348 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level(const uint8_t * event){ 5349 return event[8]; 5350 } 5351 /** 5352 * @brief Get field tx_power_level_flag from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5353 * @param event packet 5354 * @return tx_power_level_flag 5355 * @note: btstack_type 1 5356 */ 5357 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level_flag(const uint8_t * event){ 5358 return event[9]; 5359 } 5360 /** 5361 * @brief Get field delta from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5362 * @param event packet 5363 * @return delta 5364 * @note: btstack_type 1 5365 */ 5366 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_delta(const uint8_t * event){ 5367 return event[10]; 5368 } 5369 5370 /** 5371 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5372 * @param event packet 5373 * @return sync_handle 5374 * @note: btstack_type H 5375 */ 5376 static inline hci_con_handle_t hci_subevent_le_biginfo_advertising_report_get_sync_handle(const uint8_t * event){ 5377 return little_endian_read_16(event, 3); 5378 } 5379 /** 5380 * @brief Get field num_bis from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5381 * @param event packet 5382 * @return num_bis 5383 * @note: btstack_type 1 5384 */ 5385 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_num_bis(const uint8_t * event){ 5386 return event[5]; 5387 } 5388 /** 5389 * @brief Get field nse from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5390 * @param event packet 5391 * @return nse 5392 * @note: btstack_type 1 5393 */ 5394 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_nse(const uint8_t * event){ 5395 return event[6]; 5396 } 5397 /** 5398 * @brief Get field iso_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5399 * @param event packet 5400 * @return iso_interval 5401 * @note: btstack_type 2 5402 */ 5403 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_iso_interval(const uint8_t * event){ 5404 return little_endian_read_16(event, 7); 5405 } 5406 /** 5407 * @brief Get field bn from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5408 * @param event packet 5409 * @return bn 5410 * @note: btstack_type 1 5411 */ 5412 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_bn(const uint8_t * event){ 5413 return event[9]; 5414 } 5415 /** 5416 * @brief Get field pto from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5417 * @param event packet 5418 * @return pto 5419 * @note: btstack_type 1 5420 */ 5421 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_pto(const uint8_t * event){ 5422 return event[10]; 5423 } 5424 /** 5425 * @brief Get field irc from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5426 * @param event packet 5427 * @return irc 5428 * @note: btstack_type 1 5429 */ 5430 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_irc(const uint8_t * event){ 5431 return event[11]; 5432 } 5433 /** 5434 * @brief Get field max_pdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5435 * @param event packet 5436 * @return max_pdu 5437 * @note: btstack_type 2 5438 */ 5439 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_pdu(const uint8_t * event){ 5440 return little_endian_read_16(event, 12); 5441 } 5442 /** 5443 * @brief Get field sdu_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5444 * @param event packet 5445 * @return sdu_interval 5446 * @note: btstack_type 3 5447 */ 5448 static inline uint32_t hci_subevent_le_biginfo_advertising_report_get_sdu_interval(const uint8_t * event){ 5449 return little_endian_read_24(event, 14); 5450 } 5451 /** 5452 * @brief Get field max_sdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5453 * @param event packet 5454 * @return max_sdu 5455 * @note: btstack_type 2 5456 */ 5457 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_sdu(const uint8_t * event){ 5458 return little_endian_read_16(event, 17); 5459 } 5460 /** 5461 * @brief Get field phy from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5462 * @param event packet 5463 * @return phy 5464 * @note: btstack_type 1 5465 */ 5466 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_phy(const uint8_t * event){ 5467 return event[19]; 5468 } 5469 /** 5470 * @brief Get field framing from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5471 * @param event packet 5472 * @return framing 5473 * @note: btstack_type 1 5474 */ 5475 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_framing(const uint8_t * event){ 5476 return event[20]; 5477 } 5478 /** 5479 * @brief Get field encryption from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5480 * @param event packet 5481 * @return encryption 5482 * @note: btstack_type 1 5483 */ 5484 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_encryption(const uint8_t * event){ 5485 return event[21]; 5486 } 5487 5488 /** 5489 * @brief Get field status from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5490 * @param event packet 5491 * @return status 5492 * @note: btstack_type 1 5493 */ 5494 static inline uint8_t hci_subevent_le_subrate_change_get_status(const uint8_t * event){ 5495 return event[3]; 5496 } 5497 /** 5498 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5499 * @param event packet 5500 * @return connection_handle 5501 * @note: btstack_type H 5502 */ 5503 static inline hci_con_handle_t hci_subevent_le_subrate_change_get_connection_handle(const uint8_t * event){ 5504 return little_endian_read_16(event, 4); 5505 } 5506 /** 5507 * @brief Get field subrate_factor from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5508 * @param event packet 5509 * @return subrate_factor 5510 * @note: btstack_type 2 5511 */ 5512 static inline uint16_t hci_subevent_le_subrate_change_get_subrate_factor(const uint8_t * event){ 5513 return little_endian_read_16(event, 6); 5514 } 5515 /** 5516 * @brief Get field peripheral_latency from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5517 * @param event packet 5518 * @return peripheral_latency 5519 * @note: btstack_type 2 5520 */ 5521 static inline uint16_t hci_subevent_le_subrate_change_get_peripheral_latency(const uint8_t * event){ 5522 return little_endian_read_16(event, 8); 5523 } 5524 /** 5525 * @brief Get field continuation_number from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5526 * @param event packet 5527 * @return continuation_number 5528 * @note: btstack_type 2 5529 */ 5530 static inline uint16_t hci_subevent_le_subrate_change_get_continuation_number(const uint8_t * event){ 5531 return little_endian_read_16(event, 10); 5532 } 5533 /** 5534 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5535 * @param event packet 5536 * @return supervision_timeout 5537 * @note: btstack_type 2 5538 */ 5539 static inline uint16_t hci_subevent_le_subrate_change_get_supervision_timeout(const uint8_t * event){ 5540 return little_endian_read_16(event, 12); 5541 } 5542 5543 /** 5544 * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 5545 * @param event packet 5546 * @return advertisement_handle 5547 * @note: btstack_type 1 5548 */ 5549 static inline uint8_t gap_subevent_advertising_set_installed_get_advertisement_handle(const uint8_t * event){ 5550 return event[3]; 5551 } 5552 /** 5553 * @brief Get field status from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 5554 * @param event packet 5555 * @return status 5556 * @note: btstack_type 1 5557 */ 5558 static inline uint8_t gap_subevent_advertising_set_installed_get_status(const uint8_t * event){ 5559 return event[4]; 5560 } 5561 /** 5562 * @brief Get field selected_tx_power from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 5563 * @param event packet 5564 * @return selected_tx_power 5565 * @note: btstack_type 1 5566 */ 5567 static inline uint8_t gap_subevent_advertising_set_installed_get_selected_tx_power(const uint8_t * event){ 5568 return event[5]; 5569 } 5570 5571 /** 5572 * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_REMOVED 5573 * @param event packet 5574 * @return advertisement_handle 5575 * @note: btstack_type 1 5576 */ 5577 static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_handle(const uint8_t * event){ 5578 return event[3]; 5579 } 5580 5581 /** 5582 * @brief Get field status from event GAP_SUBEVENT_BIG_CREATED 5583 * @param event packet 5584 * @return status 5585 * @note: btstack_type 1 5586 */ 5587 static inline uint8_t gap_subevent_big_created_get_status(const uint8_t * event){ 5588 return event[3]; 5589 } 5590 /** 5591 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_CREATED 5592 * @param event packet 5593 * @return big_handle 5594 * @note: btstack_type 1 5595 */ 5596 static inline uint8_t gap_subevent_big_created_get_big_handle(const uint8_t * event){ 5597 return event[4]; 5598 } 5599 /** 5600 * @brief Get field num_bis from event GAP_SUBEVENT_BIG_CREATED 5601 * @param event packet 5602 * @return num_bis 5603 * @note: btstack_type 1 5604 */ 5605 static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event){ 5606 return event[5]; 5607 } 5608 /** 5609 * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_CREATED 5610 * @param event packet 5611 * @param index 5612 * @return bis_con_handles 5613 * @note: btstack_type C 5614 */ 5615 static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){ 5616 return little_endian_read_16(event, 6 + (2 * index)); 5617 } 5618 5619 /** 5620 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_TERMINATED 5621 * @param event packet 5622 * @return big_handle 5623 * @note: btstack_type 1 5624 */ 5625 static inline uint8_t gap_subevent_big_terminated_get_big_handle(const uint8_t * event){ 5626 return event[3]; 5627 } 5628 5629 /** 5630 * @brief Get field status from event GAP_SUBEVENT_BIG_SYNC_CREATED 5631 * @param event packet 5632 * @return status 5633 * @note: btstack_type 1 5634 */ 5635 static inline uint8_t gap_subevent_big_sync_created_get_status(const uint8_t * event){ 5636 return event[3]; 5637 } 5638 /** 5639 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_CREATED 5640 * @param event packet 5641 * @return big_handle 5642 * @note: btstack_type 1 5643 */ 5644 static inline uint8_t gap_subevent_big_sync_created_get_big_handle(const uint8_t * event){ 5645 return event[4]; 5646 } 5647 /** 5648 * @brief Get field num_bis from event GAP_SUBEVENT_BIG_SYNC_CREATED 5649 * @param event packet 5650 * @return num_bis 5651 * @note: btstack_type 1 5652 */ 5653 static inline uint8_t gap_subevent_big_sync_created_get_num_bis(const uint8_t * event){ 5654 return event[5]; 5655 } 5656 /** 5657 * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_SYNC_CREATED 5658 * @param event packet 5659 * @param index 5660 * @return bis_con_handles 5661 * @note: btstack_type C 5662 */ 5663 static inline uint16_t gap_subevent_big_sync_created_get_bis_con_handles(const uint8_t * event, uint8_t index){ 5664 return little_endian_read_16(event, 6 + (2 * index)); 5665 } 5666 5667 /** 5668 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_STOPPED 5669 * @param event packet 5670 * @return big_handle 5671 * @note: btstack_type 1 5672 */ 5673 static inline uint8_t gap_subevent_big_sync_stopped_get_big_handle(const uint8_t * event){ 5674 return event[3]; 5675 } 5676 5677 /** 5678 * @brief Get field status from event GAP_SUBEVENT_CIG_CREATED 5679 * @param event packet 5680 * @return status 5681 * @note: btstack_type 1 5682 */ 5683 static inline uint8_t gap_subevent_cig_created_get_status(const uint8_t * event){ 5684 return event[3]; 5685 } 5686 /** 5687 * @brief Get field cig_id from event GAP_SUBEVENT_CIG_CREATED 5688 * @param event packet 5689 * @return cig_id 5690 * @note: btstack_type 1 5691 */ 5692 static inline uint8_t gap_subevent_cig_created_get_cig_id(const uint8_t * event){ 5693 return event[4]; 5694 } 5695 /** 5696 * @brief Get field num_cis from event GAP_SUBEVENT_CIG_CREATED 5697 * @param event packet 5698 * @return num_cis 5699 * @note: btstack_type 1 5700 */ 5701 static inline uint8_t gap_subevent_cig_created_get_num_cis(const uint8_t * event){ 5702 return event[5]; 5703 } 5704 /** 5705 * @brief Get element of array field cis_con_handles from event GAP_SUBEVENT_CIG_CREATED 5706 * @param event packet 5707 * @param index 5708 * @return cis_con_handles 5709 * @note: btstack_type C 5710 */ 5711 static inline uint16_t gap_subevent_cig_created_get_cis_con_handles(const uint8_t * event, uint8_t index){ 5712 return little_endian_read_16(event, 6 + (2 * index)); 5713 } 5714 5715 /** 5716 * @brief Get field status from event GAP_SUBEVENT_CIS_CREATED 5717 * @param event packet 5718 * @return status 5719 * @note: btstack_type 1 5720 */ 5721 static inline uint8_t gap_subevent_cis_created_get_status(const uint8_t * event){ 5722 return event[3]; 5723 } 5724 /** 5725 * @brief Get field cig_id from event GAP_SUBEVENT_CIS_CREATED 5726 * @param event packet 5727 * @return cig_id 5728 * @note: btstack_type 1 5729 */ 5730 static inline uint8_t gap_subevent_cis_created_get_cig_id(const uint8_t * event){ 5731 return event[4]; 5732 } 5733 /** 5734 * @brief Get field cis_con_handle from event GAP_SUBEVENT_CIS_CREATED 5735 * @param event packet 5736 * @return cis_con_handle 5737 * @note: btstack_type H 5738 */ 5739 static inline hci_con_handle_t gap_subevent_cis_created_get_cis_con_handle(const uint8_t * event){ 5740 return little_endian_read_16(event, 5); 5741 } 5742 5743 /** 5744 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5745 * @param event packet 5746 * @return acl_handle 5747 * @note: btstack_type H 5748 */ 5749 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){ 5750 return little_endian_read_16(event, 3); 5751 } 5752 /** 5753 * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5754 * @param event packet 5755 * @return status 5756 * @note: btstack_type 1 5757 */ 5758 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){ 5759 return event[5]; 5760 } 5761 /** 5762 * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5763 * @param event packet 5764 * @param Pointer to storage for bd_addr 5765 * @note: btstack_type B 5766 */ 5767 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5768 reverse_bytes(&event[6], bd_addr, 6); 5769 } 5770 5771 /** 5772 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE 5773 * @param event packet 5774 * @return acl_handle 5775 * @note: btstack_type H 5776 */ 5777 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){ 5778 return little_endian_read_16(event, 3); 5779 } 5780 5781 /** 5782 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5783 * @param event packet 5784 * @return acl_handle 5785 * @note: btstack_type H 5786 */ 5787 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){ 5788 return little_endian_read_16(event, 3); 5789 } 5790 /** 5791 * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5792 * @param event packet 5793 * @return status 5794 * @note: btstack_type 1 5795 */ 5796 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){ 5797 return event[5]; 5798 } 5799 /** 5800 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5801 * @param event packet 5802 * @return sco_handle 5803 * @note: btstack_type H 5804 */ 5805 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){ 5806 return little_endian_read_16(event, 6); 5807 } 5808 5809 /** 5810 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 5811 * @param event packet 5812 * @return acl_handle 5813 * @note: btstack_type H 5814 */ 5815 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){ 5816 return little_endian_read_16(event, 3); 5817 } 5818 /** 5819 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 5820 * @param event packet 5821 * @return sco_handle 5822 * @note: btstack_type H 5823 */ 5824 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){ 5825 return little_endian_read_16(event, 5); 5826 } 5827 5828 /** 5829 * @brief Get field acl_handle from event HSP_SUBEVENT_RING 5830 * @param event packet 5831 * @return acl_handle 5832 * @note: btstack_type H 5833 */ 5834 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){ 5835 return little_endian_read_16(event, 3); 5836 } 5837 5838 /** 5839 * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 5840 * @param event packet 5841 * @return acl_handle 5842 * @note: btstack_type H 5843 */ 5844 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){ 5845 return little_endian_read_16(event, 3); 5846 } 5847 /** 5848 * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 5849 * @param event packet 5850 * @return gain 5851 * @note: btstack_type 1 5852 */ 5853 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){ 5854 return event[5]; 5855 } 5856 5857 /** 5858 * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 5859 * @param event packet 5860 * @return acl_handle 5861 * @note: btstack_type H 5862 */ 5863 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){ 5864 return little_endian_read_16(event, 3); 5865 } 5866 /** 5867 * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 5868 * @param event packet 5869 * @return gain 5870 * @note: btstack_type 1 5871 */ 5872 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){ 5873 return event[5]; 5874 } 5875 5876 /** 5877 * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND 5878 * @param event packet 5879 * @return acl_handle 5880 * @note: btstack_type H 5881 */ 5882 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){ 5883 return little_endian_read_16(event, 3); 5884 } 5885 /** 5886 * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND 5887 * @param event packet 5888 * @return value_length 5889 * @note: btstack_type J 5890 */ 5891 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){ 5892 return event[5]; 5893 } 5894 /** 5895 * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND 5896 * @param event packet 5897 * @return value 5898 * @note: btstack_type V 5899 */ 5900 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){ 5901 return &event[6]; 5902 } 5903 5904 /** 5905 * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION 5906 * @param event packet 5907 * @return acl_handle 5908 * @note: btstack_type H 5909 */ 5910 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){ 5911 return little_endian_read_16(event, 3); 5912 } 5913 /** 5914 * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION 5915 * @param event packet 5916 * @return value_length 5917 * @note: btstack_type J 5918 */ 5919 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){ 5920 return event[5]; 5921 } 5922 /** 5923 * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION 5924 * @param event packet 5925 * @return value 5926 * @note: btstack_type V 5927 */ 5928 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){ 5929 return &event[6]; 5930 } 5931 5932 /** 5933 * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED 5934 * @param event packet 5935 * @return acl_handle 5936 * @note: btstack_type H 5937 */ 5938 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){ 5939 return little_endian_read_16(event, 3); 5940 } 5941 5942 /** 5943 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5944 * @param event packet 5945 * @return acl_handle 5946 * @note: btstack_type H 5947 */ 5948 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){ 5949 return little_endian_read_16(event, 3); 5950 } 5951 /** 5952 * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5953 * @param event packet 5954 * @return status 5955 * @note: btstack_type 1 5956 */ 5957 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){ 5958 return event[5]; 5959 } 5960 /** 5961 * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5962 * @param event packet 5963 * @param Pointer to storage for bd_addr 5964 * @note: btstack_type B 5965 */ 5966 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5967 reverse_bytes(&event[6], bd_addr, 6); 5968 } 5969 5970 /** 5971 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 5972 * @param event packet 5973 * @return acl_handle 5974 * @note: btstack_type H 5975 */ 5976 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){ 5977 return little_endian_read_16(event, 3); 5978 } 5979 5980 /** 5981 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 5982 * @param event packet 5983 * @return acl_handle 5984 * @note: btstack_type H 5985 */ 5986 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){ 5987 return little_endian_read_16(event, 3); 5988 } 5989 /** 5990 * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 5991 * @param event packet 5992 * @return status 5993 * @note: btstack_type 1 5994 */ 5995 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){ 5996 return event[5]; 5997 } 5998 /** 5999 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6000 * @param event packet 6001 * @return sco_handle 6002 * @note: btstack_type H 6003 */ 6004 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){ 6005 return little_endian_read_16(event, 6); 6006 } 6007 /** 6008 * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6009 * @param event packet 6010 * @param Pointer to storage for bd_addr 6011 * @note: btstack_type B 6012 */ 6013 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6014 reverse_bytes(&event[8], bd_addr, 6); 6015 } 6016 /** 6017 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6018 * @param event packet 6019 * @return negotiated_codec 6020 * @note: btstack_type 1 6021 */ 6022 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){ 6023 return event[14]; 6024 } 6025 /** 6026 * @brief Get field sco_packet_types from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6027 * @param event packet 6028 * @return sco_packet_types 6029 * @note: btstack_type 2 6030 */ 6031 static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){ 6032 return little_endian_read_16(event, 15); 6033 } 6034 6035 /** 6036 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6037 * @param event packet 6038 * @return acl_handle 6039 * @note: btstack_type H 6040 */ 6041 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){ 6042 return little_endian_read_16(event, 3); 6043 } 6044 /** 6045 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6046 * @param event packet 6047 * @return sco_handle 6048 * @note: btstack_type H 6049 */ 6050 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){ 6051 return little_endian_read_16(event, 5); 6052 } 6053 6054 /** 6055 * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE 6056 * @param event packet 6057 * @return acl_handle 6058 * @note: btstack_type H 6059 */ 6060 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){ 6061 return little_endian_read_16(event, 3); 6062 } 6063 /** 6064 * @brief Get field status from event HFP_SUBEVENT_COMPLETE 6065 * @param event packet 6066 * @return status 6067 * @note: btstack_type 1 6068 */ 6069 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){ 6070 return event[5]; 6071 } 6072 6073 /** 6074 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6075 * @param event packet 6076 * @return acl_handle 6077 * @note: btstack_type H 6078 */ 6079 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){ 6080 return little_endian_read_16(event, 3); 6081 } 6082 /** 6083 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6084 * @param event packet 6085 * @return indicator_index 6086 * @note: btstack_type 1 6087 */ 6088 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){ 6089 return event[5]; 6090 } 6091 /** 6092 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6093 * @param event packet 6094 * @return indicator_min_range 6095 * @note: btstack_type 1 6096 */ 6097 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){ 6098 return event[6]; 6099 } 6100 /** 6101 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6102 * @param event packet 6103 * @return indicator_max_range 6104 * @note: btstack_type 1 6105 */ 6106 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){ 6107 return event[7]; 6108 } 6109 /** 6110 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6111 * @param event packet 6112 * @return indicator_name 6113 * @note: btstack_type T 6114 */ 6115 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){ 6116 return (const char *) &event[8]; 6117 } 6118 6119 /** 6120 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6121 * @param event packet 6122 * @return acl_handle 6123 * @note: btstack_type H 6124 */ 6125 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){ 6126 return little_endian_read_16(event, 3); 6127 } 6128 /** 6129 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6130 * @param event packet 6131 * @return indicator_index 6132 * @note: btstack_type 1 6133 */ 6134 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){ 6135 return event[5]; 6136 } 6137 /** 6138 * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6139 * @param event packet 6140 * @return indicator_status 6141 * @note: btstack_type 1 6142 */ 6143 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){ 6144 return event[6]; 6145 } 6146 /** 6147 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6148 * @param event packet 6149 * @return indicator_min_range 6150 * @note: btstack_type 1 6151 */ 6152 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){ 6153 return event[7]; 6154 } 6155 /** 6156 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6157 * @param event packet 6158 * @return indicator_max_range 6159 * @note: btstack_type 1 6160 */ 6161 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){ 6162 return event[8]; 6163 } 6164 /** 6165 * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6166 * @param event packet 6167 * @return indicator_mandatory 6168 * @note: btstack_type 1 6169 */ 6170 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){ 6171 return event[9]; 6172 } 6173 /** 6174 * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6175 * @param event packet 6176 * @return indicator_enabled 6177 * @note: btstack_type 1 6178 */ 6179 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){ 6180 return event[10]; 6181 } 6182 /** 6183 * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6184 * @param event packet 6185 * @return indicator_status_changed 6186 * @note: btstack_type 1 6187 */ 6188 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){ 6189 return event[11]; 6190 } 6191 /** 6192 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6193 * @param event packet 6194 * @return indicator_name 6195 * @note: btstack_type T 6196 */ 6197 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){ 6198 return (const char *) &event[12]; 6199 } 6200 6201 /** 6202 * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6203 * @param event packet 6204 * @return acl_handle 6205 * @note: btstack_type H 6206 */ 6207 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){ 6208 return little_endian_read_16(event, 3); 6209 } 6210 /** 6211 * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6212 * @param event packet 6213 * @return network_operator_mode 6214 * @note: btstack_type 1 6215 */ 6216 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){ 6217 return event[5]; 6218 } 6219 /** 6220 * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6221 * @param event packet 6222 * @return network_operator_format 6223 * @note: btstack_type 1 6224 */ 6225 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){ 6226 return event[6]; 6227 } 6228 /** 6229 * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6230 * @param event packet 6231 * @return network_operator_name 6232 * @note: btstack_type T 6233 */ 6234 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){ 6235 return (const char *) &event[7]; 6236 } 6237 6238 /** 6239 * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 6240 * @param event packet 6241 * @return acl_handle 6242 * @note: btstack_type H 6243 */ 6244 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){ 6245 return little_endian_read_16(event, 3); 6246 } 6247 /** 6248 * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 6249 * @param event packet 6250 * @return error 6251 * @note: btstack_type 1 6252 */ 6253 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){ 6254 return event[5]; 6255 } 6256 6257 /** 6258 * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING 6259 * @param event packet 6260 * @return acl_handle 6261 * @note: btstack_type H 6262 */ 6263 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){ 6264 return little_endian_read_16(event, 3); 6265 } 6266 6267 /** 6268 * @brief Get field acl_handle from event HFP_SUBEVENT_RING 6269 * @param event packet 6270 * @return acl_handle 6271 * @note: btstack_type H 6272 */ 6273 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){ 6274 return little_endian_read_16(event, 3); 6275 } 6276 6277 /** 6278 * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING 6279 * @param event packet 6280 * @return acl_handle 6281 * @note: btstack_type H 6282 */ 6283 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){ 6284 return little_endian_read_16(event, 3); 6285 } 6286 6287 /** 6288 * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 6289 * @param event packet 6290 * @return acl_handle 6291 * @note: btstack_type H 6292 */ 6293 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){ 6294 return little_endian_read_16(event, 3); 6295 } 6296 /** 6297 * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 6298 * @param event packet 6299 * @return number 6300 * @note: btstack_type T 6301 */ 6302 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){ 6303 return (const char *) &event[5]; 6304 } 6305 6306 /** 6307 * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG 6308 * @param event packet 6309 * @return acl_handle 6310 * @note: btstack_type H 6311 */ 6312 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){ 6313 return little_endian_read_16(event, 3); 6314 } 6315 6316 /** 6317 * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 6318 * @param event packet 6319 * @return acl_handle 6320 * @note: btstack_type H 6321 */ 6322 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){ 6323 return little_endian_read_16(event, 3); 6324 } 6325 /** 6326 * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 6327 * @param event packet 6328 * @return number 6329 * @note: btstack_type T 6330 */ 6331 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){ 6332 return (const char *) &event[5]; 6333 } 6334 6335 /** 6336 * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 6337 * @param event packet 6338 * @return acl_handle 6339 * @note: btstack_type H 6340 */ 6341 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){ 6342 return little_endian_read_16(event, 3); 6343 } 6344 /** 6345 * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 6346 * @param event packet 6347 * @return dtmf 6348 * @note: btstack_type T 6349 */ 6350 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){ 6351 return (const char *) &event[5]; 6352 } 6353 6354 /** 6355 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED 6356 * @param event packet 6357 * @return acl_handle 6358 * @note: btstack_type H 6359 */ 6360 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){ 6361 return little_endian_read_16(event, 3); 6362 } 6363 6364 /** 6365 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED 6366 * @param event packet 6367 * @return acl_handle 6368 * @note: btstack_type H 6369 */ 6370 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){ 6371 return little_endian_read_16(event, 3); 6372 } 6373 6374 /** 6375 * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL 6376 * @param event packet 6377 * @return acl_handle 6378 * @note: btstack_type H 6379 */ 6380 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){ 6381 return little_endian_read_16(event, 3); 6382 } 6383 6384 /** 6385 * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME 6386 * @param event packet 6387 * @return acl_handle 6388 * @note: btstack_type H 6389 */ 6390 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){ 6391 return little_endian_read_16(event, 3); 6392 } 6393 /** 6394 * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME 6395 * @param event packet 6396 * @return gain 6397 * @note: btstack_type 1 6398 */ 6399 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){ 6400 return event[5]; 6401 } 6402 6403 /** 6404 * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME 6405 * @param event packet 6406 * @return acl_handle 6407 * @note: btstack_type H 6408 */ 6409 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){ 6410 return little_endian_read_16(event, 3); 6411 } 6412 /** 6413 * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME 6414 * @param event packet 6415 * @return gain 6416 * @note: btstack_type 1 6417 */ 6418 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){ 6419 return event[5]; 6420 } 6421 6422 /** 6423 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6424 * @param event packet 6425 * @return acl_handle 6426 * @note: btstack_type H 6427 */ 6428 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){ 6429 return little_endian_read_16(event, 3); 6430 } 6431 /** 6432 * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6433 * @param event packet 6434 * @return type 6435 * @note: btstack_type 1 6436 */ 6437 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){ 6438 return event[5]; 6439 } 6440 /** 6441 * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6442 * @param event packet 6443 * @return number_length 6444 * @note: btstack_type J 6445 */ 6446 static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){ 6447 return event[6]; 6448 } 6449 /** 6450 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6451 * @param event packet 6452 * @return number 6453 * @note: btstack_type V 6454 */ 6455 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){ 6456 return &event[7]; 6457 } 6458 /** 6459 * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6460 * @param event packet 6461 * @return alpha_length 6462 * @note: btstack_type J 6463 */ 6464 static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){ 6465 return event[7u + event[6]]; 6466 } 6467 /** 6468 * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6469 * @param event packet 6470 * @return alpha 6471 * @note: btstack_type V 6472 */ 6473 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){ 6474 return &event[7u + event[6] + 1u]; 6475 } 6476 6477 /** 6478 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6479 * @param event packet 6480 * @return acl_handle 6481 * @note: btstack_type H 6482 */ 6483 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){ 6484 return little_endian_read_16(event, 3); 6485 } 6486 /** 6487 * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6488 * @param event packet 6489 * @return type 6490 * @note: btstack_type 1 6491 */ 6492 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){ 6493 return event[5]; 6494 } 6495 /** 6496 * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6497 * @param event packet 6498 * @return number_length 6499 * @note: btstack_type J 6500 */ 6501 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){ 6502 return event[6]; 6503 } 6504 /** 6505 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6506 * @param event packet 6507 * @return number 6508 * @note: btstack_type V 6509 */ 6510 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){ 6511 return &event[7]; 6512 } 6513 /** 6514 * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6515 * @param event packet 6516 * @return alpha_length 6517 * @note: btstack_type J 6518 */ 6519 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){ 6520 return event[7u + event[6]]; 6521 } 6522 /** 6523 * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6524 * @param event packet 6525 * @return alpha 6526 * @note: btstack_type V 6527 */ 6528 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){ 6529 return &event[7u + event[6] + 1u]; 6530 } 6531 6532 /** 6533 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6534 * @param event packet 6535 * @return acl_handle 6536 * @note: btstack_type H 6537 */ 6538 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){ 6539 return little_endian_read_16(event, 3); 6540 } 6541 /** 6542 * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6543 * @param event packet 6544 * @return clcc_idx 6545 * @note: btstack_type 1 6546 */ 6547 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){ 6548 return event[5]; 6549 } 6550 /** 6551 * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6552 * @param event packet 6553 * @return clcc_dir 6554 * @note: btstack_type 1 6555 */ 6556 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){ 6557 return event[6]; 6558 } 6559 /** 6560 * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6561 * @param event packet 6562 * @return clcc_status 6563 * @note: btstack_type 1 6564 */ 6565 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){ 6566 return event[7]; 6567 } 6568 /** 6569 * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6570 * @param event packet 6571 * @return clcc_mode 6572 * @note: btstack_type 1 6573 */ 6574 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){ 6575 return event[8]; 6576 } 6577 /** 6578 * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6579 * @param event packet 6580 * @return clcc_mpty 6581 * @note: btstack_type 1 6582 */ 6583 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){ 6584 return event[9]; 6585 } 6586 /** 6587 * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6588 * @param event packet 6589 * @return bnip_type 6590 * @note: btstack_type 1 6591 */ 6592 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){ 6593 return event[10]; 6594 } 6595 /** 6596 * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6597 * @param event packet 6598 * @return bnip_number 6599 * @note: btstack_type T 6600 */ 6601 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){ 6602 return (const char *) &event[11]; 6603 } 6604 6605 /** 6606 * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6607 * @param event packet 6608 * @return acl_handle 6609 * @note: btstack_type H 6610 */ 6611 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){ 6612 return little_endian_read_16(event, 3); 6613 } 6614 /** 6615 * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6616 * @param event packet 6617 * @return status 6618 * @note: btstack_type 1 6619 */ 6620 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){ 6621 return event[5]; 6622 } 6623 /** 6624 * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6625 * @param event packet 6626 * @return bnip_type 6627 * @note: btstack_type 1 6628 */ 6629 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){ 6630 return event[6]; 6631 } 6632 /** 6633 * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6634 * @param event packet 6635 * @return bnip_number 6636 * @note: btstack_type T 6637 */ 6638 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){ 6639 return (const char *) &event[7]; 6640 } 6641 6642 /** 6643 * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 6644 * @param event packet 6645 * @return acl_handle 6646 * @note: btstack_type H 6647 */ 6648 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){ 6649 return little_endian_read_16(event, 3); 6650 } 6651 /** 6652 * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 6653 * @param event packet 6654 * @return value 6655 * @note: btstack_type T 6656 */ 6657 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){ 6658 return (const char *) &event[5]; 6659 } 6660 6661 /** 6662 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT 6663 * @param event packet 6664 * @return acl_handle 6665 * @note: btstack_type H 6666 */ 6667 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){ 6668 return little_endian_read_16(event, 3); 6669 } 6670 /** 6671 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT 6672 * @param event packet 6673 * @return command 6674 * @note: btstack_type T 6675 */ 6676 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){ 6677 return (const char *) &event[5]; 6678 } 6679 6680 /** 6681 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 6682 * @param event packet 6683 * @return acl_handle 6684 * @note: btstack_type H 6685 */ 6686 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){ 6687 return little_endian_read_16(event, 3); 6688 } 6689 /** 6690 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 6691 * @param event packet 6692 * @return command 6693 * @note: btstack_type T 6694 */ 6695 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){ 6696 return (const char *) &event[5]; 6697 } 6698 6699 /** 6700 * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE 6701 * @param event packet 6702 * @return acl_handle 6703 * @note: btstack_type H 6704 */ 6705 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){ 6706 return little_endian_read_16(event, 3); 6707 } 6708 /** 6709 * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE 6710 * @param event packet 6711 * @return status 6712 * @note: btstack_type 1 6713 */ 6714 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){ 6715 return event[5]; 6716 } 6717 6718 /** 6719 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6720 * @param event packet 6721 * @return acl_handle 6722 * @note: btstack_type H 6723 */ 6724 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){ 6725 return little_endian_read_16(event, 3); 6726 } 6727 /** 6728 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6729 * @param event packet 6730 * @return status 6731 * @note: btstack_type 1 6732 */ 6733 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){ 6734 return event[5]; 6735 } 6736 /** 6737 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6738 * @param event packet 6739 * @return enhanced 6740 * @note: btstack_type 1 6741 */ 6742 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){ 6743 return event[6]; 6744 } 6745 6746 /** 6747 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 6748 * @param event packet 6749 * @return acl_handle 6750 * @note: btstack_type H 6751 */ 6752 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){ 6753 return little_endian_read_16(event, 3); 6754 } 6755 /** 6756 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 6757 * @param event packet 6758 * @return status 6759 * @note: btstack_type 1 6760 */ 6761 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){ 6762 return event[5]; 6763 } 6764 6765 /** 6766 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 6767 * @param event packet 6768 * @return acl_handle 6769 * @note: btstack_type H 6770 */ 6771 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){ 6772 return little_endian_read_16(event, 3); 6773 } 6774 /** 6775 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 6776 * @param event packet 6777 * @return status 6778 * @note: btstack_type 1 6779 */ 6780 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){ 6781 return event[5]; 6782 } 6783 6784 /** 6785 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 6786 * @param event packet 6787 * @return acl_handle 6788 * @note: btstack_type H 6789 */ 6790 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){ 6791 return little_endian_read_16(event, 3); 6792 } 6793 /** 6794 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 6795 * @param event packet 6796 * @return status 6797 * @note: btstack_type 1 6798 */ 6799 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){ 6800 return event[5]; 6801 } 6802 6803 /** 6804 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 6805 * @param event packet 6806 * @return acl_handle 6807 * @note: btstack_type H 6808 */ 6809 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){ 6810 return little_endian_read_16(event, 3); 6811 } 6812 /** 6813 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 6814 * @param event packet 6815 * @return status 6816 * @note: btstack_type 1 6817 */ 6818 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){ 6819 return event[5]; 6820 } 6821 6822 /** 6823 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 6824 * @param event packet 6825 * @return acl_handle 6826 * @note: btstack_type H 6827 */ 6828 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){ 6829 return little_endian_read_16(event, 3); 6830 } 6831 /** 6832 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 6833 * @param event packet 6834 * @return status 6835 * @note: btstack_type 1 6836 */ 6837 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){ 6838 return event[5]; 6839 } 6840 6841 /** 6842 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 6843 * @param event packet 6844 * @return acl_handle 6845 * @note: btstack_type H 6846 */ 6847 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){ 6848 return little_endian_read_16(event, 3); 6849 } 6850 /** 6851 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 6852 * @param event packet 6853 * @return status 6854 * @note: btstack_type 1 6855 */ 6856 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){ 6857 return event[5]; 6858 } 6859 6860 /** 6861 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6862 * @param event packet 6863 * @return acl_handle 6864 * @note: btstack_type H 6865 */ 6866 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){ 6867 return little_endian_read_16(event, 3); 6868 } 6869 /** 6870 * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6871 * @param event packet 6872 * @return text_id 6873 * @note: btstack_type 2 6874 */ 6875 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){ 6876 return little_endian_read_16(event, 5); 6877 } 6878 /** 6879 * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6880 * @param event packet 6881 * @return text_type 6882 * @note: btstack_type 1 6883 */ 6884 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){ 6885 return event[7]; 6886 } 6887 /** 6888 * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6889 * @param event packet 6890 * @return text_operation 6891 * @note: btstack_type 1 6892 */ 6893 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){ 6894 return event[8]; 6895 } 6896 /** 6897 * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6898 * @param event packet 6899 * @return text_length 6900 * @note: btstack_type L 6901 */ 6902 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){ 6903 return little_endian_read_16(event, 9); 6904 } 6905 /** 6906 * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6907 * @param event packet 6908 * @return text 6909 * @note: btstack_type V 6910 */ 6911 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){ 6912 return &event[11]; 6913 } 6914 6915 /** 6916 * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 6917 * @param event packet 6918 * @return acl_handle 6919 * @note: btstack_type H 6920 */ 6921 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){ 6922 return little_endian_read_16(event, 3); 6923 } 6924 /** 6925 * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 6926 * @param event packet 6927 * @return status 6928 * @note: btstack_type 1 6929 */ 6930 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){ 6931 return event[5]; 6932 } 6933 6934 /** 6935 * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR 6936 * @param event packet 6937 * @return acl_handle 6938 * @note: btstack_type H 6939 */ 6940 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){ 6941 return little_endian_read_16(event, 3); 6942 } 6943 /** 6944 * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR 6945 * @param event packet 6946 * @return uuid 6947 * @note: btstack_type 2 6948 */ 6949 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){ 6950 return little_endian_read_16(event, 5); 6951 } 6952 /** 6953 * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR 6954 * @param event packet 6955 * @return value 6956 * @note: btstack_type 1 6957 */ 6958 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){ 6959 return event[7]; 6960 } 6961 6962 /** 6963 * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 6964 * @param event packet 6965 * @return acl_handle 6966 * @note: btstack_type H 6967 */ 6968 static inline hci_con_handle_t hfp_subevent_custom_at_command_get_acl_handle(const uint8_t * event){ 6969 return little_endian_read_16(event, 3); 6970 } 6971 /** 6972 * @brief Get field command_id from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 6973 * @param event packet 6974 * @return command_id 6975 * @note: btstack_type 2 6976 */ 6977 static inline uint16_t hfp_subevent_custom_at_command_get_command_id(const uint8_t * event){ 6978 return little_endian_read_16(event, 5); 6979 } 6980 /** 6981 * @brief Get field command_string from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 6982 * @param event packet 6983 * @return command_string 6984 * @note: btstack_type T 6985 */ 6986 static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){ 6987 return (const char *) &event[7]; 6988 } 6989 6990 #ifdef ENABLE_BLE 6991 /** 6992 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED 6993 * @param event packet 6994 * @return handle 6995 * @note: btstack_type H 6996 */ 6997 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){ 6998 return little_endian_read_16(event, 3); 6999 } 7000 #endif 7001 7002 #ifdef ENABLE_BLE 7003 /** 7004 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7005 * @param event packet 7006 * @return handle 7007 * @note: btstack_type H 7008 */ 7009 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){ 7010 return little_endian_read_16(event, 3); 7011 } 7012 /** 7013 * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7014 * @param event packet 7015 * @return attribute_id 7016 * @note: btstack_type 2 7017 */ 7018 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){ 7019 return little_endian_read_16(event, 5); 7020 } 7021 /** 7022 * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7023 * @param event packet 7024 * @return text 7025 * @note: btstack_type T 7026 */ 7027 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){ 7028 return (const char *) &event[7]; 7029 } 7030 #endif 7031 7032 #ifdef ENABLE_BLE 7033 /** 7034 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED 7035 * @param event packet 7036 * @return handle 7037 * @note: btstack_type H 7038 */ 7039 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){ 7040 return little_endian_read_16(event, 3); 7041 } 7042 #endif 7043 7044 /** 7045 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7046 * @param event packet 7047 * @return avdtp_cid 7048 * @note: btstack_type 2 7049 */ 7050 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){ 7051 return little_endian_read_16(event, 3); 7052 } 7053 /** 7054 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7055 * @param event packet 7056 * @return local_seid 7057 * @note: btstack_type 1 7058 */ 7059 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){ 7060 return event[5]; 7061 } 7062 /** 7063 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7064 * @param event packet 7065 * @return is_initiator 7066 * @note: btstack_type 1 7067 */ 7068 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){ 7069 return event[6]; 7070 } 7071 /** 7072 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7073 * @param event packet 7074 * @return signal_identifier 7075 * @note: btstack_type 1 7076 */ 7077 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){ 7078 return event[7]; 7079 } 7080 7081 /** 7082 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT 7083 * @param event packet 7084 * @return avdtp_cid 7085 * @note: btstack_type 2 7086 */ 7087 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){ 7088 return little_endian_read_16(event, 3); 7089 } 7090 /** 7091 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT 7092 * @param event packet 7093 * @return local_seid 7094 * @note: btstack_type 1 7095 */ 7096 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){ 7097 return event[5]; 7098 } 7099 /** 7100 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT 7101 * @param event packet 7102 * @return is_initiator 7103 * @note: btstack_type 1 7104 */ 7105 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){ 7106 return event[6]; 7107 } 7108 /** 7109 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT 7110 * @param event packet 7111 * @return signal_identifier 7112 * @note: btstack_type 1 7113 */ 7114 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){ 7115 return event[7]; 7116 } 7117 7118 /** 7119 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7120 * @param event packet 7121 * @return avdtp_cid 7122 * @note: btstack_type 2 7123 */ 7124 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){ 7125 return little_endian_read_16(event, 3); 7126 } 7127 /** 7128 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7129 * @param event packet 7130 * @return local_seid 7131 * @note: btstack_type 1 7132 */ 7133 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){ 7134 return event[5]; 7135 } 7136 /** 7137 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7138 * @param event packet 7139 * @return is_initiator 7140 * @note: btstack_type 1 7141 */ 7142 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){ 7143 return event[6]; 7144 } 7145 /** 7146 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7147 * @param event packet 7148 * @return signal_identifier 7149 * @note: btstack_type 1 7150 */ 7151 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){ 7152 return event[7]; 7153 } 7154 7155 /** 7156 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7157 * @param event packet 7158 * @return avdtp_cid 7159 * @note: btstack_type 2 7160 */ 7161 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){ 7162 return little_endian_read_16(event, 3); 7163 } 7164 /** 7165 * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7166 * @param event packet 7167 * @param Pointer to storage for bd_addr 7168 * @note: btstack_type B 7169 */ 7170 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 7171 reverse_bytes(&event[5], bd_addr, 6); 7172 } 7173 /** 7174 * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7175 * @param event packet 7176 * @return con_handle 7177 * @note: btstack_type 2 7178 */ 7179 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 7180 return little_endian_read_16(event, 11); 7181 } 7182 /** 7183 * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7184 * @param event packet 7185 * @return status 7186 * @note: btstack_type 1 7187 */ 7188 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 7189 return event[13]; 7190 } 7191 7192 /** 7193 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 7194 * @param event packet 7195 * @return avdtp_cid 7196 * @note: btstack_type 2 7197 */ 7198 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){ 7199 return little_endian_read_16(event, 3); 7200 } 7201 7202 /** 7203 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7204 * @param event packet 7205 * @return avdtp_cid 7206 * @note: btstack_type 2 7207 */ 7208 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){ 7209 return little_endian_read_16(event, 3); 7210 } 7211 /** 7212 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7213 * @param event packet 7214 * @return remote_seid 7215 * @note: btstack_type 1 7216 */ 7217 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){ 7218 return event[5]; 7219 } 7220 /** 7221 * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7222 * @param event packet 7223 * @return in_use 7224 * @note: btstack_type 1 7225 */ 7226 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){ 7227 return event[6]; 7228 } 7229 /** 7230 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7231 * @param event packet 7232 * @return media_type 7233 * @note: btstack_type 1 7234 */ 7235 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){ 7236 return event[7]; 7237 } 7238 /** 7239 * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7240 * @param event packet 7241 * @return sep_type 7242 * @note: btstack_type 1 7243 */ 7244 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){ 7245 return event[8]; 7246 } 7247 7248 /** 7249 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7250 * @param event packet 7251 * @return avdtp_cid 7252 * @note: btstack_type 2 7253 */ 7254 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){ 7255 return little_endian_read_16(event, 3); 7256 } 7257 /** 7258 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7259 * @param event packet 7260 * @return remote_seid 7261 * @note: btstack_type 1 7262 */ 7263 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 7264 return event[5]; 7265 } 7266 /** 7267 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7268 * @param event packet 7269 * @return media_type 7270 * @note: btstack_type 1 7271 */ 7272 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 7273 return event[6]; 7274 } 7275 /** 7276 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7277 * @param event packet 7278 * @return sampling_frequency_bitmap 7279 * @note: btstack_type 1 7280 */ 7281 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7282 return event[7]; 7283 } 7284 /** 7285 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7286 * @param event packet 7287 * @return channel_mode_bitmap 7288 * @note: btstack_type 1 7289 */ 7290 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 7291 return event[8]; 7292 } 7293 /** 7294 * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7295 * @param event packet 7296 * @return block_length_bitmap 7297 * @note: btstack_type 1 7298 */ 7299 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 7300 return event[9]; 7301 } 7302 /** 7303 * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7304 * @param event packet 7305 * @return subbands_bitmap 7306 * @note: btstack_type 1 7307 */ 7308 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 7309 return event[10]; 7310 } 7311 /** 7312 * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7313 * @param event packet 7314 * @return allocation_method_bitmap 7315 * @note: btstack_type 1 7316 */ 7317 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 7318 return event[11]; 7319 } 7320 /** 7321 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7322 * @param event packet 7323 * @return min_bitpool_value 7324 * @note: btstack_type 1 7325 */ 7326 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 7327 return event[12]; 7328 } 7329 /** 7330 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7331 * @param event packet 7332 * @return max_bitpool_value 7333 * @note: btstack_type 1 7334 */ 7335 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 7336 return event[13]; 7337 } 7338 7339 /** 7340 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7341 * @param event packet 7342 * @return avdtp_cid 7343 * @note: btstack_type 2 7344 */ 7345 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){ 7346 return little_endian_read_16(event, 3); 7347 } 7348 /** 7349 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7350 * @param event packet 7351 * @return remote_seid 7352 * @note: btstack_type 1 7353 */ 7354 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 7355 return event[5]; 7356 } 7357 /** 7358 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7359 * @param event packet 7360 * @return media_type 7361 * @note: btstack_type 1 7362 */ 7363 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 7364 return event[6]; 7365 } 7366 /** 7367 * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7368 * @param event packet 7369 * @return layer_bitmap 7370 * @note: btstack_type 1 7371 */ 7372 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 7373 return event[7]; 7374 } 7375 /** 7376 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7377 * @param event packet 7378 * @return crc 7379 * @note: btstack_type 1 7380 */ 7381 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 7382 return event[8]; 7383 } 7384 /** 7385 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7386 * @param event packet 7387 * @return channel_mode_bitmap 7388 * @note: btstack_type 1 7389 */ 7390 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 7391 return event[9]; 7392 } 7393 /** 7394 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7395 * @param event packet 7396 * @return media_payload_format 7397 * @note: btstack_type 1 7398 */ 7399 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 7400 return event[10]; 7401 } 7402 /** 7403 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7404 * @param event packet 7405 * @return sampling_frequency_bitmap 7406 * @note: btstack_type 1 7407 */ 7408 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7409 return event[11]; 7410 } 7411 /** 7412 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7413 * @param event packet 7414 * @return vbr 7415 * @note: btstack_type 1 7416 */ 7417 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 7418 return event[12]; 7419 } 7420 /** 7421 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7422 * @param event packet 7423 * @return bit_rate_index_bitmap 7424 * @note: btstack_type 2 7425 */ 7426 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7427 return little_endian_read_16(event, 13); 7428 } 7429 7430 /** 7431 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7432 * @param event packet 7433 * @return avdtp_cid 7434 * @note: btstack_type 2 7435 */ 7436 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){ 7437 return little_endian_read_16(event, 3); 7438 } 7439 /** 7440 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7441 * @param event packet 7442 * @return remote_seid 7443 * @note: btstack_type 1 7444 */ 7445 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 7446 return event[5]; 7447 } 7448 /** 7449 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7450 * @param event packet 7451 * @return media_type 7452 * @note: btstack_type 1 7453 */ 7454 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 7455 return event[6]; 7456 } 7457 /** 7458 * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7459 * @param event packet 7460 * @return object_type_bitmap 7461 * @note: btstack_type 1 7462 */ 7463 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 7464 return event[7]; 7465 } 7466 /** 7467 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7468 * @param event packet 7469 * @return sampling_frequency_bitmap 7470 * @note: btstack_type 2 7471 */ 7472 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7473 return little_endian_read_16(event, 8); 7474 } 7475 /** 7476 * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7477 * @param event packet 7478 * @return channels_bitmap 7479 * @note: btstack_type 1 7480 */ 7481 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 7482 return event[10]; 7483 } 7484 /** 7485 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7486 * @param event packet 7487 * @return bit_rate 7488 * @note: btstack_type 3 7489 */ 7490 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 7491 return little_endian_read_24(event, 11); 7492 } 7493 /** 7494 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7495 * @param event packet 7496 * @return vbr 7497 * @note: btstack_type 1 7498 */ 7499 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 7500 return event[14]; 7501 } 7502 7503 /** 7504 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7505 * @param event packet 7506 * @return avdtp_cid 7507 * @note: btstack_type 2 7508 */ 7509 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){ 7510 return little_endian_read_16(event, 3); 7511 } 7512 /** 7513 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7514 * @param event packet 7515 * @return remote_seid 7516 * @note: btstack_type 1 7517 */ 7518 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 7519 return event[5]; 7520 } 7521 /** 7522 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7523 * @param event packet 7524 * @return media_type 7525 * @note: btstack_type 1 7526 */ 7527 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 7528 return event[6]; 7529 } 7530 /** 7531 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7532 * @param event packet 7533 * @return version 7534 * @note: btstack_type 1 7535 */ 7536 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 7537 return event[7]; 7538 } 7539 /** 7540 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7541 * @param event packet 7542 * @return channel_mode_bitmap 7543 * @note: btstack_type 1 7544 */ 7545 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 7546 return event[8]; 7547 } 7548 /** 7549 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7550 * @param event packet 7551 * @return sampling_frequency_bitmap 7552 * @note: btstack_type 1 7553 */ 7554 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7555 return event[9]; 7556 } 7557 /** 7558 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7559 * @param event packet 7560 * @return vbr 7561 * @note: btstack_type 1 7562 */ 7563 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 7564 return event[10]; 7565 } 7566 /** 7567 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7568 * @param event packet 7569 * @return bit_rate_index_bitmap 7570 * @note: btstack_type 3 7571 */ 7572 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7573 return little_endian_read_24(event, 11); 7574 } 7575 /** 7576 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7577 * @param event packet 7578 * @return maximum_sul 7579 * @note: btstack_type 2 7580 */ 7581 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 7582 return little_endian_read_16(event, 14); 7583 } 7584 7585 /** 7586 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7587 * @param event packet 7588 * @return avdtp_cid 7589 * @note: btstack_type 2 7590 */ 7591 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){ 7592 return little_endian_read_16(event, 3); 7593 } 7594 /** 7595 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7596 * @param event packet 7597 * @return remote_seid 7598 * @note: btstack_type 1 7599 */ 7600 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 7601 return event[5]; 7602 } 7603 /** 7604 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7605 * @param event packet 7606 * @return media_type 7607 * @note: btstack_type 1 7608 */ 7609 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 7610 return event[6]; 7611 } 7612 /** 7613 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7614 * @param event packet 7615 * @return media_codec_type 7616 * @note: btstack_type 2 7617 */ 7618 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 7619 return little_endian_read_16(event, 7); 7620 } 7621 /** 7622 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7623 * @param event packet 7624 * @return media_codec_information_len 7625 * @note: btstack_type L 7626 */ 7627 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 7628 return little_endian_read_16(event, 9); 7629 } 7630 /** 7631 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7632 * @param event packet 7633 * @return media_codec_information 7634 * @note: btstack_type V 7635 */ 7636 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 7637 return &event[11]; 7638 } 7639 7640 /** 7641 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 7642 * @param event packet 7643 * @return avdtp_cid 7644 * @note: btstack_type 2 7645 */ 7646 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){ 7647 return little_endian_read_16(event, 3); 7648 } 7649 /** 7650 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 7651 * @param event packet 7652 * @return remote_seid 7653 * @note: btstack_type 1 7654 */ 7655 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){ 7656 return event[5]; 7657 } 7658 7659 /** 7660 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 7661 * @param event packet 7662 * @return avdtp_cid 7663 * @note: btstack_type 2 7664 */ 7665 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){ 7666 return little_endian_read_16(event, 3); 7667 } 7668 /** 7669 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 7670 * @param event packet 7671 * @return remote_seid 7672 * @note: btstack_type 1 7673 */ 7674 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){ 7675 return event[5]; 7676 } 7677 7678 /** 7679 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7680 * @param event packet 7681 * @return avdtp_cid 7682 * @note: btstack_type 2 7683 */ 7684 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){ 7685 return little_endian_read_16(event, 3); 7686 } 7687 /** 7688 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7689 * @param event packet 7690 * @return remote_seid 7691 * @note: btstack_type 1 7692 */ 7693 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){ 7694 return event[5]; 7695 } 7696 /** 7697 * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7698 * @param event packet 7699 * @return recovery_type 7700 * @note: btstack_type 1 7701 */ 7702 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){ 7703 return event[6]; 7704 } 7705 /** 7706 * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7707 * @param event packet 7708 * @return maximum_recovery_window_size 7709 * @note: btstack_type 1 7710 */ 7711 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){ 7712 return event[7]; 7713 } 7714 /** 7715 * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7716 * @param event packet 7717 * @return maximum_number_media_packets 7718 * @note: btstack_type 1 7719 */ 7720 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){ 7721 return event[8]; 7722 } 7723 7724 /** 7725 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7726 * @param event packet 7727 * @return avdtp_cid 7728 * @note: btstack_type 2 7729 */ 7730 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){ 7731 return little_endian_read_16(event, 3); 7732 } 7733 /** 7734 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7735 * @param event packet 7736 * @return remote_seid 7737 * @note: btstack_type 1 7738 */ 7739 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){ 7740 return event[5]; 7741 } 7742 /** 7743 * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7744 * @param event packet 7745 * @return cp_type 7746 * @note: btstack_type 2 7747 */ 7748 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){ 7749 return little_endian_read_16(event, 6); 7750 } 7751 /** 7752 * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7753 * @param event packet 7754 * @return cp_type_value_len 7755 * @note: btstack_type L 7756 */ 7757 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){ 7758 return little_endian_read_16(event, 8); 7759 } 7760 /** 7761 * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7762 * @param event packet 7763 * @return cp_type_value 7764 * @note: btstack_type V 7765 */ 7766 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){ 7767 return &event[10]; 7768 } 7769 7770 /** 7771 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7772 * @param event packet 7773 * @return avdtp_cid 7774 * @note: btstack_type 2 7775 */ 7776 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){ 7777 return little_endian_read_16(event, 3); 7778 } 7779 /** 7780 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7781 * @param event packet 7782 * @return remote_seid 7783 * @note: btstack_type 1 7784 */ 7785 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){ 7786 return event[5]; 7787 } 7788 /** 7789 * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7790 * @param event packet 7791 * @return fragmentation 7792 * @note: btstack_type 1 7793 */ 7794 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){ 7795 return event[6]; 7796 } 7797 /** 7798 * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7799 * @param event packet 7800 * @return transport_identifiers_num 7801 * @note: btstack_type 1 7802 */ 7803 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){ 7804 return event[7]; 7805 } 7806 /** 7807 * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7808 * @param event packet 7809 * @return transport_session_identifier_1 7810 * @note: btstack_type 1 7811 */ 7812 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){ 7813 return event[8]; 7814 } 7815 /** 7816 * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7817 * @param event packet 7818 * @return transport_session_identifier_2 7819 * @note: btstack_type 1 7820 */ 7821 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){ 7822 return event[9]; 7823 } 7824 /** 7825 * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7826 * @param event packet 7827 * @return transport_session_identifier_3 7828 * @note: btstack_type 1 7829 */ 7830 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){ 7831 return event[10]; 7832 } 7833 /** 7834 * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7835 * @param event packet 7836 * @return tcid_1 7837 * @note: btstack_type 1 7838 */ 7839 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){ 7840 return event[11]; 7841 } 7842 /** 7843 * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7844 * @param event packet 7845 * @return tcid_2 7846 * @note: btstack_type 1 7847 */ 7848 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){ 7849 return event[12]; 7850 } 7851 /** 7852 * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7853 * @param event packet 7854 * @return tcid_3 7855 * @note: btstack_type 1 7856 */ 7857 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){ 7858 return event[13]; 7859 } 7860 7861 /** 7862 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7863 * @param event packet 7864 * @return avdtp_cid 7865 * @note: btstack_type 2 7866 */ 7867 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){ 7868 return little_endian_read_16(event, 3); 7869 } 7870 /** 7871 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7872 * @param event packet 7873 * @return remote_seid 7874 * @note: btstack_type 1 7875 */ 7876 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 7877 return event[5]; 7878 } 7879 7880 /** 7881 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7882 * @param event packet 7883 * @return avdtp_cid 7884 * @note: btstack_type 2 7885 */ 7886 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){ 7887 return little_endian_read_16(event, 3); 7888 } 7889 /** 7890 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7891 * @param event packet 7892 * @return remote_seid 7893 * @note: btstack_type 1 7894 */ 7895 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){ 7896 return event[5]; 7897 } 7898 /** 7899 * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7900 * @param event packet 7901 * @return back_ch 7902 * @note: btstack_type 1 7903 */ 7904 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){ 7905 return event[6]; 7906 } 7907 /** 7908 * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7909 * @param event packet 7910 * @return media 7911 * @note: btstack_type 1 7912 */ 7913 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){ 7914 return event[7]; 7915 } 7916 /** 7917 * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7918 * @param event packet 7919 * @return recovery 7920 * @note: btstack_type 1 7921 */ 7922 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){ 7923 return event[8]; 7924 } 7925 7926 /** 7927 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7928 * @param event packet 7929 * @return avdtp_cid 7930 * @note: btstack_type 2 7931 */ 7932 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){ 7933 return little_endian_read_16(event, 3); 7934 } 7935 /** 7936 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7937 * @param event packet 7938 * @return remote_seid 7939 * @note: btstack_type 1 7940 */ 7941 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 7942 return event[5]; 7943 } 7944 7945 /** 7946 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7947 * @param event packet 7948 * @return avdtp_cid 7949 * @note: btstack_type 2 7950 */ 7951 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){ 7952 return little_endian_read_16(event, 3); 7953 } 7954 /** 7955 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7956 * @param event packet 7957 * @return local_seid 7958 * @note: btstack_type 1 7959 */ 7960 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 7961 return event[5]; 7962 } 7963 /** 7964 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7965 * @param event packet 7966 * @return remote_seid 7967 * @note: btstack_type 1 7968 */ 7969 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 7970 return event[6]; 7971 } 7972 /** 7973 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7974 * @param event packet 7975 * @return reconfigure 7976 * @note: btstack_type 1 7977 */ 7978 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 7979 return event[7]; 7980 } 7981 /** 7982 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7983 * @param event packet 7984 * @return media_type 7985 * @note: btstack_type 1 7986 */ 7987 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 7988 return event[8]; 7989 } 7990 /** 7991 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7992 * @param event packet 7993 * @return sampling_frequency 7994 * @note: btstack_type 2 7995 */ 7996 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 7997 return little_endian_read_16(event, 9); 7998 } 7999 /** 8000 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8001 * @param event packet 8002 * @return channel_mode 8003 * @note: btstack_type 1 8004 */ 8005 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8006 return event[11]; 8007 } 8008 /** 8009 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8010 * @param event packet 8011 * @return num_channels 8012 * @note: btstack_type 1 8013 */ 8014 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8015 return event[12]; 8016 } 8017 /** 8018 * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8019 * @param event packet 8020 * @return block_length 8021 * @note: btstack_type 1 8022 */ 8023 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8024 return event[13]; 8025 } 8026 /** 8027 * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8028 * @param event packet 8029 * @return subbands 8030 * @note: btstack_type 1 8031 */ 8032 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8033 return event[14]; 8034 } 8035 /** 8036 * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8037 * @param event packet 8038 * @return allocation_method 8039 * @note: btstack_type 1 8040 */ 8041 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8042 return event[15]; 8043 } 8044 /** 8045 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8046 * @param event packet 8047 * @return min_bitpool_value 8048 * @note: btstack_type 1 8049 */ 8050 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8051 return event[16]; 8052 } 8053 /** 8054 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8055 * @param event packet 8056 * @return max_bitpool_value 8057 * @note: btstack_type 1 8058 */ 8059 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8060 return event[17]; 8061 } 8062 8063 /** 8064 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8065 * @param event packet 8066 * @return avdtp_cid 8067 * @note: btstack_type 2 8068 */ 8069 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){ 8070 return little_endian_read_16(event, 3); 8071 } 8072 /** 8073 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8074 * @param event packet 8075 * @return local_seid 8076 * @note: btstack_type 1 8077 */ 8078 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 8079 return event[5]; 8080 } 8081 /** 8082 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8083 * @param event packet 8084 * @return remote_seid 8085 * @note: btstack_type 1 8086 */ 8087 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 8088 return event[6]; 8089 } 8090 /** 8091 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8092 * @param event packet 8093 * @return reconfigure 8094 * @note: btstack_type 1 8095 */ 8096 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 8097 return event[7]; 8098 } 8099 /** 8100 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8101 * @param event packet 8102 * @return media_type 8103 * @note: btstack_type 1 8104 */ 8105 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 8106 return event[8]; 8107 } 8108 /** 8109 * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8110 * @param event packet 8111 * @return layer 8112 * @note: btstack_type 1 8113 */ 8114 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 8115 return event[9]; 8116 } 8117 /** 8118 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8119 * @param event packet 8120 * @return crc 8121 * @note: btstack_type 1 8122 */ 8123 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 8124 return event[10]; 8125 } 8126 /** 8127 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8128 * @param event packet 8129 * @return channel_mode 8130 * @note: btstack_type 1 8131 */ 8132 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 8133 return event[11]; 8134 } 8135 /** 8136 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8137 * @param event packet 8138 * @return num_channels 8139 * @note: btstack_type 1 8140 */ 8141 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 8142 return event[12]; 8143 } 8144 /** 8145 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8146 * @param event packet 8147 * @return media_payload_format 8148 * @note: btstack_type 1 8149 */ 8150 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 8151 return event[13]; 8152 } 8153 /** 8154 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8155 * @param event packet 8156 * @return sampling_frequency 8157 * @note: btstack_type 2 8158 */ 8159 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 8160 return little_endian_read_16(event, 14); 8161 } 8162 /** 8163 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8164 * @param event packet 8165 * @return vbr 8166 * @note: btstack_type 1 8167 */ 8168 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 8169 return event[16]; 8170 } 8171 /** 8172 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8173 * @param event packet 8174 * @return bit_rate_index 8175 * @note: btstack_type 1 8176 */ 8177 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 8178 return event[17]; 8179 } 8180 8181 /** 8182 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8183 * @param event packet 8184 * @return avdtp_cid 8185 * @note: btstack_type 2 8186 */ 8187 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){ 8188 return little_endian_read_16(event, 3); 8189 } 8190 /** 8191 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8192 * @param event packet 8193 * @return local_seid 8194 * @note: btstack_type 1 8195 */ 8196 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 8197 return event[5]; 8198 } 8199 /** 8200 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8201 * @param event packet 8202 * @return remote_seid 8203 * @note: btstack_type 1 8204 */ 8205 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 8206 return event[6]; 8207 } 8208 /** 8209 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8210 * @param event packet 8211 * @return reconfigure 8212 * @note: btstack_type 1 8213 */ 8214 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 8215 return event[7]; 8216 } 8217 /** 8218 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8219 * @param event packet 8220 * @return media_type 8221 * @note: btstack_type 1 8222 */ 8223 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 8224 return event[8]; 8225 } 8226 /** 8227 * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8228 * @param event packet 8229 * @return object_type 8230 * @note: btstack_type 1 8231 */ 8232 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 8233 return event[9]; 8234 } 8235 /** 8236 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8237 * @param event packet 8238 * @return sampling_frequency 8239 * @note: btstack_type 3 8240 */ 8241 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 8242 return little_endian_read_24(event, 10); 8243 } 8244 /** 8245 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8246 * @param event packet 8247 * @return num_channels 8248 * @note: btstack_type 1 8249 */ 8250 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 8251 return event[13]; 8252 } 8253 /** 8254 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8255 * @param event packet 8256 * @return bit_rate 8257 * @note: btstack_type 3 8258 */ 8259 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 8260 return little_endian_read_24(event, 14); 8261 } 8262 /** 8263 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8264 * @param event packet 8265 * @return vbr 8266 * @note: btstack_type 1 8267 */ 8268 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 8269 return event[17]; 8270 } 8271 8272 /** 8273 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8274 * @param event packet 8275 * @return avdtp_cid 8276 * @note: btstack_type 2 8277 */ 8278 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){ 8279 return little_endian_read_16(event, 3); 8280 } 8281 /** 8282 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8283 * @param event packet 8284 * @return local_seid 8285 * @note: btstack_type 1 8286 */ 8287 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 8288 return event[5]; 8289 } 8290 /** 8291 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8292 * @param event packet 8293 * @return remote_seid 8294 * @note: btstack_type 1 8295 */ 8296 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 8297 return event[6]; 8298 } 8299 /** 8300 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8301 * @param event packet 8302 * @return reconfigure 8303 * @note: btstack_type 1 8304 */ 8305 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 8306 return event[7]; 8307 } 8308 /** 8309 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8310 * @param event packet 8311 * @return media_type 8312 * @note: btstack_type 1 8313 */ 8314 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 8315 return event[8]; 8316 } 8317 /** 8318 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8319 * @param event packet 8320 * @return version 8321 * @note: btstack_type 1 8322 */ 8323 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 8324 return event[9]; 8325 } 8326 /** 8327 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8328 * @param event packet 8329 * @return channel_mode 8330 * @note: btstack_type 1 8331 */ 8332 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 8333 return event[10]; 8334 } 8335 /** 8336 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8337 * @param event packet 8338 * @return num_channels 8339 * @note: btstack_type 1 8340 */ 8341 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 8342 return event[11]; 8343 } 8344 /** 8345 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8346 * @param event packet 8347 * @return sampling_frequency 8348 * @note: btstack_type 2 8349 */ 8350 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 8351 return little_endian_read_16(event, 12); 8352 } 8353 /** 8354 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8355 * @param event packet 8356 * @return vbr 8357 * @note: btstack_type 1 8358 */ 8359 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 8360 return event[14]; 8361 } 8362 /** 8363 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8364 * @param event packet 8365 * @return bit_rate_index 8366 * @note: btstack_type 1 8367 */ 8368 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 8369 return event[15]; 8370 } 8371 /** 8372 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8373 * @param event packet 8374 * @return maximum_sul 8375 * @note: btstack_type 2 8376 */ 8377 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 8378 return little_endian_read_16(event, 16); 8379 } 8380 8381 /** 8382 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8383 * @param event packet 8384 * @return avdtp_cid 8385 * @note: btstack_type 2 8386 */ 8387 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){ 8388 return little_endian_read_16(event, 3); 8389 } 8390 /** 8391 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8392 * @param event packet 8393 * @return local_seid 8394 * @note: btstack_type 1 8395 */ 8396 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 8397 return event[5]; 8398 } 8399 /** 8400 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8401 * @param event packet 8402 * @return remote_seid 8403 * @note: btstack_type 1 8404 */ 8405 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 8406 return event[6]; 8407 } 8408 /** 8409 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8410 * @param event packet 8411 * @return reconfigure 8412 * @note: btstack_type 1 8413 */ 8414 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 8415 return event[7]; 8416 } 8417 /** 8418 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8419 * @param event packet 8420 * @return media_type 8421 * @note: btstack_type 1 8422 */ 8423 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 8424 return event[8]; 8425 } 8426 /** 8427 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8428 * @param event packet 8429 * @return media_codec_type 8430 * @note: btstack_type 2 8431 */ 8432 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 8433 return little_endian_read_16(event, 9); 8434 } 8435 /** 8436 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8437 * @param event packet 8438 * @return media_codec_information_len 8439 * @note: btstack_type L 8440 */ 8441 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 8442 return little_endian_read_16(event, 11); 8443 } 8444 /** 8445 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8446 * @param event packet 8447 * @return media_codec_information 8448 * @note: btstack_type V 8449 */ 8450 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 8451 return &event[13]; 8452 } 8453 8454 /** 8455 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8456 * @param event packet 8457 * @return avdtp_cid 8458 * @note: btstack_type 2 8459 */ 8460 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){ 8461 return little_endian_read_16(event, 3); 8462 } 8463 /** 8464 * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8465 * @param event packet 8466 * @param Pointer to storage for bd_addr 8467 * @note: btstack_type B 8468 */ 8469 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8470 reverse_bytes(&event[5], bd_addr, 6); 8471 } 8472 /** 8473 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8474 * @param event packet 8475 * @return local_seid 8476 * @note: btstack_type 1 8477 */ 8478 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){ 8479 return event[11]; 8480 } 8481 /** 8482 * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8483 * @param event packet 8484 * @return remote_seid 8485 * @note: btstack_type 1 8486 */ 8487 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){ 8488 return event[12]; 8489 } 8490 /** 8491 * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8492 * @param event packet 8493 * @return status 8494 * @note: btstack_type 1 8495 */ 8496 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){ 8497 return event[13]; 8498 } 8499 8500 /** 8501 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 8502 * @param event packet 8503 * @return avdtp_cid 8504 * @note: btstack_type 2 8505 */ 8506 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){ 8507 return little_endian_read_16(event, 3); 8508 } 8509 /** 8510 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 8511 * @param event packet 8512 * @return local_seid 8513 * @note: btstack_type 1 8514 */ 8515 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){ 8516 return event[5]; 8517 } 8518 8519 /** 8520 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8521 * @param event packet 8522 * @return avdtp_cid 8523 * @note: btstack_type 2 8524 */ 8525 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){ 8526 return little_endian_read_16(event, 3); 8527 } 8528 /** 8529 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8530 * @param event packet 8531 * @return local_seid 8532 * @note: btstack_type 1 8533 */ 8534 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 8535 return event[5]; 8536 } 8537 /** 8538 * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8539 * @param event packet 8540 * @return sequence_number 8541 * @note: btstack_type 2 8542 */ 8543 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){ 8544 return little_endian_read_16(event, 6); 8545 } 8546 8547 /** 8548 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE 8549 * @param event packet 8550 * @return avdtp_cid 8551 * @note: btstack_type 2 8552 */ 8553 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){ 8554 return little_endian_read_16(event, 3); 8555 } 8556 8557 /** 8558 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8559 * @param event packet 8560 * @return avdtp_cid 8561 * @note: btstack_type 2 8562 */ 8563 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){ 8564 return little_endian_read_16(event, 3); 8565 } 8566 /** 8567 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8568 * @param event packet 8569 * @return local_seid 8570 * @note: btstack_type 1 8571 */ 8572 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 8573 return event[5]; 8574 } 8575 /** 8576 * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8577 * @param event packet 8578 * @return delay_100us 8579 * @note: btstack_type 2 8580 */ 8581 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 8582 return little_endian_read_16(event, 6); 8583 } 8584 8585 /** 8586 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8587 * @param event packet 8588 * @return a2dp_cid 8589 * @note: btstack_type 2 8590 */ 8591 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){ 8592 return little_endian_read_16(event, 3); 8593 } 8594 /** 8595 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8596 * @param event packet 8597 * @return local_seid 8598 * @note: btstack_type 1 8599 */ 8600 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 8601 return event[5]; 8602 } 8603 8604 /** 8605 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8606 * @param event packet 8607 * @return a2dp_cid 8608 * @note: btstack_type 2 8609 */ 8610 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){ 8611 return little_endian_read_16(event, 3); 8612 } 8613 /** 8614 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8615 * @param event packet 8616 * @return local_seid 8617 * @note: btstack_type 1 8618 */ 8619 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 8620 return event[5]; 8621 } 8622 /** 8623 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8624 * @param event packet 8625 * @return remote_seid 8626 * @note: btstack_type 1 8627 */ 8628 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 8629 return event[6]; 8630 } 8631 /** 8632 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8633 * @param event packet 8634 * @return reconfigure 8635 * @note: btstack_type 1 8636 */ 8637 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 8638 return event[7]; 8639 } 8640 /** 8641 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8642 * @param event packet 8643 * @return media_type 8644 * @note: btstack_type 1 8645 */ 8646 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 8647 return event[8]; 8648 } 8649 /** 8650 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8651 * @param event packet 8652 * @return sampling_frequency 8653 * @note: btstack_type 2 8654 */ 8655 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 8656 return little_endian_read_16(event, 9); 8657 } 8658 /** 8659 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8660 * @param event packet 8661 * @return channel_mode 8662 * @note: btstack_type 1 8663 */ 8664 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8665 return event[11]; 8666 } 8667 /** 8668 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8669 * @param event packet 8670 * @return num_channels 8671 * @note: btstack_type 1 8672 */ 8673 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8674 return event[12]; 8675 } 8676 /** 8677 * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8678 * @param event packet 8679 * @return block_length 8680 * @note: btstack_type 1 8681 */ 8682 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8683 return event[13]; 8684 } 8685 /** 8686 * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8687 * @param event packet 8688 * @return subbands 8689 * @note: btstack_type 1 8690 */ 8691 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8692 return event[14]; 8693 } 8694 /** 8695 * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8696 * @param event packet 8697 * @return allocation_method 8698 * @note: btstack_type 1 8699 */ 8700 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8701 return event[15]; 8702 } 8703 /** 8704 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8705 * @param event packet 8706 * @return min_bitpool_value 8707 * @note: btstack_type 1 8708 */ 8709 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8710 return event[16]; 8711 } 8712 /** 8713 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8714 * @param event packet 8715 * @return max_bitpool_value 8716 * @note: btstack_type 1 8717 */ 8718 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8719 return event[17]; 8720 } 8721 8722 /** 8723 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8724 * @param event packet 8725 * @return a2dp_cid 8726 * @note: btstack_type 2 8727 */ 8728 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){ 8729 return little_endian_read_16(event, 3); 8730 } 8731 /** 8732 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8733 * @param event packet 8734 * @return local_seid 8735 * @note: btstack_type 1 8736 */ 8737 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 8738 return event[5]; 8739 } 8740 /** 8741 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8742 * @param event packet 8743 * @return remote_seid 8744 * @note: btstack_type 1 8745 */ 8746 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 8747 return event[6]; 8748 } 8749 /** 8750 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8751 * @param event packet 8752 * @return reconfigure 8753 * @note: btstack_type 1 8754 */ 8755 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 8756 return event[7]; 8757 } 8758 /** 8759 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8760 * @param event packet 8761 * @return media_type 8762 * @note: btstack_type 1 8763 */ 8764 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 8765 return event[8]; 8766 } 8767 /** 8768 * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8769 * @param event packet 8770 * @return layer 8771 * @note: btstack_type 1 8772 */ 8773 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 8774 return event[9]; 8775 } 8776 /** 8777 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8778 * @param event packet 8779 * @return crc 8780 * @note: btstack_type 1 8781 */ 8782 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 8783 return event[10]; 8784 } 8785 /** 8786 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8787 * @param event packet 8788 * @return channel_mode 8789 * @note: btstack_type 1 8790 */ 8791 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 8792 return event[11]; 8793 } 8794 /** 8795 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8796 * @param event packet 8797 * @return num_channels 8798 * @note: btstack_type 1 8799 */ 8800 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 8801 return event[12]; 8802 } 8803 /** 8804 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8805 * @param event packet 8806 * @return media_payload_format 8807 * @note: btstack_type 1 8808 */ 8809 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 8810 return event[13]; 8811 } 8812 /** 8813 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8814 * @param event packet 8815 * @return sampling_frequency 8816 * @note: btstack_type 2 8817 */ 8818 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 8819 return little_endian_read_16(event, 14); 8820 } 8821 /** 8822 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8823 * @param event packet 8824 * @return vbr 8825 * @note: btstack_type 1 8826 */ 8827 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 8828 return event[16]; 8829 } 8830 /** 8831 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8832 * @param event packet 8833 * @return bit_rate_index 8834 * @note: btstack_type 1 8835 */ 8836 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 8837 return event[17]; 8838 } 8839 8840 /** 8841 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8842 * @param event packet 8843 * @return a2dp_cid 8844 * @note: btstack_type 2 8845 */ 8846 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){ 8847 return little_endian_read_16(event, 3); 8848 } 8849 /** 8850 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8851 * @param event packet 8852 * @return local_seid 8853 * @note: btstack_type 1 8854 */ 8855 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 8856 return event[5]; 8857 } 8858 /** 8859 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8860 * @param event packet 8861 * @return remote_seid 8862 * @note: btstack_type 1 8863 */ 8864 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 8865 return event[6]; 8866 } 8867 /** 8868 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8869 * @param event packet 8870 * @return reconfigure 8871 * @note: btstack_type 1 8872 */ 8873 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 8874 return event[7]; 8875 } 8876 /** 8877 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8878 * @param event packet 8879 * @return media_type 8880 * @note: btstack_type 1 8881 */ 8882 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 8883 return event[8]; 8884 } 8885 /** 8886 * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8887 * @param event packet 8888 * @return object_type 8889 * @note: btstack_type 1 8890 */ 8891 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 8892 return event[9]; 8893 } 8894 /** 8895 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8896 * @param event packet 8897 * @return sampling_frequency 8898 * @note: btstack_type 3 8899 */ 8900 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 8901 return little_endian_read_24(event, 10); 8902 } 8903 /** 8904 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8905 * @param event packet 8906 * @return num_channels 8907 * @note: btstack_type 1 8908 */ 8909 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 8910 return event[13]; 8911 } 8912 /** 8913 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8914 * @param event packet 8915 * @return bit_rate 8916 * @note: btstack_type 3 8917 */ 8918 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 8919 return little_endian_read_24(event, 14); 8920 } 8921 /** 8922 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8923 * @param event packet 8924 * @return vbr 8925 * @note: btstack_type 1 8926 */ 8927 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 8928 return event[17]; 8929 } 8930 8931 /** 8932 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8933 * @param event packet 8934 * @return a2dp_cid 8935 * @note: btstack_type 2 8936 */ 8937 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){ 8938 return little_endian_read_16(event, 3); 8939 } 8940 /** 8941 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8942 * @param event packet 8943 * @return local_seid 8944 * @note: btstack_type 1 8945 */ 8946 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 8947 return event[5]; 8948 } 8949 /** 8950 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8951 * @param event packet 8952 * @return remote_seid 8953 * @note: btstack_type 1 8954 */ 8955 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 8956 return event[6]; 8957 } 8958 /** 8959 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8960 * @param event packet 8961 * @return reconfigure 8962 * @note: btstack_type 1 8963 */ 8964 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 8965 return event[7]; 8966 } 8967 /** 8968 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8969 * @param event packet 8970 * @return media_type 8971 * @note: btstack_type 1 8972 */ 8973 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 8974 return event[8]; 8975 } 8976 /** 8977 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8978 * @param event packet 8979 * @return version 8980 * @note: btstack_type 1 8981 */ 8982 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 8983 return event[9]; 8984 } 8985 /** 8986 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8987 * @param event packet 8988 * @return channel_mode 8989 * @note: btstack_type 1 8990 */ 8991 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 8992 return event[10]; 8993 } 8994 /** 8995 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8996 * @param event packet 8997 * @return num_channels 8998 * @note: btstack_type 1 8999 */ 9000 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 9001 return event[11]; 9002 } 9003 /** 9004 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9005 * @param event packet 9006 * @return sampling_frequency 9007 * @note: btstack_type 2 9008 */ 9009 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 9010 return little_endian_read_16(event, 12); 9011 } 9012 /** 9013 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9014 * @param event packet 9015 * @return vbr 9016 * @note: btstack_type 1 9017 */ 9018 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 9019 return event[14]; 9020 } 9021 /** 9022 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9023 * @param event packet 9024 * @return bit_rate_index 9025 * @note: btstack_type 1 9026 */ 9027 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 9028 return event[15]; 9029 } 9030 /** 9031 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9032 * @param event packet 9033 * @return maximum_sul 9034 * @note: btstack_type 2 9035 */ 9036 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 9037 return little_endian_read_16(event, 16); 9038 } 9039 9040 /** 9041 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9042 * @param event packet 9043 * @return a2dp_cid 9044 * @note: btstack_type 2 9045 */ 9046 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){ 9047 return little_endian_read_16(event, 3); 9048 } 9049 /** 9050 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9051 * @param event packet 9052 * @return local_seid 9053 * @note: btstack_type 1 9054 */ 9055 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 9056 return event[5]; 9057 } 9058 /** 9059 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9060 * @param event packet 9061 * @return remote_seid 9062 * @note: btstack_type 1 9063 */ 9064 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 9065 return event[6]; 9066 } 9067 /** 9068 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9069 * @param event packet 9070 * @return reconfigure 9071 * @note: btstack_type 1 9072 */ 9073 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 9074 return event[7]; 9075 } 9076 /** 9077 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9078 * @param event packet 9079 * @return media_type 9080 * @note: btstack_type 1 9081 */ 9082 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 9083 return event[8]; 9084 } 9085 /** 9086 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9087 * @param event packet 9088 * @return media_codec_type 9089 * @note: btstack_type 2 9090 */ 9091 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 9092 return little_endian_read_16(event, 9); 9093 } 9094 /** 9095 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9096 * @param event packet 9097 * @return media_codec_information_len 9098 * @note: btstack_type L 9099 */ 9100 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 9101 return little_endian_read_16(event, 11); 9102 } 9103 /** 9104 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9105 * @param event packet 9106 * @return media_codec_information 9107 * @note: btstack_type V 9108 */ 9109 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 9110 return &event[13]; 9111 } 9112 9113 /** 9114 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9115 * @param event packet 9116 * @return a2dp_cid 9117 * @note: btstack_type 2 9118 */ 9119 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){ 9120 return little_endian_read_16(event, 3); 9121 } 9122 /** 9123 * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9124 * @param event packet 9125 * @param Pointer to storage for bd_addr 9126 * @note: btstack_type B 9127 */ 9128 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9129 reverse_bytes(&event[5], bd_addr, 6); 9130 } 9131 /** 9132 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9133 * @param event packet 9134 * @return local_seid 9135 * @note: btstack_type 1 9136 */ 9137 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){ 9138 return event[11]; 9139 } 9140 /** 9141 * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9142 * @param event packet 9143 * @return remote_seid 9144 * @note: btstack_type 1 9145 */ 9146 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){ 9147 return event[12]; 9148 } 9149 /** 9150 * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9151 * @param event packet 9152 * @return status 9153 * @note: btstack_type 1 9154 */ 9155 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 9156 return event[13]; 9157 } 9158 9159 /** 9160 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 9161 * @param event packet 9162 * @return a2dp_cid 9163 * @note: btstack_type 2 9164 */ 9165 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){ 9166 return little_endian_read_16(event, 3); 9167 } 9168 /** 9169 * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 9170 * @param event packet 9171 * @return local_seid 9172 * @note: btstack_type 1 9173 */ 9174 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){ 9175 return event[5]; 9176 } 9177 9178 /** 9179 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 9180 * @param event packet 9181 * @return a2dp_cid 9182 * @note: btstack_type 2 9183 */ 9184 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 9185 return little_endian_read_16(event, 3); 9186 } 9187 /** 9188 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED 9189 * @param event packet 9190 * @return local_seid 9191 * @note: btstack_type 1 9192 */ 9193 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){ 9194 return event[5]; 9195 } 9196 9197 /** 9198 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED 9199 * @param event packet 9200 * @return a2dp_cid 9201 * @note: btstack_type 2 9202 */ 9203 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){ 9204 return little_endian_read_16(event, 3); 9205 } 9206 /** 9207 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED 9208 * @param event packet 9209 * @return local_seid 9210 * @note: btstack_type 1 9211 */ 9212 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){ 9213 return event[5]; 9214 } 9215 9216 /** 9217 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED 9218 * @param event packet 9219 * @return a2dp_cid 9220 * @note: btstack_type 2 9221 */ 9222 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){ 9223 return little_endian_read_16(event, 3); 9224 } 9225 /** 9226 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED 9227 * @param event packet 9228 * @return local_seid 9229 * @note: btstack_type 1 9230 */ 9231 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){ 9232 return event[5]; 9233 } 9234 9235 /** 9236 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED 9237 * @param event packet 9238 * @return a2dp_cid 9239 * @note: btstack_type 2 9240 */ 9241 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){ 9242 return little_endian_read_16(event, 3); 9243 } 9244 /** 9245 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED 9246 * @param event packet 9247 * @return local_seid 9248 * @note: btstack_type 1 9249 */ 9250 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){ 9251 return event[5]; 9252 } 9253 9254 /** 9255 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9256 * @param event packet 9257 * @return a2dp_cid 9258 * @note: btstack_type 2 9259 */ 9260 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){ 9261 return little_endian_read_16(event, 3); 9262 } 9263 /** 9264 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9265 * @param event packet 9266 * @return local_seid 9267 * @note: btstack_type 1 9268 */ 9269 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){ 9270 return event[5]; 9271 } 9272 /** 9273 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9274 * @param event packet 9275 * @return signal_identifier 9276 * @note: btstack_type 1 9277 */ 9278 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){ 9279 return event[6]; 9280 } 9281 9282 /** 9283 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED 9284 * @param event packet 9285 * @return a2dp_cid 9286 * @note: btstack_type 2 9287 */ 9288 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){ 9289 return little_endian_read_16(event, 3); 9290 } 9291 /** 9292 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED 9293 * @param event packet 9294 * @return local_seid 9295 * @note: btstack_type 1 9296 */ 9297 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){ 9298 return event[5]; 9299 } 9300 /** 9301 * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED 9302 * @param event packet 9303 * @return is_initiator 9304 * @note: btstack_type 1 9305 */ 9306 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){ 9307 return event[6]; 9308 } 9309 /** 9310 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED 9311 * @param event packet 9312 * @return signal_identifier 9313 * @note: btstack_type 1 9314 */ 9315 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){ 9316 return event[7]; 9317 } 9318 9319 /** 9320 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9321 * @param event packet 9322 * @return a2dp_cid 9323 * @note: btstack_type 2 9324 */ 9325 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){ 9326 return little_endian_read_16(event, 3); 9327 } 9328 /** 9329 * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9330 * @param event packet 9331 * @param Pointer to storage for bd_addr 9332 * @note: btstack_type B 9333 */ 9334 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9335 reverse_bytes(&event[5], bd_addr, 6); 9336 } 9337 /** 9338 * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9339 * @param event packet 9340 * @return con_handle 9341 * @note: btstack_type 2 9342 */ 9343 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 9344 return little_endian_read_16(event, 11); 9345 } 9346 /** 9347 * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9348 * @param event packet 9349 * @return status 9350 * @note: btstack_type 1 9351 */ 9352 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 9353 return event[13]; 9354 } 9355 9356 /** 9357 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 9358 * @param event packet 9359 * @return a2dp_cid 9360 * @note: btstack_type 2 9361 */ 9362 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){ 9363 return little_endian_read_16(event, 3); 9364 } 9365 9366 /** 9367 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9368 * @param event packet 9369 * @return a2dp_cid 9370 * @note: btstack_type 2 9371 */ 9372 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){ 9373 return little_endian_read_16(event, 3); 9374 } 9375 /** 9376 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9377 * @param event packet 9378 * @return local_seid 9379 * @note: btstack_type 1 9380 */ 9381 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){ 9382 return event[5]; 9383 } 9384 /** 9385 * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9386 * @param event packet 9387 * @return status 9388 * @note: btstack_type 1 9389 */ 9390 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){ 9391 return event[6]; 9392 } 9393 9394 /** 9395 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9396 * @param event packet 9397 * @return a2dp_cid 9398 * @note: btstack_type 2 9399 */ 9400 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){ 9401 return little_endian_read_16(event, 3); 9402 } 9403 /** 9404 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9405 * @param event packet 9406 * @return remote_seid 9407 * @note: btstack_type 1 9408 */ 9409 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 9410 return event[5]; 9411 } 9412 /** 9413 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9414 * @param event packet 9415 * @return media_type 9416 * @note: btstack_type 1 9417 */ 9418 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 9419 return event[6]; 9420 } 9421 /** 9422 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9423 * @param event packet 9424 * @return sampling_frequency_bitmap 9425 * @note: btstack_type 1 9426 */ 9427 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9428 return event[7]; 9429 } 9430 /** 9431 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9432 * @param event packet 9433 * @return channel_mode_bitmap 9434 * @note: btstack_type 1 9435 */ 9436 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 9437 return event[8]; 9438 } 9439 /** 9440 * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9441 * @param event packet 9442 * @return block_length_bitmap 9443 * @note: btstack_type 1 9444 */ 9445 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 9446 return event[9]; 9447 } 9448 /** 9449 * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9450 * @param event packet 9451 * @return subbands_bitmap 9452 * @note: btstack_type 1 9453 */ 9454 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 9455 return event[10]; 9456 } 9457 /** 9458 * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9459 * @param event packet 9460 * @return allocation_method_bitmap 9461 * @note: btstack_type 1 9462 */ 9463 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 9464 return event[11]; 9465 } 9466 /** 9467 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9468 * @param event packet 9469 * @return min_bitpool_value 9470 * @note: btstack_type 1 9471 */ 9472 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 9473 return event[12]; 9474 } 9475 /** 9476 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9477 * @param event packet 9478 * @return max_bitpool_value 9479 * @note: btstack_type 1 9480 */ 9481 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 9482 return event[13]; 9483 } 9484 9485 /** 9486 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9487 * @param event packet 9488 * @return a2dp_cid 9489 * @note: btstack_type 2 9490 */ 9491 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){ 9492 return little_endian_read_16(event, 3); 9493 } 9494 /** 9495 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9496 * @param event packet 9497 * @return remote_seid 9498 * @note: btstack_type 1 9499 */ 9500 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 9501 return event[5]; 9502 } 9503 /** 9504 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9505 * @param event packet 9506 * @return media_type 9507 * @note: btstack_type 1 9508 */ 9509 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 9510 return event[6]; 9511 } 9512 /** 9513 * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9514 * @param event packet 9515 * @return layer_bitmap 9516 * @note: btstack_type 1 9517 */ 9518 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 9519 return event[7]; 9520 } 9521 /** 9522 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9523 * @param event packet 9524 * @return crc 9525 * @note: btstack_type 1 9526 */ 9527 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 9528 return event[8]; 9529 } 9530 /** 9531 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9532 * @param event packet 9533 * @return channel_mode_bitmap 9534 * @note: btstack_type 1 9535 */ 9536 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 9537 return event[9]; 9538 } 9539 /** 9540 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9541 * @param event packet 9542 * @return media_payload_format 9543 * @note: btstack_type 1 9544 */ 9545 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 9546 return event[10]; 9547 } 9548 /** 9549 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9550 * @param event packet 9551 * @return sampling_frequency_bitmap 9552 * @note: btstack_type 1 9553 */ 9554 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9555 return event[11]; 9556 } 9557 /** 9558 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9559 * @param event packet 9560 * @return vbr 9561 * @note: btstack_type 1 9562 */ 9563 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 9564 return event[12]; 9565 } 9566 /** 9567 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9568 * @param event packet 9569 * @return bit_rate_index_bitmap 9570 * @note: btstack_type 2 9571 */ 9572 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 9573 return little_endian_read_16(event, 13); 9574 } 9575 9576 /** 9577 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9578 * @param event packet 9579 * @return a2dp_cid 9580 * @note: btstack_type 2 9581 */ 9582 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){ 9583 return little_endian_read_16(event, 3); 9584 } 9585 /** 9586 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9587 * @param event packet 9588 * @return remote_seid 9589 * @note: btstack_type 1 9590 */ 9591 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 9592 return event[5]; 9593 } 9594 /** 9595 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9596 * @param event packet 9597 * @return media_type 9598 * @note: btstack_type 1 9599 */ 9600 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 9601 return event[6]; 9602 } 9603 /** 9604 * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9605 * @param event packet 9606 * @return object_type_bitmap 9607 * @note: btstack_type 1 9608 */ 9609 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 9610 return event[7]; 9611 } 9612 /** 9613 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9614 * @param event packet 9615 * @return sampling_frequency_bitmap 9616 * @note: btstack_type 2 9617 */ 9618 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9619 return little_endian_read_16(event, 8); 9620 } 9621 /** 9622 * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9623 * @param event packet 9624 * @return channels_bitmap 9625 * @note: btstack_type 1 9626 */ 9627 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 9628 return event[10]; 9629 } 9630 /** 9631 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9632 * @param event packet 9633 * @return bit_rate 9634 * @note: btstack_type 3 9635 */ 9636 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 9637 return little_endian_read_24(event, 11); 9638 } 9639 /** 9640 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9641 * @param event packet 9642 * @return vbr 9643 * @note: btstack_type 1 9644 */ 9645 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 9646 return event[14]; 9647 } 9648 9649 /** 9650 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9651 * @param event packet 9652 * @return a2dp_cid 9653 * @note: btstack_type 2 9654 */ 9655 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){ 9656 return little_endian_read_16(event, 3); 9657 } 9658 /** 9659 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9660 * @param event packet 9661 * @return remote_seid 9662 * @note: btstack_type 1 9663 */ 9664 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 9665 return event[5]; 9666 } 9667 /** 9668 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9669 * @param event packet 9670 * @return media_type 9671 * @note: btstack_type 1 9672 */ 9673 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 9674 return event[6]; 9675 } 9676 /** 9677 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9678 * @param event packet 9679 * @return version 9680 * @note: btstack_type 1 9681 */ 9682 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 9683 return event[7]; 9684 } 9685 /** 9686 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9687 * @param event packet 9688 * @return channel_mode_bitmap 9689 * @note: btstack_type 1 9690 */ 9691 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 9692 return event[8]; 9693 } 9694 /** 9695 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9696 * @param event packet 9697 * @return sampling_frequency_bitmap 9698 * @note: btstack_type 1 9699 */ 9700 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9701 return event[9]; 9702 } 9703 /** 9704 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9705 * @param event packet 9706 * @return vbr 9707 * @note: btstack_type 1 9708 */ 9709 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 9710 return event[10]; 9711 } 9712 /** 9713 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9714 * @param event packet 9715 * @return bit_rate_index_bitmap 9716 * @note: btstack_type 3 9717 */ 9718 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 9719 return little_endian_read_24(event, 11); 9720 } 9721 /** 9722 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9723 * @param event packet 9724 * @return maximum_sul 9725 * @note: btstack_type 2 9726 */ 9727 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 9728 return little_endian_read_16(event, 14); 9729 } 9730 9731 /** 9732 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9733 * @param event packet 9734 * @return a2dp_cid 9735 * @note: btstack_type 2 9736 */ 9737 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){ 9738 return little_endian_read_16(event, 3); 9739 } 9740 /** 9741 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9742 * @param event packet 9743 * @return remote_seid 9744 * @note: btstack_type 1 9745 */ 9746 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 9747 return event[5]; 9748 } 9749 /** 9750 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9751 * @param event packet 9752 * @return media_type 9753 * @note: btstack_type 1 9754 */ 9755 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 9756 return event[6]; 9757 } 9758 /** 9759 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9760 * @param event packet 9761 * @return media_codec_type 9762 * @note: btstack_type 2 9763 */ 9764 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 9765 return little_endian_read_16(event, 7); 9766 } 9767 /** 9768 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9769 * @param event packet 9770 * @return media_codec_information_len 9771 * @note: btstack_type L 9772 */ 9773 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 9774 return little_endian_read_16(event, 9); 9775 } 9776 /** 9777 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9778 * @param event packet 9779 * @return media_codec_information 9780 * @note: btstack_type V 9781 */ 9782 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 9783 return &event[11]; 9784 } 9785 9786 /** 9787 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 9788 * @param event packet 9789 * @return a2dp_cid 9790 * @note: btstack_type 2 9791 */ 9792 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){ 9793 return little_endian_read_16(event, 3); 9794 } 9795 /** 9796 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 9797 * @param event packet 9798 * @return remote_seid 9799 * @note: btstack_type 1 9800 */ 9801 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 9802 return event[5]; 9803 } 9804 9805 /** 9806 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9807 * @param event packet 9808 * @return a2dp_cid 9809 * @note: btstack_type 2 9810 */ 9811 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){ 9812 return little_endian_read_16(event, 3); 9813 } 9814 /** 9815 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9816 * @param event packet 9817 * @return local_seid 9818 * @note: btstack_type 1 9819 */ 9820 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 9821 return event[5]; 9822 } 9823 /** 9824 * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9825 * @param event packet 9826 * @return delay_100us 9827 * @note: btstack_type 2 9828 */ 9829 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 9830 return little_endian_read_16(event, 6); 9831 } 9832 9833 /** 9834 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 9835 * @param event packet 9836 * @return a2dp_cid 9837 * @note: btstack_type 2 9838 */ 9839 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){ 9840 return little_endian_read_16(event, 3); 9841 } 9842 /** 9843 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 9844 * @param event packet 9845 * @return remote_seid 9846 * @note: btstack_type 1 9847 */ 9848 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 9849 return event[5]; 9850 } 9851 9852 /** 9853 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE 9854 * @param event packet 9855 * @return a2dp_cid 9856 * @note: btstack_type 2 9857 */ 9858 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){ 9859 return little_endian_read_16(event, 3); 9860 } 9861 9862 /** 9863 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9864 * @param event packet 9865 * @return avrcp_cid 9866 * @note: btstack_type 2 9867 */ 9868 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){ 9869 return little_endian_read_16(event, 3); 9870 } 9871 /** 9872 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9873 * @param event packet 9874 * @return command_type 9875 * @note: btstack_type 1 9876 */ 9877 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){ 9878 return event[5]; 9879 } 9880 /** 9881 * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9882 * @param event packet 9883 * @return play_status 9884 * @note: btstack_type 1 9885 */ 9886 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){ 9887 return event[6]; 9888 } 9889 9890 /** 9891 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 9892 * @param event packet 9893 * @return avrcp_cid 9894 * @note: btstack_type 2 9895 */ 9896 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){ 9897 return little_endian_read_16(event, 3); 9898 } 9899 /** 9900 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 9901 * @param event packet 9902 * @return command_type 9903 * @note: btstack_type 1 9904 */ 9905 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){ 9906 return event[5]; 9907 } 9908 9909 /** 9910 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 9911 * @param event packet 9912 * @return avrcp_cid 9913 * @note: btstack_type 2 9914 */ 9915 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){ 9916 return little_endian_read_16(event, 3); 9917 } 9918 /** 9919 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 9920 * @param event packet 9921 * @return command_type 9922 * @note: btstack_type 1 9923 */ 9924 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){ 9925 return event[5]; 9926 } 9927 9928 /** 9929 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 9930 * @param event packet 9931 * @return avrcp_cid 9932 * @note: btstack_type 2 9933 */ 9934 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){ 9935 return little_endian_read_16(event, 3); 9936 } 9937 /** 9938 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 9939 * @param event packet 9940 * @return command_type 9941 * @note: btstack_type 1 9942 */ 9943 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){ 9944 return event[5]; 9945 } 9946 9947 /** 9948 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9949 * @param event packet 9950 * @return avrcp_cid 9951 * @note: btstack_type 2 9952 */ 9953 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 9954 return little_endian_read_16(event, 3); 9955 } 9956 /** 9957 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9958 * @param event packet 9959 * @return command_type 9960 * @note: btstack_type 1 9961 */ 9962 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){ 9963 return event[5]; 9964 } 9965 /** 9966 * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9967 * @param event packet 9968 * @return playback_position 9969 * @note: btstack_type 4 9970 */ 9971 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){ 9972 return little_endian_read_32(event, 6); 9973 } 9974 9975 /** 9976 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 9977 * @param event packet 9978 * @return avrcp_cid 9979 * @note: btstack_type 2 9980 */ 9981 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){ 9982 return little_endian_read_16(event, 3); 9983 } 9984 /** 9985 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 9986 * @param event packet 9987 * @return command_type 9988 * @note: btstack_type 1 9989 */ 9990 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){ 9991 return event[5]; 9992 } 9993 /** 9994 * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 9995 * @param event packet 9996 * @return battery_status 9997 * @note: btstack_type 1 9998 */ 9999 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){ 10000 return event[6]; 10001 } 10002 10003 /** 10004 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10005 * @param event packet 10006 * @return avrcp_cid 10007 * @note: btstack_type 2 10008 */ 10009 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){ 10010 return little_endian_read_16(event, 3); 10011 } 10012 /** 10013 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10014 * @param event packet 10015 * @return command_type 10016 * @note: btstack_type 1 10017 */ 10018 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){ 10019 return event[5]; 10020 } 10021 /** 10022 * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10023 * @param event packet 10024 * @return system_status 10025 * @note: btstack_type 1 10026 */ 10027 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){ 10028 return event[6]; 10029 } 10030 10031 /** 10032 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10033 * @param event packet 10034 * @return avrcp_cid 10035 * @note: btstack_type 2 10036 */ 10037 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){ 10038 return little_endian_read_16(event, 3); 10039 } 10040 /** 10041 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10042 * @param event packet 10043 * @return command_type 10044 * @note: btstack_type 1 10045 */ 10046 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){ 10047 return event[5]; 10048 } 10049 10050 /** 10051 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10052 * @param event packet 10053 * @return avrcp_cid 10054 * @note: btstack_type 2 10055 */ 10056 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){ 10057 return little_endian_read_16(event, 3); 10058 } 10059 /** 10060 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10061 * @param event packet 10062 * @return command_type 10063 * @note: btstack_type 1 10064 */ 10065 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){ 10066 return event[5]; 10067 } 10068 10069 /** 10070 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10071 * @param event packet 10072 * @return avrcp_cid 10073 * @note: btstack_type 2 10074 */ 10075 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){ 10076 return little_endian_read_16(event, 3); 10077 } 10078 /** 10079 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10080 * @param event packet 10081 * @return command_type 10082 * @note: btstack_type 1 10083 */ 10084 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){ 10085 return event[5]; 10086 } 10087 /** 10088 * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10089 * @param event packet 10090 * @return uid_counter 10091 * @note: btstack_type 2 10092 */ 10093 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){ 10094 return little_endian_read_16(event, 6); 10095 } 10096 10097 /** 10098 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10099 * @param event packet 10100 * @return avrcp_cid 10101 * @note: btstack_type 2 10102 */ 10103 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){ 10104 return little_endian_read_16(event, 3); 10105 } 10106 /** 10107 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10108 * @param event packet 10109 * @return command_type 10110 * @note: btstack_type 1 10111 */ 10112 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){ 10113 return event[5]; 10114 } 10115 /** 10116 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10117 * @param event packet 10118 * @return absolute_volume 10119 * @note: btstack_type 1 10120 */ 10121 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){ 10122 return event[6]; 10123 } 10124 10125 /** 10126 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10127 * @param event packet 10128 * @return avrcp_cid 10129 * @note: btstack_type 2 10130 */ 10131 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){ 10132 return little_endian_read_16(event, 3); 10133 } 10134 /** 10135 * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10136 * @param event packet 10137 * @return command_type 10138 * @note: btstack_type 1 10139 */ 10140 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){ 10141 return event[5]; 10142 } 10143 /** 10144 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10145 * @param event packet 10146 * @return absolute_volume 10147 * @note: btstack_type 1 10148 */ 10149 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){ 10150 return event[6]; 10151 } 10152 10153 /** 10154 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10155 * @param event packet 10156 * @return avrcp_cid 10157 * @note: btstack_type 2 10158 */ 10159 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){ 10160 return little_endian_read_16(event, 3); 10161 } 10162 /** 10163 * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10164 * @param event packet 10165 * @return status 10166 * @note: btstack_type 1 10167 */ 10168 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){ 10169 return event[5]; 10170 } 10171 /** 10172 * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10173 * @param event packet 10174 * @return enabled 10175 * @note: btstack_type 1 10176 */ 10177 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){ 10178 return event[6]; 10179 } 10180 /** 10181 * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10182 * @param event packet 10183 * @return event_id 10184 * @note: btstack_type 1 10185 */ 10186 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){ 10187 return event[7]; 10188 } 10189 10190 /** 10191 * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10192 * @param event packet 10193 * @return status 10194 * @note: btstack_type 1 10195 */ 10196 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){ 10197 return event[3]; 10198 } 10199 /** 10200 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10201 * @param event packet 10202 * @return avrcp_cid 10203 * @note: btstack_type 2 10204 */ 10205 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){ 10206 return little_endian_read_16(event, 4); 10207 } 10208 /** 10209 * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10210 * @param event packet 10211 * @param Pointer to storage for bd_addr 10212 * @note: btstack_type B 10213 */ 10214 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10215 reverse_bytes(&event[6], bd_addr, 6); 10216 } 10217 /** 10218 * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10219 * @param event packet 10220 * @return con_handle 10221 * @note: btstack_type 2 10222 */ 10223 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){ 10224 return little_endian_read_16(event, 12); 10225 } 10226 10227 /** 10228 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED 10229 * @param event packet 10230 * @return avrcp_cid 10231 * @note: btstack_type 2 10232 */ 10233 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){ 10234 return little_endian_read_16(event, 3); 10235 } 10236 10237 /** 10238 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10239 * @param event packet 10240 * @return avrcp_cid 10241 * @note: btstack_type 2 10242 */ 10243 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){ 10244 return little_endian_read_16(event, 3); 10245 } 10246 /** 10247 * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10248 * @param event packet 10249 * @return command_type 10250 * @note: btstack_type 1 10251 */ 10252 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){ 10253 return event[5]; 10254 } 10255 /** 10256 * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10257 * @param event packet 10258 * @return repeat_mode 10259 * @note: btstack_type 1 10260 */ 10261 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){ 10262 return event[6]; 10263 } 10264 /** 10265 * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10266 * @param event packet 10267 * @return shuffle_mode 10268 * @note: btstack_type 1 10269 */ 10270 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){ 10271 return event[7]; 10272 } 10273 10274 /** 10275 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS 10276 * @param event packet 10277 * @return avrcp_cid 10278 * @note: btstack_type 2 10279 */ 10280 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){ 10281 return little_endian_read_16(event, 3); 10282 } 10283 /** 10284 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS 10285 * @param event packet 10286 * @return command_type 10287 * @note: btstack_type 1 10288 */ 10289 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){ 10290 return event[5]; 10291 } 10292 /** 10293 * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS 10294 * @param event packet 10295 * @return song_length 10296 * @note: btstack_type 4 10297 */ 10298 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){ 10299 return little_endian_read_32(event, 6); 10300 } 10301 /** 10302 * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS 10303 * @param event packet 10304 * @return song_position 10305 * @note: btstack_type 4 10306 */ 10307 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){ 10308 return little_endian_read_32(event, 10); 10309 } 10310 /** 10311 * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS 10312 * @param event packet 10313 * @return play_status 10314 * @note: btstack_type 1 10315 */ 10316 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){ 10317 return event[14]; 10318 } 10319 10320 /** 10321 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START 10322 * @param event packet 10323 * @return avrcp_cid 10324 * @note: btstack_type 2 10325 */ 10326 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){ 10327 return little_endian_read_16(event, 3); 10328 } 10329 /** 10330 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START 10331 * @param event packet 10332 * @return command_type 10333 * @note: btstack_type 1 10334 */ 10335 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){ 10336 return event[5]; 10337 } 10338 /** 10339 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START 10340 * @param event packet 10341 * @return operation_id 10342 * @note: btstack_type 1 10343 */ 10344 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){ 10345 return event[6]; 10346 } 10347 10348 /** 10349 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10350 * @param event packet 10351 * @return avrcp_cid 10352 * @note: btstack_type 2 10353 */ 10354 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){ 10355 return little_endian_read_16(event, 3); 10356 } 10357 /** 10358 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10359 * @param event packet 10360 * @return command_type 10361 * @note: btstack_type 1 10362 */ 10363 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){ 10364 return event[5]; 10365 } 10366 /** 10367 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10368 * @param event packet 10369 * @return operation_id 10370 * @note: btstack_type 1 10371 */ 10372 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){ 10373 return event[6]; 10374 } 10375 10376 /** 10377 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 10378 * @param event packet 10379 * @return avrcp_cid 10380 * @note: btstack_type 2 10381 */ 10382 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){ 10383 return little_endian_read_16(event, 3); 10384 } 10385 /** 10386 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 10387 * @param event packet 10388 * @return command_type 10389 * @note: btstack_type 1 10390 */ 10391 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){ 10392 return event[5]; 10393 } 10394 10395 /** 10396 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY 10397 * @param event packet 10398 * @return avrcp_cid 10399 * @note: btstack_type 2 10400 */ 10401 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){ 10402 return little_endian_read_16(event, 3); 10403 } 10404 10405 /** 10406 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION 10407 * @param event packet 10408 * @return avrcp_cid 10409 * @note: btstack_type 2 10410 */ 10411 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){ 10412 return little_endian_read_16(event, 3); 10413 } 10414 /** 10415 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION 10416 * @param event packet 10417 * @return operation_id 10418 * @note: btstack_type 1 10419 */ 10420 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){ 10421 return event[5]; 10422 } 10423 /** 10424 * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION 10425 * @param event packet 10426 * @return button_pressed 10427 * @note: btstack_type 1 10428 */ 10429 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){ 10430 return event[6]; 10431 } 10432 /** 10433 * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION 10434 * @param event packet 10435 * @return operands_length 10436 * @note: btstack_type 1 10437 */ 10438 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){ 10439 return event[7]; 10440 } 10441 /** 10442 * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION 10443 * @param event packet 10444 * @return operand 10445 * @note: btstack_type 1 10446 */ 10447 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){ 10448 return event[8]; 10449 } 10450 10451 /** 10452 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10453 * @param event packet 10454 * @return avrcp_cid 10455 * @note: btstack_type 2 10456 */ 10457 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){ 10458 return little_endian_read_16(event, 3); 10459 } 10460 /** 10461 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10462 * @param event packet 10463 * @return command_type 10464 * @note: btstack_type 1 10465 */ 10466 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){ 10467 return event[5]; 10468 } 10469 /** 10470 * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10471 * @param event packet 10472 * @return track 10473 * @note: btstack_type 1 10474 */ 10475 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){ 10476 return event[6]; 10477 } 10478 10479 /** 10480 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10481 * @param event packet 10482 * @return avrcp_cid 10483 * @note: btstack_type 2 10484 */ 10485 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){ 10486 return little_endian_read_16(event, 3); 10487 } 10488 /** 10489 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10490 * @param event packet 10491 * @return command_type 10492 * @note: btstack_type 1 10493 */ 10494 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){ 10495 return event[5]; 10496 } 10497 /** 10498 * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10499 * @param event packet 10500 * @return total_tracks 10501 * @note: btstack_type 1 10502 */ 10503 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){ 10504 return event[6]; 10505 } 10506 10507 /** 10508 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10509 * @param event packet 10510 * @return avrcp_cid 10511 * @note: btstack_type 2 10512 */ 10513 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){ 10514 return little_endian_read_16(event, 3); 10515 } 10516 /** 10517 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10518 * @param event packet 10519 * @return command_type 10520 * @note: btstack_type 1 10521 */ 10522 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){ 10523 return event[5]; 10524 } 10525 /** 10526 * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10527 * @param event packet 10528 * @return song_length 10529 * @note: btstack_type 4 10530 */ 10531 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){ 10532 return little_endian_read_32(event, 6); 10533 } 10534 10535 /** 10536 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10537 * @param event packet 10538 * @return avrcp_cid 10539 * @note: btstack_type 2 10540 */ 10541 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){ 10542 return little_endian_read_16(event, 3); 10543 } 10544 /** 10545 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10546 * @param event packet 10547 * @return command_type 10548 * @note: btstack_type 1 10549 */ 10550 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){ 10551 return event[5]; 10552 } 10553 /** 10554 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10555 * @param event packet 10556 * @return value_len 10557 * @note: btstack_type J 10558 */ 10559 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){ 10560 return event[6]; 10561 } 10562 /** 10563 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10564 * @param event packet 10565 * @return value 10566 * @note: btstack_type V 10567 */ 10568 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){ 10569 return &event[7]; 10570 } 10571 10572 /** 10573 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10574 * @param event packet 10575 * @return avrcp_cid 10576 * @note: btstack_type 2 10577 */ 10578 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){ 10579 return little_endian_read_16(event, 3); 10580 } 10581 /** 10582 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10583 * @param event packet 10584 * @return command_type 10585 * @note: btstack_type 1 10586 */ 10587 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){ 10588 return event[5]; 10589 } 10590 /** 10591 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10592 * @param event packet 10593 * @return value_len 10594 * @note: btstack_type J 10595 */ 10596 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){ 10597 return event[6]; 10598 } 10599 /** 10600 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10601 * @param event packet 10602 * @return value 10603 * @note: btstack_type V 10604 */ 10605 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){ 10606 return &event[7]; 10607 } 10608 10609 /** 10610 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10611 * @param event packet 10612 * @return avrcp_cid 10613 * @note: btstack_type 2 10614 */ 10615 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){ 10616 return little_endian_read_16(event, 3); 10617 } 10618 /** 10619 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10620 * @param event packet 10621 * @return command_type 10622 * @note: btstack_type 1 10623 */ 10624 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){ 10625 return event[5]; 10626 } 10627 /** 10628 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10629 * @param event packet 10630 * @return value_len 10631 * @note: btstack_type J 10632 */ 10633 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){ 10634 return event[6]; 10635 } 10636 /** 10637 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10638 * @param event packet 10639 * @return value 10640 * @note: btstack_type V 10641 */ 10642 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){ 10643 return &event[7]; 10644 } 10645 10646 /** 10647 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10648 * @param event packet 10649 * @return avrcp_cid 10650 * @note: btstack_type 2 10651 */ 10652 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){ 10653 return little_endian_read_16(event, 3); 10654 } 10655 /** 10656 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10657 * @param event packet 10658 * @return command_type 10659 * @note: btstack_type 1 10660 */ 10661 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){ 10662 return event[5]; 10663 } 10664 /** 10665 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10666 * @param event packet 10667 * @return value_len 10668 * @note: btstack_type J 10669 */ 10670 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){ 10671 return event[6]; 10672 } 10673 /** 10674 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10675 * @param event packet 10676 * @return value 10677 * @note: btstack_type V 10678 */ 10679 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){ 10680 return &event[7]; 10681 } 10682 10683 /** 10684 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10685 * @param event packet 10686 * @return avrcp_cid 10687 * @note: btstack_type 2 10688 */ 10689 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){ 10690 return little_endian_read_16(event, 3); 10691 } 10692 /** 10693 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10694 * @param event packet 10695 * @return command_type 10696 * @note: btstack_type 1 10697 */ 10698 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){ 10699 return event[5]; 10700 } 10701 /** 10702 * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10703 * @param event packet 10704 * @return status 10705 * @note: btstack_type 1 10706 */ 10707 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){ 10708 return event[6]; 10709 } 10710 10711 /** 10712 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10713 * @param event packet 10714 * @return avrcp_cid 10715 * @note: btstack_type 2 10716 */ 10717 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 10718 return little_endian_read_16(event, 3); 10719 } 10720 /** 10721 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10722 * @param event packet 10723 * @return command_type 10724 * @note: btstack_type 1 10725 */ 10726 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){ 10727 return event[5]; 10728 } 10729 /** 10730 * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10731 * @param event packet 10732 * @return playback_position_ms 10733 * @note: btstack_type 4 10734 */ 10735 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){ 10736 return little_endian_read_32(event, 6); 10737 } 10738 10739 /** 10740 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10741 * @param event packet 10742 * @return avrcp_cid 10743 * @note: btstack_type 2 10744 */ 10745 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){ 10746 return little_endian_read_16(event, 3); 10747 } 10748 /** 10749 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10750 * @param event packet 10751 * @return command_type 10752 * @note: btstack_type 1 10753 */ 10754 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){ 10755 return event[5]; 10756 } 10757 /** 10758 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10759 * @param event packet 10760 * @return status 10761 * @note: btstack_type 1 10762 */ 10763 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){ 10764 return event[6]; 10765 } 10766 /** 10767 * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10768 * @param event packet 10769 * @return event_id 10770 * @note: btstack_type 1 10771 */ 10772 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){ 10773 return event[7]; 10774 } 10775 10776 /** 10777 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10778 * @param event packet 10779 * @return avrcp_cid 10780 * @note: btstack_type 2 10781 */ 10782 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){ 10783 return little_endian_read_16(event, 3); 10784 } 10785 /** 10786 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10787 * @param event packet 10788 * @return command_type 10789 * @note: btstack_type 1 10790 */ 10791 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){ 10792 return event[5]; 10793 } 10794 /** 10795 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10796 * @param event packet 10797 * @return status 10798 * @note: btstack_type 1 10799 */ 10800 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){ 10801 return event[6]; 10802 } 10803 10804 /** 10805 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10806 * @param event packet 10807 * @return avrcp_cid 10808 * @note: btstack_type 2 10809 */ 10810 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){ 10811 return little_endian_read_16(event, 3); 10812 } 10813 /** 10814 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10815 * @param event packet 10816 * @return command_type 10817 * @note: btstack_type 1 10818 */ 10819 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){ 10820 return event[5]; 10821 } 10822 /** 10823 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10824 * @param event packet 10825 * @return status 10826 * @note: btstack_type 1 10827 */ 10828 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){ 10829 return event[6]; 10830 } 10831 /** 10832 * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10833 * @param event packet 10834 * @return company_id 10835 * @note: btstack_type 3 10836 */ 10837 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){ 10838 return little_endian_read_24(event, 7); 10839 } 10840 10841 /** 10842 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10843 * @param event packet 10844 * @return avrcp_cid 10845 * @note: btstack_type 2 10846 */ 10847 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){ 10848 return little_endian_read_16(event, 3); 10849 } 10850 /** 10851 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10852 * @param event packet 10853 * @return command_type 10854 * @note: btstack_type 1 10855 */ 10856 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){ 10857 return event[5]; 10858 } 10859 /** 10860 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10861 * @param event packet 10862 * @return status 10863 * @note: btstack_type 1 10864 */ 10865 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){ 10866 return event[6]; 10867 } 10868 10869 /** 10870 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10871 * @param event packet 10872 * @return avrcp_cid 10873 * @note: btstack_type 2 10874 */ 10875 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){ 10876 return little_endian_read_16(event, 3); 10877 } 10878 /** 10879 * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10880 * @param event packet 10881 * @return command_type 10882 * @note: btstack_type 1 10883 */ 10884 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){ 10885 return event[5]; 10886 } 10887 /** 10888 * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10889 * @param event packet 10890 * @return pdu_id 10891 * @note: btstack_type 1 10892 */ 10893 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){ 10894 return event[6]; 10895 } 10896 /** 10897 * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10898 * @param event packet 10899 * @return params_len 10900 * @note: btstack_type L 10901 */ 10902 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){ 10903 return little_endian_read_16(event, 7); 10904 } 10905 /** 10906 * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10907 * @param event packet 10908 * @return params 10909 * @note: btstack_type V 10910 */ 10911 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){ 10912 return &event[9]; 10913 } 10914 10915 /** 10916 * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 10917 * @param event packet 10918 * @param Pointer to storage for bd_addr 10919 * @note: btstack_type B 10920 */ 10921 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10922 reverse_bytes(&event[3], bd_addr, 6); 10923 } 10924 /** 10925 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 10926 * @param event packet 10927 * @return browsing_cid 10928 * @note: btstack_type 2 10929 */ 10930 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){ 10931 return little_endian_read_16(event, 9); 10932 } 10933 10934 /** 10935 * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10936 * @param event packet 10937 * @return status 10938 * @note: btstack_type 1 10939 */ 10940 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){ 10941 return event[3]; 10942 } 10943 /** 10944 * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10945 * @param event packet 10946 * @param Pointer to storage for bd_addr 10947 * @note: btstack_type B 10948 */ 10949 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10950 reverse_bytes(&event[4], bd_addr, 6); 10951 } 10952 /** 10953 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10954 * @param event packet 10955 * @return browsing_cid 10956 * @note: btstack_type 2 10957 */ 10958 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){ 10959 return little_endian_read_16(event, 10); 10960 } 10961 10962 /** 10963 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 10964 * @param event packet 10965 * @return browsing_cid 10966 * @note: btstack_type 2 10967 */ 10968 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){ 10969 return little_endian_read_16(event, 3); 10970 } 10971 10972 /** 10973 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE 10974 * @param event packet 10975 * @return browsing_cid 10976 * @note: btstack_type 2 10977 */ 10978 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){ 10979 return little_endian_read_16(event, 3); 10980 } 10981 /** 10982 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE 10983 * @param event packet 10984 * @return uid_counter 10985 * @note: btstack_type 2 10986 */ 10987 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){ 10988 return little_endian_read_16(event, 5); 10989 } 10990 /** 10991 * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE 10992 * @param event packet 10993 * @return browsing_status 10994 * @note: btstack_type 1 10995 */ 10996 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){ 10997 return event[7]; 10998 } 10999 /** 11000 * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE 11001 * @param event packet 11002 * @return bluetooth_status 11003 * @note: btstack_type 1 11004 */ 11005 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){ 11006 return event[8]; 11007 } 11008 11009 /** 11010 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11011 * @param event packet 11012 * @return browsing_cid 11013 * @note: btstack_type 2 11014 */ 11015 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){ 11016 return little_endian_read_16(event, 3); 11017 } 11018 /** 11019 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11020 * @param event packet 11021 * @return scope 11022 * @note: btstack_type 1 11023 */ 11024 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){ 11025 return event[5]; 11026 } 11027 /** 11028 * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11029 * @param event packet 11030 * @return attr_bitmap 11031 * @note: btstack_type 4 11032 */ 11033 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){ 11034 return little_endian_read_32(event, 6); 11035 } 11036 11037 /** 11038 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 11039 * @param event packet 11040 * @return browsing_cid 11041 * @note: btstack_type 2 11042 */ 11043 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){ 11044 return little_endian_read_16(event, 3); 11045 } 11046 /** 11047 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 11048 * @param event packet 11049 * @return scope 11050 * @note: btstack_type 1 11051 */ 11052 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){ 11053 return event[5]; 11054 } 11055 11056 /** 11057 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 11058 * @param event packet 11059 * @return browsing_cid 11060 * @note: btstack_type 2 11061 */ 11062 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){ 11063 return little_endian_read_16(event, 3); 11064 } 11065 /** 11066 * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 11067 * @param event packet 11068 * @return player_id 11069 * @note: btstack_type 2 11070 */ 11071 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){ 11072 return little_endian_read_16(event, 5); 11073 } 11074 11075 /** 11076 * @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION 11077 * @param event packet 11078 * @return goep_cid 11079 * @note: btstack_type 2 11080 */ 11081 static inline uint16_t goep_subevent_incoming_connection_get_goep_cid(const uint8_t * event){ 11082 return little_endian_read_16(event, 3); 11083 } 11084 /** 11085 * @brief Get field address from event GOEP_SUBEVENT_INCOMING_CONNECTION 11086 * @param event packet 11087 * @param Pointer to storage for address 11088 * @note: btstack_type B 11089 */ 11090 static inline void goep_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 11091 reverse_bytes(&event[5], address, 6); 11092 } 11093 /** 11094 * @brief Get field handle from event GOEP_SUBEVENT_INCOMING_CONNECTION 11095 * @param event packet 11096 * @return handle 11097 * @note: btstack_type H 11098 */ 11099 static inline hci_con_handle_t goep_subevent_incoming_connection_get_handle(const uint8_t * event){ 11100 return little_endian_read_16(event, 11); 11101 } 11102 11103 /** 11104 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED 11105 * @param event packet 11106 * @return goep_cid 11107 * @note: btstack_type 2 11108 */ 11109 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){ 11110 return little_endian_read_16(event, 3); 11111 } 11112 /** 11113 * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED 11114 * @param event packet 11115 * @return status 11116 * @note: btstack_type 1 11117 */ 11118 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){ 11119 return event[5]; 11120 } 11121 /** 11122 * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED 11123 * @param event packet 11124 * @param Pointer to storage for bd_addr 11125 * @note: btstack_type B 11126 */ 11127 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11128 reverse_bytes(&event[6], bd_addr, 6); 11129 } 11130 /** 11131 * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED 11132 * @param event packet 11133 * @return con_handle 11134 * @note: btstack_type H 11135 */ 11136 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11137 return little_endian_read_16(event, 12); 11138 } 11139 /** 11140 * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED 11141 * @param event packet 11142 * @return incoming 11143 * @note: btstack_type 1 11144 */ 11145 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){ 11146 return event[14]; 11147 } 11148 11149 /** 11150 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED 11151 * @param event packet 11152 * @return goep_cid 11153 * @note: btstack_type 2 11154 */ 11155 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 11156 return little_endian_read_16(event, 3); 11157 } 11158 11159 /** 11160 * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW 11161 * @param event packet 11162 * @return goep_cid 11163 * @note: btstack_type 2 11164 */ 11165 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){ 11166 return little_endian_read_16(event, 3); 11167 } 11168 11169 /** 11170 * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED 11171 * @param event packet 11172 * @return pbap_cid 11173 * @note: btstack_type 2 11174 */ 11175 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){ 11176 return little_endian_read_16(event, 3); 11177 } 11178 /** 11179 * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED 11180 * @param event packet 11181 * @return status 11182 * @note: btstack_type 1 11183 */ 11184 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){ 11185 return event[5]; 11186 } 11187 /** 11188 * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED 11189 * @param event packet 11190 * @param Pointer to storage for bd_addr 11191 * @note: btstack_type B 11192 */ 11193 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11194 reverse_bytes(&event[6], bd_addr, 6); 11195 } 11196 /** 11197 * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED 11198 * @param event packet 11199 * @return con_handle 11200 * @note: btstack_type H 11201 */ 11202 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11203 return little_endian_read_16(event, 12); 11204 } 11205 /** 11206 * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED 11207 * @param event packet 11208 * @return incoming 11209 * @note: btstack_type 1 11210 */ 11211 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){ 11212 return event[14]; 11213 } 11214 11215 /** 11216 * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED 11217 * @param event packet 11218 * @return goep_cid 11219 * @note: btstack_type 2 11220 */ 11221 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 11222 return little_endian_read_16(event, 3); 11223 } 11224 11225 /** 11226 * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED 11227 * @param event packet 11228 * @return goep_cid 11229 * @note: btstack_type 2 11230 */ 11231 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){ 11232 return little_endian_read_16(event, 3); 11233 } 11234 /** 11235 * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED 11236 * @param event packet 11237 * @return status 11238 * @note: btstack_type 1 11239 */ 11240 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){ 11241 return event[5]; 11242 } 11243 11244 /** 11245 * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11246 * @param event packet 11247 * @return goep_cid 11248 * @note: btstack_type 2 11249 */ 11250 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){ 11251 return little_endian_read_16(event, 3); 11252 } 11253 /** 11254 * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11255 * @param event packet 11256 * @return status 11257 * @note: btstack_type 1 11258 */ 11259 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){ 11260 return event[5]; 11261 } 11262 /** 11263 * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11264 * @param event packet 11265 * @return phonebook_size 11266 * @note: btstack_type 2 11267 */ 11268 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){ 11269 return little_endian_read_16(event, 6); 11270 } 11271 11272 /** 11273 * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11274 * @param event packet 11275 * @return goep_cid 11276 * @note: btstack_type 2 11277 */ 11278 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){ 11279 return little_endian_read_16(event, 3); 11280 } 11281 /** 11282 * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11283 * @param event packet 11284 * @return user_id_required 11285 * @note: btstack_type 1 11286 */ 11287 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){ 11288 return event[5]; 11289 } 11290 /** 11291 * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11292 * @param event packet 11293 * @return full_access 11294 * @note: btstack_type 1 11295 */ 11296 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){ 11297 return event[6]; 11298 } 11299 11300 /** 11301 * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT 11302 * @param event packet 11303 * @return goep_cid 11304 * @note: btstack_type 2 11305 */ 11306 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){ 11307 return little_endian_read_16(event, 3); 11308 } 11309 /** 11310 * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT 11311 * @param event packet 11312 * @return name_len 11313 * @note: btstack_type J 11314 */ 11315 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){ 11316 return event[5]; 11317 } 11318 /** 11319 * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT 11320 * @param event packet 11321 * @return name 11322 * @note: btstack_type V 11323 */ 11324 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){ 11325 return &event[6]; 11326 } 11327 /** 11328 * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT 11329 * @param event packet 11330 * @return handle_len 11331 * @note: btstack_type J 11332 */ 11333 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){ 11334 return event[6u + event[5]]; 11335 } 11336 /** 11337 * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT 11338 * @param event packet 11339 * @return handle 11340 * @note: btstack_type V 11341 */ 11342 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){ 11343 return &event[6u + event[5] + 1u]; 11344 } 11345 11346 /** 11347 * @brief Get field goep_cid from event PBAP_SUBEVENT_RESET_MISSED_CALLS 11348 * @param event packet 11349 * @return goep_cid 11350 * @note: btstack_type 2 11351 */ 11352 static inline uint16_t pbap_subevent_reset_missed_calls_get_goep_cid(const uint8_t * event){ 11353 return little_endian_read_16(event, 3); 11354 } 11355 /** 11356 * @brief Get field phonebook from event PBAP_SUBEVENT_RESET_MISSED_CALLS 11357 * @param event packet 11358 * @return phonebook 11359 * @note: btstack_type 1 11360 */ 11361 static inline uint8_t pbap_subevent_reset_missed_calls_get_phonebook(const uint8_t * event){ 11362 return event[5]; 11363 } 11364 11365 /** 11366 * @brief Get field goep_cid from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11367 * @param event packet 11368 * @return goep_cid 11369 * @note: btstack_type 2 11370 */ 11371 static inline uint16_t pbap_subevent_query_phonebook_size_get_goep_cid(const uint8_t * event){ 11372 return little_endian_read_16(event, 3); 11373 } 11374 /** 11375 * @brief Get field vcard_selector from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11376 * @param event packet 11377 * @return vcard_selector 11378 * @note: btstack_type 4 11379 */ 11380 static inline uint32_t pbap_subevent_query_phonebook_size_get_vcard_selector(const uint8_t * event){ 11381 return little_endian_read_32(event, 5); 11382 } 11383 /** 11384 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11385 * @param event packet 11386 * @return vcard_selector_operator 11387 * @note: btstack_type 1 11388 */ 11389 static inline uint8_t pbap_subevent_query_phonebook_size_get_vcard_selector_operator(const uint8_t * event){ 11390 return event[9]; 11391 } 11392 /** 11393 * @brief Get field phonebook from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11394 * @param event packet 11395 * @return phonebook 11396 * @note: btstack_type 1 11397 */ 11398 static inline uint8_t pbap_subevent_query_phonebook_size_get_phonebook(const uint8_t * event){ 11399 return event[10]; 11400 } 11401 11402 /** 11403 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_PHONEBOOK 11404 * @param event packet 11405 * @return goep_cid 11406 * @note: btstack_type 2 11407 */ 11408 static inline uint16_t pbap_subevent_pull_phonebook_get_goep_cid(const uint8_t * event){ 11409 return little_endian_read_16(event, 3); 11410 } 11411 /** 11412 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_PHONEBOOK 11413 * @param event packet 11414 * @return continuation 11415 * @note: btstack_type 4 11416 */ 11417 static inline uint32_t pbap_subevent_pull_phonebook_get_continuation(const uint8_t * event){ 11418 return little_endian_read_32(event, 5); 11419 } 11420 /** 11421 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 11422 * @param event packet 11423 * @return property_selector 11424 * @note: btstack_type 4 11425 */ 11426 static inline uint32_t pbap_subevent_pull_phonebook_get_property_selector(const uint8_t * event){ 11427 return little_endian_read_32(event, 9); 11428 } 11429 /** 11430 * @brief Get field format from event PBAP_SUBEVENT_PULL_PHONEBOOK 11431 * @param event packet 11432 * @return format 11433 * @note: btstack_type 1 11434 */ 11435 static inline uint8_t pbap_subevent_pull_phonebook_get_format(const uint8_t * event){ 11436 return event[13]; 11437 } 11438 /** 11439 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_PHONEBOOK 11440 * @param event packet 11441 * @return max_list_count 11442 * @note: btstack_type 2 11443 */ 11444 static inline uint16_t pbap_subevent_pull_phonebook_get_max_list_count(const uint8_t * event){ 11445 return little_endian_read_16(event, 14); 11446 } 11447 /** 11448 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_PHONEBOOK 11449 * @param event packet 11450 * @return list_start_offset 11451 * @note: btstack_type 2 11452 */ 11453 static inline uint16_t pbap_subevent_pull_phonebook_get_list_start_offset(const uint8_t * event){ 11454 return little_endian_read_16(event, 16); 11455 } 11456 /** 11457 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 11458 * @param event packet 11459 * @return vcard_selector 11460 * @note: btstack_type 4 11461 */ 11462 static inline uint32_t pbap_subevent_pull_phonebook_get_vcard_selector(const uint8_t * event){ 11463 return little_endian_read_32(event, 18); 11464 } 11465 /** 11466 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_PHONEBOOK 11467 * @param event packet 11468 * @return vcard_selector_operator 11469 * @note: btstack_type 1 11470 */ 11471 static inline uint8_t pbap_subevent_pull_phonebook_get_vcard_selector_operator(const uint8_t * event){ 11472 return event[22]; 11473 } 11474 /** 11475 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_PHONEBOOK 11476 * @param event packet 11477 * @return phonebook 11478 * @note: btstack_type 1 11479 */ 11480 static inline uint8_t pbap_subevent_pull_phonebook_get_phonebook(const uint8_t * event){ 11481 return event[23]; 11482 } 11483 11484 /** 11485 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11486 * @param event packet 11487 * @return goep_cid 11488 * @note: btstack_type 2 11489 */ 11490 static inline uint16_t pbap_subevent_pull_vcard_listing_get_goep_cid(const uint8_t * event){ 11491 return little_endian_read_16(event, 3); 11492 } 11493 /** 11494 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11495 * @param event packet 11496 * @return continuation 11497 * @note: btstack_type 4 11498 */ 11499 static inline uint32_t pbap_subevent_pull_vcard_listing_get_continuation(const uint8_t * event){ 11500 return little_endian_read_32(event, 5); 11501 } 11502 /** 11503 * @brief Get field order from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11504 * @param event packet 11505 * @return order 11506 * @note: btstack_type 1 11507 */ 11508 static inline uint8_t pbap_subevent_pull_vcard_listing_get_order(const uint8_t * event){ 11509 return event[9]; 11510 } 11511 /** 11512 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11513 * @param event packet 11514 * @return max_list_count 11515 * @note: btstack_type 2 11516 */ 11517 static inline uint16_t pbap_subevent_pull_vcard_listing_get_max_list_count(const uint8_t * event){ 11518 return little_endian_read_16(event, 10); 11519 } 11520 /** 11521 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11522 * @param event packet 11523 * @return list_start_offset 11524 * @note: btstack_type 2 11525 */ 11526 static inline uint16_t pbap_subevent_pull_vcard_listing_get_list_start_offset(const uint8_t * event){ 11527 return little_endian_read_16(event, 12); 11528 } 11529 /** 11530 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11531 * @param event packet 11532 * @return vcard_selector 11533 * @note: btstack_type 4 11534 */ 11535 static inline uint32_t pbap_subevent_pull_vcard_listing_get_vcard_selector(const uint8_t * event){ 11536 return little_endian_read_32(event, 14); 11537 } 11538 /** 11539 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11540 * @param event packet 11541 * @return vcard_selector_operator 11542 * @note: btstack_type 1 11543 */ 11544 static inline uint8_t pbap_subevent_pull_vcard_listing_get_vcard_selector_operator(const uint8_t * event){ 11545 return event[18]; 11546 } 11547 /** 11548 * @brief Get field search_property from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11549 * @param event packet 11550 * @return search_property 11551 * @note: btstack_type 1 11552 */ 11553 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_property(const uint8_t * event){ 11554 return event[19]; 11555 } 11556 /** 11557 * @brief Get field search_value_len from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11558 * @param event packet 11559 * @return search_value_len 11560 * @note: btstack_type J 11561 */ 11562 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_value_len(const uint8_t * event){ 11563 return event[20]; 11564 } 11565 /** 11566 * @brief Get field search_value from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11567 * @param event packet 11568 * @return search_value 11569 * @note: btstack_type V 11570 */ 11571 static inline const uint8_t * pbap_subevent_pull_vcard_listing_get_search_value(const uint8_t * event){ 11572 return &event[21]; 11573 } 11574 /** 11575 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11576 * @param event packet 11577 * @return phonebook 11578 * @note: btstack_type 1 11579 */ 11580 static inline uint8_t pbap_subevent_pull_vcard_listing_get_phonebook(const uint8_t * event){ 11581 return event[21u + event[20]]; 11582 } 11583 11584 /** 11585 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11586 * @param event packet 11587 * @return goep_cid 11588 * @note: btstack_type 2 11589 */ 11590 static inline uint16_t pbap_subevent_pull_vcard_entry_get_goep_cid(const uint8_t * event){ 11591 return little_endian_read_16(event, 3); 11592 } 11593 /** 11594 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11595 * @param event packet 11596 * @return continuation 11597 * @note: btstack_type 4 11598 */ 11599 static inline uint32_t pbap_subevent_pull_vcard_entry_get_continuation(const uint8_t * event){ 11600 return little_endian_read_32(event, 5); 11601 } 11602 /** 11603 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11604 * @param event packet 11605 * @return property_selector 11606 * @note: btstack_type 4 11607 */ 11608 static inline uint32_t pbap_subevent_pull_vcard_entry_get_property_selector(const uint8_t * event){ 11609 return little_endian_read_32(event, 9); 11610 } 11611 /** 11612 * @brief Get field format from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11613 * @param event packet 11614 * @return format 11615 * @note: btstack_type 1 11616 */ 11617 static inline uint8_t pbap_subevent_pull_vcard_entry_get_format(const uint8_t * event){ 11618 return event[13]; 11619 } 11620 /** 11621 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11622 * @param event packet 11623 * @return phonebook 11624 * @note: btstack_type 1 11625 */ 11626 static inline uint8_t pbap_subevent_pull_vcard_entry_get_phonebook(const uint8_t * event){ 11627 return event[14]; 11628 } 11629 /** 11630 * @brief Get field name from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11631 * @param event packet 11632 * @return name 11633 * @note: btstack_type T 11634 */ 11635 static inline const char * pbap_subevent_pull_vcard_entry_get_name(const uint8_t * event){ 11636 return (const char *) &event[15]; 11637 } 11638 11639 /** 11640 * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION 11641 * @param event packet 11642 * @return hid_cid 11643 * @note: btstack_type 2 11644 */ 11645 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){ 11646 return little_endian_read_16(event, 3); 11647 } 11648 /** 11649 * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION 11650 * @param event packet 11651 * @param Pointer to storage for address 11652 * @note: btstack_type B 11653 */ 11654 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 11655 reverse_bytes(&event[5], address, 6); 11656 } 11657 /** 11658 * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION 11659 * @param event packet 11660 * @return handle 11661 * @note: btstack_type H 11662 */ 11663 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){ 11664 return little_endian_read_16(event, 11); 11665 } 11666 11667 /** 11668 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED 11669 * @param event packet 11670 * @return hid_cid 11671 * @note: btstack_type 2 11672 */ 11673 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){ 11674 return little_endian_read_16(event, 3); 11675 } 11676 /** 11677 * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED 11678 * @param event packet 11679 * @return status 11680 * @note: btstack_type 1 11681 */ 11682 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){ 11683 return event[5]; 11684 } 11685 /** 11686 * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED 11687 * @param event packet 11688 * @param Pointer to storage for bd_addr 11689 * @note: btstack_type B 11690 */ 11691 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11692 reverse_bytes(&event[6], bd_addr, 6); 11693 } 11694 /** 11695 * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED 11696 * @param event packet 11697 * @return con_handle 11698 * @note: btstack_type H 11699 */ 11700 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11701 return little_endian_read_16(event, 12); 11702 } 11703 /** 11704 * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED 11705 * @param event packet 11706 * @return incoming 11707 * @note: btstack_type 1 11708 */ 11709 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){ 11710 return event[14]; 11711 } 11712 11713 /** 11714 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED 11715 * @param event packet 11716 * @return hid_cid 11717 * @note: btstack_type 2 11718 */ 11719 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){ 11720 return little_endian_read_16(event, 3); 11721 } 11722 11723 /** 11724 * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW 11725 * @param event packet 11726 * @return hid_cid 11727 * @note: btstack_type 2 11728 */ 11729 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){ 11730 return little_endian_read_16(event, 3); 11731 } 11732 11733 /** 11734 * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND 11735 * @param event packet 11736 * @return hid_cid 11737 * @note: btstack_type 2 11738 */ 11739 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){ 11740 return little_endian_read_16(event, 3); 11741 } 11742 11743 /** 11744 * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND 11745 * @param event packet 11746 * @return hid_cid 11747 * @note: btstack_type 2 11748 */ 11749 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){ 11750 return little_endian_read_16(event, 3); 11751 } 11752 11753 /** 11754 * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG 11755 * @param event packet 11756 * @return hid_cid 11757 * @note: btstack_type 2 11758 */ 11759 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){ 11760 return little_endian_read_16(event, 3); 11761 } 11762 11763 /** 11764 * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE 11765 * @param event packet 11766 * @return hid_cid 11767 * @note: btstack_type 2 11768 */ 11769 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){ 11770 return little_endian_read_16(event, 3); 11771 } 11772 /** 11773 * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE 11774 * @param event packet 11775 * @return handshake_status 11776 * @note: btstack_type 1 11777 */ 11778 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){ 11779 return event[5]; 11780 } 11781 /** 11782 * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE 11783 * @param event packet 11784 * @return report_len 11785 * @note: btstack_type L 11786 */ 11787 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){ 11788 return little_endian_read_16(event, 6); 11789 } 11790 /** 11791 * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE 11792 * @param event packet 11793 * @return report 11794 * @note: btstack_type V 11795 */ 11796 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){ 11797 return &event[8]; 11798 } 11799 11800 /** 11801 * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE 11802 * @param event packet 11803 * @return hid_cid 11804 * @note: btstack_type 2 11805 */ 11806 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){ 11807 return little_endian_read_16(event, 3); 11808 } 11809 /** 11810 * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE 11811 * @param event packet 11812 * @return handshake_status 11813 * @note: btstack_type 1 11814 */ 11815 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){ 11816 return event[5]; 11817 } 11818 11819 /** 11820 * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11821 * @param event packet 11822 * @return hid_cid 11823 * @note: btstack_type 2 11824 */ 11825 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){ 11826 return little_endian_read_16(event, 3); 11827 } 11828 /** 11829 * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11830 * @param event packet 11831 * @return handshake_status 11832 * @note: btstack_type 1 11833 */ 11834 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){ 11835 return event[5]; 11836 } 11837 /** 11838 * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11839 * @param event packet 11840 * @return protocol_mode 11841 * @note: btstack_type 1 11842 */ 11843 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){ 11844 return event[6]; 11845 } 11846 11847 /** 11848 * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11849 * @param event packet 11850 * @return hid_cid 11851 * @note: btstack_type 2 11852 */ 11853 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){ 11854 return little_endian_read_16(event, 3); 11855 } 11856 /** 11857 * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11858 * @param event packet 11859 * @return handshake_status 11860 * @note: btstack_type 1 11861 */ 11862 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){ 11863 return event[5]; 11864 } 11865 /** 11866 * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11867 * @param event packet 11868 * @return protocol_mode 11869 * @note: btstack_type 1 11870 */ 11871 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){ 11872 return event[6]; 11873 } 11874 11875 /** 11876 * @brief Get field hid_cid from event HID_SUBEVENT_REPORT 11877 * @param event packet 11878 * @return hid_cid 11879 * @note: btstack_type 2 11880 */ 11881 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){ 11882 return little_endian_read_16(event, 3); 11883 } 11884 /** 11885 * @brief Get field report_len from event HID_SUBEVENT_REPORT 11886 * @param event packet 11887 * @return report_len 11888 * @note: btstack_type L 11889 */ 11890 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){ 11891 return little_endian_read_16(event, 5); 11892 } 11893 /** 11894 * @brief Get field report from event HID_SUBEVENT_REPORT 11895 * @param event packet 11896 * @return report 11897 * @note: btstack_type V 11898 */ 11899 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){ 11900 return &event[7]; 11901 } 11902 11903 /** 11904 * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 11905 * @param event packet 11906 * @return hid_cid 11907 * @note: btstack_type 2 11908 */ 11909 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){ 11910 return little_endian_read_16(event, 3); 11911 } 11912 /** 11913 * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 11914 * @param event packet 11915 * @return status 11916 * @note: btstack_type 1 11917 */ 11918 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){ 11919 return event[5]; 11920 } 11921 11922 /** 11923 * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11924 * @param event packet 11925 * @return hid_cid 11926 * @note: btstack_type 2 11927 */ 11928 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){ 11929 return little_endian_read_16(event, 3); 11930 } 11931 /** 11932 * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11933 * @param event packet 11934 * @return host_max_latency 11935 * @note: btstack_type 2 11936 */ 11937 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){ 11938 return little_endian_read_16(event, 5); 11939 } 11940 /** 11941 * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11942 * @param event packet 11943 * @return host_min_timeout 11944 * @note: btstack_type 2 11945 */ 11946 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){ 11947 return little_endian_read_16(event, 7); 11948 } 11949 11950 /** 11951 * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW 11952 * @param event packet 11953 * @return con_handle 11954 * @note: btstack_type 2 11955 */ 11956 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){ 11957 return little_endian_read_16(event, 3); 11958 } 11959 11960 /** 11961 * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE 11962 * @param event packet 11963 * @return con_handle 11964 * @note: btstack_type 2 11965 */ 11966 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){ 11967 return little_endian_read_16(event, 3); 11968 } 11969 /** 11970 * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE 11971 * @param event packet 11972 * @return protocol_mode 11973 * @note: btstack_type 1 11974 */ 11975 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){ 11976 return event[5]; 11977 } 11978 11979 /** 11980 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 11981 * @param event packet 11982 * @return con_handle 11983 * @note: btstack_type 2 11984 */ 11985 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){ 11986 return little_endian_read_16(event, 3); 11987 } 11988 /** 11989 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 11990 * @param event packet 11991 * @return enable 11992 * @note: btstack_type 1 11993 */ 11994 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){ 11995 return event[5]; 11996 } 11997 11998 /** 11999 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 12000 * @param event packet 12001 * @return con_handle 12002 * @note: btstack_type 2 12003 */ 12004 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){ 12005 return little_endian_read_16(event, 3); 12006 } 12007 /** 12008 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 12009 * @param event packet 12010 * @return enable 12011 * @note: btstack_type 1 12012 */ 12013 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){ 12014 return event[5]; 12015 } 12016 12017 /** 12018 * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 12019 * @param event packet 12020 * @return con_handle 12021 * @note: btstack_type 2 12022 */ 12023 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){ 12024 return little_endian_read_16(event, 3); 12025 } 12026 /** 12027 * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 12028 * @param event packet 12029 * @return enable 12030 * @note: btstack_type 1 12031 */ 12032 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){ 12033 return event[5]; 12034 } 12035 12036 /** 12037 * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 12038 * @param event packet 12039 * @return con_handle 12040 * @note: btstack_type 2 12041 */ 12042 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){ 12043 return little_endian_read_16(event, 3); 12044 } 12045 /** 12046 * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 12047 * @param event packet 12048 * @return enable 12049 * @note: btstack_type 1 12050 */ 12051 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){ 12052 return event[5]; 12053 } 12054 12055 /** 12056 * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 12057 * @param event packet 12058 * @return con_handle 12059 * @note: btstack_type 2 12060 */ 12061 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){ 12062 return little_endian_read_16(event, 3); 12063 } 12064 /** 12065 * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 12066 * @param event packet 12067 * @return enable 12068 * @note: btstack_type 1 12069 */ 12070 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){ 12071 return event[5]; 12072 } 12073 12074 /** 12075 * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND 12076 * @param event packet 12077 * @return con_handle 12078 * @note: btstack_type 2 12079 */ 12080 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){ 12081 return little_endian_read_16(event, 3); 12082 } 12083 12084 /** 12085 * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND 12086 * @param event packet 12087 * @return con_handle 12088 * @note: btstack_type 2 12089 */ 12090 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){ 12091 return little_endian_read_16(event, 3); 12092 } 12093 12094 /** 12095 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12096 * @param event packet 12097 * @return con_handle 12098 * @note: btstack_type 2 12099 */ 12100 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){ 12101 return little_endian_read_16(event, 3); 12102 } 12103 /** 12104 * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12105 * @param event packet 12106 * @return measurement_type 12107 * @note: btstack_type 1 12108 */ 12109 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){ 12110 return event[5]; 12111 } 12112 /** 12113 * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12114 * @param event packet 12115 * @return is_enhanced 12116 * @note: btstack_type 1 12117 */ 12118 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){ 12119 return event[6]; 12120 } 12121 12122 /** 12123 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START 12124 * @param event packet 12125 * @return con_handle 12126 * @note: btstack_type 2 12127 */ 12128 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){ 12129 return little_endian_read_16(event, 3); 12130 } 12131 12132 /** 12133 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP 12134 * @param event packet 12135 * @return con_handle 12136 * @note: btstack_type 2 12137 */ 12138 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){ 12139 return little_endian_read_16(event, 3); 12140 } 12141 12142 /** 12143 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12144 * @param event packet 12145 * @return hids_cid 12146 * @note: btstack_type 2 12147 */ 12148 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){ 12149 return little_endian_read_16(event, 3); 12150 } 12151 /** 12152 * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12153 * @param event packet 12154 * @return status 12155 * @note: btstack_type 1 12156 */ 12157 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){ 12158 return event[5]; 12159 } 12160 /** 12161 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12162 * @param event packet 12163 * @return num_instances 12164 * @note: btstack_type 1 12165 */ 12166 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){ 12167 return event[6]; 12168 } 12169 /** 12170 * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12171 * @param event packet 12172 * @return poll_bitmap 12173 * @note: btstack_type 1 12174 */ 12175 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){ 12176 return event[7]; 12177 } 12178 12179 /** 12180 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12181 * @param event packet 12182 * @return hids_cid 12183 * @note: btstack_type 2 12184 */ 12185 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){ 12186 return little_endian_read_16(event, 3); 12187 } 12188 /** 12189 * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12190 * @param event packet 12191 * @return sevice_index 12192 * @note: btstack_type 1 12193 */ 12194 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){ 12195 return event[5]; 12196 } 12197 /** 12198 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12199 * @param event packet 12200 * @return att_status 12201 * @note: btstack_type 1 12202 */ 12203 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){ 12204 return event[6]; 12205 } 12206 /** 12207 * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12208 * @param event packet 12209 * @return level 12210 * @note: btstack_type 1 12211 */ 12212 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){ 12213 return event[7]; 12214 } 12215 12216 /** 12217 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 12218 * @param event packet 12219 * @return con_handle 12220 * @note: btstack_type H 12221 */ 12222 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){ 12223 return little_endian_read_16(event, 3); 12224 } 12225 /** 12226 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 12227 * @param event packet 12228 * @return att_status 12229 * @note: btstack_type 1 12230 */ 12231 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){ 12232 return event[5]; 12233 } 12234 12235 /** 12236 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12237 * @param event packet 12238 * @return con_handle 12239 * @note: btstack_type H 12240 */ 12241 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){ 12242 return little_endian_read_16(event, 3); 12243 } 12244 /** 12245 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12246 * @param event packet 12247 * @return att_status 12248 * @note: btstack_type 1 12249 */ 12250 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){ 12251 return event[5]; 12252 } 12253 /** 12254 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12255 * @param event packet 12256 * @return value 12257 * @note: btstack_type T 12258 */ 12259 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){ 12260 return (const char *) &event[6]; 12261 } 12262 12263 /** 12264 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12265 * @param event packet 12266 * @return con_handle 12267 * @note: btstack_type H 12268 */ 12269 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){ 12270 return little_endian_read_16(event, 3); 12271 } 12272 /** 12273 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12274 * @param event packet 12275 * @return att_status 12276 * @note: btstack_type 1 12277 */ 12278 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){ 12279 return event[5]; 12280 } 12281 /** 12282 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12283 * @param event packet 12284 * @return value 12285 * @note: btstack_type T 12286 */ 12287 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){ 12288 return (const char *) &event[6]; 12289 } 12290 12291 /** 12292 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12293 * @param event packet 12294 * @return con_handle 12295 * @note: btstack_type H 12296 */ 12297 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){ 12298 return little_endian_read_16(event, 3); 12299 } 12300 /** 12301 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12302 * @param event packet 12303 * @return att_status 12304 * @note: btstack_type 1 12305 */ 12306 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){ 12307 return event[5]; 12308 } 12309 /** 12310 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12311 * @param event packet 12312 * @return value 12313 * @note: btstack_type T 12314 */ 12315 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){ 12316 return (const char *) &event[6]; 12317 } 12318 12319 /** 12320 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12321 * @param event packet 12322 * @return con_handle 12323 * @note: btstack_type H 12324 */ 12325 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){ 12326 return little_endian_read_16(event, 3); 12327 } 12328 /** 12329 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12330 * @param event packet 12331 * @return att_status 12332 * @note: btstack_type 1 12333 */ 12334 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){ 12335 return event[5]; 12336 } 12337 /** 12338 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12339 * @param event packet 12340 * @return value 12341 * @note: btstack_type T 12342 */ 12343 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){ 12344 return (const char *) &event[6]; 12345 } 12346 12347 /** 12348 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12349 * @param event packet 12350 * @return con_handle 12351 * @note: btstack_type H 12352 */ 12353 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){ 12354 return little_endian_read_16(event, 3); 12355 } 12356 /** 12357 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12358 * @param event packet 12359 * @return att_status 12360 * @note: btstack_type 1 12361 */ 12362 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){ 12363 return event[5]; 12364 } 12365 /** 12366 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12367 * @param event packet 12368 * @return value 12369 * @note: btstack_type T 12370 */ 12371 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){ 12372 return (const char *) &event[6]; 12373 } 12374 12375 /** 12376 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12377 * @param event packet 12378 * @return con_handle 12379 * @note: btstack_type H 12380 */ 12381 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){ 12382 return little_endian_read_16(event, 3); 12383 } 12384 /** 12385 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12386 * @param event packet 12387 * @return att_status 12388 * @note: btstack_type 1 12389 */ 12390 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){ 12391 return event[5]; 12392 } 12393 /** 12394 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12395 * @param event packet 12396 * @return value 12397 * @note: btstack_type T 12398 */ 12399 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){ 12400 return (const char *) &event[6]; 12401 } 12402 12403 /** 12404 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12405 * @param event packet 12406 * @return con_handle 12407 * @note: btstack_type H 12408 */ 12409 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){ 12410 return little_endian_read_16(event, 3); 12411 } 12412 /** 12413 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12414 * @param event packet 12415 * @return att_status 12416 * @note: btstack_type 1 12417 */ 12418 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){ 12419 return event[5]; 12420 } 12421 /** 12422 * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12423 * @param event packet 12424 * @return manufacturer_id_low 12425 * @note: btstack_type 4 12426 */ 12427 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){ 12428 return little_endian_read_32(event, 6); 12429 } 12430 /** 12431 * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12432 * @param event packet 12433 * @return manufacturer_id_high 12434 * @note: btstack_type 1 12435 */ 12436 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){ 12437 return event[10]; 12438 } 12439 /** 12440 * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12441 * @param event packet 12442 * @return organizationally_unique_id 12443 * @note: btstack_type 3 12444 */ 12445 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){ 12446 return little_endian_read_24(event, 11); 12447 } 12448 12449 /** 12450 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12451 * @param event packet 12452 * @return con_handle 12453 * @note: btstack_type H 12454 */ 12455 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){ 12456 return little_endian_read_16(event, 3); 12457 } 12458 /** 12459 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12460 * @param event packet 12461 * @return att_status 12462 * @note: btstack_type 1 12463 */ 12464 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){ 12465 return event[5]; 12466 } 12467 /** 12468 * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12469 * @param event packet 12470 * @return value_a 12471 * @note: btstack_type 2 12472 */ 12473 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){ 12474 return little_endian_read_16(event, 6); 12475 } 12476 /** 12477 * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12478 * @param event packet 12479 * @return value_b 12480 * @note: btstack_type 2 12481 */ 12482 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){ 12483 return little_endian_read_16(event, 8); 12484 } 12485 12486 /** 12487 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12488 * @param event packet 12489 * @return con_handle 12490 * @note: btstack_type H 12491 */ 12492 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){ 12493 return little_endian_read_16(event, 3); 12494 } 12495 /** 12496 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12497 * @param event packet 12498 * @return att_status 12499 * @note: btstack_type 1 12500 */ 12501 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){ 12502 return event[5]; 12503 } 12504 /** 12505 * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12506 * @param event packet 12507 * @return vendor_source_id 12508 * @note: btstack_type 1 12509 */ 12510 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){ 12511 return event[6]; 12512 } 12513 /** 12514 * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12515 * @param event packet 12516 * @return vendor_id 12517 * @note: btstack_type 2 12518 */ 12519 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){ 12520 return little_endian_read_16(event, 7); 12521 } 12522 /** 12523 * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12524 * @param event packet 12525 * @return product_id 12526 * @note: btstack_type 2 12527 */ 12528 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){ 12529 return little_endian_read_16(event, 9); 12530 } 12531 /** 12532 * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12533 * @param event packet 12534 * @return product_version 12535 * @note: btstack_type 2 12536 */ 12537 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){ 12538 return little_endian_read_16(event, 11); 12539 } 12540 12541 /** 12542 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 12543 * @param event packet 12544 * @return con_handle 12545 * @note: btstack_type H 12546 */ 12547 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){ 12548 return little_endian_read_16(event, 3); 12549 } 12550 /** 12551 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 12552 * @param event packet 12553 * @return att_status 12554 * @note: btstack_type 1 12555 */ 12556 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){ 12557 return event[5]; 12558 } 12559 12560 /** 12561 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED 12562 * @param event packet 12563 * @return con_handle 12564 * @note: btstack_type H 12565 */ 12566 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){ 12567 return little_endian_read_16(event, 3); 12568 } 12569 12570 /** 12571 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED 12572 * @param event packet 12573 * @return con_handle 12574 * @note: btstack_type H 12575 */ 12576 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){ 12577 return little_endian_read_16(event, 3); 12578 } 12579 12580 /** 12581 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12582 * @param event packet 12583 * @return hids_cid 12584 * @note: btstack_type 2 12585 */ 12586 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){ 12587 return little_endian_read_16(event, 3); 12588 } 12589 /** 12590 * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12591 * @param event packet 12592 * @return status 12593 * @note: btstack_type 1 12594 */ 12595 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){ 12596 return event[5]; 12597 } 12598 /** 12599 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12600 * @param event packet 12601 * @return protocol_mode 12602 * @note: btstack_type 1 12603 */ 12604 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){ 12605 return event[6]; 12606 } 12607 /** 12608 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12609 * @param event packet 12610 * @return num_instances 12611 * @note: btstack_type 1 12612 */ 12613 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){ 12614 return event[7]; 12615 } 12616 12617 /** 12618 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT 12619 * @param event packet 12620 * @return hids_cid 12621 * @note: btstack_type 2 12622 */ 12623 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){ 12624 return little_endian_read_16(event, 3); 12625 } 12626 /** 12627 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT 12628 * @param event packet 12629 * @return service_index 12630 * @note: btstack_type 1 12631 */ 12632 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){ 12633 return event[5]; 12634 } 12635 /** 12636 * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT 12637 * @param event packet 12638 * @return report_id 12639 * @note: btstack_type 1 12640 */ 12641 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){ 12642 return event[6]; 12643 } 12644 /** 12645 * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT 12646 * @param event packet 12647 * @return report_len 12648 * @note: btstack_type L 12649 */ 12650 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){ 12651 return little_endian_read_16(event, 7); 12652 } 12653 /** 12654 * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT 12655 * @param event packet 12656 * @return report 12657 * @note: btstack_type V 12658 */ 12659 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){ 12660 return &event[9]; 12661 } 12662 12663 /** 12664 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12665 * @param event packet 12666 * @return hids_cid 12667 * @note: btstack_type 2 12668 */ 12669 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){ 12670 return little_endian_read_16(event, 3); 12671 } 12672 /** 12673 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12674 * @param event packet 12675 * @return service_index 12676 * @note: btstack_type 1 12677 */ 12678 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){ 12679 return event[5]; 12680 } 12681 /** 12682 * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12683 * @param event packet 12684 * @return base_usb_hid_version 12685 * @note: btstack_type 2 12686 */ 12687 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){ 12688 return little_endian_read_16(event, 6); 12689 } 12690 /** 12691 * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12692 * @param event packet 12693 * @return country_code 12694 * @note: btstack_type 1 12695 */ 12696 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){ 12697 return event[8]; 12698 } 12699 /** 12700 * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12701 * @param event packet 12702 * @return remote_wake 12703 * @note: btstack_type 1 12704 */ 12705 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){ 12706 return event[9]; 12707 } 12708 /** 12709 * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12710 * @param event packet 12711 * @return normally_connectable 12712 * @note: btstack_type 1 12713 */ 12714 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){ 12715 return event[10]; 12716 } 12717 12718 /** 12719 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12720 * @param event packet 12721 * @return hids_cid 12722 * @note: btstack_type 2 12723 */ 12724 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){ 12725 return little_endian_read_16(event, 3); 12726 } 12727 /** 12728 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12729 * @param event packet 12730 * @return service_index 12731 * @note: btstack_type 1 12732 */ 12733 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){ 12734 return event[5]; 12735 } 12736 /** 12737 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12738 * @param event packet 12739 * @return protocol_mode 12740 * @note: btstack_type 1 12741 */ 12742 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){ 12743 return event[6]; 12744 } 12745 12746 /** 12747 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 12748 * @param event packet 12749 * @return hids_cid 12750 * @note: btstack_type 2 12751 */ 12752 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){ 12753 return little_endian_read_16(event, 3); 12754 } 12755 /** 12756 * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 12757 * @param event packet 12758 * @return configuration 12759 * @note: btstack_type 1 12760 */ 12761 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 12762 return event[5]; 12763 } 12764 12765 /** 12766 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12767 * @param event packet 12768 * @return con_handle 12769 * @note: btstack_type H 12770 */ 12771 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){ 12772 return little_endian_read_16(event, 3); 12773 } 12774 /** 12775 * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12776 * @param event packet 12777 * @return max_scan_interval 12778 * @note: btstack_type 2 12779 */ 12780 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){ 12781 return little_endian_read_16(event, 5); 12782 } 12783 /** 12784 * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12785 * @param event packet 12786 * @return min_scan_window 12787 * @note: btstack_type 2 12788 */ 12789 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){ 12790 return little_endian_read_16(event, 7); 12791 } 12792 12793 /** 12794 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_MICS_CONNECTED 12795 * @param event packet 12796 * @return hids_cid 12797 * @note: btstack_type 2 12798 */ 12799 static inline uint16_t gattservice_subevent_mics_connected_get_hids_cid(const uint8_t * event){ 12800 return little_endian_read_16(event, 3); 12801 } 12802 /** 12803 * @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_CONNECTED 12804 * @param event packet 12805 * @return status 12806 * @note: btstack_type 1 12807 */ 12808 static inline uint8_t gattservice_subevent_mics_connected_get_status(const uint8_t * event){ 12809 return event[5]; 12810 } 12811 12812 /** 12813 * @brief Get field cid from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE 12814 * @param event packet 12815 * @return cid 12816 * @note: btstack_type 2 12817 */ 12818 static inline uint16_t gattservice_subevent_remote_mics_mute_get_cid(const uint8_t * event){ 12819 return little_endian_read_16(event, 3); 12820 } 12821 /** 12822 * @brief Get field status from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE 12823 * @param event packet 12824 * @return status 12825 * @note: btstack_type 1 12826 */ 12827 static inline uint8_t gattservice_subevent_remote_mics_mute_get_status(const uint8_t * event){ 12828 return event[5]; 12829 } 12830 /** 12831 * @brief Get field state from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE 12832 * @param event packet 12833 * @return state 12834 * @note: btstack_type 1 12835 */ 12836 static inline uint8_t gattservice_subevent_remote_mics_mute_get_state(const uint8_t * event){ 12837 return event[6]; 12838 } 12839 12840 /** 12841 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE 12842 * @param event packet 12843 * @return con_handle 12844 * @note: btstack_type H 12845 */ 12846 static inline hci_con_handle_t gattservice_subevent_local_mics_mute_get_con_handle(const uint8_t * event){ 12847 return little_endian_read_16(event, 3); 12848 } 12849 /** 12850 * @brief Get field state from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE 12851 * @param event packet 12852 * @return state 12853 * @note: btstack_type 1 12854 */ 12855 static inline uint8_t gattservice_subevent_local_mics_mute_get_state(const uint8_t * event){ 12856 return event[5]; 12857 } 12858 12859 /** 12860 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_MUTE_MODE 12861 * @param event packet 12862 * @return con_handle 12863 * @note: btstack_type H 12864 */ 12865 static inline hci_con_handle_t gattservice_subevent_aics_mute_mode_get_con_handle(const uint8_t * event){ 12866 return little_endian_read_16(event, 3); 12867 } 12868 /** 12869 * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_MUTE_MODE 12870 * @param event packet 12871 * @return index 12872 * @note: btstack_type 1 12873 */ 12874 static inline uint8_t gattservice_subevent_aics_mute_mode_get_index(const uint8_t * event){ 12875 return event[5]; 12876 } 12877 /** 12878 * @brief Get field state from event GATTSERVICE_SUBEVENT_AICS_MUTE_MODE 12879 * @param event packet 12880 * @return state 12881 * @note: btstack_type 1 12882 */ 12883 static inline uint8_t gattservice_subevent_aics_mute_mode_get_state(const uint8_t * event){ 12884 return event[6]; 12885 } 12886 12887 /** 12888 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_GAIN_MODE 12889 * @param event packet 12890 * @return con_handle 12891 * @note: btstack_type H 12892 */ 12893 static inline hci_con_handle_t gattservice_subevent_aics_gain_mode_get_con_handle(const uint8_t * event){ 12894 return little_endian_read_16(event, 3); 12895 } 12896 /** 12897 * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_GAIN_MODE 12898 * @param event packet 12899 * @return index 12900 * @note: btstack_type 1 12901 */ 12902 static inline uint8_t gattservice_subevent_aics_gain_mode_get_index(const uint8_t * event){ 12903 return event[5]; 12904 } 12905 /** 12906 * @brief Get field state from event GATTSERVICE_SUBEVENT_AICS_GAIN_MODE 12907 * @param event packet 12908 * @return state 12909 * @note: btstack_type 1 12910 */ 12911 static inline uint8_t gattservice_subevent_aics_gain_mode_get_state(const uint8_t * event){ 12912 return event[6]; 12913 } 12914 12915 /** 12916 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_GAIN_CHANGED 12917 * @param event packet 12918 * @return con_handle 12919 * @note: btstack_type H 12920 */ 12921 static inline hci_con_handle_t gattservice_subevent_aics_gain_changed_get_con_handle(const uint8_t * event){ 12922 return little_endian_read_16(event, 3); 12923 } 12924 /** 12925 * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_GAIN_CHANGED 12926 * @param event packet 12927 * @return index 12928 * @note: btstack_type 1 12929 */ 12930 static inline uint8_t gattservice_subevent_aics_gain_changed_get_index(const uint8_t * event){ 12931 return event[5]; 12932 } 12933 /** 12934 * @brief Get field gain_db from event GATTSERVICE_SUBEVENT_AICS_GAIN_CHANGED 12935 * @param event packet 12936 * @return gain_db 12937 * @note: btstack_type 1 12938 */ 12939 static inline uint8_t gattservice_subevent_aics_gain_changed_get_gain_db(const uint8_t * event){ 12940 return event[6]; 12941 } 12942 12943 /** 12944 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED 12945 * @param event packet 12946 * @return con_handle 12947 * @note: btstack_type H 12948 */ 12949 static inline hci_con_handle_t gattservice_subevent_aics_audio_input_desc_changed_get_con_handle(const uint8_t * event){ 12950 return little_endian_read_16(event, 3); 12951 } 12952 /** 12953 * @brief Get field index from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED 12954 * @param event packet 12955 * @return index 12956 * @note: btstack_type 1 12957 */ 12958 static inline uint8_t gattservice_subevent_aics_audio_input_desc_changed_get_index(const uint8_t * event){ 12959 return event[5]; 12960 } 12961 /** 12962 * @brief Get field description_len from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED 12963 * @param event packet 12964 * @return description_len 12965 * @note: btstack_type J 12966 */ 12967 static inline uint8_t gattservice_subevent_aics_audio_input_desc_changed_get_description_len(const uint8_t * event){ 12968 return event[6]; 12969 } 12970 /** 12971 * @brief Get field description from event GATTSERVICE_SUBEVENT_AICS_AUDIO_INPUT_DESC_CHANGED 12972 * @param event packet 12973 * @return description 12974 * @note: btstack_type V 12975 */ 12976 static inline const uint8_t * gattservice_subevent_aics_audio_input_desc_changed_get_description(const uint8_t * event){ 12977 return &event[7]; 12978 } 12979 12980 /** 12981 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET 12982 * @param event packet 12983 * @return con_handle 12984 * @note: btstack_type H 12985 */ 12986 static inline hci_con_handle_t gattservice_subevent_vocs_volume_offset_get_con_handle(const uint8_t * event){ 12987 return little_endian_read_16(event, 3); 12988 } 12989 /** 12990 * @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET 12991 * @param event packet 12992 * @return index 12993 * @note: btstack_type 1 12994 */ 12995 static inline uint8_t gattservice_subevent_vocs_volume_offset_get_index(const uint8_t * event){ 12996 return event[5]; 12997 } 12998 /** 12999 * @brief Get field volume_offset from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET 13000 * @param event packet 13001 * @return volume_offset 13002 * @note: btstack_type 2 13003 */ 13004 static inline uint16_t gattservice_subevent_vocs_volume_offset_get_volume_offset(const uint8_t * event){ 13005 return little_endian_read_16(event, 6); 13006 } 13007 13008 /** 13009 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION 13010 * @param event packet 13011 * @return con_handle 13012 * @note: btstack_type H 13013 */ 13014 static inline hci_con_handle_t gattservice_subevent_vocs_audio_location_get_con_handle(const uint8_t * event){ 13015 return little_endian_read_16(event, 3); 13016 } 13017 /** 13018 * @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION 13019 * @param event packet 13020 * @return index 13021 * @note: btstack_type 1 13022 */ 13023 static inline uint8_t gattservice_subevent_vocs_audio_location_get_index(const uint8_t * event){ 13024 return event[5]; 13025 } 13026 /** 13027 * @brief Get field audio_location from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION 13028 * @param event packet 13029 * @return audio_location 13030 * @note: btstack_type 4 13031 */ 13032 static inline uint32_t gattservice_subevent_vocs_audio_location_get_audio_location(const uint8_t * event){ 13033 return little_endian_read_32(event, 6); 13034 } 13035 13036 /** 13037 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED 13038 * @param event packet 13039 * @return con_handle 13040 * @note: btstack_type H 13041 */ 13042 static inline hci_con_handle_t gattservice_subevent_vocs_audio_output_desc_changed_get_con_handle(const uint8_t * event){ 13043 return little_endian_read_16(event, 3); 13044 } 13045 /** 13046 * @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED 13047 * @param event packet 13048 * @return index 13049 * @note: btstack_type 1 13050 */ 13051 static inline uint8_t gattservice_subevent_vocs_audio_output_desc_changed_get_index(const uint8_t * event){ 13052 return event[5]; 13053 } 13054 /** 13055 * @brief Get field description_len from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED 13056 * @param event packet 13057 * @return description_len 13058 * @note: btstack_type J 13059 */ 13060 static inline uint8_t gattservice_subevent_vocs_audio_output_desc_changed_get_description_len(const uint8_t * event){ 13061 return event[6]; 13062 } 13063 /** 13064 * @brief Get field description from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED 13065 * @param event packet 13066 * @return description 13067 * @note: btstack_type V 13068 */ 13069 static inline const uint8_t * gattservice_subevent_vocs_audio_output_desc_changed_get_description(const uint8_t * event){ 13070 return &event[7]; 13071 } 13072 13073 /** 13074 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE 13075 * @param event packet 13076 * @return con_handle 13077 * @note: btstack_type H 13078 */ 13079 static inline hci_con_handle_t gattservice_subevent_vcs_volume_state_get_con_handle(const uint8_t * event){ 13080 return little_endian_read_16(event, 3); 13081 } 13082 /** 13083 * @brief Get field volume_setting from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE 13084 * @param event packet 13085 * @return volume_setting 13086 * @note: btstack_type 1 13087 */ 13088 static inline uint8_t gattservice_subevent_vcs_volume_state_get_volume_setting(const uint8_t * event){ 13089 return event[5]; 13090 } 13091 /** 13092 * @brief Get field volume_change_step from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE 13093 * @param event packet 13094 * @return volume_change_step 13095 * @note: btstack_type 1 13096 */ 13097 static inline uint8_t gattservice_subevent_vcs_volume_state_get_volume_change_step(const uint8_t * event){ 13098 return event[6]; 13099 } 13100 /** 13101 * @brief Get field mute from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE 13102 * @param event packet 13103 * @return mute 13104 * @note: btstack_type 1 13105 */ 13106 static inline uint8_t gattservice_subevent_vcs_volume_state_get_mute(const uint8_t * event){ 13107 return event[7]; 13108 } 13109 13110 /** 13111 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_VOLUME_FLAGS 13112 * @param event packet 13113 * @return con_handle 13114 * @note: btstack_type H 13115 */ 13116 static inline hci_con_handle_t gattservice_subevent_vcs_volume_flags_get_con_handle(const uint8_t * event){ 13117 return little_endian_read_16(event, 3); 13118 } 13119 /** 13120 * @brief Get field flags from event GATTSERVICE_SUBEVENT_VCS_VOLUME_FLAGS 13121 * @param event packet 13122 * @return flags 13123 * @note: btstack_type 1 13124 */ 13125 static inline uint8_t gattservice_subevent_vcs_volume_flags_get_flags(const uint8_t * event){ 13126 return event[5]; 13127 } 13128 13129 /** 13130 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_REMOTE_SCAN_STOPPED 13131 * @param event packet 13132 * @return con_handle 13133 * @note: btstack_type H 13134 */ 13135 static inline hci_con_handle_t gattservice_subevent_bass_remote_scan_stopped_get_con_handle(const uint8_t * event){ 13136 return little_endian_read_16(event, 3); 13137 } 13138 13139 /** 13140 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_REMOTE_SCAN_STARTED 13141 * @param event packet 13142 * @return con_handle 13143 * @note: btstack_type H 13144 */ 13145 static inline hci_con_handle_t gattservice_subevent_bass_remote_scan_started_get_con_handle(const uint8_t * event){ 13146 return little_endian_read_16(event, 3); 13147 } 13148 13149 /** 13150 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE 13151 * @param event packet 13152 * @return con_handle 13153 * @note: btstack_type H 13154 */ 13155 static inline hci_con_handle_t gattservice_subevent_bass_broadcast_code_get_con_handle(const uint8_t * event){ 13156 return little_endian_read_16(event, 3); 13157 } 13158 /** 13159 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE 13160 * @param event packet 13161 * @return source_id 13162 * @note: btstack_type 1 13163 */ 13164 static inline uint8_t gattservice_subevent_bass_broadcast_code_get_source_id(const uint8_t * event){ 13165 return event[5]; 13166 } 13167 /** 13168 * @brief Get field broadcast_code from event GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE 13169 * @param event packet 13170 * @param Pointer to storage for broadcast_code 13171 * @note: btstack_type K 13172 */ 13173 static inline void gattservice_subevent_bass_broadcast_code_get_broadcast_code(const uint8_t * event, uint8_t * broadcast_code){ 13174 reverse_bytes(&event[6], broadcast_code, 16); 13175 } 13176 13177 /** 13178 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED 13179 * @param event packet 13180 * @return con_handle 13181 * @note: btstack_type H 13182 */ 13183 static inline hci_con_handle_t gattservice_subevent_bass_source_added_get_con_handle(const uint8_t * event){ 13184 return little_endian_read_16(event, 3); 13185 } 13186 /** 13187 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED 13188 * @param event packet 13189 * @return source_id 13190 * @note: btstack_type 1 13191 */ 13192 static inline uint8_t gattservice_subevent_bass_source_added_get_source_id(const uint8_t * event){ 13193 return event[5]; 13194 } 13195 /** 13196 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED 13197 * @param event packet 13198 * @return pa_sync 13199 * @note: btstack_type 1 13200 */ 13201 static inline uint8_t gattservice_subevent_bass_source_added_get_pa_sync(const uint8_t * event){ 13202 return event[6]; 13203 } 13204 13205 /** 13206 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED 13207 * @param event packet 13208 * @return con_handle 13209 * @note: btstack_type H 13210 */ 13211 static inline hci_con_handle_t gattservice_subevent_bass_source_modified_get_con_handle(const uint8_t * event){ 13212 return little_endian_read_16(event, 3); 13213 } 13214 /** 13215 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED 13216 * @param event packet 13217 * @return source_id 13218 * @note: btstack_type 1 13219 */ 13220 static inline uint8_t gattservice_subevent_bass_source_modified_get_source_id(const uint8_t * event){ 13221 return event[5]; 13222 } 13223 /** 13224 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED 13225 * @param event packet 13226 * @return pa_sync 13227 * @note: btstack_type 1 13228 */ 13229 static inline uint8_t gattservice_subevent_bass_source_modified_get_pa_sync(const uint8_t * event){ 13230 return event[6]; 13231 } 13232 13233 /** 13234 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED 13235 * @param event packet 13236 * @return con_handle 13237 * @note: btstack_type H 13238 */ 13239 static inline hci_con_handle_t gattservice_subevent_bass_source_deleted_get_con_handle(const uint8_t * event){ 13240 return little_endian_read_16(event, 3); 13241 } 13242 /** 13243 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED 13244 * @param event packet 13245 * @return source_id 13246 * @note: btstack_type 1 13247 */ 13248 static inline uint8_t gattservice_subevent_bass_source_deleted_get_source_id(const uint8_t * event){ 13249 return event[5]; 13250 } 13251 /** 13252 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED 13253 * @param event packet 13254 * @return pa_sync 13255 * @note: btstack_type 1 13256 */ 13257 static inline uint8_t gattservice_subevent_bass_source_deleted_get_pa_sync(const uint8_t * event){ 13258 return event[6]; 13259 } 13260 13261 /** 13262 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13263 * @param event packet 13264 * @return con_handle 13265 * @note: btstack_type H 13266 */ 13267 static inline hci_con_handle_t gattservice_subevent_ascs_codec_configuration_request_get_con_handle(const uint8_t * event){ 13268 return little_endian_read_16(event, 3); 13269 } 13270 /** 13271 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13272 * @param event packet 13273 * @return ase_id 13274 * @note: btstack_type 1 13275 */ 13276 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_ase_id(const uint8_t * event){ 13277 return event[5]; 13278 } 13279 /** 13280 * @brief Get field target_latency from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13281 * @param event packet 13282 * @return target_latency 13283 * @note: btstack_type 1 13284 */ 13285 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_target_latency(const uint8_t * event){ 13286 return event[6]; 13287 } 13288 /** 13289 * @brief Get field target_phy from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13290 * @param event packet 13291 * @return target_phy 13292 * @note: btstack_type 1 13293 */ 13294 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_target_phy(const uint8_t * event){ 13295 return event[7]; 13296 } 13297 /** 13298 * @brief Get field coding_format from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13299 * @param event packet 13300 * @return coding_format 13301 * @note: btstack_type 1 13302 */ 13303 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_coding_format(const uint8_t * event){ 13304 return event[8]; 13305 } 13306 /** 13307 * @brief Get field company_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13308 * @param event packet 13309 * @return company_id 13310 * @note: btstack_type 2 13311 */ 13312 static inline uint16_t gattservice_subevent_ascs_codec_configuration_request_get_company_id(const uint8_t * event){ 13313 return little_endian_read_16(event, 9); 13314 } 13315 /** 13316 * @brief Get field vendor_specific_codec_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13317 * @param event packet 13318 * @return vendor_specific_codec_id 13319 * @note: btstack_type 2 13320 */ 13321 static inline uint16_t gattservice_subevent_ascs_codec_configuration_request_get_vendor_specific_codec_id(const uint8_t * event){ 13322 return little_endian_read_16(event, 11); 13323 } 13324 /** 13325 * @brief Get field specific_codec_configuration_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13326 * @param event packet 13327 * @return specific_codec_configuration_mask 13328 * @note: btstack_type 1 13329 */ 13330 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_specific_codec_configuration_mask(const uint8_t * event){ 13331 return event[13]; 13332 } 13333 /** 13334 * @brief Get field sampling_frequency_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13335 * @param event packet 13336 * @return sampling_frequency_index 13337 * @note: btstack_type 1 13338 */ 13339 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_sampling_frequency_index(const uint8_t * event){ 13340 return event[14]; 13341 } 13342 /** 13343 * @brief Get field frame_duration_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13344 * @param event packet 13345 * @return frame_duration_index 13346 * @note: btstack_type 1 13347 */ 13348 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_frame_duration_index(const uint8_t * event){ 13349 return event[15]; 13350 } 13351 /** 13352 * @brief Get field audio_channel_allocation_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13353 * @param event packet 13354 * @return audio_channel_allocation_mask 13355 * @note: btstack_type 4 13356 */ 13357 static inline uint32_t gattservice_subevent_ascs_codec_configuration_request_get_audio_channel_allocation_mask(const uint8_t * event){ 13358 return little_endian_read_32(event, 16); 13359 } 13360 /** 13361 * @brief Get field octets_per_frame from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13362 * @param event packet 13363 * @return octets_per_frame 13364 * @note: btstack_type 2 13365 */ 13366 static inline uint16_t gattservice_subevent_ascs_codec_configuration_request_get_octets_per_frame(const uint8_t * event){ 13367 return little_endian_read_16(event, 20); 13368 } 13369 /** 13370 * @brief Get field frame_blocks_per_sdu from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION_REQUEST 13371 * @param event packet 13372 * @return frame_blocks_per_sdu 13373 * @note: btstack_type 1 13374 */ 13375 static inline uint8_t gattservice_subevent_ascs_codec_configuration_request_get_frame_blocks_per_sdu(const uint8_t * event){ 13376 return event[22]; 13377 } 13378 13379 /** 13380 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13381 * @param event packet 13382 * @return con_handle 13383 * @note: btstack_type H 13384 */ 13385 static inline hci_con_handle_t gattservice_subevent_ascs_qos_configuration_get_con_handle(const uint8_t * event){ 13386 return little_endian_read_16(event, 3); 13387 } 13388 /** 13389 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13390 * @param event packet 13391 * @return ase_id 13392 * @note: btstack_type 1 13393 */ 13394 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_ase_id(const uint8_t * event){ 13395 return event[5]; 13396 } 13397 /** 13398 * @brief Get field cig_id from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13399 * @param event packet 13400 * @return cig_id 13401 * @note: btstack_type 1 13402 */ 13403 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_cig_id(const uint8_t * event){ 13404 return event[6]; 13405 } 13406 /** 13407 * @brief Get field cis_id from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13408 * @param event packet 13409 * @return cis_id 13410 * @note: btstack_type 1 13411 */ 13412 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_cis_id(const uint8_t * event){ 13413 return event[7]; 13414 } 13415 /** 13416 * @brief Get field sdu_interval from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13417 * @param event packet 13418 * @return sdu_interval 13419 * @note: btstack_type 3 13420 */ 13421 static inline uint32_t gattservice_subevent_ascs_qos_configuration_get_sdu_interval(const uint8_t * event){ 13422 return little_endian_read_24(event, 8); 13423 } 13424 /** 13425 * @brief Get field framing from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13426 * @param event packet 13427 * @return framing 13428 * @note: btstack_type 1 13429 */ 13430 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_framing(const uint8_t * event){ 13431 return event[11]; 13432 } 13433 /** 13434 * @brief Get field phy from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13435 * @param event packet 13436 * @return phy 13437 * @note: btstack_type 1 13438 */ 13439 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_phy(const uint8_t * event){ 13440 return event[12]; 13441 } 13442 /** 13443 * @brief Get field max_sdu from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13444 * @param event packet 13445 * @return max_sdu 13446 * @note: btstack_type 2 13447 */ 13448 static inline uint16_t gattservice_subevent_ascs_qos_configuration_get_max_sdu(const uint8_t * event){ 13449 return little_endian_read_16(event, 13); 13450 } 13451 /** 13452 * @brief Get field retransmission_number from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13453 * @param event packet 13454 * @return retransmission_number 13455 * @note: btstack_type 1 13456 */ 13457 static inline uint8_t gattservice_subevent_ascs_qos_configuration_get_retransmission_number(const uint8_t * event){ 13458 return event[15]; 13459 } 13460 /** 13461 * @brief Get field max_transport_latency from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13462 * @param event packet 13463 * @return max_transport_latency 13464 * @note: btstack_type 2 13465 */ 13466 static inline uint16_t gattservice_subevent_ascs_qos_configuration_get_max_transport_latency(const uint8_t * event){ 13467 return little_endian_read_16(event, 16); 13468 } 13469 /** 13470 * @brief Get field presentation_delay_us from event GATTSERVICE_SUBEVENT_ASCS_QOS_CONFIGURATION 13471 * @param event packet 13472 * @return presentation_delay_us 13473 * @note: btstack_type 3 13474 */ 13475 static inline uint32_t gattservice_subevent_ascs_qos_configuration_get_presentation_delay_us(const uint8_t * event){ 13476 return little_endian_read_24(event, 18); 13477 } 13478 13479 /** 13480 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13481 * @param event packet 13482 * @return con_handle 13483 * @note: btstack_type H 13484 */ 13485 static inline hci_con_handle_t gattservice_subevent_ascs_metadata_get_con_handle(const uint8_t * event){ 13486 return little_endian_read_16(event, 3); 13487 } 13488 /** 13489 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13490 * @param event packet 13491 * @return ase_id 13492 * @note: btstack_type 1 13493 */ 13494 static inline uint8_t gattservice_subevent_ascs_metadata_get_ase_id(const uint8_t * event){ 13495 return event[5]; 13496 } 13497 /** 13498 * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13499 * @param event packet 13500 * @return metadata_mask 13501 * @note: btstack_type 1 13502 */ 13503 static inline uint8_t gattservice_subevent_ascs_metadata_get_metadata_mask(const uint8_t * event){ 13504 return event[6]; 13505 } 13506 /** 13507 * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13508 * @param event packet 13509 * @return preferred_audio_contexts_mask 13510 * @note: btstack_type 2 13511 */ 13512 static inline uint16_t gattservice_subevent_ascs_metadata_get_preferred_audio_contexts_mask(const uint8_t * event){ 13513 return little_endian_read_16(event, 7); 13514 } 13515 /** 13516 * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13517 * @param event packet 13518 * @return streaming_audio_contexts_mask 13519 * @note: btstack_type 2 13520 */ 13521 static inline uint16_t gattservice_subevent_ascs_metadata_get_streaming_audio_contexts_mask(const uint8_t * event){ 13522 return little_endian_read_16(event, 9); 13523 } 13524 /** 13525 * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13526 * @param event packet 13527 * @return program_info_length 13528 * @note: btstack_type J 13529 */ 13530 static inline uint8_t gattservice_subevent_ascs_metadata_get_program_info_length(const uint8_t * event){ 13531 return event[11]; 13532 } 13533 /** 13534 * @brief Get field program_info from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13535 * @param event packet 13536 * @return program_info 13537 * @note: btstack_type V 13538 */ 13539 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_program_info(const uint8_t * event){ 13540 return &event[12]; 13541 } 13542 /** 13543 * @brief Get field language_code from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13544 * @param event packet 13545 * @return language_code 13546 * @note: btstack_type 3 13547 */ 13548 static inline uint32_t gattservice_subevent_ascs_metadata_get_language_code(const uint8_t * event){ 13549 return little_endian_read_24(event, 12u + event[11]); 13550 } 13551 /** 13552 * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13553 * @param event packet 13554 * @return ccids_num 13555 * @note: btstack_type J 13556 */ 13557 static inline uint8_t gattservice_subevent_ascs_metadata_get_ccids_num(const uint8_t * event){ 13558 return event[12u + event[11] + 3u]; 13559 } 13560 /** 13561 * @brief Get field ccids from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13562 * @param event packet 13563 * @return ccids 13564 * @note: btstack_type V 13565 */ 13566 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_ccids(const uint8_t * event){ 13567 return &event[12u + event[11] + 3u + 1u]; 13568 } 13569 /** 13570 * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13571 * @param event packet 13572 * @return parental_rating 13573 * @note: btstack_type 1 13574 */ 13575 static inline uint8_t gattservice_subevent_ascs_metadata_get_parental_rating(const uint8_t * event){ 13576 return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u]]; 13577 } 13578 /** 13579 * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13580 * @param event packet 13581 * @return program_info_uri_length 13582 * @note: btstack_type J 13583 */ 13584 static inline uint8_t gattservice_subevent_ascs_metadata_get_program_info_uri_length(const uint8_t * event){ 13585 return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u]; 13586 } 13587 /** 13588 * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13589 * @param event packet 13590 * @return program_info_uri 13591 * @note: btstack_type V 13592 */ 13593 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_program_info_uri(const uint8_t * event){ 13594 return &event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u]; 13595 } 13596 /** 13597 * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13598 * @param event packet 13599 * @return extended_metadata_type 13600 * @note: btstack_type 2 13601 */ 13602 static inline uint16_t gattservice_subevent_ascs_metadata_get_extended_metadata_type(const uint8_t * event){ 13603 return little_endian_read_16(event, 12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u]); 13604 } 13605 /** 13606 * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13607 * @param event packet 13608 * @return extended_metadata_value_length 13609 * @note: btstack_type J 13610 */ 13611 static inline uint8_t gattservice_subevent_ascs_metadata_get_extended_metadata_value_length(const uint8_t * event){ 13612 return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u]; 13613 } 13614 /** 13615 * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13616 * @param event packet 13617 * @return extended_metadata_value 13618 * @note: btstack_type V 13619 */ 13620 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_extended_metadata_value(const uint8_t * event){ 13621 return &event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u]; 13622 } 13623 /** 13624 * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13625 * @param event packet 13626 * @return vendor_specific_metadata_type 13627 * @note: btstack_type 2 13628 */ 13629 static inline uint16_t gattservice_subevent_ascs_metadata_get_vendor_specific_metadata_type(const uint8_t * event){ 13630 return little_endian_read_16(event, 12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u]); 13631 } 13632 /** 13633 * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13634 * @param event packet 13635 * @return vendor_specific_metadata_value_length 13636 * @note: btstack_type J 13637 */ 13638 static inline uint8_t gattservice_subevent_ascs_metadata_get_vendor_specific_metadata_value_length(const uint8_t * event){ 13639 return event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u] + 2u]; 13640 } 13641 /** 13642 * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_ASCS_METADATA 13643 * @param event packet 13644 * @return vendor_specific_metadata_value 13645 * @note: btstack_type V 13646 */ 13647 static inline const uint8_t * gattservice_subevent_ascs_metadata_get_vendor_specific_metadata_value(const uint8_t * event){ 13648 return &event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u + 1u + event[12u + event[11] + 3u + 1u + event[12u + event[11] + 3u] + 1u] + 2u] + 2u + 1u]; 13649 } 13650 13651 /** 13652 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_START_READY 13653 * @param event packet 13654 * @return con_handle 13655 * @note: btstack_type H 13656 */ 13657 static inline hci_con_handle_t gattservice_subevent_ascs_client_start_ready_get_con_handle(const uint8_t * event){ 13658 return little_endian_read_16(event, 3); 13659 } 13660 /** 13661 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_START_READY 13662 * @param event packet 13663 * @return ase_id 13664 * @note: btstack_type 1 13665 */ 13666 static inline uint8_t gattservice_subevent_ascs_client_start_ready_get_ase_id(const uint8_t * event){ 13667 return event[5]; 13668 } 13669 13670 /** 13671 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_DISABLING 13672 * @param event packet 13673 * @return con_handle 13674 * @note: btstack_type H 13675 */ 13676 static inline hci_con_handle_t gattservice_subevent_ascs_client_disabling_get_con_handle(const uint8_t * event){ 13677 return little_endian_read_16(event, 3); 13678 } 13679 /** 13680 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_DISABLING 13681 * @param event packet 13682 * @return ase_id 13683 * @note: btstack_type 1 13684 */ 13685 static inline uint8_t gattservice_subevent_ascs_client_disabling_get_ase_id(const uint8_t * event){ 13686 return event[5]; 13687 } 13688 13689 /** 13690 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASING 13691 * @param event packet 13692 * @return con_handle 13693 * @note: btstack_type H 13694 */ 13695 static inline hci_con_handle_t gattservice_subevent_ascs_client_releasing_get_con_handle(const uint8_t * event){ 13696 return little_endian_read_16(event, 3); 13697 } 13698 /** 13699 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASING 13700 * @param event packet 13701 * @return ase_id 13702 * @note: btstack_type 1 13703 */ 13704 static inline uint8_t gattservice_subevent_ascs_client_releasing_get_ase_id(const uint8_t * event){ 13705 return event[5]; 13706 } 13707 13708 /** 13709 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_STOP_READY 13710 * @param event packet 13711 * @return con_handle 13712 * @note: btstack_type H 13713 */ 13714 static inline hci_con_handle_t gattservice_subevent_ascs_client_stop_ready_get_con_handle(const uint8_t * event){ 13715 return little_endian_read_16(event, 3); 13716 } 13717 /** 13718 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_STOP_READY 13719 * @param event packet 13720 * @return ase_id 13721 * @note: btstack_type 1 13722 */ 13723 static inline uint8_t gattservice_subevent_ascs_client_stop_ready_get_ase_id(const uint8_t * event){ 13724 return event[5]; 13725 } 13726 13727 /** 13728 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASED 13729 * @param event packet 13730 * @return con_handle 13731 * @note: btstack_type H 13732 */ 13733 static inline hci_con_handle_t gattservice_subevent_ascs_client_released_get_con_handle(const uint8_t * event){ 13734 return little_endian_read_16(event, 3); 13735 } 13736 /** 13737 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CLIENT_RELEASED 13738 * @param event packet 13739 * @return ase_id 13740 * @note: btstack_type 1 13741 */ 13742 static inline uint8_t gattservice_subevent_ascs_client_released_get_ase_id(const uint8_t * event){ 13743 return event[5]; 13744 } 13745 13746 /** 13747 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATION_RECEIVED 13748 * @param event packet 13749 * @return con_handle 13750 * @note: btstack_type H 13751 */ 13752 static inline hci_con_handle_t gattservice_subevent_pacs_audio_location_received_get_con_handle(const uint8_t * event){ 13753 return little_endian_read_16(event, 3); 13754 } 13755 /** 13756 * @brief Get field audio_locations from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATION_RECEIVED 13757 * @param event packet 13758 * @return audio_locations 13759 * @note: btstack_type 4 13760 */ 13761 static inline uint32_t gattservice_subevent_pacs_audio_location_received_get_audio_locations(const uint8_t * event){ 13762 return little_endian_read_32(event, 5); 13763 } 13764 /** 13765 * @brief Get field role from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATION_RECEIVED 13766 * @param event packet 13767 * @return role 13768 * @note: btstack_type 1 13769 */ 13770 static inline uint8_t gattservice_subevent_pacs_audio_location_received_get_role(const uint8_t * event){ 13771 return event[9]; 13772 } 13773 13774 /** 13775 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_CONNECTED 13776 * @param event packet 13777 * @return con_handle 13778 * @note: btstack_type H 13779 */ 13780 static inline hci_con_handle_t gattservice_subevent_bass_connected_get_con_handle(const uint8_t * event){ 13781 return little_endian_read_16(event, 3); 13782 } 13783 /** 13784 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CONNECTED 13785 * @param event packet 13786 * @return bass_cid 13787 * @note: btstack_type 2 13788 */ 13789 static inline uint16_t gattservice_subevent_bass_connected_get_bass_cid(const uint8_t * event){ 13790 return little_endian_read_16(event, 5); 13791 } 13792 /** 13793 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CONNECTED 13794 * @param event packet 13795 * @return status 13796 * @note: btstack_type 1 13797 */ 13798 static inline uint8_t gattservice_subevent_bass_connected_get_status(const uint8_t * event){ 13799 return event[7]; 13800 } 13801 13802 /** 13803 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_DISCONNECTED 13804 * @param event packet 13805 * @return bass_cid 13806 * @note: btstack_type 2 13807 */ 13808 static inline uint16_t gattservice_subevent_bass_disconnected_get_bass_cid(const uint8_t * event){ 13809 return little_endian_read_16(event, 3); 13810 } 13811 13812 /** 13813 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_SCAN_OPERATION_COMPLETE 13814 * @param event packet 13815 * @return bass_cid 13816 * @note: btstack_type 2 13817 */ 13818 static inline uint16_t gattservice_subevent_bass_scan_operation_complete_get_bass_cid(const uint8_t * event){ 13819 return little_endian_read_16(event, 3); 13820 } 13821 /** 13822 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_SCAN_OPERATION_COMPLETE 13823 * @param event packet 13824 * @return status 13825 * @note: btstack_type 1 13826 */ 13827 static inline uint8_t gattservice_subevent_bass_scan_operation_complete_get_status(const uint8_t * event){ 13828 return event[5]; 13829 } 13830 /** 13831 * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_SCAN_OPERATION_COMPLETE 13832 * @param event packet 13833 * @return opcode 13834 * @note: btstack_type 1 13835 */ 13836 static inline uint8_t gattservice_subevent_bass_scan_operation_complete_get_opcode(const uint8_t * event){ 13837 return event[6]; 13838 } 13839 13840 /** 13841 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13842 * @param event packet 13843 * @return bass_cid 13844 * @note: btstack_type 2 13845 */ 13846 // static inline uint16_t gattservice_subevent_bass_notify_receive_state_base_get_bass_cid(const uint8_t * event){ 13847 // not implemented yet 13848 // } 13849 /** 13850 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13851 * @param event packet 13852 * @return source_id 13853 * @note: btstack_type 1 13854 */ 13855 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_id(const uint8_t * event){ 13856 // not implemented yet 13857 // } 13858 /** 13859 * @brief Get field source_address_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13860 * @param event packet 13861 * @return source_address_type 13862 * @note: btstack_type 1 13863 */ 13864 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_address_type(const uint8_t * event){ 13865 // not implemented yet 13866 // } 13867 /** 13868 * @brief Get field source_address from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13869 * @param event packet 13870 * @return source_address 13871 * @note: btstack_type B 13872 */ 13873 // static inline bd_addr_t gattservice_subevent_bass_notify_receive_state_base_get_source_address(const uint8_t * event){ 13874 // not implemented yet 13875 // } 13876 /** 13877 * @brief Get field source_adv_sid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13878 * @param event packet 13879 * @return source_adv_sid 13880 * @note: btstack_type 1 13881 */ 13882 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_adv_sid(const uint8_t * event){ 13883 // not implemented yet 13884 // } 13885 /** 13886 * @brief Get field broadcast_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13887 * @param event packet 13888 * @return broadcast_id 13889 * @note: btstack_type 3 13890 */ 13891 // static inline uint32_t gattservice_subevent_bass_notify_receive_state_base_get_broadcast_id(const uint8_t * event){ 13892 // not implemented yet 13893 // } 13894 /** 13895 * @brief Get field pa_sync_state from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13896 * @param event packet 13897 * @return pa_sync_state 13898 * @note: btstack_type 1 13899 */ 13900 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_pa_sync_state(const uint8_t * event){ 13901 // not implemented yet 13902 // } 13903 /** 13904 * @brief Get field big_encryption from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13905 * @param event packet 13906 * @return big_encryption 13907 * @note: btstack_type 1 13908 */ 13909 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_big_encryption(const uint8_t * event){ 13910 // not implemented yet 13911 // } 13912 /** 13913 * @brief Get field bad_code from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13914 * @param event packet 13915 * @return bad_code 13916 * @note: btstack_type P 13917 */ 13918 // static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_base_get_bad_code(const uint8_t * event){ 13919 // not implemented yet 13920 // } 13921 /** 13922 * @brief Get field subgroups_num from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13923 * @param event packet 13924 * @return subgroups_num 13925 * @note: btstack_type 1 13926 */ 13927 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_subgroups_num(const uint8_t * event){ 13928 // not implemented yet 13929 // } 13930 13931 /** 13932 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13933 * @param event packet 13934 * @return bass_cid 13935 * @note: btstack_type 2 13936 */ 13937 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_bass_cid(const uint8_t * event){ 13938 return little_endian_read_16(event, 3); 13939 } 13940 /** 13941 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13942 * @param event packet 13943 * @return source_id 13944 * @note: btstack_type 1 13945 */ 13946 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_source_id(const uint8_t * event){ 13947 return event[5]; 13948 } 13949 /** 13950 * @brief Get field bis_sync_state from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13951 * @param event packet 13952 * @return bis_sync_state 13953 * @note: btstack_type 4 13954 */ 13955 static inline uint32_t gattservice_subevent_bass_notify_receive_state_subgroup_get_bis_sync_state(const uint8_t * event){ 13956 return little_endian_read_32(event, 6); 13957 } 13958 /** 13959 * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13960 * @param event packet 13961 * @return metadata_mask 13962 * @note: btstack_type 1 13963 */ 13964 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_metadata_mask(const uint8_t * event){ 13965 return event[10]; 13966 } 13967 /** 13968 * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13969 * @param event packet 13970 * @return preferred_audio_contexts_mask 13971 * @note: btstack_type 2 13972 */ 13973 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_preferred_audio_contexts_mask(const uint8_t * event){ 13974 return little_endian_read_16(event, 11); 13975 } 13976 /** 13977 * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13978 * @param event packet 13979 * @return streaming_audio_contexts_mask 13980 * @note: btstack_type 2 13981 */ 13982 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_streaming_audio_contexts_mask(const uint8_t * event){ 13983 return little_endian_read_16(event, 13); 13984 } 13985 /** 13986 * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13987 * @param event packet 13988 * @return program_info_length 13989 * @note: btstack_type J 13990 */ 13991 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info_length(const uint8_t * event){ 13992 return event[15]; 13993 } 13994 /** 13995 * @brief Get field program_info from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 13996 * @param event packet 13997 * @return program_info 13998 * @note: btstack_type V 13999 */ 14000 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info(const uint8_t * event){ 14001 return &event[16]; 14002 } 14003 /** 14004 * @brief Get field language_code from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14005 * @param event packet 14006 * @return language_code 14007 * @note: btstack_type 3 14008 */ 14009 static inline uint32_t gattservice_subevent_bass_notify_receive_state_subgroup_get_language_code(const uint8_t * event){ 14010 return little_endian_read_24(event, 16u + event[15]); 14011 } 14012 /** 14013 * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14014 * @param event packet 14015 * @return ccids_num 14016 * @note: btstack_type J 14017 */ 14018 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_ccids_num(const uint8_t * event){ 14019 return event[16u + event[15] + 3u]; 14020 } 14021 /** 14022 * @brief Get field ccids from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14023 * @param event packet 14024 * @return ccids 14025 * @note: btstack_type V 14026 */ 14027 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_ccids(const uint8_t * event){ 14028 return &event[16u + event[15] + 3u + 1u]; 14029 } 14030 /** 14031 * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14032 * @param event packet 14033 * @return parental_rating 14034 * @note: btstack_type 1 14035 */ 14036 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_parental_rating(const uint8_t * event){ 14037 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u]]; 14038 } 14039 /** 14040 * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14041 * @param event packet 14042 * @return program_info_uri_length 14043 * @note: btstack_type J 14044 */ 14045 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info_uri_length(const uint8_t * event){ 14046 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]; 14047 } 14048 /** 14049 * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14050 * @param event packet 14051 * @return program_info_uri 14052 * @note: btstack_type V 14053 */ 14054 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_program_info_uri(const uint8_t * event){ 14055 return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u]; 14056 } 14057 /** 14058 * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14059 * @param event packet 14060 * @return extended_metadata_type 14061 * @note: btstack_type 2 14062 */ 14063 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_extended_metadata_type(const uint8_t * event){ 14064 return little_endian_read_16(event, 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]); 14065 } 14066 /** 14067 * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14068 * @param event packet 14069 * @return extended_metadata_value_length 14070 * @note: btstack_type J 14071 */ 14072 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_extended_metadata_value_length(const uint8_t * event){ 14073 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u]; 14074 } 14075 /** 14076 * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14077 * @param event packet 14078 * @return extended_metadata_value 14079 * @note: btstack_type V 14080 */ 14081 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_extended_metadata_value(const uint8_t * event){ 14082 return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u]; 14083 } 14084 /** 14085 * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14086 * @param event packet 14087 * @return vendor_specific_metadata_type 14088 * @note: btstack_type 2 14089 */ 14090 static inline uint16_t gattservice_subevent_bass_notify_receive_state_subgroup_get_vendor_specific_metadata_type(const uint8_t * event){ 14091 return little_endian_read_16(event, 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u]); 14092 } 14093 /** 14094 * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14095 * @param event packet 14096 * @return vendor_specific_metadata_value_length 14097 * @note: btstack_type J 14098 */ 14099 static inline uint8_t gattservice_subevent_bass_notify_receive_state_subgroup_get_vendor_specific_metadata_value_length(const uint8_t * event){ 14100 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u] + 2u]; 14101 } 14102 /** 14103 * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_SUBGROUP 14104 * @param event packet 14105 * @return vendor_specific_metadata_value 14106 * @note: btstack_type V 14107 */ 14108 static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_subgroup_get_vendor_specific_metadata_value(const uint8_t * event){ 14109 return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u] + 2u] + 2u + 1u]; 14110 } 14111 14112 /** 14113 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFICATION_COMPLETE 14114 * @param event packet 14115 * @return bass_cid 14116 * @note: btstack_type 2 14117 */ 14118 static inline uint16_t gattservice_subevent_bass_notification_complete_get_bass_cid(const uint8_t * event){ 14119 return little_endian_read_16(event, 3); 14120 } 14121 /** 14122 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFICATION_COMPLETE 14123 * @param event packet 14124 * @return source_id 14125 * @note: btstack_type 1 14126 */ 14127 static inline uint8_t gattservice_subevent_bass_notification_complete_get_source_id(const uint8_t * event){ 14128 return event[5]; 14129 } 14130 14131 /** 14132 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE 14133 * @param event packet 14134 * @return bass_cid 14135 * @note: btstack_type 2 14136 */ 14137 static inline uint16_t gattservice_subevent_bass_source_operation_complete_get_bass_cid(const uint8_t * event){ 14138 return little_endian_read_16(event, 3); 14139 } 14140 /** 14141 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE 14142 * @param event packet 14143 * @return status 14144 * @note: btstack_type 1 14145 */ 14146 static inline uint8_t gattservice_subevent_bass_source_operation_complete_get_status(const uint8_t * event){ 14147 return event[5]; 14148 } 14149 /** 14150 * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE 14151 * @param event packet 14152 * @return opcode 14153 * @note: btstack_type 1 14154 */ 14155 static inline uint8_t gattservice_subevent_bass_source_operation_complete_get_opcode(const uint8_t * event){ 14156 return event[6]; 14157 } 14158 /** 14159 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SOURCE_OPERATION_COMPLETE 14160 * @param event packet 14161 * @return source_id 14162 * @note: btstack_type 1 14163 */ 14164 static inline uint8_t gattservice_subevent_bass_source_operation_complete_get_source_id(const uint8_t * event){ 14165 return event[7]; 14166 } 14167 14168 /** 14169 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_PACS_CONNECTED 14170 * @param event packet 14171 * @return con_handle 14172 * @note: btstack_type H 14173 */ 14174 static inline hci_con_handle_t gattservice_subevent_pacs_connected_get_con_handle(const uint8_t * event){ 14175 return little_endian_read_16(event, 3); 14176 } 14177 /** 14178 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_CONNECTED 14179 * @param event packet 14180 * @return pacs_cid 14181 * @note: btstack_type 2 14182 */ 14183 static inline uint16_t gattservice_subevent_pacs_connected_get_pacs_cid(const uint8_t * event){ 14184 return little_endian_read_16(event, 5); 14185 } 14186 /** 14187 * @brief Get field status from event GATTSERVICE_SUBEVENT_PACS_CONNECTED 14188 * @param event packet 14189 * @return status 14190 * @note: btstack_type 1 14191 */ 14192 static inline uint8_t gattservice_subevent_pacs_connected_get_status(const uint8_t * event){ 14193 return event[7]; 14194 } 14195 14196 /** 14197 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_OPERATION_DONE 14198 * @param event packet 14199 * @return pacs_cid 14200 * @note: btstack_type 2 14201 */ 14202 static inline uint16_t gattservice_subevent_pacs_operation_done_get_pacs_cid(const uint8_t * event){ 14203 return little_endian_read_16(event, 3); 14204 } 14205 /** 14206 * @brief Get field status from event GATTSERVICE_SUBEVENT_PACS_OPERATION_DONE 14207 * @param event packet 14208 * @return status 14209 * @note: btstack_type 1 14210 */ 14211 static inline uint8_t gattservice_subevent_pacs_operation_done_get_status(const uint8_t * event){ 14212 return event[5]; 14213 } 14214 14215 /** 14216 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATIONS 14217 * @param event packet 14218 * @return pacs_cid 14219 * @note: btstack_type 2 14220 */ 14221 static inline uint16_t gattservice_subevent_pacs_audio_locations_get_pacs_cid(const uint8_t * event){ 14222 return little_endian_read_16(event, 3); 14223 } 14224 /** 14225 * @brief Get field le_audio_role from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATIONS 14226 * @param event packet 14227 * @return le_audio_role 14228 * @note: btstack_type 1 14229 */ 14230 static inline uint8_t gattservice_subevent_pacs_audio_locations_get_le_audio_role(const uint8_t * event){ 14231 return event[5]; 14232 } 14233 /** 14234 * @brief Get field audio_location_mask from event GATTSERVICE_SUBEVENT_PACS_AUDIO_LOCATIONS 14235 * @param event packet 14236 * @return audio_location_mask 14237 * @note: btstack_type 4 14238 */ 14239 static inline uint32_t gattservice_subevent_pacs_audio_locations_get_audio_location_mask(const uint8_t * event){ 14240 return little_endian_read_32(event, 6); 14241 } 14242 14243 /** 14244 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_AVAILABLE_AUDIO_CONTEXTS 14245 * @param event packet 14246 * @return pacs_cid 14247 * @note: btstack_type 2 14248 */ 14249 static inline uint16_t gattservice_subevent_pacs_available_audio_contexts_get_pacs_cid(const uint8_t * event){ 14250 return little_endian_read_16(event, 3); 14251 } 14252 /** 14253 * @brief Get field sink_mask from event GATTSERVICE_SUBEVENT_PACS_AVAILABLE_AUDIO_CONTEXTS 14254 * @param event packet 14255 * @return sink_mask 14256 * @note: btstack_type 2 14257 */ 14258 static inline uint16_t gattservice_subevent_pacs_available_audio_contexts_get_sink_mask(const uint8_t * event){ 14259 return little_endian_read_16(event, 5); 14260 } 14261 /** 14262 * @brief Get field source_mask from event GATTSERVICE_SUBEVENT_PACS_AVAILABLE_AUDIO_CONTEXTS 14263 * @param event packet 14264 * @return source_mask 14265 * @note: btstack_type 2 14266 */ 14267 static inline uint16_t gattservice_subevent_pacs_available_audio_contexts_get_source_mask(const uint8_t * event){ 14268 return little_endian_read_16(event, 7); 14269 } 14270 14271 /** 14272 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_SUPPORTED_AUDIO_CONTEXTS 14273 * @param event packet 14274 * @return pacs_cid 14275 * @note: btstack_type 2 14276 */ 14277 static inline uint16_t gattservice_subevent_pacs_supported_audio_contexts_get_pacs_cid(const uint8_t * event){ 14278 return little_endian_read_16(event, 3); 14279 } 14280 /** 14281 * @brief Get field sink_mask from event GATTSERVICE_SUBEVENT_PACS_SUPPORTED_AUDIO_CONTEXTS 14282 * @param event packet 14283 * @return sink_mask 14284 * @note: btstack_type 2 14285 */ 14286 static inline uint16_t gattservice_subevent_pacs_supported_audio_contexts_get_sink_mask(const uint8_t * event){ 14287 return little_endian_read_16(event, 5); 14288 } 14289 /** 14290 * @brief Get field source_mask from event GATTSERVICE_SUBEVENT_PACS_SUPPORTED_AUDIO_CONTEXTS 14291 * @param event packet 14292 * @return source_mask 14293 * @note: btstack_type 2 14294 */ 14295 static inline uint16_t gattservice_subevent_pacs_supported_audio_contexts_get_source_mask(const uint8_t * event){ 14296 return little_endian_read_16(event, 7); 14297 } 14298 14299 /** 14300 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14301 * @param event packet 14302 * @return pacs_cid 14303 * @note: btstack_type 2 14304 */ 14305 static inline uint16_t gattservice_subevent_pacs_pack_record_get_pacs_cid(const uint8_t * event){ 14306 return little_endian_read_16(event, 3); 14307 } 14308 /** 14309 * @brief Get field le_audio_role from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14310 * @param event packet 14311 * @return le_audio_role 14312 * @note: btstack_type 1 14313 */ 14314 static inline uint8_t gattservice_subevent_pacs_pack_record_get_le_audio_role(const uint8_t * event){ 14315 return event[5]; 14316 } 14317 /** 14318 * @brief Get field coding_format from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14319 * @param event packet 14320 * @return coding_format 14321 * @note: btstack_type 1 14322 */ 14323 static inline uint8_t gattservice_subevent_pacs_pack_record_get_coding_format(const uint8_t * event){ 14324 return event[6]; 14325 } 14326 /** 14327 * @brief Get field company_id from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14328 * @param event packet 14329 * @return company_id 14330 * @note: btstack_type 2 14331 */ 14332 static inline uint16_t gattservice_subevent_pacs_pack_record_get_company_id(const uint8_t * event){ 14333 return little_endian_read_16(event, 7); 14334 } 14335 /** 14336 * @brief Get field vendor_specific_codec_id from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14337 * @param event packet 14338 * @return vendor_specific_codec_id 14339 * @note: btstack_type 2 14340 */ 14341 static inline uint16_t gattservice_subevent_pacs_pack_record_get_vendor_specific_codec_id(const uint8_t * event){ 14342 return little_endian_read_16(event, 9); 14343 } 14344 /** 14345 * @brief Get field codec_capability_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14346 * @param event packet 14347 * @return codec_capability_mask 14348 * @note: btstack_type 1 14349 */ 14350 static inline uint8_t gattservice_subevent_pacs_pack_record_get_codec_capability_mask(const uint8_t * event){ 14351 return event[11]; 14352 } 14353 /** 14354 * @brief Get field supported_sampling_frequencies_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14355 * @param event packet 14356 * @return supported_sampling_frequencies_mask 14357 * @note: btstack_type 2 14358 */ 14359 static inline uint16_t gattservice_subevent_pacs_pack_record_get_supported_sampling_frequencies_mask(const uint8_t * event){ 14360 return little_endian_read_16(event, 12); 14361 } 14362 /** 14363 * @brief Get field supported_frame_durations_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14364 * @param event packet 14365 * @return supported_frame_durations_mask 14366 * @note: btstack_type 1 14367 */ 14368 static inline uint8_t gattservice_subevent_pacs_pack_record_get_supported_frame_durations_mask(const uint8_t * event){ 14369 return event[14]; 14370 } 14371 /** 14372 * @brief Get field supported_audio_channel_counts_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14373 * @param event packet 14374 * @return supported_audio_channel_counts_mask 14375 * @note: btstack_type 1 14376 */ 14377 static inline uint8_t gattservice_subevent_pacs_pack_record_get_supported_audio_channel_counts_mask(const uint8_t * event){ 14378 return event[15]; 14379 } 14380 /** 14381 * @brief Get field supported_octets_per_frame_min_num from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14382 * @param event packet 14383 * @return supported_octets_per_frame_min_num 14384 * @note: btstack_type 2 14385 */ 14386 static inline uint16_t gattservice_subevent_pacs_pack_record_get_supported_octets_per_frame_min_num(const uint8_t * event){ 14387 return little_endian_read_16(event, 16); 14388 } 14389 /** 14390 * @brief Get field supported_octets_per_frame_max_num from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14391 * @param event packet 14392 * @return supported_octets_per_frame_max_num 14393 * @note: btstack_type 2 14394 */ 14395 static inline uint16_t gattservice_subevent_pacs_pack_record_get_supported_octets_per_frame_max_num(const uint8_t * event){ 14396 return little_endian_read_16(event, 18); 14397 } 14398 /** 14399 * @brief Get field supported_max_codec_frames_per_sdu from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14400 * @param event packet 14401 * @return supported_max_codec_frames_per_sdu 14402 * @note: btstack_type 1 14403 */ 14404 static inline uint8_t gattservice_subevent_pacs_pack_record_get_supported_max_codec_frames_per_sdu(const uint8_t * event){ 14405 return event[20]; 14406 } 14407 /** 14408 * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14409 * @param event packet 14410 * @return metadata_mask 14411 * @note: btstack_type 2 14412 */ 14413 static inline uint16_t gattservice_subevent_pacs_pack_record_get_metadata_mask(const uint8_t * event){ 14414 return little_endian_read_16(event, 21); 14415 } 14416 /** 14417 * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14418 * @param event packet 14419 * @return preferred_audio_contexts_mask 14420 * @note: btstack_type 2 14421 */ 14422 static inline uint16_t gattservice_subevent_pacs_pack_record_get_preferred_audio_contexts_mask(const uint8_t * event){ 14423 return little_endian_read_16(event, 23); 14424 } 14425 /** 14426 * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14427 * @param event packet 14428 * @return streaming_audio_contexts_mask 14429 * @note: btstack_type 2 14430 */ 14431 static inline uint16_t gattservice_subevent_pacs_pack_record_get_streaming_audio_contexts_mask(const uint8_t * event){ 14432 return little_endian_read_16(event, 25); 14433 } 14434 /** 14435 * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14436 * @param event packet 14437 * @return program_info_length 14438 * @note: btstack_type J 14439 */ 14440 static inline uint8_t gattservice_subevent_pacs_pack_record_get_program_info_length(const uint8_t * event){ 14441 return event[27]; 14442 } 14443 /** 14444 * @brief Get field program_info from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14445 * @param event packet 14446 * @return program_info 14447 * @note: btstack_type V 14448 */ 14449 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_program_info(const uint8_t * event){ 14450 return &event[28]; 14451 } 14452 /** 14453 * @brief Get field language_code from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14454 * @param event packet 14455 * @return language_code 14456 * @note: btstack_type 3 14457 */ 14458 static inline uint32_t gattservice_subevent_pacs_pack_record_get_language_code(const uint8_t * event){ 14459 return little_endian_read_24(event, 28u + event[27]); 14460 } 14461 /** 14462 * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14463 * @param event packet 14464 * @return ccids_num 14465 * @note: btstack_type J 14466 */ 14467 static inline uint8_t gattservice_subevent_pacs_pack_record_get_ccids_num(const uint8_t * event){ 14468 return event[28u + event[27] + 3u]; 14469 } 14470 /** 14471 * @brief Get field ccids from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14472 * @param event packet 14473 * @return ccids 14474 * @note: btstack_type V 14475 */ 14476 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_ccids(const uint8_t * event){ 14477 return &event[28u + event[27] + 3u + 1u]; 14478 } 14479 /** 14480 * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14481 * @param event packet 14482 * @return parental_rating 14483 * @note: btstack_type 1 14484 */ 14485 static inline uint8_t gattservice_subevent_pacs_pack_record_get_parental_rating(const uint8_t * event){ 14486 return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u]]; 14487 } 14488 /** 14489 * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14490 * @param event packet 14491 * @return program_info_uri_length 14492 * @note: btstack_type J 14493 */ 14494 static inline uint8_t gattservice_subevent_pacs_pack_record_get_program_info_uri_length(const uint8_t * event){ 14495 return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u]; 14496 } 14497 /** 14498 * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14499 * @param event packet 14500 * @return program_info_uri 14501 * @note: btstack_type V 14502 */ 14503 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_program_info_uri(const uint8_t * event){ 14504 return &event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u]; 14505 } 14506 /** 14507 * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14508 * @param event packet 14509 * @return extended_metadata_type 14510 * @note: btstack_type 2 14511 */ 14512 static inline uint16_t gattservice_subevent_pacs_pack_record_get_extended_metadata_type(const uint8_t * event){ 14513 return little_endian_read_16(event, 28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u]); 14514 } 14515 /** 14516 * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14517 * @param event packet 14518 * @return extended_metadata_value_length 14519 * @note: btstack_type J 14520 */ 14521 static inline uint8_t gattservice_subevent_pacs_pack_record_get_extended_metadata_value_length(const uint8_t * event){ 14522 return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u]; 14523 } 14524 /** 14525 * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14526 * @param event packet 14527 * @return extended_metadata_value 14528 * @note: btstack_type V 14529 */ 14530 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_extended_metadata_value(const uint8_t * event){ 14531 return &event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u]; 14532 } 14533 /** 14534 * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14535 * @param event packet 14536 * @return vendor_specific_metadata_type 14537 * @note: btstack_type 2 14538 */ 14539 static inline uint16_t gattservice_subevent_pacs_pack_record_get_vendor_specific_metadata_type(const uint8_t * event){ 14540 return little_endian_read_16(event, 28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u]); 14541 } 14542 /** 14543 * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14544 * @param event packet 14545 * @return vendor_specific_metadata_value_length 14546 * @note: btstack_type J 14547 */ 14548 static inline uint8_t gattservice_subevent_pacs_pack_record_get_vendor_specific_metadata_value_length(const uint8_t * event){ 14549 return event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u] + 2u]; 14550 } 14551 /** 14552 * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD 14553 * @param event packet 14554 * @return vendor_specific_metadata_value 14555 * @note: btstack_type V 14556 */ 14557 static inline const uint8_t * gattservice_subevent_pacs_pack_record_get_vendor_specific_metadata_value(const uint8_t * event){ 14558 return &event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u + 1u + event[28u + event[27] + 3u + 1u + event[28u + event[27] + 3u] + 1u] + 2u] + 2u + 1u]; 14559 } 14560 14561 /** 14562 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD_DONE 14563 * @param event packet 14564 * @return pacs_cid 14565 * @note: btstack_type 2 14566 */ 14567 static inline uint16_t gattservice_subevent_pacs_pack_record_done_get_pacs_cid(const uint8_t * event){ 14568 return little_endian_read_16(event, 3); 14569 } 14570 /** 14571 * @brief Get field le_audio_role from event GATTSERVICE_SUBEVENT_PACS_PACK_RECORD_DONE 14572 * @param event packet 14573 * @return le_audio_role 14574 * @note: btstack_type 1 14575 */ 14576 static inline uint8_t gattservice_subevent_pacs_pack_record_done_get_le_audio_role(const uint8_t * event){ 14577 return event[5]; 14578 } 14579 14580 /** 14581 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CONNECTED 14582 * @param event packet 14583 * @return con_handle 14584 * @note: btstack_type H 14585 */ 14586 static inline hci_con_handle_t gattservice_subevent_ascs_connected_get_con_handle(const uint8_t * event){ 14587 return little_endian_read_16(event, 3); 14588 } 14589 /** 14590 * @brief Get field ascs_cid from event GATTSERVICE_SUBEVENT_ASCS_CONNECTED 14591 * @param event packet 14592 * @return ascs_cid 14593 * @note: btstack_type 2 14594 */ 14595 static inline uint16_t gattservice_subevent_ascs_connected_get_ascs_cid(const uint8_t * event){ 14596 return little_endian_read_16(event, 5); 14597 } 14598 /** 14599 * @brief Get field status from event GATTSERVICE_SUBEVENT_ASCS_CONNECTED 14600 * @param event packet 14601 * @return status 14602 * @note: btstack_type 1 14603 */ 14604 static inline uint8_t gattservice_subevent_ascs_connected_get_status(const uint8_t * event){ 14605 return event[7]; 14606 } 14607 14608 /** 14609 * @brief Get field ascs_cid from event GATTSERVICE_SUBEVENT_ASCS_DISCONNECTED 14610 * @param event packet 14611 * @return ascs_cid 14612 * @note: btstack_type 2 14613 */ 14614 static inline uint16_t gattservice_subevent_ascs_disconnected_get_ascs_cid(const uint8_t * event){ 14615 return little_endian_read_16(event, 3); 14616 } 14617 14618 /** 14619 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14620 * @param event packet 14621 * @return con_handle 14622 * @note: btstack_type H 14623 */ 14624 static inline hci_con_handle_t gattservice_subevent_ascs_codec_configuration_get_con_handle(const uint8_t * event){ 14625 return little_endian_read_16(event, 3); 14626 } 14627 /** 14628 * @brief Get field ase_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14629 * @param event packet 14630 * @return ase_id 14631 * @note: btstack_type 1 14632 */ 14633 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_ase_id(const uint8_t * event){ 14634 return event[5]; 14635 } 14636 /** 14637 * @brief Get field framing from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14638 * @param event packet 14639 * @return framing 14640 * @note: btstack_type 1 14641 */ 14642 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_framing(const uint8_t * event){ 14643 return event[6]; 14644 } 14645 /** 14646 * @brief Get field preferred_phy from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14647 * @param event packet 14648 * @return preferred_phy 14649 * @note: btstack_type 1 14650 */ 14651 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_preferred_phy(const uint8_t * event){ 14652 return event[7]; 14653 } 14654 /** 14655 * @brief Get field preferred_retransmission_number from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14656 * @param event packet 14657 * @return preferred_retransmission_number 14658 * @note: btstack_type 1 14659 */ 14660 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_preferred_retransmission_number(const uint8_t * event){ 14661 return event[8]; 14662 } 14663 /** 14664 * @brief Get field max_transport_latency from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14665 * @param event packet 14666 * @return max_transport_latency 14667 * @note: btstack_type 2 14668 */ 14669 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_max_transport_latency(const uint8_t * event){ 14670 return little_endian_read_16(event, 9); 14671 } 14672 /** 14673 * @brief Get field presentation_delay_min from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14674 * @param event packet 14675 * @return presentation_delay_min 14676 * @note: btstack_type 3 14677 */ 14678 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_presentation_delay_min(const uint8_t * event){ 14679 return little_endian_read_24(event, 11); 14680 } 14681 /** 14682 * @brief Get field presentation_delay_max from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14683 * @param event packet 14684 * @return presentation_delay_max 14685 * @note: btstack_type 3 14686 */ 14687 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_presentation_delay_max(const uint8_t * event){ 14688 return little_endian_read_24(event, 14); 14689 } 14690 /** 14691 * @brief Get field preferred_presentation_delay_min from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14692 * @param event packet 14693 * @return preferred_presentation_delay_min 14694 * @note: btstack_type 3 14695 */ 14696 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_preferred_presentation_delay_min(const uint8_t * event){ 14697 return little_endian_read_24(event, 17); 14698 } 14699 /** 14700 * @brief Get field preferred_presentation_delay_max from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14701 * @param event packet 14702 * @return preferred_presentation_delay_max 14703 * @note: btstack_type 3 14704 */ 14705 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_preferred_presentation_delay_max(const uint8_t * event){ 14706 return little_endian_read_24(event, 20); 14707 } 14708 /** 14709 * @brief Get field coding_format from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14710 * @param event packet 14711 * @return coding_format 14712 * @note: btstack_type 1 14713 */ 14714 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_coding_format(const uint8_t * event){ 14715 return event[23]; 14716 } 14717 /** 14718 * @brief Get field company_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14719 * @param event packet 14720 * @return company_id 14721 * @note: btstack_type 2 14722 */ 14723 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_company_id(const uint8_t * event){ 14724 return little_endian_read_16(event, 24); 14725 } 14726 /** 14727 * @brief Get field vendor_specific_codec_id from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14728 * @param event packet 14729 * @return vendor_specific_codec_id 14730 * @note: btstack_type 2 14731 */ 14732 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_vendor_specific_codec_id(const uint8_t * event){ 14733 return little_endian_read_16(event, 26); 14734 } 14735 /** 14736 * @brief Get field specific_codec_configuration_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14737 * @param event packet 14738 * @return specific_codec_configuration_mask 14739 * @note: btstack_type 1 14740 */ 14741 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_specific_codec_configuration_mask(const uint8_t * event){ 14742 return event[28]; 14743 } 14744 /** 14745 * @brief Get field sampling_frequency_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14746 * @param event packet 14747 * @return sampling_frequency_index 14748 * @note: btstack_type 1 14749 */ 14750 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_sampling_frequency_index(const uint8_t * event){ 14751 return event[29]; 14752 } 14753 /** 14754 * @brief Get field frame_duration_index from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14755 * @param event packet 14756 * @return frame_duration_index 14757 * @note: btstack_type 1 14758 */ 14759 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_frame_duration_index(const uint8_t * event){ 14760 return event[30]; 14761 } 14762 /** 14763 * @brief Get field audio_channel_allocation_mask from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14764 * @param event packet 14765 * @return audio_channel_allocation_mask 14766 * @note: btstack_type 4 14767 */ 14768 static inline uint32_t gattservice_subevent_ascs_codec_configuration_get_audio_channel_allocation_mask(const uint8_t * event){ 14769 return little_endian_read_32(event, 31); 14770 } 14771 /** 14772 * @brief Get field octets_per_frame from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14773 * @param event packet 14774 * @return octets_per_frame 14775 * @note: btstack_type 2 14776 */ 14777 static inline uint16_t gattservice_subevent_ascs_codec_configuration_get_octets_per_frame(const uint8_t * event){ 14778 return little_endian_read_16(event, 35); 14779 } 14780 /** 14781 * @brief Get field frame_blocks_per_sdu from event GATTSERVICE_SUBEVENT_ASCS_CODEC_CONFIGURATION 14782 * @param event packet 14783 * @return frame_blocks_per_sdu 14784 * @note: btstack_type 1 14785 */ 14786 static inline uint8_t gattservice_subevent_ascs_codec_configuration_get_frame_blocks_per_sdu(const uint8_t * event){ 14787 return event[37]; 14788 } 14789 14790 /** 14791 * @brief Get field pacs_cid from event GATTSERVICE_SUBEVENT_PACS_DISCONNECTED 14792 * @param event packet 14793 * @return pacs_cid 14794 * @note: btstack_type 2 14795 */ 14796 static inline uint16_t gattservice_subevent_pacs_disconnected_get_pacs_cid(const uint8_t * event){ 14797 return little_endian_read_16(event, 3); 14798 } 14799 14800 /** 14801 * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED 14802 * @param event packet 14803 * @return map_cid 14804 * @note: btstack_type 2 14805 */ 14806 static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){ 14807 return little_endian_read_16(event, 3); 14808 } 14809 /** 14810 * @brief Get field status from event MAP_SUBEVENT_CONNECTION_OPENED 14811 * @param event packet 14812 * @return status 14813 * @note: btstack_type 1 14814 */ 14815 static inline uint8_t map_subevent_connection_opened_get_status(const uint8_t * event){ 14816 return event[5]; 14817 } 14818 /** 14819 * @brief Get field bd_addr from event MAP_SUBEVENT_CONNECTION_OPENED 14820 * @param event packet 14821 * @param Pointer to storage for bd_addr 14822 * @note: btstack_type B 14823 */ 14824 static inline void map_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 14825 reverse_bytes(&event[6], bd_addr, 6); 14826 } 14827 /** 14828 * @brief Get field con_handle from event MAP_SUBEVENT_CONNECTION_OPENED 14829 * @param event packet 14830 * @return con_handle 14831 * @note: btstack_type H 14832 */ 14833 static inline hci_con_handle_t map_subevent_connection_opened_get_con_handle(const uint8_t * event){ 14834 return little_endian_read_16(event, 12); 14835 } 14836 /** 14837 * @brief Get field incoming from event MAP_SUBEVENT_CONNECTION_OPENED 14838 * @param event packet 14839 * @return incoming 14840 * @note: btstack_type 1 14841 */ 14842 static inline uint8_t map_subevent_connection_opened_get_incoming(const uint8_t * event){ 14843 return event[14]; 14844 } 14845 14846 /** 14847 * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_CLOSED 14848 * @param event packet 14849 * @return map_cid 14850 * @note: btstack_type 2 14851 */ 14852 static inline uint16_t map_subevent_connection_closed_get_map_cid(const uint8_t * event){ 14853 return little_endian_read_16(event, 3); 14854 } 14855 14856 /** 14857 * @brief Get field map_cid from event MAP_SUBEVENT_OPERATION_COMPLETED 14858 * @param event packet 14859 * @return map_cid 14860 * @note: btstack_type 2 14861 */ 14862 static inline uint16_t map_subevent_operation_completed_get_map_cid(const uint8_t * event){ 14863 return little_endian_read_16(event, 3); 14864 } 14865 /** 14866 * @brief Get field status from event MAP_SUBEVENT_OPERATION_COMPLETED 14867 * @param event packet 14868 * @return status 14869 * @note: btstack_type 1 14870 */ 14871 static inline uint8_t map_subevent_operation_completed_get_status(const uint8_t * event){ 14872 return event[5]; 14873 } 14874 14875 /** 14876 * @brief Get field map_cid from event MAP_SUBEVENT_FOLDER_LISTING_ITEM 14877 * @param event packet 14878 * @return map_cid 14879 * @note: btstack_type 2 14880 */ 14881 static inline uint16_t map_subevent_folder_listing_item_get_map_cid(const uint8_t * event){ 14882 return little_endian_read_16(event, 3); 14883 } 14884 /** 14885 * @brief Get field name_len from event MAP_SUBEVENT_FOLDER_LISTING_ITEM 14886 * @param event packet 14887 * @return name_len 14888 * @note: btstack_type L 14889 */ 14890 static inline uint16_t map_subevent_folder_listing_item_get_name_len(const uint8_t * event){ 14891 return little_endian_read_16(event, 5); 14892 } 14893 /** 14894 * @brief Get field name from event MAP_SUBEVENT_FOLDER_LISTING_ITEM 14895 * @param event packet 14896 * @return name 14897 * @note: btstack_type V 14898 */ 14899 static inline const uint8_t * map_subevent_folder_listing_item_get_name(const uint8_t * event){ 14900 return &event[7]; 14901 } 14902 14903 /** 14904 * @brief Get field map_cid from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM 14905 * @param event packet 14906 * @return map_cid 14907 * @note: btstack_type 2 14908 */ 14909 static inline uint16_t map_subevent_message_listing_item_get_map_cid(const uint8_t * event){ 14910 return little_endian_read_16(event, 3); 14911 } 14912 /** 14913 * @brief Get field handle from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM 14914 * @param event packet 14915 * @return handle 14916 * @note: btstack_type D 14917 */ 14918 static inline const uint8_t * map_subevent_message_listing_item_get_handle(const uint8_t * event){ 14919 return (const uint8_t *) &event[5]; 14920 } 14921 14922 /** 14923 * @brief Get field map_cid from event MAP_SUBEVENT_PARSING_DONE 14924 * @param event packet 14925 * @return map_cid 14926 * @note: btstack_type 2 14927 */ 14928 static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * event){ 14929 return little_endian_read_16(event, 3); 14930 } 14931 14932 14933 /** 14934 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT 14935 * @param event packet 14936 * @return status 14937 * @note: btstack_type 1 14938 */ 14939 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){ 14940 return event[3]; 14941 } 14942 14943 /** 14944 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 14945 * @param event packet 14946 * @return status 14947 * @note: btstack_type 1 14948 */ 14949 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){ 14950 return event[3]; 14951 } 14952 /** 14953 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 14954 * @param event packet 14955 * @return pb_transport_cid 14956 * @note: btstack_type 2 14957 */ 14958 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){ 14959 return little_endian_read_16(event, 4); 14960 } 14961 /** 14962 * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 14963 * @param event packet 14964 * @return pb_type 14965 * @note: btstack_type 1 14966 */ 14967 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){ 14968 return event[6]; 14969 } 14970 14971 /** 14972 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 14973 * @param event packet 14974 * @return pb_transport_cid 14975 * @note: btstack_type 1 14976 */ 14977 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){ 14978 return event[3]; 14979 } 14980 /** 14981 * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 14982 * @param event packet 14983 * @return reason 14984 * @note: btstack_type 2 14985 */ 14986 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){ 14987 return little_endian_read_16(event, 4); 14988 } 14989 14990 /** 14991 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 14992 * @param event packet 14993 * @return pb_transport_cid 14994 * @note: btstack_type 2 14995 */ 14996 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){ 14997 return little_endian_read_16(event, 3); 14998 } 14999 /** 15000 * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 15001 * @param event packet 15002 * @return attention_time 15003 * @note: btstack_type 1 15004 */ 15005 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){ 15006 return event[5]; 15007 } 15008 15009 /** 15010 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB 15011 * @param event packet 15012 * @return pb_transport_cid 15013 * @note: btstack_type 2 15014 */ 15015 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15016 return little_endian_read_16(event, 3); 15017 } 15018 15019 /** 15020 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB 15021 * @param event packet 15022 * @return pb_transport_cid 15023 * @note: btstack_type 2 15024 */ 15025 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15026 return little_endian_read_16(event, 3); 15027 } 15028 15029 /** 15030 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST 15031 * @param event packet 15032 * @return pb_transport_cid 15033 * @note: btstack_type 2 15034 */ 15035 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){ 15036 return little_endian_read_16(event, 3); 15037 } 15038 15039 /** 15040 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 15041 * @param event packet 15042 * @return pb_transport_cid 15043 * @note: btstack_type 2 15044 */ 15045 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 15046 return little_endian_read_16(event, 3); 15047 } 15048 /** 15049 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 15050 * @param event packet 15051 * @return output_oob 15052 * @note: btstack_type 4 15053 */ 15054 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){ 15055 return little_endian_read_32(event, 5); 15056 } 15057 15058 /** 15059 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB 15060 * @param event packet 15061 * @return pb_transport_cid 15062 * @note: btstack_type 2 15063 */ 15064 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 15065 return little_endian_read_16(event, 3); 15066 } 15067 15068 /** 15069 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB 15070 * @param event packet 15071 * @return pb_transport_cid 15072 * @note: btstack_type 2 15073 */ 15074 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15075 return little_endian_read_16(event, 3); 15076 } 15077 15078 /** 15079 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB 15080 * @param event packet 15081 * @return pb_transport_cid 15082 * @note: btstack_type 2 15083 */ 15084 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15085 return little_endian_read_16(event, 3); 15086 } 15087 15088 /** 15089 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST 15090 * @param event packet 15091 * @return pb_transport_cid 15092 * @note: btstack_type 2 15093 */ 15094 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){ 15095 return little_endian_read_16(event, 3); 15096 } 15097 15098 /** 15099 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 15100 * @param event packet 15101 * @return pb_transport_cid 15102 * @note: btstack_type 2 15103 */ 15104 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 15105 return little_endian_read_16(event, 3); 15106 } 15107 /** 15108 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 15109 * @param event packet 15110 * @return output_oob 15111 * @note: btstack_type 4 15112 */ 15113 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){ 15114 return little_endian_read_32(event, 5); 15115 } 15116 15117 /** 15118 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB 15119 * @param event packet 15120 * @return pb_transport_cid 15121 * @note: btstack_type 2 15122 */ 15123 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 15124 return little_endian_read_16(event, 3); 15125 } 15126 15127 /** 15128 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15129 * @param event packet 15130 * @return pb_transport_cid 15131 * @note: btstack_type 2 15132 */ 15133 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){ 15134 return little_endian_read_16(event, 3); 15135 } 15136 /** 15137 * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15138 * @param event packet 15139 * @return num_elements 15140 * @note: btstack_type 1 15141 */ 15142 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){ 15143 return event[5]; 15144 } 15145 /** 15146 * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15147 * @param event packet 15148 * @return algorithms 15149 * @note: btstack_type 2 15150 */ 15151 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){ 15152 return little_endian_read_16(event, 6); 15153 } 15154 /** 15155 * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15156 * @param event packet 15157 * @return public_key 15158 * @note: btstack_type 1 15159 */ 15160 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){ 15161 return event[8]; 15162 } 15163 /** 15164 * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15165 * @param event packet 15166 * @return static_oob_type 15167 * @note: btstack_type 1 15168 */ 15169 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){ 15170 return event[9]; 15171 } 15172 /** 15173 * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15174 * @param event packet 15175 * @return output_oob_size 15176 * @note: btstack_type 1 15177 */ 15178 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){ 15179 return event[10]; 15180 } 15181 /** 15182 * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15183 * @param event packet 15184 * @return output_oob_action 15185 * @note: btstack_type 2 15186 */ 15187 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){ 15188 return little_endian_read_16(event, 11); 15189 } 15190 /** 15191 * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15192 * @param event packet 15193 * @return input_oob_size 15194 * @note: btstack_type 1 15195 */ 15196 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){ 15197 return event[13]; 15198 } 15199 /** 15200 * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15201 * @param event packet 15202 * @return input_oob_action 15203 * @note: btstack_type 2 15204 */ 15205 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){ 15206 return little_endian_read_16(event, 14); 15207 } 15208 15209 /** 15210 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE 15211 * @param event packet 15212 * @return pb_transport_cid 15213 * @note: btstack_type 2 15214 */ 15215 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){ 15216 return little_endian_read_16(event, 3); 15217 } 15218 15219 /** 15220 * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER 15221 * @param event packet 15222 * @return attention_time 15223 * @note: btstack_type 1 15224 */ 15225 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 15226 return event[3]; 15227 } 15228 15229 /** 15230 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 15231 * @param event packet 15232 * @return con_handle 15233 * @note: btstack_type H 15234 */ 15235 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ 15236 return little_endian_read_16(event, 3); 15237 } 15238 15239 /** 15240 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 15241 * @param event packet 15242 * @return con_handle 15243 * @note: btstack_type H 15244 */ 15245 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){ 15246 return little_endian_read_16(event, 3); 15247 } 15248 15249 /** 15250 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED 15251 * @param event packet 15252 * @return con_handle 15253 * @note: btstack_type H 15254 */ 15255 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){ 15256 return little_endian_read_16(event, 3); 15257 } 15258 15259 /** 15260 * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT 15261 * @param event packet 15262 * @return con_handle 15263 * @note: btstack_type H 15264 */ 15265 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){ 15266 return little_endian_read_16(event, 3); 15267 } 15268 15269 /** 15270 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15271 * @param event packet 15272 * @return element_index 15273 * @note: btstack_type 1 15274 */ 15275 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){ 15276 return event[3]; 15277 } 15278 /** 15279 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15280 * @param event packet 15281 * @return model_identifier 15282 * @note: btstack_type 4 15283 */ 15284 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){ 15285 return little_endian_read_32(event, 4); 15286 } 15287 /** 15288 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15289 * @param event packet 15290 * @return state_identifier 15291 * @note: btstack_type 4 15292 */ 15293 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){ 15294 return little_endian_read_32(event, 8); 15295 } 15296 /** 15297 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15298 * @param event packet 15299 * @return reason 15300 * @note: btstack_type 1 15301 */ 15302 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){ 15303 return event[12]; 15304 } 15305 /** 15306 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15307 * @param event packet 15308 * @return value 15309 * @note: btstack_type 1 15310 */ 15311 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){ 15312 return event[13]; 15313 } 15314 15315 /** 15316 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16 15317 * @param event packet 15318 * @return element_index 15319 * @note: btstack_type 1 15320 */ 15321 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){ 15322 return event[3]; 15323 } 15324 /** 15325 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 15326 * @param event packet 15327 * @return model_identifier 15328 * @note: btstack_type 4 15329 */ 15330 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){ 15331 return little_endian_read_32(event, 4); 15332 } 15333 /** 15334 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 15335 * @param event packet 15336 * @return state_identifier 15337 * @note: btstack_type 4 15338 */ 15339 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){ 15340 return little_endian_read_32(event, 8); 15341 } 15342 /** 15343 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16 15344 * @param event packet 15345 * @return reason 15346 * @note: btstack_type 1 15347 */ 15348 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){ 15349 return event[12]; 15350 } 15351 /** 15352 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16 15353 * @param event packet 15354 * @return value 15355 * @note: btstack_type 2 15356 */ 15357 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){ 15358 return little_endian_read_16(event, 13); 15359 } 15360 15361 /** 15362 * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15363 * @param event packet 15364 * @return element_index 15365 * @note: btstack_type 1 15366 */ 15367 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){ 15368 return event[3]; 15369 } 15370 /** 15371 * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15372 * @param event packet 15373 * @return model_identifier 15374 * @note: btstack_type 4 15375 */ 15376 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){ 15377 return little_endian_read_32(event, 4); 15378 } 15379 /** 15380 * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15381 * @param event packet 15382 * @return opcode 15383 * @note: btstack_type 4 15384 */ 15385 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){ 15386 return little_endian_read_32(event, 8); 15387 } 15388 /** 15389 * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15390 * @param event packet 15391 * @return dest 15392 * @note: btstack_type 2 15393 */ 15394 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){ 15395 return little_endian_read_16(event, 12); 15396 } 15397 15398 /** 15399 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF 15400 * @param event packet 15401 * @return dest 15402 * @note: btstack_type 2 15403 */ 15404 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){ 15405 return little_endian_read_16(event, 3); 15406 } 15407 /** 15408 * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF 15409 * @param event packet 15410 * @return status 15411 * @note: btstack_type 1 15412 */ 15413 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){ 15414 return event[5]; 15415 } 15416 /** 15417 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF 15418 * @param event packet 15419 * @return present_value 15420 * @note: btstack_type 1 15421 */ 15422 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){ 15423 return event[6]; 15424 } 15425 /** 15426 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF 15427 * @param event packet 15428 * @return target_value 15429 * @note: btstack_type 1 15430 */ 15431 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){ 15432 return event[7]; 15433 } 15434 /** 15435 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF 15436 * @param event packet 15437 * @return remaining_time_ms 15438 * @note: btstack_type 4 15439 */ 15440 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){ 15441 return little_endian_read_32(event, 8); 15442 } 15443 15444 /** 15445 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL 15446 * @param event packet 15447 * @return dest 15448 * @note: btstack_type 2 15449 */ 15450 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){ 15451 return little_endian_read_16(event, 3); 15452 } 15453 /** 15454 * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL 15455 * @param event packet 15456 * @return status 15457 * @note: btstack_type 1 15458 */ 15459 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){ 15460 return event[5]; 15461 } 15462 /** 15463 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL 15464 * @param event packet 15465 * @return present_value 15466 * @note: btstack_type 2 15467 */ 15468 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){ 15469 return little_endian_read_16(event, 6); 15470 } 15471 /** 15472 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL 15473 * @param event packet 15474 * @return target_value 15475 * @note: btstack_type 2 15476 */ 15477 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){ 15478 return little_endian_read_16(event, 8); 15479 } 15480 /** 15481 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL 15482 * @param event packet 15483 * @return remaining_time_ms 15484 * @note: btstack_type 4 15485 */ 15486 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){ 15487 return little_endian_read_32(event, 10); 15488 } 15489 15490 /** 15491 * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15492 * @param event packet 15493 * @return dest 15494 * @note: btstack_type 2 15495 */ 15496 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){ 15497 return little_endian_read_16(event, 3); 15498 } 15499 /** 15500 * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15501 * @param event packet 15502 * @return netkey_index 15503 * @note: btstack_type 2 15504 */ 15505 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){ 15506 return little_endian_read_16(event, 5); 15507 } 15508 /** 15509 * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15510 * @param event packet 15511 * @return appkey_index 15512 * @note: btstack_type 2 15513 */ 15514 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){ 15515 return little_endian_read_16(event, 7); 15516 } 15517 /** 15518 * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15519 * @param event packet 15520 * @return company_id 15521 * @note: btstack_type 2 15522 */ 15523 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){ 15524 return little_endian_read_16(event, 9); 15525 } 15526 /** 15527 * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15528 * @param event packet 15529 * @return test_id 15530 * @note: btstack_type 1 15531 */ 15532 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){ 15533 return event[11]; 15534 } 15535 /** 15536 * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15537 * @param event packet 15538 * @return acknowledged 15539 * @note: btstack_type 1 15540 */ 15541 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){ 15542 return event[12]; 15543 } 15544 15545 /** 15546 * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED 15547 * @param event packet 15548 * @return element_index 15549 * @note: btstack_type 1 15550 */ 15551 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){ 15552 return event[3]; 15553 } 15554 15555 /** 15556 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 15557 * @param event packet 15558 * @return dest 15559 * @note: btstack_type 2 15560 */ 15561 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){ 15562 return little_endian_read_16(event, 3); 15563 } 15564 /** 15565 * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 15566 * @param event packet 15567 * @return status 15568 * @note: btstack_type 1 15569 */ 15570 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){ 15571 return event[5]; 15572 } 15573 /** 15574 * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 15575 * @param event packet 15576 * @return transition_time_gdtt 15577 * @note: btstack_type 1 15578 */ 15579 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){ 15580 return event[6]; 15581 } 15582 15583 /** 15584 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON 15585 * @param event packet 15586 * @return dest 15587 * @note: btstack_type 2 15588 */ 15589 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){ 15590 return little_endian_read_16(event, 3); 15591 } 15592 /** 15593 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON 15594 * @param event packet 15595 * @return foundation_status 15596 * @note: btstack_type 1 15597 */ 15598 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){ 15599 return event[5]; 15600 } 15601 /** 15602 * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON 15603 * @param event packet 15604 * @return secure_network_beacon_state 15605 * @note: btstack_type 1 15606 */ 15607 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){ 15608 return event[6]; 15609 } 15610 15611 /** 15612 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 15613 * @param event packet 15614 * @return dest 15615 * @note: btstack_type 2 15616 */ 15617 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){ 15618 return little_endian_read_16(event, 3); 15619 } 15620 /** 15621 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 15622 * @param event packet 15623 * @return foundation_status 15624 * @note: btstack_type 1 15625 */ 15626 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){ 15627 return event[5]; 15628 } 15629 /** 15630 * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 15631 * @param event packet 15632 * @return default_ttl 15633 * @note: btstack_type 1 15634 */ 15635 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){ 15636 return event[6]; 15637 } 15638 15639 /** 15640 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 15641 * @param event packet 15642 * @return dest 15643 * @note: btstack_type 2 15644 */ 15645 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){ 15646 return little_endian_read_16(event, 3); 15647 } 15648 /** 15649 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 15650 * @param event packet 15651 * @return foundation_status 15652 * @note: btstack_type 1 15653 */ 15654 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){ 15655 return event[5]; 15656 } 15657 /** 15658 * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 15659 * @param event packet 15660 * @return gatt_proxy_state 15661 * @note: btstack_type 1 15662 */ 15663 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){ 15664 return event[6]; 15665 } 15666 15667 /** 15668 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY 15669 * @param event packet 15670 * @return dest 15671 * @note: btstack_type 2 15672 */ 15673 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){ 15674 return little_endian_read_16(event, 3); 15675 } 15676 /** 15677 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY 15678 * @param event packet 15679 * @return foundation_status 15680 * @note: btstack_type 1 15681 */ 15682 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){ 15683 return event[5]; 15684 } 15685 /** 15686 * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY 15687 * @param event packet 15688 * @return relay 15689 * @note: btstack_type 1 15690 */ 15691 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){ 15692 return event[6]; 15693 } 15694 /** 15695 * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY 15696 * @param event packet 15697 * @return retransmit_count 15698 * @note: btstack_type 1 15699 */ 15700 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){ 15701 return event[7]; 15702 } 15703 /** 15704 * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY 15705 * @param event packet 15706 * @return retransmit_interval_ms 15707 * @note: btstack_type 1 15708 */ 15709 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){ 15710 return event[8]; 15711 } 15712 15713 /** 15714 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15715 * @param event packet 15716 * @return dest 15717 * @note: btstack_type 2 15718 */ 15719 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){ 15720 return little_endian_read_16(event, 3); 15721 } 15722 /** 15723 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15724 * @param event packet 15725 * @return foundation_status 15726 * @note: btstack_type 1 15727 */ 15728 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){ 15729 return event[5]; 15730 } 15731 /** 15732 * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15733 * @param event packet 15734 * @return publish_address 15735 * @note: btstack_type 2 15736 */ 15737 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){ 15738 return little_endian_read_16(event, 6); 15739 } 15740 /** 15741 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15742 * @param event packet 15743 * @return appkey_index 15744 * @note: btstack_type 2 15745 */ 15746 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){ 15747 return little_endian_read_16(event, 8); 15748 } 15749 /** 15750 * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15751 * @param event packet 15752 * @return credential_flag 15753 * @note: btstack_type 1 15754 */ 15755 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){ 15756 return event[10]; 15757 } 15758 /** 15759 * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15760 * @param event packet 15761 * @return publish_ttl 15762 * @note: btstack_type 1 15763 */ 15764 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){ 15765 return event[11]; 15766 } 15767 /** 15768 * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15769 * @param event packet 15770 * @return publish_period 15771 * @note: btstack_type 1 15772 */ 15773 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){ 15774 return event[12]; 15775 } 15776 /** 15777 * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15778 * @param event packet 15779 * @return publish_retransmit_count 15780 * @note: btstack_type 1 15781 */ 15782 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){ 15783 return event[13]; 15784 } 15785 /** 15786 * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15787 * @param event packet 15788 * @return publish_retransmit_interval_steps 15789 * @note: btstack_type 1 15790 */ 15791 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){ 15792 return event[14]; 15793 } 15794 /** 15795 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15796 * @param event packet 15797 * @return model_identifier 15798 * @note: btstack_type 4 15799 */ 15800 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){ 15801 return little_endian_read_32(event, 15); 15802 } 15803 15804 /** 15805 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 15806 * @param event packet 15807 * @return dest 15808 * @note: btstack_type 2 15809 */ 15810 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){ 15811 return little_endian_read_16(event, 3); 15812 } 15813 /** 15814 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 15815 * @param event packet 15816 * @return foundation_status 15817 * @note: btstack_type 1 15818 */ 15819 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){ 15820 return event[5]; 15821 } 15822 /** 15823 * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 15824 * @param event packet 15825 * @return address 15826 * @note: btstack_type 2 15827 */ 15828 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){ 15829 return little_endian_read_16(event, 6); 15830 } 15831 /** 15832 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 15833 * @param event packet 15834 * @return model_identifier 15835 * @note: btstack_type 4 15836 */ 15837 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){ 15838 return little_endian_read_32(event, 8); 15839 } 15840 15841 /** 15842 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 15843 * @param event packet 15844 * @return dest 15845 * @note: btstack_type 2 15846 */ 15847 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){ 15848 return little_endian_read_16(event, 3); 15849 } 15850 /** 15851 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 15852 * @param event packet 15853 * @return foundation_status 15854 * @note: btstack_type 1 15855 */ 15856 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){ 15857 return event[5]; 15858 } 15859 /** 15860 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 15861 * @param event packet 15862 * @return model_identifier 15863 * @note: btstack_type 4 15864 */ 15865 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){ 15866 return little_endian_read_32(event, 6); 15867 } 15868 /** 15869 * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 15870 * @param event packet 15871 * @return num_subscription_addresses 15872 * @note: btstack_type 1 15873 */ 15874 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){ 15875 return event[10]; 15876 } 15877 /** 15878 * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 15879 * @param event packet 15880 * @return subscription_address_pos 15881 * @note: btstack_type 1 15882 */ 15883 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){ 15884 return event[11]; 15885 } 15886 /** 15887 * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 15888 * @param event packet 15889 * @return subscription_address_item 15890 * @note: btstack_type 2 15891 */ 15892 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){ 15893 return little_endian_read_16(event, 12); 15894 } 15895 15896 /** 15897 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 15898 * @param event packet 15899 * @return dest 15900 * @note: btstack_type 2 15901 */ 15902 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){ 15903 return little_endian_read_16(event, 3); 15904 } 15905 /** 15906 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 15907 * @param event packet 15908 * @return foundation_status 15909 * @note: btstack_type 1 15910 */ 15911 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){ 15912 return event[5]; 15913 } 15914 15915 /** 15916 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 15917 * @param event packet 15918 * @return dest 15919 * @note: btstack_type 2 15920 */ 15921 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){ 15922 return little_endian_read_16(event, 3); 15923 } 15924 /** 15925 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 15926 * @param event packet 15927 * @return foundation_status 15928 * @note: btstack_type 1 15929 */ 15930 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){ 15931 return event[5]; 15932 } 15933 /** 15934 * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 15935 * @param event packet 15936 * @return num_netkey_indexes 15937 * @note: btstack_type 1 15938 */ 15939 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){ 15940 return event[6]; 15941 } 15942 /** 15943 * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 15944 * @param event packet 15945 * @return netkey_index_pos 15946 * @note: btstack_type 1 15947 */ 15948 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){ 15949 return event[7]; 15950 } 15951 /** 15952 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 15953 * @param event packet 15954 * @return netkey_index_item 15955 * @note: btstack_type 2 15956 */ 15957 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 15958 return little_endian_read_16(event, 8); 15959 } 15960 15961 /** 15962 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 15963 * @param event packet 15964 * @return dest 15965 * @note: btstack_type 2 15966 */ 15967 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){ 15968 return little_endian_read_16(event, 3); 15969 } 15970 /** 15971 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 15972 * @param event packet 15973 * @return foundation_status 15974 * @note: btstack_type 1 15975 */ 15976 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){ 15977 return event[5]; 15978 } 15979 /** 15980 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 15981 * @param event packet 15982 * @return netkey_index_item 15983 * @note: btstack_type 2 15984 */ 15985 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){ 15986 return little_endian_read_16(event, 6); 15987 } 15988 /** 15989 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 15990 * @param event packet 15991 * @return appkey_index_item 15992 * @note: btstack_type 2 15993 */ 15994 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){ 15995 return little_endian_read_16(event, 8); 15996 } 15997 15998 /** 15999 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16000 * @param event packet 16001 * @return dest 16002 * @note: btstack_type 2 16003 */ 16004 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){ 16005 return little_endian_read_16(event, 3); 16006 } 16007 /** 16008 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16009 * @param event packet 16010 * @return foundation_status 16011 * @note: btstack_type 1 16012 */ 16013 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){ 16014 return event[5]; 16015 } 16016 /** 16017 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16018 * @param event packet 16019 * @return netkey_index 16020 * @note: btstack_type 2 16021 */ 16022 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){ 16023 return little_endian_read_16(event, 6); 16024 } 16025 /** 16026 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16027 * @param event packet 16028 * @return num_appkey_indexes 16029 * @note: btstack_type 1 16030 */ 16031 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){ 16032 return event[8]; 16033 } 16034 /** 16035 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16036 * @param event packet 16037 * @return appkey_index_pos 16038 * @note: btstack_type 1 16039 */ 16040 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){ 16041 return event[9]; 16042 } 16043 /** 16044 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16045 * @param event packet 16046 * @return netkey_index_item 16047 * @note: btstack_type 2 16048 */ 16049 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 16050 return little_endian_read_16(event, 10); 16051 } 16052 /** 16053 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16054 * @param event packet 16055 * @return appkey_index_item 16056 * @note: btstack_type 2 16057 */ 16058 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){ 16059 return little_endian_read_16(event, 12); 16060 } 16061 16062 /** 16063 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16064 * @param event packet 16065 * @return dest 16066 * @note: btstack_type 2 16067 */ 16068 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){ 16069 return little_endian_read_16(event, 3); 16070 } 16071 /** 16072 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16073 * @param event packet 16074 * @return foundation_status 16075 * @note: btstack_type 1 16076 */ 16077 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){ 16078 return event[5]; 16079 } 16080 /** 16081 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16082 * @param event packet 16083 * @return netkey_index_item 16084 * @note: btstack_type 2 16085 */ 16086 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){ 16087 return little_endian_read_16(event, 6); 16088 } 16089 /** 16090 * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16091 * @param event packet 16092 * @return identity_status 16093 * @note: btstack_type 1 16094 */ 16095 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){ 16096 return event[8]; 16097 } 16098 16099 /** 16100 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16101 * @param event packet 16102 * @return dest 16103 * @note: btstack_type 2 16104 */ 16105 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){ 16106 return little_endian_read_16(event, 3); 16107 } 16108 /** 16109 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16110 * @param event packet 16111 * @return foundation_status 16112 * @note: btstack_type 1 16113 */ 16114 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){ 16115 return event[5]; 16116 } 16117 /** 16118 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16119 * @param event packet 16120 * @return appkey_index 16121 * @note: btstack_type 2 16122 */ 16123 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){ 16124 return little_endian_read_16(event, 6); 16125 } 16126 /** 16127 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16128 * @param event packet 16129 * @return model_identifier 16130 * @note: btstack_type 4 16131 */ 16132 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){ 16133 return little_endian_read_32(event, 8); 16134 } 16135 16136 /** 16137 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16138 * @param event packet 16139 * @return dest 16140 * @note: btstack_type 2 16141 */ 16142 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){ 16143 return little_endian_read_16(event, 3); 16144 } 16145 /** 16146 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16147 * @param event packet 16148 * @return foundation_status 16149 * @note: btstack_type 1 16150 */ 16151 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){ 16152 return event[5]; 16153 } 16154 /** 16155 * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16156 * @param event packet 16157 * @return model_id 16158 * @note: btstack_type 4 16159 */ 16160 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){ 16161 return little_endian_read_32(event, 6); 16162 } 16163 /** 16164 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16165 * @param event packet 16166 * @return num_appkey_indexes 16167 * @note: btstack_type 1 16168 */ 16169 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){ 16170 return event[10]; 16171 } 16172 /** 16173 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16174 * @param event packet 16175 * @return appkey_index_pos 16176 * @note: btstack_type 1 16177 */ 16178 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){ 16179 return event[11]; 16180 } 16181 /** 16182 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16183 * @param event packet 16184 * @return appkey_index_item 16185 * @note: btstack_type 2 16186 */ 16187 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){ 16188 return little_endian_read_16(event, 12); 16189 } 16190 16191 /** 16192 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 16193 * @param event packet 16194 * @return dest 16195 * @note: btstack_type 2 16196 */ 16197 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){ 16198 return little_endian_read_16(event, 3); 16199 } 16200 /** 16201 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 16202 * @param event packet 16203 * @return foundation_status 16204 * @note: btstack_type 1 16205 */ 16206 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){ 16207 return event[5]; 16208 } 16209 16210 /** 16211 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND 16212 * @param event packet 16213 * @return dest 16214 * @note: btstack_type 2 16215 */ 16216 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){ 16217 return little_endian_read_16(event, 3); 16218 } 16219 /** 16220 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND 16221 * @param event packet 16222 * @return foundation_status 16223 * @note: btstack_type 1 16224 */ 16225 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){ 16226 return event[5]; 16227 } 16228 /** 16229 * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND 16230 * @param event packet 16231 * @return friend_state 16232 * @note: btstack_type 1 16233 */ 16234 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){ 16235 return event[6]; 16236 } 16237 16238 /** 16239 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16240 * @param event packet 16241 * @return dest 16242 * @note: btstack_type 2 16243 */ 16244 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){ 16245 return little_endian_read_16(event, 3); 16246 } 16247 /** 16248 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16249 * @param event packet 16250 * @return foundation_status 16251 * @note: btstack_type 1 16252 */ 16253 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){ 16254 return event[5]; 16255 } 16256 /** 16257 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16258 * @param event packet 16259 * @return netkey_index 16260 * @note: btstack_type 2 16261 */ 16262 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){ 16263 return little_endian_read_16(event, 6); 16264 } 16265 /** 16266 * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16267 * @param event packet 16268 * @return phase 16269 * @note: btstack_type 1 16270 */ 16271 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){ 16272 return event[8]; 16273 } 16274 16275 /** 16276 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16277 * @param event packet 16278 * @return dest 16279 * @note: btstack_type 2 16280 */ 16281 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){ 16282 return little_endian_read_16(event, 3); 16283 } 16284 /** 16285 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16286 * @param event packet 16287 * @return foundation_status 16288 * @note: btstack_type 1 16289 */ 16290 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){ 16291 return event[5]; 16292 } 16293 /** 16294 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16295 * @param event packet 16296 * @return heartbeat_destination 16297 * @note: btstack_type 2 16298 */ 16299 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){ 16300 return little_endian_read_16(event, 6); 16301 } 16302 /** 16303 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16304 * @param event packet 16305 * @return count_S 16306 * @note: btstack_type 2 16307 */ 16308 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){ 16309 return little_endian_read_16(event, 8); 16310 } 16311 /** 16312 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16313 * @param event packet 16314 * @return period_S 16315 * @note: btstack_type 2 16316 */ 16317 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){ 16318 return little_endian_read_16(event, 10); 16319 } 16320 /** 16321 * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16322 * @param event packet 16323 * @return ttl 16324 * @note: btstack_type 1 16325 */ 16326 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){ 16327 return event[12]; 16328 } 16329 /** 16330 * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16331 * @param event packet 16332 * @return features 16333 * @note: btstack_type 2 16334 */ 16335 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){ 16336 return little_endian_read_16(event, 13); 16337 } 16338 /** 16339 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16340 * @param event packet 16341 * @return netkey_index 16342 * @note: btstack_type 2 16343 */ 16344 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){ 16345 return little_endian_read_16(event, 15); 16346 } 16347 16348 /** 16349 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16350 * @param event packet 16351 * @return dest 16352 * @note: btstack_type 2 16353 */ 16354 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){ 16355 return little_endian_read_16(event, 3); 16356 } 16357 /** 16358 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16359 * @param event packet 16360 * @return foundation_status 16361 * @note: btstack_type 1 16362 */ 16363 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){ 16364 return event[5]; 16365 } 16366 /** 16367 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16368 * @param event packet 16369 * @return heartbeat_destination 16370 * @note: btstack_type 2 16371 */ 16372 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){ 16373 return little_endian_read_16(event, 6); 16374 } 16375 /** 16376 * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16377 * @param event packet 16378 * @return heartbeat_source 16379 * @note: btstack_type 2 16380 */ 16381 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){ 16382 return little_endian_read_16(event, 8); 16383 } 16384 /** 16385 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16386 * @param event packet 16387 * @return count_S 16388 * @note: btstack_type 2 16389 */ 16390 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){ 16391 return little_endian_read_16(event, 10); 16392 } 16393 /** 16394 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16395 * @param event packet 16396 * @return period_S 16397 * @note: btstack_type 2 16398 */ 16399 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){ 16400 return little_endian_read_16(event, 12); 16401 } 16402 /** 16403 * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16404 * @param event packet 16405 * @return min_hops 16406 * @note: btstack_type 1 16407 */ 16408 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){ 16409 return event[14]; 16410 } 16411 /** 16412 * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16413 * @param event packet 16414 * @return max_hops 16415 * @note: btstack_type 1 16416 */ 16417 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){ 16418 return event[15]; 16419 } 16420 16421 /** 16422 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16423 * @param event packet 16424 * @return dest 16425 * @note: btstack_type 2 16426 */ 16427 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){ 16428 return little_endian_read_16(event, 3); 16429 } 16430 /** 16431 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16432 * @param event packet 16433 * @return foundation_status 16434 * @note: btstack_type 1 16435 */ 16436 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){ 16437 return event[5]; 16438 } 16439 /** 16440 * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16441 * @param event packet 16442 * @return lpn_address 16443 * @note: btstack_type 2 16444 */ 16445 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){ 16446 return little_endian_read_16(event, 6); 16447 } 16448 /** 16449 * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16450 * @param event packet 16451 * @return poll_timeout 16452 * @note: btstack_type 3 16453 */ 16454 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){ 16455 return little_endian_read_24(event, 8); 16456 } 16457 16458 /** 16459 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16460 * @param event packet 16461 * @return dest 16462 * @note: btstack_type 2 16463 */ 16464 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){ 16465 return little_endian_read_16(event, 3); 16466 } 16467 /** 16468 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16469 * @param event packet 16470 * @return foundation_status 16471 * @note: btstack_type 1 16472 */ 16473 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){ 16474 return event[5]; 16475 } 16476 /** 16477 * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16478 * @param event packet 16479 * @return transmit_count 16480 * @note: btstack_type 1 16481 */ 16482 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){ 16483 return event[6]; 16484 } 16485 /** 16486 * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16487 * @param event packet 16488 * @return transmit_interval_steps_ms 16489 * @note: btstack_type 2 16490 */ 16491 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){ 16492 return little_endian_read_16(event, 7); 16493 } 16494 16495 16496 16497 /* API_END */ 16498 16499 #if defined __cplusplus 16500 } 16501 #endif 16502 16503 #endif // BTSTACK_EVENT_H 16504