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 subevent code for opp event 193 * @param event packet 194 * @return subevent_code 195 */ 196 static inline uint8_t hci_event_opp_meta_get_subevent_code(const uint8_t * event){ 197 return event[2]; 198 } 199 /** 200 * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE 201 * @param event packet 202 * @return status 203 * @note: btstack_type 1 204 */ 205 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){ 206 return event[2]; 207 } 208 209 /** 210 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT 211 * @param event packet 212 * @return num_responses 213 * @note: btstack_type 1 214 */ 215 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){ 216 return event[2]; 217 } 218 /** 219 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT 220 * @param event packet 221 * @param Pointer to storage for bd_addr 222 * @note: btstack_type B 223 */ 224 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 225 reverse_bytes(&event[3], bd_addr, 6); 226 } 227 /** 228 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT 229 * @param event packet 230 * @return page_scan_repetition_mode 231 * @note: btstack_type 1 232 */ 233 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 234 return event[9]; 235 } 236 /** 237 * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT 238 * @param event packet 239 * @return reserved1 240 * @note: btstack_type 1 241 */ 242 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){ 243 return event[10]; 244 } 245 /** 246 * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT 247 * @param event packet 248 * @return reserved2 249 * @note: btstack_type 1 250 */ 251 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){ 252 return event[11]; 253 } 254 /** 255 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT 256 * @param event packet 257 * @return class_of_device 258 * @note: btstack_type 3 259 */ 260 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){ 261 return little_endian_read_24(event, 12); 262 } 263 /** 264 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT 265 * @param event packet 266 * @return clock_offset 267 * @note: btstack_type 2 268 */ 269 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){ 270 return little_endian_read_16(event, 15); 271 } 272 273 /** 274 * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE 275 * @param event packet 276 * @return status 277 * @note: btstack_type 1 278 */ 279 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){ 280 return event[2]; 281 } 282 /** 283 * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE 284 * @param event packet 285 * @return connection_handle 286 * @note: btstack_type 2 287 */ 288 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){ 289 return little_endian_read_16(event, 3); 290 } 291 /** 292 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE 293 * @param event packet 294 * @param Pointer to storage for bd_addr 295 * @note: btstack_type B 296 */ 297 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 298 reverse_bytes(&event[5], bd_addr, 6); 299 } 300 /** 301 * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE 302 * @param event packet 303 * @return link_type 304 * @note: btstack_type 1 305 */ 306 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){ 307 return event[11]; 308 } 309 /** 310 * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE 311 * @param event packet 312 * @return encryption_enabled 313 * @note: btstack_type 1 314 */ 315 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){ 316 return event[12]; 317 } 318 319 /** 320 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST 321 * @param event packet 322 * @param Pointer to storage for bd_addr 323 * @note: btstack_type B 324 */ 325 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 326 reverse_bytes(&event[2], bd_addr, 6); 327 } 328 /** 329 * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST 330 * @param event packet 331 * @return class_of_device 332 * @note: btstack_type 3 333 */ 334 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){ 335 return little_endian_read_24(event, 8); 336 } 337 /** 338 * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST 339 * @param event packet 340 * @return link_type 341 * @note: btstack_type 1 342 */ 343 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){ 344 return event[11]; 345 } 346 347 /** 348 * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE 349 * @param event packet 350 * @return status 351 * @note: btstack_type 1 352 */ 353 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){ 354 return event[2]; 355 } 356 /** 357 * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE 358 * @param event packet 359 * @return connection_handle 360 * @note: btstack_type 2 361 */ 362 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){ 363 return little_endian_read_16(event, 3); 364 } 365 /** 366 * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE 367 * @param event packet 368 * @return reason 369 * @note: btstack_type 1 370 */ 371 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){ 372 return event[5]; 373 } 374 375 /** 376 * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE 377 * @param event packet 378 * @return status 379 * @note: btstack_type 1 380 */ 381 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){ 382 return event[2]; 383 } 384 /** 385 * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE 386 * @param event packet 387 * @return connection_handle 388 * @note: btstack_type 2 389 */ 390 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){ 391 return little_endian_read_16(event, 3); 392 } 393 394 /** 395 * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 396 * @param event packet 397 * @return status 398 * @note: btstack_type 1 399 */ 400 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){ 401 return event[2]; 402 } 403 /** 404 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 405 * @param event packet 406 * @param Pointer to storage for bd_addr 407 * @note: btstack_type B 408 */ 409 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 410 reverse_bytes(&event[3], bd_addr, 6); 411 } 412 /** 413 * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 414 * @param event packet 415 * @return remote_name 416 * @note: btstack_type N 417 */ 418 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){ 419 return (const char *) &event[9]; 420 } 421 422 /** 423 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE 424 * @param event packet 425 * @return status 426 * @note: btstack_type 1 427 */ 428 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){ 429 return event[2]; 430 } 431 /** 432 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE 433 * @param event packet 434 * @return connection_handle 435 * @note: btstack_type 2 436 */ 437 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){ 438 return little_endian_read_16(event, 3); 439 } 440 /** 441 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE 442 * @param event packet 443 * @return encryption_enabled 444 * @note: btstack_type 1 445 */ 446 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){ 447 return event[5]; 448 } 449 450 /** 451 * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 452 * @param event packet 453 * @return status 454 * @note: btstack_type 1 455 */ 456 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){ 457 return event[2]; 458 } 459 /** 460 * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 461 * @param event packet 462 * @return connection_handle 463 * @note: btstack_type 2 464 */ 465 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){ 466 return little_endian_read_16(event, 3); 467 } 468 469 /** 470 * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 471 * @param event packet 472 * @return status 473 * @note: btstack_type 1 474 */ 475 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){ 476 return event[2]; 477 } 478 /** 479 * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 480 * @param event packet 481 * @return connection_handle 482 * @note: btstack_type 2 483 */ 484 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){ 485 return little_endian_read_16(event, 3); 486 } 487 /** 488 * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 489 * @param event packet 490 * @return key_flag 491 * @note: btstack_type 1 492 */ 493 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){ 494 return event[5]; 495 } 496 497 /** 498 * @brief Get field status from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 499 * @param event packet 500 * @return status 501 * @note: btstack_type 1 502 */ 503 static inline uint8_t hci_event_read_remote_version_information_complete_get_status(const uint8_t * event){ 504 return event[2]; 505 } 506 /** 507 * @brief Get field connection_handle from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 508 * @param event packet 509 * @return connection_handle 510 * @note: btstack_type 2 511 */ 512 static inline uint16_t hci_event_read_remote_version_information_complete_get_connection_handle(const uint8_t * event){ 513 return little_endian_read_16(event, 3); 514 } 515 /** 516 * @brief Get field version from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 517 * @param event packet 518 * @return version 519 * @note: btstack_type 1 520 */ 521 static inline uint8_t hci_event_read_remote_version_information_complete_get_version(const uint8_t * event){ 522 return event[5]; 523 } 524 /** 525 * @brief Get field manufacturer_name from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 526 * @param event packet 527 * @return manufacturer_name 528 * @note: btstack_type 2 529 */ 530 static inline uint16_t hci_event_read_remote_version_information_complete_get_manufacturer_name(const uint8_t * event){ 531 return little_endian_read_16(event, 6); 532 } 533 /** 534 * @brief Get field subversion from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 535 * @param event packet 536 * @return subversion 537 * @note: btstack_type 2 538 */ 539 static inline uint16_t hci_event_read_remote_version_information_complete_get_subversion(const uint8_t * event){ 540 return little_endian_read_16(event, 8); 541 } 542 543 /** 544 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE 545 * @param event packet 546 * @return num_hci_command_packets 547 * @note: btstack_type 1 548 */ 549 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){ 550 return event[2]; 551 } 552 /** 553 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE 554 * @param event packet 555 * @return command_opcode 556 * @note: btstack_type 2 557 */ 558 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){ 559 return little_endian_read_16(event, 3); 560 } 561 /** 562 * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE 563 * @param event packet 564 * @return return_parameters 565 * @note: btstack_type R 566 */ 567 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){ 568 return &event[5]; 569 } 570 571 /** 572 * @brief Get field status from event HCI_EVENT_COMMAND_STATUS 573 * @param event packet 574 * @return status 575 * @note: btstack_type 1 576 */ 577 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){ 578 return event[2]; 579 } 580 /** 581 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS 582 * @param event packet 583 * @return num_hci_command_packets 584 * @note: btstack_type 1 585 */ 586 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){ 587 return event[3]; 588 } 589 /** 590 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS 591 * @param event packet 592 * @return command_opcode 593 * @note: btstack_type 2 594 */ 595 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){ 596 return little_endian_read_16(event, 4); 597 } 598 599 /** 600 * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR 601 * @param event packet 602 * @return hardware_code 603 * @note: btstack_type 1 604 */ 605 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){ 606 return event[2]; 607 } 608 609 /** 610 * @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED 611 * @param event packet 612 * @return handle 613 * @note: btstack_type H 614 */ 615 static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){ 616 return little_endian_read_16(event, 2); 617 } 618 619 /** 620 * @brief Get field status from event HCI_EVENT_ROLE_CHANGE 621 * @param event packet 622 * @return status 623 * @note: btstack_type 1 624 */ 625 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){ 626 return event[2]; 627 } 628 /** 629 * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE 630 * @param event packet 631 * @param Pointer to storage for bd_addr 632 * @note: btstack_type B 633 */ 634 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 635 reverse_bytes(&event[3], bd_addr, 6); 636 } 637 /** 638 * @brief Get field role from event HCI_EVENT_ROLE_CHANGE 639 * @param event packet 640 * @return role 641 * @note: btstack_type 1 642 */ 643 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){ 644 return event[9]; 645 } 646 647 /** 648 * @brief Get field status from event HCI_EVENT_MODE_CHANGE 649 * @param event packet 650 * @return status 651 * @note: btstack_type 1 652 */ 653 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){ 654 return event[2]; 655 } 656 /** 657 * @brief Get field handle from event HCI_EVENT_MODE_CHANGE 658 * @param event packet 659 * @return handle 660 * @note: btstack_type H 661 */ 662 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){ 663 return little_endian_read_16(event, 3); 664 } 665 /** 666 * @brief Get field mode from event HCI_EVENT_MODE_CHANGE 667 * @param event packet 668 * @return mode 669 * @note: btstack_type 1 670 */ 671 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){ 672 return event[5]; 673 } 674 /** 675 * @brief Get field interval from event HCI_EVENT_MODE_CHANGE 676 * @param event packet 677 * @return interval 678 * @note: btstack_type 2 679 */ 680 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){ 681 return little_endian_read_16(event, 6); 682 } 683 684 /** 685 * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST 686 * @param event packet 687 * @param Pointer to storage for bd_addr 688 * @note: btstack_type B 689 */ 690 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 691 reverse_bytes(&event[2], bd_addr, 6); 692 } 693 694 /** 695 * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_REQUEST 696 * @param event packet 697 * @param Pointer to storage for bd_addr 698 * @note: btstack_type B 699 */ 700 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 701 reverse_bytes(&event[2], bd_addr, 6); 702 } 703 704 /** 705 * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW 706 * @param event packet 707 * @return link_type 708 * @note: btstack_type 1 709 */ 710 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){ 711 return event[2]; 712 } 713 714 /** 715 * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED 716 * @param event packet 717 * @return handle 718 * @note: btstack_type H 719 */ 720 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){ 721 return little_endian_read_16(event, 2); 722 } 723 /** 724 * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED 725 * @param event packet 726 * @return lmp_max_slots 727 * @note: btstack_type 1 728 */ 729 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){ 730 return event[4]; 731 } 732 733 /** 734 * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 735 * @param event packet 736 * @return status 737 * @note: btstack_type 1 738 */ 739 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){ 740 return event[2]; 741 } 742 /** 743 * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 744 * @param event packet 745 * @return handle 746 * @note: btstack_type H 747 */ 748 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){ 749 return little_endian_read_16(event, 3); 750 } 751 /** 752 * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 753 * @param event packet 754 * @return clock_offset 755 * @note: btstack_type 2 756 */ 757 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){ 758 return little_endian_read_16(event, 5); 759 } 760 761 /** 762 * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 763 * @param event packet 764 * @return status 765 * @note: btstack_type 1 766 */ 767 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){ 768 return event[2]; 769 } 770 /** 771 * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 772 * @param event packet 773 * @return handle 774 * @note: btstack_type H 775 */ 776 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){ 777 return little_endian_read_16(event, 3); 778 } 779 /** 780 * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 781 * @param event packet 782 * @return packet_types 783 * @note: btstack_type 2 784 */ 785 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){ 786 return little_endian_read_16(event, 5); 787 } 788 789 /** 790 * @brief Get field handle from event HCI_EVENT_QOS_VIOLATION 791 * @param event packet 792 * @return handle 793 * @note: btstack_type H 794 */ 795 static inline hci_con_handle_t hci_event_qos_violation_get_handle(const uint8_t * event){ 796 return little_endian_read_16(event, 2); 797 } 798 799 /** 800 * @brief Get field handle from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE 801 * @param event packet 802 * @return handle 803 * @note: btstack_type H 804 */ 805 static inline hci_con_handle_t hci_event_page_scan_repetition_mode_change_get_handle(const uint8_t * event){ 806 return little_endian_read_16(event, 2); 807 } 808 /** 809 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE 810 * @param event packet 811 * @return page_scan_repetition_mode 812 * @note: btstack_type 1 813 */ 814 static inline uint8_t hci_event_page_scan_repetition_mode_change_get_page_scan_repetition_mode(const uint8_t * event){ 815 return event[4]; 816 } 817 818 /** 819 * @brief Get field status from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 820 * @param event packet 821 * @return status 822 * @note: btstack_type 1 823 */ 824 static inline uint8_t hci_event_flow_specification_complete_get_status(const uint8_t * event){ 825 return event[2]; 826 } 827 /** 828 * @brief Get field handle from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 829 * @param event packet 830 * @return handle 831 * @note: btstack_type H 832 */ 833 static inline hci_con_handle_t hci_event_flow_specification_complete_get_handle(const uint8_t * event){ 834 return little_endian_read_16(event, 3); 835 } 836 /** 837 * @brief Get field unused from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 838 * @param event packet 839 * @return unused 840 * @note: btstack_type 1 841 */ 842 static inline uint8_t hci_event_flow_specification_complete_get_unused(const uint8_t * event){ 843 return event[5]; 844 } 845 /** 846 * @brief Get field flow_direction from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 847 * @param event packet 848 * @return flow_direction 849 * @note: btstack_type 1 850 */ 851 static inline uint8_t hci_event_flow_specification_complete_get_flow_direction(const uint8_t * event){ 852 return event[6]; 853 } 854 /** 855 * @brief Get field service_type from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 856 * @param event packet 857 * @return service_type 858 * @note: btstack_type 1 859 */ 860 static inline uint8_t hci_event_flow_specification_complete_get_service_type(const uint8_t * event){ 861 return event[7]; 862 } 863 /** 864 * @brief Get field token_rate from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 865 * @param event packet 866 * @return token_rate 867 * @note: btstack_type 4 868 */ 869 static inline uint32_t hci_event_flow_specification_complete_get_token_rate(const uint8_t * event){ 870 return little_endian_read_32(event, 8); 871 } 872 /** 873 * @brief Get field token_bucket_size from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 874 * @param event packet 875 * @return token_bucket_size 876 * @note: btstack_type 4 877 */ 878 static inline uint32_t hci_event_flow_specification_complete_get_token_bucket_size(const uint8_t * event){ 879 return little_endian_read_32(event, 12); 880 } 881 /** 882 * @brief Get field peak_bandwidth from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 883 * @param event packet 884 * @return peak_bandwidth 885 * @note: btstack_type 4 886 */ 887 static inline uint32_t hci_event_flow_specification_complete_get_peak_bandwidth(const uint8_t * event){ 888 return little_endian_read_32(event, 16); 889 } 890 /** 891 * @brief Get field access_latency from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 892 * @param event packet 893 * @return access_latency 894 * @note: btstack_type 4 895 */ 896 static inline uint32_t hci_event_flow_specification_complete_get_access_latency(const uint8_t * event){ 897 return little_endian_read_32(event, 20); 898 } 899 900 /** 901 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 902 * @param event packet 903 * @return num_responses 904 * @note: btstack_type 1 905 */ 906 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){ 907 return event[2]; 908 } 909 /** 910 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 911 * @param event packet 912 * @param Pointer to storage for bd_addr 913 * @note: btstack_type B 914 */ 915 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 916 reverse_bytes(&event[3], bd_addr, 6); 917 } 918 /** 919 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 920 * @param event packet 921 * @return page_scan_repetition_mode 922 * @note: btstack_type 1 923 */ 924 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){ 925 return event[9]; 926 } 927 /** 928 * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 929 * @param event packet 930 * @return reserved 931 * @note: btstack_type 1 932 */ 933 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){ 934 return event[10]; 935 } 936 /** 937 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 938 * @param event packet 939 * @return class_of_device 940 * @note: btstack_type 3 941 */ 942 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){ 943 return little_endian_read_24(event, 11); 944 } 945 /** 946 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 947 * @param event packet 948 * @return clock_offset 949 * @note: btstack_type 2 950 */ 951 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){ 952 return little_endian_read_16(event, 14); 953 } 954 /** 955 * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 956 * @param event packet 957 * @return rssi 958 * @note: btstack_type 1 959 */ 960 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){ 961 return event[16]; 962 } 963 964 /** 965 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 966 * @param event packet 967 * @return status 968 * @note: btstack_type 1 969 */ 970 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){ 971 return event[2]; 972 } 973 /** 974 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 975 * @param event packet 976 * @return handle 977 * @note: btstack_type H 978 */ 979 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){ 980 return little_endian_read_16(event, 3); 981 } 982 /** 983 * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 984 * @param event packet 985 * @param Pointer to storage for bd_addr 986 * @note: btstack_type B 987 */ 988 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 989 reverse_bytes(&event[5], bd_addr, 6); 990 } 991 /** 992 * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 993 * @param event packet 994 * @return link_type 995 * @note: btstack_type 1 996 */ 997 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){ 998 return event[11]; 999 } 1000 /** 1001 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1002 * @param event packet 1003 * @return transmission_interval 1004 * @note: btstack_type 1 1005 */ 1006 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){ 1007 return event[12]; 1008 } 1009 /** 1010 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1011 * @param event packet 1012 * @return retransmission_interval 1013 * @note: btstack_type 1 1014 */ 1015 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){ 1016 return event[13]; 1017 } 1018 /** 1019 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1020 * @param event packet 1021 * @return rx_packet_length 1022 * @note: btstack_type 2 1023 */ 1024 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){ 1025 return little_endian_read_16(event, 14); 1026 } 1027 /** 1028 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1029 * @param event packet 1030 * @return tx_packet_length 1031 * @note: btstack_type 2 1032 */ 1033 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){ 1034 return little_endian_read_16(event, 16); 1035 } 1036 /** 1037 * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1038 * @param event packet 1039 * @return air_mode 1040 * @note: btstack_type 1 1041 */ 1042 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){ 1043 return event[18]; 1044 } 1045 1046 /** 1047 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1048 * @param event packet 1049 * @return status 1050 * @note: btstack_type 1 1051 */ 1052 static inline uint8_t hci_event_synchronous_connection_changed_get_status(const uint8_t * event){ 1053 return event[2]; 1054 } 1055 /** 1056 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1057 * @param event packet 1058 * @return handle 1059 * @note: btstack_type H 1060 */ 1061 static inline hci_con_handle_t hci_event_synchronous_connection_changed_get_handle(const uint8_t * event){ 1062 return little_endian_read_16(event, 3); 1063 } 1064 /** 1065 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1066 * @param event packet 1067 * @return transmission_interval 1068 * @note: btstack_type 1 1069 */ 1070 static inline uint8_t hci_event_synchronous_connection_changed_get_transmission_interval(const uint8_t * event){ 1071 return event[5]; 1072 } 1073 /** 1074 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1075 * @param event packet 1076 * @return retransmission_interval 1077 * @note: btstack_type 1 1078 */ 1079 static inline uint8_t hci_event_synchronous_connection_changed_get_retransmission_interval(const uint8_t * event){ 1080 return event[6]; 1081 } 1082 /** 1083 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1084 * @param event packet 1085 * @return rx_packet_length 1086 * @note: btstack_type 2 1087 */ 1088 static inline uint16_t hci_event_synchronous_connection_changed_get_rx_packet_length(const uint8_t * event){ 1089 return little_endian_read_16(event, 7); 1090 } 1091 /** 1092 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1093 * @param event packet 1094 * @return tx_packet_length 1095 * @note: btstack_type 2 1096 */ 1097 static inline uint16_t hci_event_synchronous_connection_changed_get_tx_packet_length(const uint8_t * event){ 1098 return little_endian_read_16(event, 9); 1099 } 1100 1101 /** 1102 * @brief Get field status from event HCI_EVENT_SNIFF_SUBRATING 1103 * @param event packet 1104 * @return status 1105 * @note: btstack_type 1 1106 */ 1107 static inline uint8_t hci_event_sniff_subrating_get_status(const uint8_t * event){ 1108 return event[2]; 1109 } 1110 /** 1111 * @brief Get field handle from event HCI_EVENT_SNIFF_SUBRATING 1112 * @param event packet 1113 * @return handle 1114 * @note: btstack_type H 1115 */ 1116 static inline hci_con_handle_t hci_event_sniff_subrating_get_handle(const uint8_t * event){ 1117 return little_endian_read_16(event, 3); 1118 } 1119 /** 1120 * @brief Get field max_tx_latency from event HCI_EVENT_SNIFF_SUBRATING 1121 * @param event packet 1122 * @return max_tx_latency 1123 * @note: btstack_type 2 1124 */ 1125 static inline uint16_t hci_event_sniff_subrating_get_max_tx_latency(const uint8_t * event){ 1126 return little_endian_read_16(event, 5); 1127 } 1128 /** 1129 * @brief Get field max_rx_latency from event HCI_EVENT_SNIFF_SUBRATING 1130 * @param event packet 1131 * @return max_rx_latency 1132 * @note: btstack_type 2 1133 */ 1134 static inline uint16_t hci_event_sniff_subrating_get_max_rx_latency(const uint8_t * event){ 1135 return little_endian_read_16(event, 7); 1136 } 1137 /** 1138 * @brief Get field min_remote_timeout from event HCI_EVENT_SNIFF_SUBRATING 1139 * @param event packet 1140 * @return min_remote_timeout 1141 * @note: btstack_type 2 1142 */ 1143 static inline uint16_t hci_event_sniff_subrating_get_min_remote_timeout(const uint8_t * event){ 1144 return little_endian_read_16(event, 9); 1145 } 1146 /** 1147 * @brief Get field min_local_timeout from event HCI_EVENT_SNIFF_SUBRATING 1148 * @param event packet 1149 * @return min_local_timeout 1150 * @note: btstack_type 2 1151 */ 1152 static inline uint16_t hci_event_sniff_subrating_get_min_local_timeout(const uint8_t * event){ 1153 return little_endian_read_16(event, 11); 1154 } 1155 1156 /** 1157 * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1158 * @param event packet 1159 * @return num_responses 1160 * @note: btstack_type 1 1161 */ 1162 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){ 1163 return event[2]; 1164 } 1165 /** 1166 * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1167 * @param event packet 1168 * @param Pointer to storage for bd_addr 1169 * @note: btstack_type B 1170 */ 1171 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1172 reverse_bytes(&event[3], bd_addr, 6); 1173 } 1174 /** 1175 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1176 * @param event packet 1177 * @return page_scan_repetition_mode 1178 * @note: btstack_type 1 1179 */ 1180 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){ 1181 return event[9]; 1182 } 1183 /** 1184 * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1185 * @param event packet 1186 * @return reserved 1187 * @note: btstack_type 1 1188 */ 1189 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){ 1190 return event[10]; 1191 } 1192 /** 1193 * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1194 * @param event packet 1195 * @return class_of_device 1196 * @note: btstack_type 3 1197 */ 1198 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){ 1199 return little_endian_read_24(event, 11); 1200 } 1201 /** 1202 * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1203 * @param event packet 1204 * @return clock_offset 1205 * @note: btstack_type 2 1206 */ 1207 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){ 1208 return little_endian_read_16(event, 14); 1209 } 1210 /** 1211 * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1212 * @param event packet 1213 * @return rssi 1214 * @note: btstack_type 1 1215 */ 1216 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){ 1217 return event[16]; 1218 } 1219 1220 /** 1221 * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 1222 * @param event packet 1223 * @return status 1224 * @note: btstack_type 1 1225 */ 1226 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){ 1227 return event[2]; 1228 } 1229 /** 1230 * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 1231 * @param event packet 1232 * @return handle 1233 * @note: btstack_type H 1234 */ 1235 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){ 1236 return little_endian_read_16(event, 3); 1237 } 1238 1239 /** 1240 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST 1241 * @param event packet 1242 * @param Pointer to storage for bd_addr 1243 * @note: btstack_type B 1244 */ 1245 static inline void hci_event_io_capability_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1246 reverse_bytes(&event[2], bd_addr, 6); 1247 } 1248 1249 /** 1250 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1251 * @param event packet 1252 * @param Pointer to storage for bd_addr 1253 * @note: btstack_type B 1254 */ 1255 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1256 reverse_bytes(&event[2], bd_addr, 6); 1257 } 1258 /** 1259 * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1260 * @param event packet 1261 * @return io_capability 1262 * @note: btstack_type 1 1263 */ 1264 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){ 1265 return event[8]; 1266 } 1267 /** 1268 * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1269 * @param event packet 1270 * @return oob_data_present 1271 * @note: btstack_type 1 1272 */ 1273 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){ 1274 return event[9]; 1275 } 1276 /** 1277 * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1278 * @param event packet 1279 * @return authentication_requirements 1280 * @note: btstack_type 1 1281 */ 1282 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){ 1283 return event[10]; 1284 } 1285 1286 /** 1287 * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1288 * @param event packet 1289 * @param Pointer to storage for bd_addr 1290 * @note: btstack_type B 1291 */ 1292 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1293 reverse_bytes(&event[2], bd_addr, 6); 1294 } 1295 /** 1296 * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1297 * @param event packet 1298 * @return numeric_value 1299 * @note: btstack_type 4 1300 */ 1301 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){ 1302 return little_endian_read_32(event, 8); 1303 } 1304 1305 /** 1306 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST 1307 * @param event packet 1308 * @param Pointer to storage for bd_addr 1309 * @note: btstack_type B 1310 */ 1311 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1312 reverse_bytes(&event[2], bd_addr, 6); 1313 } 1314 1315 /** 1316 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST 1317 * @param event packet 1318 * @param Pointer to storage for bd_addr 1319 * @note: btstack_type B 1320 */ 1321 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1322 reverse_bytes(&event[2], bd_addr, 6); 1323 } 1324 1325 /** 1326 * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1327 * @param event packet 1328 * @return status 1329 * @note: btstack_type 1 1330 */ 1331 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){ 1332 return event[2]; 1333 } 1334 /** 1335 * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1336 * @param event packet 1337 * @param Pointer to storage for bd_addr 1338 * @note: btstack_type B 1339 */ 1340 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1341 reverse_bytes(&event[3], bd_addr, 6); 1342 } 1343 1344 /** 1345 * @brief Get field handle from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 1346 * @param event packet 1347 * @return handle 1348 * @note: btstack_type H 1349 */ 1350 static inline hci_con_handle_t hci_event_link_supervision_timeout_changed_get_handle(const uint8_t * event){ 1351 return little_endian_read_16(event, 2); 1352 } 1353 /** 1354 * @brief Get field link_supervision_timeout from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 1355 * @param event packet 1356 * @return link_supervision_timeout 1357 * @note: btstack_type 2 1358 */ 1359 static inline uint16_t hci_event_link_supervision_timeout_changed_get_link_supervision_timeout(const uint8_t * event){ 1360 return little_endian_read_16(event, 4); 1361 } 1362 1363 /** 1364 * @brief Get field handle from event HCI_EVENT_ENHANCED_FLUSH_COMPLETE 1365 * @param event packet 1366 * @return handle 1367 * @note: btstack_type H 1368 */ 1369 static inline hci_con_handle_t hci_event_enhanced_flush_complete_get_handle(const uint8_t * event){ 1370 return little_endian_read_16(event, 2); 1371 } 1372 1373 /** 1374 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1375 * @param event packet 1376 * @param Pointer to storage for bd_addr 1377 * @note: btstack_type B 1378 */ 1379 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1380 reverse_bytes(&event[2], bd_addr, 6); 1381 } 1382 /** 1383 * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1384 * @param event packet 1385 * @return numeric_value 1386 * @note: btstack_type 4 1387 */ 1388 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){ 1389 return little_endian_read_32(event, 8); 1390 } 1391 1392 /** 1393 * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION 1394 * @param event packet 1395 * @param Pointer to storage for bd_addr 1396 * @note: btstack_type B 1397 */ 1398 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1399 reverse_bytes(&event[2], bd_addr, 6); 1400 } 1401 /** 1402 * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION 1403 * @param event packet 1404 * @return notification_type 1405 * @note: btstack_type 1 1406 */ 1407 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){ 1408 return event[8]; 1409 } 1410 1411 /** 1412 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1413 * @param event packet 1414 * @return status 1415 * @note: btstack_type 1 1416 */ 1417 static inline uint8_t hci_event_encryption_change_v2_get_status(const uint8_t * event){ 1418 return event[2]; 1419 } 1420 /** 1421 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1422 * @param event packet 1423 * @return connection_handle 1424 * @note: btstack_type 2 1425 */ 1426 static inline uint16_t hci_event_encryption_change_v2_get_connection_handle(const uint8_t * event){ 1427 return little_endian_read_16(event, 3); 1428 } 1429 /** 1430 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1431 * @param event packet 1432 * @return encryption_enabled 1433 * @note: btstack_type 1 1434 */ 1435 static inline uint8_t hci_event_encryption_change_v2_get_encryption_enabled(const uint8_t * event){ 1436 return event[5]; 1437 } 1438 /** 1439 * @brief Get field encryption_key_size from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1440 * @param event packet 1441 * @return encryption_key_size 1442 * @note: btstack_type 1 1443 */ 1444 static inline uint8_t hci_event_encryption_change_v2_get_encryption_key_size(const uint8_t * event){ 1445 return event[6]; 1446 } 1447 1448 /** 1449 * @brief Get field state from event BTSTACK_EVENT_STATE 1450 * @param event packet 1451 * @return state 1452 * @note: btstack_type 1 1453 */ 1454 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){ 1455 return event[2]; 1456 } 1457 1458 /** 1459 * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1460 * @param event packet 1461 * @return number_connections 1462 * @note: btstack_type 1 1463 */ 1464 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){ 1465 return event[2]; 1466 } 1467 1468 1469 /** 1470 * @brief Get field discoverable from event BTSTACK_EVENT_SCAN_MODE_CHANGED 1471 * @param event packet 1472 * @return discoverable 1473 * @note: btstack_type 1 1474 */ 1475 static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){ 1476 return event[2]; 1477 } 1478 /** 1479 * @brief Get field connectable from event BTSTACK_EVENT_SCAN_MODE_CHANGED 1480 * @param event packet 1481 * @return connectable 1482 * @note: btstack_type 1 1483 */ 1484 static inline uint8_t btstack_event_scan_mode_changed_get_connectable(const uint8_t * event){ 1485 return event[3]; 1486 } 1487 1488 /** 1489 * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE 1490 * @param event packet 1491 * @return active 1492 * @note: btstack_type 1 1493 */ 1494 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){ 1495 return event[2]; 1496 } 1497 1498 /** 1499 * @brief Get field vendor_id from event HCI_EVENT_TRANSPORT_USB_INFO 1500 * @param event packet 1501 * @return vendor_id 1502 * @note: btstack_type 2 1503 */ 1504 static inline uint16_t hci_event_transport_usb_info_get_vendor_id(const uint8_t * event){ 1505 return little_endian_read_16(event, 2); 1506 } 1507 /** 1508 * @brief Get field product_id from event HCI_EVENT_TRANSPORT_USB_INFO 1509 * @param event packet 1510 * @return product_id 1511 * @note: btstack_type 2 1512 */ 1513 static inline uint16_t hci_event_transport_usb_info_get_product_id(const uint8_t * event){ 1514 return little_endian_read_16(event, 4); 1515 } 1516 /** 1517 * @brief Get field path_len from event HCI_EVENT_TRANSPORT_USB_INFO 1518 * @param event packet 1519 * @return path_len 1520 * @note: btstack_type J 1521 */ 1522 static inline uint8_t hci_event_transport_usb_info_get_path_len(const uint8_t * event){ 1523 return event[6]; 1524 } 1525 /** 1526 * @brief Get field path from event HCI_EVENT_TRANSPORT_USB_INFO 1527 * @param event packet 1528 * @return path 1529 * @note: btstack_type V 1530 */ 1531 static inline const uint8_t * hci_event_transport_usb_info_get_path(const uint8_t * event){ 1532 return &event[7]; 1533 } 1534 1535 /** 1536 * @brief Get field big_handle from event HCI_EVENT_BIS_CAN_SEND_NOW 1537 * @param event packet 1538 * @return big_handle 1539 * @note: btstack_type 1 1540 */ 1541 static inline uint8_t hci_event_bis_can_send_now_get_big_handle(const uint8_t * event){ 1542 return event[2]; 1543 } 1544 /** 1545 * @brief Get field bis_index from event HCI_EVENT_BIS_CAN_SEND_NOW 1546 * @param event packet 1547 * @return bis_index 1548 * @note: btstack_type 1 1549 */ 1550 static inline uint8_t hci_event_bis_can_send_now_get_bis_index(const uint8_t * event){ 1551 return event[3]; 1552 } 1553 /** 1554 * @brief Get field con_handle from event HCI_EVENT_BIS_CAN_SEND_NOW 1555 * @param event packet 1556 * @return con_handle 1557 * @note: btstack_type H 1558 */ 1559 static inline hci_con_handle_t hci_event_bis_can_send_now_get_con_handle(const uint8_t * event){ 1560 return little_endian_read_16(event, 4); 1561 } 1562 1563 /** 1564 * @brief Get field cis_con_handle from event HCI_EVENT_CIS_CAN_SEND_NOW 1565 * @param event packet 1566 * @return cis_con_handle 1567 * @note: btstack_type H 1568 */ 1569 static inline hci_con_handle_t hci_event_cis_can_send_now_get_cis_con_handle(const uint8_t * event){ 1570 return little_endian_read_16(event, 2); 1571 } 1572 1573 1574 /** 1575 * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED 1576 * @param event packet 1577 * @return status 1578 * @note: btstack_type 1 1579 */ 1580 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){ 1581 return event[2]; 1582 } 1583 /** 1584 * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED 1585 * @param event packet 1586 * @param Pointer to storage for address 1587 * @note: btstack_type B 1588 */ 1589 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1590 reverse_bytes(&event[3], address, 6); 1591 } 1592 /** 1593 * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED 1594 * @param event packet 1595 * @return handle 1596 * @note: btstack_type H 1597 */ 1598 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){ 1599 return little_endian_read_16(event, 9); 1600 } 1601 /** 1602 * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED 1603 * @param event packet 1604 * @return psm 1605 * @note: btstack_type 2 1606 */ 1607 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){ 1608 return little_endian_read_16(event, 11); 1609 } 1610 /** 1611 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED 1612 * @param event packet 1613 * @return local_cid 1614 * @note: btstack_type 2 1615 */ 1616 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){ 1617 return little_endian_read_16(event, 13); 1618 } 1619 /** 1620 * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED 1621 * @param event packet 1622 * @return remote_cid 1623 * @note: btstack_type 2 1624 */ 1625 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){ 1626 return little_endian_read_16(event, 15); 1627 } 1628 /** 1629 * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1630 * @param event packet 1631 * @return local_mtu 1632 * @note: btstack_type 2 1633 */ 1634 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){ 1635 return little_endian_read_16(event, 17); 1636 } 1637 /** 1638 * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1639 * @param event packet 1640 * @return remote_mtu 1641 * @note: btstack_type 2 1642 */ 1643 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){ 1644 return little_endian_read_16(event, 19); 1645 } 1646 /** 1647 * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED 1648 * @param event packet 1649 * @return flush_timeout 1650 * @note: btstack_type 2 1651 */ 1652 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){ 1653 return little_endian_read_16(event, 21); 1654 } 1655 /** 1656 * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED 1657 * @param event packet 1658 * @return incoming 1659 * @note: btstack_type 1 1660 */ 1661 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){ 1662 return event[23]; 1663 } 1664 /** 1665 * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED 1666 * @param event packet 1667 * @return mode 1668 * @note: btstack_type 1 1669 */ 1670 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){ 1671 return event[24]; 1672 } 1673 /** 1674 * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED 1675 * @param event packet 1676 * @return fcs 1677 * @note: btstack_type 1 1678 */ 1679 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){ 1680 return event[25]; 1681 } 1682 1683 /** 1684 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED 1685 * @param event packet 1686 * @return local_cid 1687 * @note: btstack_type 2 1688 */ 1689 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){ 1690 return little_endian_read_16(event, 2); 1691 } 1692 1693 /** 1694 * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION 1695 * @param event packet 1696 * @param Pointer to storage for address 1697 * @note: btstack_type B 1698 */ 1699 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1700 reverse_bytes(&event[2], address, 6); 1701 } 1702 /** 1703 * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION 1704 * @param event packet 1705 * @return handle 1706 * @note: btstack_type H 1707 */ 1708 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){ 1709 return little_endian_read_16(event, 8); 1710 } 1711 /** 1712 * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION 1713 * @param event packet 1714 * @return psm 1715 * @note: btstack_type 2 1716 */ 1717 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){ 1718 return little_endian_read_16(event, 10); 1719 } 1720 /** 1721 * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1722 * @param event packet 1723 * @return local_cid 1724 * @note: btstack_type 2 1725 */ 1726 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){ 1727 return little_endian_read_16(event, 12); 1728 } 1729 /** 1730 * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1731 * @param event packet 1732 * @return remote_cid 1733 * @note: btstack_type 2 1734 */ 1735 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){ 1736 return little_endian_read_16(event, 14); 1737 } 1738 1739 /** 1740 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1741 * @param event packet 1742 * @return handle 1743 * @note: btstack_type H 1744 */ 1745 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){ 1746 return little_endian_read_16(event, 2); 1747 } 1748 /** 1749 * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1750 * @param event packet 1751 * @return interval_min 1752 * @note: btstack_type 2 1753 */ 1754 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){ 1755 return little_endian_read_16(event, 4); 1756 } 1757 /** 1758 * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1759 * @param event packet 1760 * @return interval_max 1761 * @note: btstack_type 2 1762 */ 1763 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){ 1764 return little_endian_read_16(event, 6); 1765 } 1766 /** 1767 * @brief Get field latency from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1768 * @param event packet 1769 * @return latency 1770 * @note: btstack_type 2 1771 */ 1772 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latency(const uint8_t * event){ 1773 return little_endian_read_16(event, 8); 1774 } 1775 /** 1776 * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1777 * @param event packet 1778 * @return timeout_multiplier 1779 * @note: btstack_type 2 1780 */ 1781 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){ 1782 return little_endian_read_16(event, 10); 1783 } 1784 1785 /** 1786 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1787 * @param event packet 1788 * @return handle 1789 * @note: btstack_type H 1790 */ 1791 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){ 1792 return little_endian_read_16(event, 2); 1793 } 1794 /** 1795 * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1796 * @param event packet 1797 * @return result 1798 * @note: btstack_type 2 1799 */ 1800 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){ 1801 return little_endian_read_16(event, 4); 1802 } 1803 1804 /** 1805 * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE 1806 * @param event packet 1807 * @return con_handle 1808 * @note: btstack_type H 1809 */ 1810 static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){ 1811 return little_endian_read_16(event, 2); 1812 } 1813 /** 1814 * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE 1815 * @param event packet 1816 * @return extended_feature_mask 1817 * @note: btstack_type 2 1818 */ 1819 static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){ 1820 return little_endian_read_16(event, 4); 1821 } 1822 /** 1823 * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE 1824 * @param event packet 1825 * @return fixed_channels_supported 1826 * @note: btstack_type 2 1827 */ 1828 static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){ 1829 return little_endian_read_16(event, 6); 1830 } 1831 1832 /** 1833 * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW 1834 * @param event packet 1835 * @return local_cid 1836 * @note: btstack_type 2 1837 */ 1838 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){ 1839 return little_endian_read_16(event, 2); 1840 } 1841 1842 /** 1843 * @brief Get field local_cid from event L2CAP_EVENT_PACKET_SENT 1844 * @param event packet 1845 * @return local_cid 1846 * @note: btstack_type 2 1847 */ 1848 static inline uint16_t l2cap_event_packet_sent_get_local_cid(const uint8_t * event){ 1849 return little_endian_read_16(event, 2); 1850 } 1851 1852 /** 1853 * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED 1854 * @param event packet 1855 * @return local_cid 1856 * @note: btstack_type 2 1857 */ 1858 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1859 return little_endian_read_16(event, 2); 1860 } 1861 1862 /** 1863 * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1864 * @param event packet 1865 * @return address_type 1866 * @note: btstack_type 1 1867 */ 1868 static inline uint8_t l2cap_event_cbm_incoming_connection_get_address_type(const uint8_t * event){ 1869 return event[2]; 1870 } 1871 /** 1872 * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1873 * @param event packet 1874 * @param Pointer to storage for address 1875 * @note: btstack_type B 1876 */ 1877 static inline void l2cap_event_cbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1878 reverse_bytes(&event[3], address, 6); 1879 } 1880 /** 1881 * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1882 * @param event packet 1883 * @return handle 1884 * @note: btstack_type H 1885 */ 1886 static inline hci_con_handle_t l2cap_event_cbm_incoming_connection_get_handle(const uint8_t * event){ 1887 return little_endian_read_16(event, 9); 1888 } 1889 /** 1890 * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1891 * @param event packet 1892 * @return psm 1893 * @note: btstack_type 2 1894 */ 1895 static inline uint16_t l2cap_event_cbm_incoming_connection_get_psm(const uint8_t * event){ 1896 return little_endian_read_16(event, 11); 1897 } 1898 /** 1899 * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1900 * @param event packet 1901 * @return local_cid 1902 * @note: btstack_type 2 1903 */ 1904 static inline uint16_t l2cap_event_cbm_incoming_connection_get_local_cid(const uint8_t * event){ 1905 return little_endian_read_16(event, 13); 1906 } 1907 /** 1908 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1909 * @param event packet 1910 * @return remote_cid 1911 * @note: btstack_type 2 1912 */ 1913 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_cid(const uint8_t * event){ 1914 return little_endian_read_16(event, 15); 1915 } 1916 /** 1917 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 1918 * @param event packet 1919 * @return remote_mtu 1920 * @note: btstack_type 2 1921 */ 1922 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_mtu(const uint8_t * event){ 1923 return little_endian_read_16(event, 17); 1924 } 1925 1926 /** 1927 * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1928 * @param event packet 1929 * @return status 1930 * @note: btstack_type 1 1931 */ 1932 static inline uint8_t l2cap_event_cbm_channel_opened_get_status(const uint8_t * event){ 1933 return event[2]; 1934 } 1935 /** 1936 * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1937 * @param event packet 1938 * @return address_type 1939 * @note: btstack_type 1 1940 */ 1941 static inline uint8_t l2cap_event_cbm_channel_opened_get_address_type(const uint8_t * event){ 1942 return event[3]; 1943 } 1944 /** 1945 * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1946 * @param event packet 1947 * @param Pointer to storage for address 1948 * @note: btstack_type B 1949 */ 1950 static inline void l2cap_event_cbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1951 reverse_bytes(&event[4], address, 6); 1952 } 1953 /** 1954 * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1955 * @param event packet 1956 * @return handle 1957 * @note: btstack_type H 1958 */ 1959 static inline hci_con_handle_t l2cap_event_cbm_channel_opened_get_handle(const uint8_t * event){ 1960 return little_endian_read_16(event, 10); 1961 } 1962 /** 1963 * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1964 * @param event packet 1965 * @return incoming 1966 * @note: btstack_type 1 1967 */ 1968 static inline uint8_t l2cap_event_cbm_channel_opened_get_incoming(const uint8_t * event){ 1969 return event[12]; 1970 } 1971 /** 1972 * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1973 * @param event packet 1974 * @return psm 1975 * @note: btstack_type 2 1976 */ 1977 static inline uint16_t l2cap_event_cbm_channel_opened_get_psm(const uint8_t * event){ 1978 return little_endian_read_16(event, 13); 1979 } 1980 /** 1981 * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1982 * @param event packet 1983 * @return local_cid 1984 * @note: btstack_type 2 1985 */ 1986 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_cid(const uint8_t * event){ 1987 return little_endian_read_16(event, 15); 1988 } 1989 /** 1990 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED 1991 * @param event packet 1992 * @return remote_cid 1993 * @note: btstack_type 2 1994 */ 1995 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_cid(const uint8_t * event){ 1996 return little_endian_read_16(event, 17); 1997 } 1998 /** 1999 * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2000 * @param event packet 2001 * @return local_mtu 2002 * @note: btstack_type 2 2003 */ 2004 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_mtu(const uint8_t * event){ 2005 return little_endian_read_16(event, 19); 2006 } 2007 /** 2008 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2009 * @param event packet 2010 * @return remote_mtu 2011 * @note: btstack_type 2 2012 */ 2013 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_mtu(const uint8_t * event){ 2014 return little_endian_read_16(event, 21); 2015 } 2016 2017 2018 /** 2019 * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2020 * @param event packet 2021 * @return address_type 2022 * @note: btstack_type 1 2023 */ 2024 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_address_type(const uint8_t * event){ 2025 return event[2]; 2026 } 2027 /** 2028 * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2029 * @param event packet 2030 * @param Pointer to storage for address 2031 * @note: btstack_type B 2032 */ 2033 static inline void l2cap_event_ecbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 2034 reverse_bytes(&event[3], address, 6); 2035 } 2036 /** 2037 * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2038 * @param event packet 2039 * @return handle 2040 * @note: btstack_type H 2041 */ 2042 static inline hci_con_handle_t l2cap_event_ecbm_incoming_connection_get_handle(const uint8_t * event){ 2043 return little_endian_read_16(event, 9); 2044 } 2045 /** 2046 * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2047 * @param event packet 2048 * @return psm 2049 * @note: btstack_type 2 2050 */ 2051 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_psm(const uint8_t * event){ 2052 return little_endian_read_16(event, 11); 2053 } 2054 /** 2055 * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2056 * @param event packet 2057 * @return num_channels 2058 * @note: btstack_type 1 2059 */ 2060 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_num_channels(const uint8_t * event){ 2061 return event[13]; 2062 } 2063 /** 2064 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2065 * @param event packet 2066 * @return local_cid 2067 * @note: btstack_type 2 2068 */ 2069 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_local_cid(const uint8_t * event){ 2070 return little_endian_read_16(event, 14); 2071 } 2072 2073 /** 2074 * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2075 * @param event packet 2076 * @return status 2077 * @note: btstack_type 1 2078 */ 2079 static inline uint8_t l2cap_event_ecbm_channel_opened_get_status(const uint8_t * event){ 2080 return event[2]; 2081 } 2082 /** 2083 * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2084 * @param event packet 2085 * @return address_type 2086 * @note: btstack_type 1 2087 */ 2088 static inline uint8_t l2cap_event_ecbm_channel_opened_get_address_type(const uint8_t * event){ 2089 return event[3]; 2090 } 2091 /** 2092 * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2093 * @param event packet 2094 * @param Pointer to storage for address 2095 * @note: btstack_type B 2096 */ 2097 static inline void l2cap_event_ecbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 2098 reverse_bytes(&event[4], address, 6); 2099 } 2100 /** 2101 * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2102 * @param event packet 2103 * @return handle 2104 * @note: btstack_type H 2105 */ 2106 static inline hci_con_handle_t l2cap_event_ecbm_channel_opened_get_handle(const uint8_t * event){ 2107 return little_endian_read_16(event, 10); 2108 } 2109 /** 2110 * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2111 * @param event packet 2112 * @return incoming 2113 * @note: btstack_type 1 2114 */ 2115 static inline uint8_t l2cap_event_ecbm_channel_opened_get_incoming(const uint8_t * event){ 2116 return event[12]; 2117 } 2118 /** 2119 * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2120 * @param event packet 2121 * @return psm 2122 * @note: btstack_type 2 2123 */ 2124 static inline uint16_t l2cap_event_ecbm_channel_opened_get_psm(const uint8_t * event){ 2125 return little_endian_read_16(event, 13); 2126 } 2127 /** 2128 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2129 * @param event packet 2130 * @return local_cid 2131 * @note: btstack_type 2 2132 */ 2133 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_cid(const uint8_t * event){ 2134 return little_endian_read_16(event, 15); 2135 } 2136 /** 2137 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2138 * @param event packet 2139 * @return remote_cid 2140 * @note: btstack_type 2 2141 */ 2142 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_cid(const uint8_t * event){ 2143 return little_endian_read_16(event, 17); 2144 } 2145 /** 2146 * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2147 * @param event packet 2148 * @return local_mtu 2149 * @note: btstack_type 2 2150 */ 2151 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_mtu(const uint8_t * event){ 2152 return little_endian_read_16(event, 19); 2153 } 2154 /** 2155 * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2156 * @param event packet 2157 * @return remote_mtu 2158 * @note: btstack_type 2 2159 */ 2160 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_mtu(const uint8_t * event){ 2161 return little_endian_read_16(event, 21); 2162 } 2163 2164 /** 2165 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED 2166 * @param event packet 2167 * @return remote_cid 2168 * @note: btstack_type 2 2169 */ 2170 static inline uint16_t l2cap_event_ecbm_reconfigured_get_remote_cid(const uint8_t * event){ 2171 return little_endian_read_16(event, 2); 2172 } 2173 /** 2174 * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED 2175 * @param event packet 2176 * @return mtu 2177 * @note: btstack_type 2 2178 */ 2179 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mtu(const uint8_t * event){ 2180 return little_endian_read_16(event, 4); 2181 } 2182 /** 2183 * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED 2184 * @param event packet 2185 * @return mps 2186 * @note: btstack_type 2 2187 */ 2188 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mps(const uint8_t * event){ 2189 return little_endian_read_16(event, 6); 2190 } 2191 2192 /** 2193 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 2194 * @param event packet 2195 * @return local_cid 2196 * @note: btstack_type 2 2197 */ 2198 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_local_cid(const uint8_t * event){ 2199 return little_endian_read_16(event, 2); 2200 } 2201 /** 2202 * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 2203 * @param event packet 2204 * @return reconfigure_result 2205 * @note: btstack_type 2 2206 */ 2207 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){ 2208 return little_endian_read_16(event, 4); 2209 } 2210 2211 /** 2212 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED 2213 * @param event packet 2214 * @return status 2215 * @note: btstack_type 1 2216 */ 2217 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){ 2218 return event[2]; 2219 } 2220 /** 2221 * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED 2222 * @param event packet 2223 * @param Pointer to storage for bd_addr 2224 * @note: btstack_type B 2225 */ 2226 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 2227 reverse_bytes(&event[3], bd_addr, 6); 2228 } 2229 /** 2230 * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED 2231 * @param event packet 2232 * @return con_handle 2233 * @note: btstack_type 2 2234 */ 2235 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){ 2236 return little_endian_read_16(event, 9); 2237 } 2238 /** 2239 * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED 2240 * @param event packet 2241 * @return server_channel 2242 * @note: btstack_type 1 2243 */ 2244 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){ 2245 return event[11]; 2246 } 2247 /** 2248 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED 2249 * @param event packet 2250 * @return rfcomm_cid 2251 * @note: btstack_type 2 2252 */ 2253 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){ 2254 return little_endian_read_16(event, 12); 2255 } 2256 /** 2257 * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED 2258 * @param event packet 2259 * @return max_frame_size 2260 * @note: btstack_type 2 2261 */ 2262 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){ 2263 return little_endian_read_16(event, 14); 2264 } 2265 /** 2266 * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED 2267 * @param event packet 2268 * @return incoming 2269 * @note: btstack_type 1 2270 */ 2271 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){ 2272 return event[16]; 2273 } 2274 2275 /** 2276 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED 2277 * @param event packet 2278 * @return rfcomm_cid 2279 * @note: btstack_type 2 2280 */ 2281 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){ 2282 return little_endian_read_16(event, 2); 2283 } 2284 2285 /** 2286 * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION 2287 * @param event packet 2288 * @param Pointer to storage for bd_addr 2289 * @note: btstack_type B 2290 */ 2291 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 2292 reverse_bytes(&event[2], bd_addr, 6); 2293 } 2294 /** 2295 * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION 2296 * @param event packet 2297 * @return server_channel 2298 * @note: btstack_type 1 2299 */ 2300 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){ 2301 return event[8]; 2302 } 2303 /** 2304 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION 2305 * @param event packet 2306 * @return rfcomm_cid 2307 * @note: btstack_type 2 2308 */ 2309 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){ 2310 return little_endian_read_16(event, 9); 2311 } 2312 /** 2313 * @brief Get field con_handle from event RFCOMM_EVENT_INCOMING_CONNECTION 2314 * @param event packet 2315 * @return con_handle 2316 * @note: btstack_type H 2317 */ 2318 static inline hci_con_handle_t rfcomm_event_incoming_connection_get_con_handle(const uint8_t * event){ 2319 return little_endian_read_16(event, 11); 2320 } 2321 2322 /** 2323 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS 2324 * @param event packet 2325 * @return rfcomm_cid 2326 * @note: btstack_type 2 2327 */ 2328 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){ 2329 return little_endian_read_16(event, 2); 2330 } 2331 /** 2332 * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS 2333 * @param event packet 2334 * @return line_status 2335 * @note: btstack_type 1 2336 */ 2337 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){ 2338 return event[4]; 2339 } 2340 2341 /** 2342 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 2343 * @param event packet 2344 * @return rfcomm_cid 2345 * @note: btstack_type 2 2346 */ 2347 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){ 2348 return little_endian_read_16(event, 2); 2349 } 2350 /** 2351 * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 2352 * @param event packet 2353 * @return modem_status 2354 * @note: btstack_type 1 2355 */ 2356 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){ 2357 return event[4]; 2358 } 2359 2360 /** 2361 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW 2362 * @param event packet 2363 * @return rfcomm_cid 2364 * @note: btstack_type 2 2365 */ 2366 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){ 2367 return little_endian_read_16(event, 2); 2368 } 2369 2370 /** 2371 * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE 2372 * @param event packet 2373 * @return status 2374 * @note: btstack_type 1 2375 */ 2376 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){ 2377 return event[2]; 2378 } 2379 2380 /** 2381 * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE 2382 * @param event packet 2383 * @return rfcomm_channel 2384 * @note: btstack_type 1 2385 */ 2386 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){ 2387 return event[2]; 2388 } 2389 /** 2390 * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE 2391 * @param event packet 2392 * @return name 2393 * @note: btstack_type T 2394 */ 2395 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){ 2396 return (const char *) &event[3]; 2397 } 2398 2399 /** 2400 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2401 * @param event packet 2402 * @return record_id 2403 * @note: btstack_type 2 2404 */ 2405 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){ 2406 return little_endian_read_16(event, 2); 2407 } 2408 /** 2409 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2410 * @param event packet 2411 * @return attribute_id 2412 * @note: btstack_type 2 2413 */ 2414 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){ 2415 return little_endian_read_16(event, 4); 2416 } 2417 /** 2418 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2419 * @param event packet 2420 * @return attribute_length 2421 * @note: btstack_type 2 2422 */ 2423 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){ 2424 return little_endian_read_16(event, 6); 2425 } 2426 /** 2427 * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2428 * @param event packet 2429 * @return data_offset 2430 * @note: btstack_type 2 2431 */ 2432 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){ 2433 return little_endian_read_16(event, 8); 2434 } 2435 /** 2436 * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2437 * @param event packet 2438 * @return data 2439 * @note: btstack_type 1 2440 */ 2441 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){ 2442 return event[10]; 2443 } 2444 2445 /** 2446 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2447 * @param event packet 2448 * @return record_id 2449 * @note: btstack_type 2 2450 */ 2451 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){ 2452 return little_endian_read_16(event, 2); 2453 } 2454 /** 2455 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2456 * @param event packet 2457 * @return attribute_id 2458 * @note: btstack_type 2 2459 */ 2460 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){ 2461 return little_endian_read_16(event, 4); 2462 } 2463 /** 2464 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2465 * @param event packet 2466 * @return attribute_length 2467 * @note: btstack_type L 2468 */ 2469 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){ 2470 return little_endian_read_16(event, 6); 2471 } 2472 /** 2473 * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2474 * @param event packet 2475 * @return attribute_value 2476 * @note: btstack_type V 2477 */ 2478 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){ 2479 return &event[8]; 2480 } 2481 2482 /** 2483 * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2484 * @param event packet 2485 * @return total_count 2486 * @note: btstack_type 2 2487 */ 2488 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){ 2489 return little_endian_read_16(event, 2); 2490 } 2491 /** 2492 * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2493 * @param event packet 2494 * @return record_index 2495 * @note: btstack_type 2 2496 */ 2497 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){ 2498 return little_endian_read_16(event, 4); 2499 } 2500 /** 2501 * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2502 * @param event packet 2503 * @return record_handle 2504 * @note: btstack_type 4 2505 */ 2506 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){ 2507 return little_endian_read_32(event, 6); 2508 } 2509 2510 #ifdef ENABLE_BLE 2511 /** 2512 * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE 2513 * @param event packet 2514 * @return handle 2515 * @note: btstack_type H 2516 */ 2517 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){ 2518 return little_endian_read_16(event, 2); 2519 } 2520 /** 2521 * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE 2522 * @param event packet 2523 * @return att_status 2524 * @note: btstack_type 1 2525 */ 2526 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){ 2527 return event[4]; 2528 } 2529 #endif 2530 2531 #ifdef ENABLE_BLE 2532 /** 2533 * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT 2534 * @param event packet 2535 * @return handle 2536 * @note: btstack_type H 2537 */ 2538 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){ 2539 return little_endian_read_16(event, 2); 2540 } 2541 /** 2542 * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT 2543 * @param event packet 2544 * @param Pointer to storage for service 2545 * @note: btstack_type X 2546 */ 2547 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2548 gatt_client_deserialize_service(event, 4, service); 2549 } 2550 #endif 2551 2552 #ifdef ENABLE_BLE 2553 /** 2554 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2555 * @param event packet 2556 * @return handle 2557 * @note: btstack_type H 2558 */ 2559 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){ 2560 return little_endian_read_16(event, 2); 2561 } 2562 /** 2563 * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2564 * @param event packet 2565 * @param Pointer to storage for characteristic 2566 * @note: btstack_type Y 2567 */ 2568 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){ 2569 gatt_client_deserialize_characteristic(event, 4, characteristic); 2570 } 2571 #endif 2572 2573 #ifdef ENABLE_BLE 2574 /** 2575 * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2576 * @param event packet 2577 * @return handle 2578 * @note: btstack_type H 2579 */ 2580 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){ 2581 return little_endian_read_16(event, 2); 2582 } 2583 /** 2584 * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2585 * @param event packet 2586 * @return include_handle 2587 * @note: btstack_type 2 2588 */ 2589 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){ 2590 return little_endian_read_16(event, 4); 2591 } 2592 /** 2593 * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2594 * @param event packet 2595 * @param Pointer to storage for service 2596 * @note: btstack_type X 2597 */ 2598 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2599 gatt_client_deserialize_service(event, 6, service); 2600 } 2601 #endif 2602 2603 #ifdef ENABLE_BLE 2604 /** 2605 * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2606 * @param event packet 2607 * @return handle 2608 * @note: btstack_type H 2609 */ 2610 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){ 2611 return little_endian_read_16(event, 2); 2612 } 2613 /** 2614 * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2615 * @param event packet 2616 * @param Pointer to storage for characteristic_descriptor 2617 * @note: btstack_type Z 2618 */ 2619 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){ 2620 gatt_client_deserialize_characteristic_descriptor(event, 4, characteristic_descriptor); 2621 } 2622 #endif 2623 2624 #ifdef ENABLE_BLE 2625 /** 2626 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2627 * @param event packet 2628 * @return handle 2629 * @note: btstack_type H 2630 */ 2631 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){ 2632 return little_endian_read_16(event, 2); 2633 } 2634 /** 2635 * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2636 * @param event packet 2637 * @return value_handle 2638 * @note: btstack_type 2 2639 */ 2640 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2641 return little_endian_read_16(event, 4); 2642 } 2643 /** 2644 * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2645 * @param event packet 2646 * @return value_length 2647 * @note: btstack_type L 2648 */ 2649 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2650 return little_endian_read_16(event, 6); 2651 } 2652 /** 2653 * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2654 * @param event packet 2655 * @return value 2656 * @note: btstack_type V 2657 */ 2658 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){ 2659 return &event[8]; 2660 } 2661 #endif 2662 2663 #ifdef ENABLE_BLE 2664 /** 2665 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2666 * @param event packet 2667 * @return handle 2668 * @note: btstack_type H 2669 */ 2670 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){ 2671 return little_endian_read_16(event, 2); 2672 } 2673 /** 2674 * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2675 * @param event packet 2676 * @return value_handle 2677 * @note: btstack_type 2 2678 */ 2679 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2680 return little_endian_read_16(event, 4); 2681 } 2682 /** 2683 * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2684 * @param event packet 2685 * @return value_offset 2686 * @note: btstack_type 2 2687 */ 2688 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){ 2689 return little_endian_read_16(event, 6); 2690 } 2691 /** 2692 * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2693 * @param event packet 2694 * @return value_length 2695 * @note: btstack_type L 2696 */ 2697 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2698 return little_endian_read_16(event, 8); 2699 } 2700 /** 2701 * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2702 * @param event packet 2703 * @return value 2704 * @note: btstack_type V 2705 */ 2706 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){ 2707 return &event[10]; 2708 } 2709 #endif 2710 2711 #ifdef ENABLE_BLE 2712 /** 2713 * @brief Get field handle from event GATT_EVENT_NOTIFICATION 2714 * @param event packet 2715 * @return handle 2716 * @note: btstack_type H 2717 */ 2718 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){ 2719 return little_endian_read_16(event, 2); 2720 } 2721 /** 2722 * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION 2723 * @param event packet 2724 * @return value_handle 2725 * @note: btstack_type 2 2726 */ 2727 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){ 2728 return little_endian_read_16(event, 4); 2729 } 2730 /** 2731 * @brief Get field value_length from event GATT_EVENT_NOTIFICATION 2732 * @param event packet 2733 * @return value_length 2734 * @note: btstack_type L 2735 */ 2736 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){ 2737 return little_endian_read_16(event, 6); 2738 } 2739 /** 2740 * @brief Get field value from event GATT_EVENT_NOTIFICATION 2741 * @param event packet 2742 * @return value 2743 * @note: btstack_type V 2744 */ 2745 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){ 2746 return &event[8]; 2747 } 2748 #endif 2749 2750 #ifdef ENABLE_BLE 2751 /** 2752 * @brief Get field handle from event GATT_EVENT_INDICATION 2753 * @param event packet 2754 * @return handle 2755 * @note: btstack_type H 2756 */ 2757 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){ 2758 return little_endian_read_16(event, 2); 2759 } 2760 /** 2761 * @brief Get field value_handle from event GATT_EVENT_INDICATION 2762 * @param event packet 2763 * @return value_handle 2764 * @note: btstack_type 2 2765 */ 2766 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){ 2767 return little_endian_read_16(event, 4); 2768 } 2769 /** 2770 * @brief Get field value_length from event GATT_EVENT_INDICATION 2771 * @param event packet 2772 * @return value_length 2773 * @note: btstack_type L 2774 */ 2775 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){ 2776 return little_endian_read_16(event, 6); 2777 } 2778 /** 2779 * @brief Get field value from event GATT_EVENT_INDICATION 2780 * @param event packet 2781 * @return value 2782 * @note: btstack_type V 2783 */ 2784 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){ 2785 return &event[8]; 2786 } 2787 #endif 2788 2789 #ifdef ENABLE_BLE 2790 /** 2791 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2792 * @param event packet 2793 * @return handle 2794 * @note: btstack_type H 2795 */ 2796 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 2797 return little_endian_read_16(event, 2); 2798 } 2799 /** 2800 * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2801 * @param event packet 2802 * @return descriptor_handle 2803 * @note: btstack_type 2 2804 */ 2805 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){ 2806 return little_endian_read_16(event, 4); 2807 } 2808 /** 2809 * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2810 * @param event packet 2811 * @return descriptor_length 2812 * @note: btstack_type L 2813 */ 2814 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 2815 return little_endian_read_16(event, 6); 2816 } 2817 /** 2818 * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2819 * @param event packet 2820 * @return descriptor 2821 * @note: btstack_type V 2822 */ 2823 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 2824 return &event[8]; 2825 } 2826 #endif 2827 2828 #ifdef ENABLE_BLE 2829 /** 2830 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2831 * @param event packet 2832 * @return handle 2833 * @note: btstack_type H 2834 */ 2835 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 2836 return little_endian_read_16(event, 2); 2837 } 2838 /** 2839 * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2840 * @param event packet 2841 * @return descriptor_offset 2842 * @note: btstack_type 2 2843 */ 2844 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){ 2845 return little_endian_read_16(event, 4); 2846 } 2847 /** 2848 * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2849 * @param event packet 2850 * @return descriptor_length 2851 * @note: btstack_type L 2852 */ 2853 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 2854 return little_endian_read_16(event, 6); 2855 } 2856 /** 2857 * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2858 * @param event packet 2859 * @return descriptor 2860 * @note: btstack_type V 2861 */ 2862 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 2863 return &event[8]; 2864 } 2865 #endif 2866 2867 #ifdef ENABLE_BLE 2868 /** 2869 * @brief Get field handle from event GATT_EVENT_MTU 2870 * @param event packet 2871 * @return handle 2872 * @note: btstack_type H 2873 */ 2874 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){ 2875 return little_endian_read_16(event, 2); 2876 } 2877 /** 2878 * @brief Get field MTU from event GATT_EVENT_MTU 2879 * @param event packet 2880 * @return MTU 2881 * @note: btstack_type 2 2882 */ 2883 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){ 2884 return little_endian_read_16(event, 4); 2885 } 2886 #endif 2887 2888 #ifdef ENABLE_BLE 2889 /** 2890 * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 2891 * @param event packet 2892 * @return handle 2893 * @note: btstack_type H 2894 */ 2895 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){ 2896 return little_endian_read_16(event, 2); 2897 } 2898 #endif 2899 2900 /** 2901 * @brief Get field address_type from event ATT_EVENT_CONNECTED 2902 * @param event packet 2903 * @return address_type 2904 * @note: btstack_type 1 2905 */ 2906 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){ 2907 return event[2]; 2908 } 2909 /** 2910 * @brief Get field address from event ATT_EVENT_CONNECTED 2911 * @param event packet 2912 * @param Pointer to storage for address 2913 * @note: btstack_type B 2914 */ 2915 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){ 2916 reverse_bytes(&event[3], address, 6); 2917 } 2918 /** 2919 * @brief Get field handle from event ATT_EVENT_CONNECTED 2920 * @param event packet 2921 * @return handle 2922 * @note: btstack_type H 2923 */ 2924 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){ 2925 return little_endian_read_16(event, 9); 2926 } 2927 2928 /** 2929 * @brief Get field handle from event ATT_EVENT_DISCONNECTED 2930 * @param event packet 2931 * @return handle 2932 * @note: btstack_type H 2933 */ 2934 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){ 2935 return little_endian_read_16(event, 2); 2936 } 2937 2938 /** 2939 * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 2940 * @param event packet 2941 * @return handle 2942 * @note: btstack_type H 2943 */ 2944 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){ 2945 return little_endian_read_16(event, 2); 2946 } 2947 /** 2948 * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 2949 * @param event packet 2950 * @return MTU 2951 * @note: btstack_type 2 2952 */ 2953 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){ 2954 return little_endian_read_16(event, 4); 2955 } 2956 2957 /** 2958 * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2959 * @param event packet 2960 * @return status 2961 * @note: btstack_type 1 2962 */ 2963 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){ 2964 return event[2]; 2965 } 2966 /** 2967 * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2968 * @param event packet 2969 * @return conn_handle 2970 * @note: btstack_type H 2971 */ 2972 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){ 2973 return little_endian_read_16(event, 3); 2974 } 2975 /** 2976 * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2977 * @param event packet 2978 * @return attribute_handle 2979 * @note: btstack_type 2 2980 */ 2981 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){ 2982 return little_endian_read_16(event, 5); 2983 } 2984 2985 2986 /** 2987 * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED 2988 * @param event packet 2989 * @return status 2990 * @note: btstack_type 1 2991 */ 2992 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){ 2993 return event[2]; 2994 } 2995 /** 2996 * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED 2997 * @param event packet 2998 * @return service_uuid 2999 * @note: btstack_type 2 3000 */ 3001 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){ 3002 return little_endian_read_16(event, 3); 3003 } 3004 3005 /** 3006 * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED 3007 * @param event packet 3008 * @return status 3009 * @note: btstack_type 1 3010 */ 3011 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){ 3012 return event[2]; 3013 } 3014 /** 3015 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED 3016 * @param event packet 3017 * @return bnep_cid 3018 * @note: btstack_type 2 3019 */ 3020 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){ 3021 return little_endian_read_16(event, 3); 3022 } 3023 /** 3024 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED 3025 * @param event packet 3026 * @return source_uuid 3027 * @note: btstack_type 2 3028 */ 3029 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){ 3030 return little_endian_read_16(event, 5); 3031 } 3032 /** 3033 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED 3034 * @param event packet 3035 * @return destination_uuid 3036 * @note: btstack_type 2 3037 */ 3038 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){ 3039 return little_endian_read_16(event, 7); 3040 } 3041 /** 3042 * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED 3043 * @param event packet 3044 * @return mtu 3045 * @note: btstack_type 2 3046 */ 3047 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){ 3048 return little_endian_read_16(event, 9); 3049 } 3050 /** 3051 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED 3052 * @param event packet 3053 * @param Pointer to storage for remote_address 3054 * @note: btstack_type B 3055 */ 3056 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3057 reverse_bytes(&event[11], remote_address, 6); 3058 } 3059 /** 3060 * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED 3061 * @param event packet 3062 * @return con_handle 3063 * @note: btstack_type H 3064 */ 3065 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){ 3066 return little_endian_read_16(event, 17); 3067 } 3068 3069 /** 3070 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED 3071 * @param event packet 3072 * @return bnep_cid 3073 * @note: btstack_type 2 3074 */ 3075 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){ 3076 return little_endian_read_16(event, 2); 3077 } 3078 /** 3079 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED 3080 * @param event packet 3081 * @return source_uuid 3082 * @note: btstack_type 2 3083 */ 3084 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){ 3085 return little_endian_read_16(event, 4); 3086 } 3087 /** 3088 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED 3089 * @param event packet 3090 * @return destination_uuid 3091 * @note: btstack_type 2 3092 */ 3093 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){ 3094 return little_endian_read_16(event, 6); 3095 } 3096 /** 3097 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED 3098 * @param event packet 3099 * @param Pointer to storage for remote_address 3100 * @note: btstack_type B 3101 */ 3102 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3103 reverse_bytes(&event[8], remote_address, 6); 3104 } 3105 3106 /** 3107 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT 3108 * @param event packet 3109 * @return bnep_cid 3110 * @note: btstack_type 2 3111 */ 3112 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){ 3113 return little_endian_read_16(event, 2); 3114 } 3115 /** 3116 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 3117 * @param event packet 3118 * @return source_uuid 3119 * @note: btstack_type 2 3120 */ 3121 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){ 3122 return little_endian_read_16(event, 4); 3123 } 3124 /** 3125 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 3126 * @param event packet 3127 * @return destination_uuid 3128 * @note: btstack_type 2 3129 */ 3130 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){ 3131 return little_endian_read_16(event, 6); 3132 } 3133 /** 3134 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT 3135 * @param event packet 3136 * @param Pointer to storage for remote_address 3137 * @note: btstack_type B 3138 */ 3139 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3140 reverse_bytes(&event[8], remote_address, 6); 3141 } 3142 /** 3143 * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT 3144 * @param event packet 3145 * @return channel_state 3146 * @note: btstack_type 1 3147 */ 3148 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){ 3149 return event[14]; 3150 } 3151 3152 /** 3153 * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW 3154 * @param event packet 3155 * @return bnep_cid 3156 * @note: btstack_type 2 3157 */ 3158 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){ 3159 return little_endian_read_16(event, 2); 3160 } 3161 /** 3162 * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW 3163 * @param event packet 3164 * @return source_uuid 3165 * @note: btstack_type 2 3166 */ 3167 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){ 3168 return little_endian_read_16(event, 4); 3169 } 3170 /** 3171 * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW 3172 * @param event packet 3173 * @return destination_uuid 3174 * @note: btstack_type 2 3175 */ 3176 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){ 3177 return little_endian_read_16(event, 6); 3178 } 3179 /** 3180 * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW 3181 * @param event packet 3182 * @param Pointer to storage for remote_address 3183 * @note: btstack_type B 3184 */ 3185 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3186 reverse_bytes(&event[8], remote_address, 6); 3187 } 3188 3189 #ifdef ENABLE_BLE 3190 /** 3191 * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST 3192 * @param event packet 3193 * @return handle 3194 * @note: btstack_type H 3195 */ 3196 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){ 3197 return little_endian_read_16(event, 2); 3198 } 3199 /** 3200 * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST 3201 * @param event packet 3202 * @return addr_type 3203 * @note: btstack_type 1 3204 */ 3205 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){ 3206 return event[4]; 3207 } 3208 /** 3209 * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST 3210 * @param event packet 3211 * @param Pointer to storage for address 3212 * @note: btstack_type B 3213 */ 3214 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){ 3215 reverse_bytes(&event[5], address, 6); 3216 } 3217 /** 3218 * @brief Get field secure_connection from event SM_EVENT_JUST_WORKS_REQUEST 3219 * @param event packet 3220 * @return secure_connection 3221 * @note: btstack_type 1 3222 */ 3223 static inline uint8_t sm_event_just_works_request_get_secure_connection(const uint8_t * event){ 3224 return event[11]; 3225 } 3226 #endif 3227 3228 #ifdef ENABLE_BLE 3229 /** 3230 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3231 * @param event packet 3232 * @return handle 3233 * @note: btstack_type H 3234 */ 3235 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){ 3236 return little_endian_read_16(event, 2); 3237 } 3238 /** 3239 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3240 * @param event packet 3241 * @return addr_type 3242 * @note: btstack_type 1 3243 */ 3244 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){ 3245 return event[4]; 3246 } 3247 /** 3248 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3249 * @param event packet 3250 * @param Pointer to storage for address 3251 * @note: btstack_type B 3252 */ 3253 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){ 3254 reverse_bytes(&event[5], address, 6); 3255 } 3256 /** 3257 * @brief Get field secure_connection from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3258 * @param event packet 3259 * @return secure_connection 3260 * @note: btstack_type 1 3261 */ 3262 static inline uint8_t sm_event_passkey_display_number_get_secure_connection(const uint8_t * event){ 3263 return event[11]; 3264 } 3265 /** 3266 * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3267 * @param event packet 3268 * @return passkey 3269 * @note: btstack_type 4 3270 */ 3271 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){ 3272 return little_endian_read_32(event, 12); 3273 } 3274 #endif 3275 3276 #ifdef ENABLE_BLE 3277 /** 3278 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3279 * @param event packet 3280 * @return handle 3281 * @note: btstack_type H 3282 */ 3283 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){ 3284 return little_endian_read_16(event, 2); 3285 } 3286 /** 3287 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3288 * @param event packet 3289 * @return addr_type 3290 * @note: btstack_type 1 3291 */ 3292 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){ 3293 return event[4]; 3294 } 3295 /** 3296 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3297 * @param event packet 3298 * @param Pointer to storage for address 3299 * @note: btstack_type B 3300 */ 3301 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){ 3302 reverse_bytes(&event[5], address, 6); 3303 } 3304 #endif 3305 3306 #ifdef ENABLE_BLE 3307 /** 3308 * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER 3309 * @param event packet 3310 * @return handle 3311 * @note: btstack_type H 3312 */ 3313 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){ 3314 return little_endian_read_16(event, 2); 3315 } 3316 /** 3317 * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER 3318 * @param event packet 3319 * @return addr_type 3320 * @note: btstack_type 1 3321 */ 3322 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){ 3323 return event[4]; 3324 } 3325 /** 3326 * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER 3327 * @param event packet 3328 * @param Pointer to storage for address 3329 * @note: btstack_type B 3330 */ 3331 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){ 3332 reverse_bytes(&event[5], address, 6); 3333 } 3334 /** 3335 * @brief Get field secure_connection from event SM_EVENT_PASSKEY_INPUT_NUMBER 3336 * @param event packet 3337 * @return secure_connection 3338 * @note: btstack_type 1 3339 */ 3340 static inline uint8_t sm_event_passkey_input_number_get_secure_connection(const uint8_t * event){ 3341 return event[11]; 3342 } 3343 #endif 3344 3345 #ifdef ENABLE_BLE 3346 /** 3347 * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3348 * @param event packet 3349 * @return handle 3350 * @note: btstack_type H 3351 */ 3352 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){ 3353 return little_endian_read_16(event, 2); 3354 } 3355 /** 3356 * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3357 * @param event packet 3358 * @return addr_type 3359 * @note: btstack_type 1 3360 */ 3361 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){ 3362 return event[4]; 3363 } 3364 /** 3365 * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3366 * @param event packet 3367 * @param Pointer to storage for address 3368 * @note: btstack_type B 3369 */ 3370 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){ 3371 reverse_bytes(&event[5], address, 6); 3372 } 3373 /** 3374 * @brief Get field secure_connection from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3375 * @param event packet 3376 * @return secure_connection 3377 * @note: btstack_type 1 3378 */ 3379 static inline uint8_t sm_event_numeric_comparison_request_get_secure_connection(const uint8_t * event){ 3380 return event[11]; 3381 } 3382 /** 3383 * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3384 * @param event packet 3385 * @return passkey 3386 * @note: btstack_type 4 3387 */ 3388 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){ 3389 return little_endian_read_32(event, 12); 3390 } 3391 #endif 3392 3393 #ifdef ENABLE_BLE 3394 /** 3395 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3396 * @param event packet 3397 * @return handle 3398 * @note: btstack_type H 3399 */ 3400 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){ 3401 return little_endian_read_16(event, 2); 3402 } 3403 /** 3404 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3405 * @param event packet 3406 * @return addr_type 3407 * @note: btstack_type 1 3408 */ 3409 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){ 3410 return event[4]; 3411 } 3412 /** 3413 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3414 * @param event packet 3415 * @param Pointer to storage for address 3416 * @note: btstack_type B 3417 */ 3418 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){ 3419 reverse_bytes(&event[5], address, 6); 3420 } 3421 #endif 3422 3423 #ifdef ENABLE_BLE 3424 /** 3425 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3426 * @param event packet 3427 * @return handle 3428 * @note: btstack_type H 3429 */ 3430 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){ 3431 return little_endian_read_16(event, 2); 3432 } 3433 /** 3434 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3435 * @param event packet 3436 * @return addr_type 3437 * @note: btstack_type 1 3438 */ 3439 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){ 3440 return event[4]; 3441 } 3442 /** 3443 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3444 * @param event packet 3445 * @param Pointer to storage for address 3446 * @note: btstack_type B 3447 */ 3448 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){ 3449 reverse_bytes(&event[5], address, 6); 3450 } 3451 #endif 3452 3453 #ifdef ENABLE_BLE 3454 /** 3455 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3456 * @param event packet 3457 * @return handle 3458 * @note: btstack_type H 3459 */ 3460 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){ 3461 return little_endian_read_16(event, 2); 3462 } 3463 /** 3464 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3465 * @param event packet 3466 * @return addr_type 3467 * @note: btstack_type 1 3468 */ 3469 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){ 3470 return event[4]; 3471 } 3472 /** 3473 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3474 * @param event packet 3475 * @param Pointer to storage for address 3476 * @note: btstack_type B 3477 */ 3478 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){ 3479 reverse_bytes(&event[5], address, 6); 3480 } 3481 /** 3482 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3483 * @param event packet 3484 * @return identity_addr_type 3485 * @note: btstack_type 1 3486 */ 3487 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){ 3488 return event[11]; 3489 } 3490 /** 3491 * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3492 * @param event packet 3493 * @param Pointer to storage for identity_address 3494 * @note: btstack_type B 3495 */ 3496 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 3497 reverse_bytes(&event[12], identity_address, 6); 3498 } 3499 /** 3500 * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3501 * @param event packet 3502 * @return index 3503 * @note: btstack_type 2 3504 */ 3505 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){ 3506 return little_endian_read_16(event, 18); 3507 } 3508 #endif 3509 3510 #ifdef ENABLE_BLE 3511 /** 3512 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST 3513 * @param event packet 3514 * @return handle 3515 * @note: btstack_type H 3516 */ 3517 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){ 3518 return little_endian_read_16(event, 2); 3519 } 3520 /** 3521 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST 3522 * @param event packet 3523 * @return addr_type 3524 * @note: btstack_type 1 3525 */ 3526 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){ 3527 return event[4]; 3528 } 3529 /** 3530 * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST 3531 * @param event packet 3532 * @param Pointer to storage for address 3533 * @note: btstack_type B 3534 */ 3535 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){ 3536 reverse_bytes(&event[5], address, 6); 3537 } 3538 #endif 3539 3540 #ifdef ENABLE_BLE 3541 /** 3542 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT 3543 * @param event packet 3544 * @return handle 3545 * @note: btstack_type H 3546 */ 3547 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){ 3548 return little_endian_read_16(event, 2); 3549 } 3550 /** 3551 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT 3552 * @param event packet 3553 * @return addr_type 3554 * @note: btstack_type 1 3555 */ 3556 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){ 3557 return event[4]; 3558 } 3559 /** 3560 * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT 3561 * @param event packet 3562 * @param Pointer to storage for address 3563 * @note: btstack_type B 3564 */ 3565 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){ 3566 reverse_bytes(&event[5], address, 6); 3567 } 3568 /** 3569 * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT 3570 * @param event packet 3571 * @return authorization_result 3572 * @note: btstack_type 1 3573 */ 3574 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){ 3575 return event[11]; 3576 } 3577 #endif 3578 3579 #ifdef ENABLE_BLE 3580 /** 3581 * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION 3582 * @param event packet 3583 * @return handle 3584 * @note: btstack_type H 3585 */ 3586 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){ 3587 return little_endian_read_16(event, 2); 3588 } 3589 /** 3590 * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION 3591 * @param event packet 3592 * @return action 3593 * @note: btstack_type 1 3594 */ 3595 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){ 3596 return event[4]; 3597 } 3598 #endif 3599 3600 #ifdef ENABLE_BLE 3601 /** 3602 * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED 3603 * @param event packet 3604 * @return handle 3605 * @note: btstack_type H 3606 */ 3607 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){ 3608 return little_endian_read_16(event, 2); 3609 } 3610 /** 3611 * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED 3612 * @param event packet 3613 * @return addr_type 3614 * @note: btstack_type 1 3615 */ 3616 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){ 3617 return event[4]; 3618 } 3619 /** 3620 * @brief Get field address from event SM_EVENT_IDENTITY_CREATED 3621 * @param event packet 3622 * @param Pointer to storage for address 3623 * @note: btstack_type B 3624 */ 3625 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){ 3626 reverse_bytes(&event[5], address, 6); 3627 } 3628 /** 3629 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED 3630 * @param event packet 3631 * @return identity_addr_type 3632 * @note: btstack_type 1 3633 */ 3634 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){ 3635 return event[11]; 3636 } 3637 /** 3638 * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED 3639 * @param event packet 3640 * @param Pointer to storage for identity_address 3641 * @note: btstack_type B 3642 */ 3643 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 3644 reverse_bytes(&event[12], identity_address, 6); 3645 } 3646 /** 3647 * @brief Get field index from event SM_EVENT_IDENTITY_CREATED 3648 * @param event packet 3649 * @return index 3650 * @note: btstack_type 2 3651 */ 3652 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){ 3653 return little_endian_read_16(event, 18); 3654 } 3655 #endif 3656 3657 #ifdef ENABLE_BLE 3658 /** 3659 * @brief Get field handle from event SM_EVENT_PAIRING_STARTED 3660 * @param event packet 3661 * @return handle 3662 * @note: btstack_type H 3663 */ 3664 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){ 3665 return little_endian_read_16(event, 2); 3666 } 3667 /** 3668 * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED 3669 * @param event packet 3670 * @return addr_type 3671 * @note: btstack_type 1 3672 */ 3673 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){ 3674 return event[4]; 3675 } 3676 /** 3677 * @brief Get field address from event SM_EVENT_PAIRING_STARTED 3678 * @param event packet 3679 * @param Pointer to storage for address 3680 * @note: btstack_type B 3681 */ 3682 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){ 3683 reverse_bytes(&event[5], address, 6); 3684 } 3685 #endif 3686 3687 #ifdef ENABLE_BLE 3688 /** 3689 * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE 3690 * @param event packet 3691 * @return handle 3692 * @note: btstack_type H 3693 */ 3694 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){ 3695 return little_endian_read_16(event, 2); 3696 } 3697 /** 3698 * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE 3699 * @param event packet 3700 * @return addr_type 3701 * @note: btstack_type 1 3702 */ 3703 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){ 3704 return event[4]; 3705 } 3706 /** 3707 * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE 3708 * @param event packet 3709 * @param Pointer to storage for address 3710 * @note: btstack_type B 3711 */ 3712 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){ 3713 reverse_bytes(&event[5], address, 6); 3714 } 3715 /** 3716 * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE 3717 * @param event packet 3718 * @return status 3719 * @note: btstack_type 1 3720 */ 3721 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){ 3722 return event[11]; 3723 } 3724 /** 3725 * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE 3726 * @param event packet 3727 * @return reason 3728 * @note: btstack_type 1 3729 */ 3730 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){ 3731 return event[12]; 3732 } 3733 #endif 3734 3735 #ifdef ENABLE_BLE 3736 /** 3737 * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED 3738 * @param event packet 3739 * @return handle 3740 * @note: btstack_type H 3741 */ 3742 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){ 3743 return little_endian_read_16(event, 2); 3744 } 3745 /** 3746 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED 3747 * @param event packet 3748 * @return addr_type 3749 * @note: btstack_type 1 3750 */ 3751 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){ 3752 return event[4]; 3753 } 3754 /** 3755 * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED 3756 * @param event packet 3757 * @param Pointer to storage for address 3758 * @note: btstack_type B 3759 */ 3760 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){ 3761 reverse_bytes(&event[5], address, 6); 3762 } 3763 #endif 3764 3765 #ifdef ENABLE_BLE 3766 /** 3767 * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE 3768 * @param event packet 3769 * @return handle 3770 * @note: btstack_type H 3771 */ 3772 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){ 3773 return little_endian_read_16(event, 2); 3774 } 3775 /** 3776 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE 3777 * @param event packet 3778 * @return addr_type 3779 * @note: btstack_type 1 3780 */ 3781 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){ 3782 return event[4]; 3783 } 3784 /** 3785 * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE 3786 * @param event packet 3787 * @param Pointer to storage for address 3788 * @note: btstack_type B 3789 */ 3790 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){ 3791 reverse_bytes(&event[5], address, 6); 3792 } 3793 /** 3794 * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE 3795 * @param event packet 3796 * @return status 3797 * @note: btstack_type 1 3798 */ 3799 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){ 3800 return event[11]; 3801 } 3802 #endif 3803 3804 /** 3805 * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL 3806 * @param event packet 3807 * @return handle 3808 * @note: btstack_type H 3809 */ 3810 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){ 3811 return little_endian_read_16(event, 2); 3812 } 3813 /** 3814 * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL 3815 * @param event packet 3816 * @return security_level 3817 * @note: btstack_type 1 3818 */ 3819 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){ 3820 return event[4]; 3821 } 3822 3823 /** 3824 * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 3825 * @param event packet 3826 * @return status 3827 * @note: btstack_type 1 3828 */ 3829 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){ 3830 return event[2]; 3831 } 3832 /** 3833 * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 3834 * @param event packet 3835 * @param Pointer to storage for address 3836 * @note: btstack_type B 3837 */ 3838 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){ 3839 reverse_bytes(&event[3], address, 6); 3840 } 3841 3842 /** 3843 * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT 3844 * @param event packet 3845 * @return advertising_event_type 3846 * @note: btstack_type 1 3847 */ 3848 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){ 3849 return event[2]; 3850 } 3851 /** 3852 * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT 3853 * @param event packet 3854 * @return address_type 3855 * @note: btstack_type 1 3856 */ 3857 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){ 3858 return event[3]; 3859 } 3860 /** 3861 * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT 3862 * @param event packet 3863 * @param Pointer to storage for address 3864 * @note: btstack_type B 3865 */ 3866 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 3867 reverse_bytes(&event[4], address, 6); 3868 } 3869 /** 3870 * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT 3871 * @param event packet 3872 * @return rssi 3873 * @note: btstack_type 1 3874 */ 3875 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){ 3876 return event[10]; 3877 } 3878 /** 3879 * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT 3880 * @param event packet 3881 * @return data_length 3882 * @note: btstack_type J 3883 */ 3884 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){ 3885 return event[11]; 3886 } 3887 /** 3888 * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT 3889 * @param event packet 3890 * @return data 3891 * @note: btstack_type V 3892 */ 3893 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){ 3894 return &event[12]; 3895 } 3896 3897 /** 3898 * @brief Get field advertising_event_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3899 * @param event packet 3900 * @return advertising_event_type 3901 * @note: btstack_type 2 3902 */ 3903 static inline uint16_t gap_event_extended_advertising_report_get_advertising_event_type(const uint8_t * event){ 3904 return little_endian_read_16(event, 2); 3905 } 3906 /** 3907 * @brief Get field address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3908 * @param event packet 3909 * @return address_type 3910 * @note: btstack_type 1 3911 */ 3912 static inline uint8_t gap_event_extended_advertising_report_get_address_type(const uint8_t * event){ 3913 return event[4]; 3914 } 3915 /** 3916 * @brief Get field address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3917 * @param event packet 3918 * @param Pointer to storage for address 3919 * @note: btstack_type B 3920 */ 3921 static inline void gap_event_extended_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 3922 reverse_bytes(&event[5], address, 6); 3923 } 3924 /** 3925 * @brief Get field primary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3926 * @param event packet 3927 * @return primary_phy 3928 * @note: btstack_type 1 3929 */ 3930 static inline uint8_t gap_event_extended_advertising_report_get_primary_phy(const uint8_t * event){ 3931 return event[11]; 3932 } 3933 /** 3934 * @brief Get field secondary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3935 * @param event packet 3936 * @return secondary_phy 3937 * @note: btstack_type 1 3938 */ 3939 static inline uint8_t gap_event_extended_advertising_report_get_secondary_phy(const uint8_t * event){ 3940 return event[12]; 3941 } 3942 /** 3943 * @brief Get field advertising_sid from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3944 * @param event packet 3945 * @return advertising_sid 3946 * @note: btstack_type 1 3947 */ 3948 static inline uint8_t gap_event_extended_advertising_report_get_advertising_sid(const uint8_t * event){ 3949 return event[13]; 3950 } 3951 /** 3952 * @brief Get field tx_power from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3953 * @param event packet 3954 * @return tx_power 3955 * @note: btstack_type 1 3956 */ 3957 static inline uint8_t gap_event_extended_advertising_report_get_tx_power(const uint8_t * event){ 3958 return event[14]; 3959 } 3960 /** 3961 * @brief Get field rssi from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3962 * @param event packet 3963 * @return rssi 3964 * @note: btstack_type 1 3965 */ 3966 static inline uint8_t gap_event_extended_advertising_report_get_rssi(const uint8_t * event){ 3967 return event[15]; 3968 } 3969 /** 3970 * @brief Get field periodic_advertising_interval from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3971 * @param event packet 3972 * @return periodic_advertising_interval 3973 * @note: btstack_type 2 3974 */ 3975 static inline uint16_t gap_event_extended_advertising_report_get_periodic_advertising_interval(const uint8_t * event){ 3976 return little_endian_read_16(event, 16); 3977 } 3978 /** 3979 * @brief Get field direct_address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3980 * @param event packet 3981 * @return direct_address_type 3982 * @note: btstack_type 1 3983 */ 3984 static inline uint8_t gap_event_extended_advertising_report_get_direct_address_type(const uint8_t * event){ 3985 return event[18]; 3986 } 3987 /** 3988 * @brief Get field direct_address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3989 * @param event packet 3990 * @param Pointer to storage for direct_address 3991 * @note: btstack_type B 3992 */ 3993 static inline void gap_event_extended_advertising_report_get_direct_address(const uint8_t * event, bd_addr_t direct_address){ 3994 reverse_bytes(&event[19], direct_address, 6); 3995 } 3996 /** 3997 * @brief Get field data_length from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 3998 * @param event packet 3999 * @return data_length 4000 * @note: btstack_type J 4001 */ 4002 static inline uint8_t gap_event_extended_advertising_report_get_data_length(const uint8_t * event){ 4003 return event[25]; 4004 } 4005 /** 4006 * @brief Get field data from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4007 * @param event packet 4008 * @return data 4009 * @note: btstack_type V 4010 */ 4011 static inline const uint8_t * gap_event_extended_advertising_report_get_data(const uint8_t * event){ 4012 return &event[26]; 4013 } 4014 4015 /** 4016 * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT 4017 * @param event packet 4018 * @param Pointer to storage for bd_addr 4019 * @note: btstack_type B 4020 */ 4021 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4022 reverse_bytes(&event[2], bd_addr, 6); 4023 } 4024 /** 4025 * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT 4026 * @param event packet 4027 * @return page_scan_repetition_mode 4028 * @note: btstack_type 1 4029 */ 4030 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 4031 return event[8]; 4032 } 4033 /** 4034 * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT 4035 * @param event packet 4036 * @return class_of_device 4037 * @note: btstack_type 3 4038 */ 4039 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){ 4040 return little_endian_read_24(event, 9); 4041 } 4042 /** 4043 * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT 4044 * @param event packet 4045 * @return clock_offset 4046 * @note: btstack_type 2 4047 */ 4048 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){ 4049 return little_endian_read_16(event, 12); 4050 } 4051 /** 4052 * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT 4053 * @param event packet 4054 * @return rssi_available 4055 * @note: btstack_type 1 4056 */ 4057 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){ 4058 return event[14]; 4059 } 4060 /** 4061 * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT 4062 * @param event packet 4063 * @return rssi 4064 * @note: btstack_type 1 4065 */ 4066 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){ 4067 return event[15]; 4068 } 4069 /** 4070 * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT 4071 * @param event packet 4072 * @return device_id_available 4073 * @note: btstack_type 1 4074 */ 4075 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){ 4076 return event[16]; 4077 } 4078 /** 4079 * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT 4080 * @param event packet 4081 * @return device_id_vendor_id_source 4082 * @note: btstack_type 2 4083 */ 4084 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){ 4085 return little_endian_read_16(event, 17); 4086 } 4087 /** 4088 * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT 4089 * @param event packet 4090 * @return device_id_vendor_id 4091 * @note: btstack_type 2 4092 */ 4093 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){ 4094 return little_endian_read_16(event, 19); 4095 } 4096 /** 4097 * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT 4098 * @param event packet 4099 * @return device_id_product_id 4100 * @note: btstack_type 2 4101 */ 4102 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){ 4103 return little_endian_read_16(event, 21); 4104 } 4105 /** 4106 * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT 4107 * @param event packet 4108 * @return device_id_version 4109 * @note: btstack_type 2 4110 */ 4111 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){ 4112 return little_endian_read_16(event, 23); 4113 } 4114 /** 4115 * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT 4116 * @param event packet 4117 * @return name_available 4118 * @note: btstack_type 1 4119 */ 4120 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){ 4121 return event[25]; 4122 } 4123 /** 4124 * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT 4125 * @param event packet 4126 * @return name_len 4127 * @note: btstack_type J 4128 */ 4129 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){ 4130 return event[26]; 4131 } 4132 /** 4133 * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT 4134 * @param event packet 4135 * @return name 4136 * @note: btstack_type V 4137 */ 4138 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){ 4139 return &event[27]; 4140 } 4141 4142 /** 4143 * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE 4144 * @param event packet 4145 * @return status 4146 * @note: btstack_type 1 4147 */ 4148 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){ 4149 return event[2]; 4150 } 4151 4152 /** 4153 * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT 4154 * @param event packet 4155 * @return con_handle 4156 * @note: btstack_type H 4157 */ 4158 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){ 4159 return little_endian_read_16(event, 2); 4160 } 4161 /** 4162 * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT 4163 * @param event packet 4164 * @return rssi 4165 * @note: btstack_type 1 4166 */ 4167 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){ 4168 return event[4]; 4169 } 4170 4171 /** 4172 * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA 4173 * @param event packet 4174 * @return oob_data_present 4175 * @note: btstack_type 1 4176 */ 4177 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){ 4178 return event[2]; 4179 } 4180 /** 4181 * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA 4182 * @param event packet 4183 * @param Pointer to storage for c_192 4184 * @note: btstack_type K 4185 */ 4186 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){ 4187 reverse_bytes(&event[3], c_192, 16); 4188 } 4189 /** 4190 * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA 4191 * @param event packet 4192 * @param Pointer to storage for r_192 4193 * @note: btstack_type K 4194 */ 4195 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){ 4196 reverse_bytes(&event[19], r_192, 16); 4197 } 4198 /** 4199 * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA 4200 * @param event packet 4201 * @param Pointer to storage for c_256 4202 * @note: btstack_type K 4203 */ 4204 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){ 4205 reverse_bytes(&event[35], c_256, 16); 4206 } 4207 /** 4208 * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA 4209 * @param event packet 4210 * @param Pointer to storage for r_256 4211 * @note: btstack_type K 4212 */ 4213 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){ 4214 reverse_bytes(&event[51], r_256, 16); 4215 } 4216 4217 /** 4218 * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED 4219 * @param event packet 4220 * @return con_handle 4221 * @note: btstack_type H 4222 */ 4223 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){ 4224 return little_endian_read_16(event, 2); 4225 } 4226 /** 4227 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED 4228 * @param event packet 4229 * @param Pointer to storage for bd_addr 4230 * @note: btstack_type B 4231 */ 4232 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4233 reverse_bytes(&event[4], bd_addr, 6); 4234 } 4235 /** 4236 * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED 4237 * @param event packet 4238 * @return ssp 4239 * @note: btstack_type 1 4240 */ 4241 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){ 4242 return event[10]; 4243 } 4244 /** 4245 * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED 4246 * @param event packet 4247 * @return initiator 4248 * @note: btstack_type 1 4249 */ 4250 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){ 4251 return event[11]; 4252 } 4253 4254 /** 4255 * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE 4256 * @param event packet 4257 * @return con_handle 4258 * @note: btstack_type H 4259 */ 4260 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){ 4261 return little_endian_read_16(event, 2); 4262 } 4263 /** 4264 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE 4265 * @param event packet 4266 * @param Pointer to storage for bd_addr 4267 * @note: btstack_type B 4268 */ 4269 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4270 reverse_bytes(&event[4], bd_addr, 6); 4271 } 4272 /** 4273 * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE 4274 * @param event packet 4275 * @return status 4276 * @note: btstack_type 1 4277 */ 4278 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){ 4279 return event[10]; 4280 } 4281 4282 /** 4283 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4284 * @param event packet 4285 * @return status 4286 * @note: btstack_type 1 4287 */ 4288 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){ 4289 return event[3]; 4290 } 4291 /** 4292 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4293 * @param event packet 4294 * @return connection_handle 4295 * @note: btstack_type H 4296 */ 4297 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){ 4298 return little_endian_read_16(event, 4); 4299 } 4300 /** 4301 * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4302 * @param event packet 4303 * @return role 4304 * @note: btstack_type 1 4305 */ 4306 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){ 4307 return event[6]; 4308 } 4309 /** 4310 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4311 * @param event packet 4312 * @return peer_address_type 4313 * @note: btstack_type 1 4314 */ 4315 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){ 4316 return event[7]; 4317 } 4318 /** 4319 * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4320 * @param event packet 4321 * @param Pointer to storage for peer_address 4322 * @note: btstack_type B 4323 */ 4324 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){ 4325 reverse_bytes(&event[8], peer_address, 6); 4326 } 4327 /** 4328 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4329 * @param event packet 4330 * @return conn_interval 4331 * @note: btstack_type 2 4332 */ 4333 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){ 4334 return little_endian_read_16(event, 14); 4335 } 4336 /** 4337 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4338 * @param event packet 4339 * @return conn_latency 4340 * @note: btstack_type 2 4341 */ 4342 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){ 4343 return little_endian_read_16(event, 16); 4344 } 4345 /** 4346 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4347 * @param event packet 4348 * @return supervision_timeout 4349 * @note: btstack_type 2 4350 */ 4351 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){ 4352 return little_endian_read_16(event, 18); 4353 } 4354 /** 4355 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4356 * @param event packet 4357 * @return master_clock_accuracy 4358 * @note: btstack_type 1 4359 */ 4360 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 4361 return event[20]; 4362 } 4363 4364 /** 4365 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4366 * @param event packet 4367 * @return status 4368 * @note: btstack_type 1 4369 */ 4370 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){ 4371 return event[3]; 4372 } 4373 /** 4374 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4375 * @param event packet 4376 * @return connection_handle 4377 * @note: btstack_type H 4378 */ 4379 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){ 4380 return little_endian_read_16(event, 4); 4381 } 4382 /** 4383 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4384 * @param event packet 4385 * @return conn_interval 4386 * @note: btstack_type 2 4387 */ 4388 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){ 4389 return little_endian_read_16(event, 6); 4390 } 4391 /** 4392 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4393 * @param event packet 4394 * @return conn_latency 4395 * @note: btstack_type 2 4396 */ 4397 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){ 4398 return little_endian_read_16(event, 8); 4399 } 4400 /** 4401 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4402 * @param event packet 4403 * @return supervision_timeout 4404 * @note: btstack_type 2 4405 */ 4406 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){ 4407 return little_endian_read_16(event, 10); 4408 } 4409 4410 /** 4411 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 4412 * @param event packet 4413 * @return connection_handle 4414 * @note: btstack_type H 4415 */ 4416 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){ 4417 return little_endian_read_16(event, 3); 4418 } 4419 /** 4420 * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 4421 * @param event packet 4422 * @return le_features 4423 * @note: btstack_type D 4424 */ 4425 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){ 4426 return (const uint8_t *) &event[5]; 4427 } 4428 4429 /** 4430 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4431 * @param event packet 4432 * @return connection_handle 4433 * @note: btstack_type H 4434 */ 4435 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){ 4436 return little_endian_read_16(event, 3); 4437 } 4438 /** 4439 * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4440 * @param event packet 4441 * @return random_number 4442 * @note: btstack_type D 4443 */ 4444 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){ 4445 return (const uint8_t *) &event[5]; 4446 } 4447 /** 4448 * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4449 * @param event packet 4450 * @return encryption_diversifier 4451 * @note: btstack_type 2 4452 */ 4453 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){ 4454 return little_endian_read_16(event, 13); 4455 } 4456 4457 /** 4458 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4459 * @param event packet 4460 * @return connection_handle 4461 * @note: btstack_type H 4462 */ 4463 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){ 4464 return little_endian_read_16(event, 3); 4465 } 4466 /** 4467 * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4468 * @param event packet 4469 * @return interval_min 4470 * @note: btstack_type 2 4471 */ 4472 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){ 4473 return little_endian_read_16(event, 5); 4474 } 4475 /** 4476 * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4477 * @param event packet 4478 * @return interval_max 4479 * @note: btstack_type 2 4480 */ 4481 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){ 4482 return little_endian_read_16(event, 7); 4483 } 4484 /** 4485 * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4486 * @param event packet 4487 * @return latency 4488 * @note: btstack_type 2 4489 */ 4490 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){ 4491 return little_endian_read_16(event, 9); 4492 } 4493 /** 4494 * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4495 * @param event packet 4496 * @return timeout 4497 * @note: btstack_type 2 4498 */ 4499 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){ 4500 return little_endian_read_16(event, 11); 4501 } 4502 4503 /** 4504 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4505 * @param event packet 4506 * @return connection_handle 4507 * @note: btstack_type H 4508 */ 4509 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){ 4510 return little_endian_read_16(event, 3); 4511 } 4512 /** 4513 * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4514 * @param event packet 4515 * @return max_tx_octets 4516 * @note: btstack_type 2 4517 */ 4518 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){ 4519 return little_endian_read_16(event, 5); 4520 } 4521 /** 4522 * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4523 * @param event packet 4524 * @return max_tx_time 4525 * @note: btstack_type 2 4526 */ 4527 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){ 4528 return little_endian_read_16(event, 7); 4529 } 4530 /** 4531 * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4532 * @param event packet 4533 * @return max_rx_octets 4534 * @note: btstack_type 2 4535 */ 4536 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){ 4537 return little_endian_read_16(event, 9); 4538 } 4539 /** 4540 * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4541 * @param event packet 4542 * @return max_rx_time 4543 * @note: btstack_type 2 4544 */ 4545 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){ 4546 return little_endian_read_16(event, 11); 4547 } 4548 4549 /** 4550 * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4551 * @param event packet 4552 * @return status 4553 * @note: btstack_type 1 4554 */ 4555 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){ 4556 return event[3]; 4557 } 4558 /** 4559 * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4560 * @param event packet 4561 * @param Pointer to storage for dhkey_x 4562 * @note: btstack_type Q 4563 */ 4564 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){ 4565 reverse_bytes(&event[4], dhkey_x, 32); 4566 } 4567 /** 4568 * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4569 * @param event packet 4570 * @param Pointer to storage for dhkey_y 4571 * @note: btstack_type Q 4572 */ 4573 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){ 4574 reverse_bytes(&event[36], dhkey_y, 32); 4575 } 4576 4577 /** 4578 * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 4579 * @param event packet 4580 * @return status 4581 * @note: btstack_type 1 4582 */ 4583 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){ 4584 return event[3]; 4585 } 4586 /** 4587 * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 4588 * @param event packet 4589 * @param Pointer to storage for dhkey 4590 * @note: btstack_type Q 4591 */ 4592 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){ 4593 reverse_bytes(&event[4], dhkey, 32); 4594 } 4595 4596 /** 4597 * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4598 * @param event packet 4599 * @return status 4600 * @note: btstack_type 1 4601 */ 4602 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){ 4603 return event[3]; 4604 } 4605 /** 4606 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4607 * @param event packet 4608 * @return connection_handle 4609 * @note: btstack_type H 4610 */ 4611 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){ 4612 return little_endian_read_16(event, 4); 4613 } 4614 /** 4615 * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4616 * @param event packet 4617 * @return role 4618 * @note: btstack_type 1 4619 */ 4620 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){ 4621 return event[6]; 4622 } 4623 /** 4624 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4625 * @param event packet 4626 * @return peer_address_type 4627 * @note: btstack_type 1 4628 */ 4629 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){ 4630 return event[7]; 4631 } 4632 /** 4633 * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4634 * @param event packet 4635 * @param Pointer to storage for peer_addresss 4636 * @note: btstack_type B 4637 */ 4638 static inline void hci_subevent_le_enhanced_connection_complete_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){ 4639 reverse_bytes(&event[8], peer_addresss, 6); 4640 } 4641 /** 4642 * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4643 * @param event packet 4644 * @param Pointer to storage for local_resolvable_private_addres 4645 * @note: btstack_type B 4646 */ 4647 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){ 4648 reverse_bytes(&event[14], local_resolvable_private_addres, 6); 4649 } 4650 /** 4651 * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4652 * @param event packet 4653 * @param Pointer to storage for peer_resolvable_private_addres 4654 * @note: btstack_type B 4655 */ 4656 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){ 4657 reverse_bytes(&event[20], peer_resolvable_private_addres, 6); 4658 } 4659 /** 4660 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4661 * @param event packet 4662 * @return conn_interval 4663 * @note: btstack_type 2 4664 */ 4665 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){ 4666 return little_endian_read_16(event, 26); 4667 } 4668 /** 4669 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4670 * @param event packet 4671 * @return conn_latency 4672 * @note: btstack_type 2 4673 */ 4674 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){ 4675 return little_endian_read_16(event, 28); 4676 } 4677 /** 4678 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4679 * @param event packet 4680 * @return supervision_timeout 4681 * @note: btstack_type 2 4682 */ 4683 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){ 4684 return little_endian_read_16(event, 30); 4685 } 4686 /** 4687 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 4688 * @param event packet 4689 * @return master_clock_accuracy 4690 * @note: btstack_type 1 4691 */ 4692 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 4693 return event[32]; 4694 } 4695 4696 /** 4697 * @brief Get field status from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 4698 * @param event packet 4699 * @return status 4700 * @note: btstack_type 1 4701 */ 4702 static inline uint8_t hci_subevent_le_phy_update_complete_get_status(const uint8_t * event){ 4703 return event[3]; 4704 } 4705 /** 4706 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 4707 * @param event packet 4708 * @return connection_handle 4709 * @note: btstack_type H 4710 */ 4711 static inline hci_con_handle_t hci_subevent_le_phy_update_complete_get_connection_handle(const uint8_t * event){ 4712 return little_endian_read_16(event, 4); 4713 } 4714 /** 4715 * @brief Get field tx_phy from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 4716 * @param event packet 4717 * @return tx_phy 4718 * @note: btstack_type 1 4719 */ 4720 static inline uint8_t hci_subevent_le_phy_update_complete_get_tx_phy(const uint8_t * event){ 4721 return event[6]; 4722 } 4723 4724 /** 4725 * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4726 * @param event packet 4727 * @return status 4728 * @note: btstack_type 1 4729 */ 4730 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_status(const uint8_t * event){ 4731 return event[3]; 4732 } 4733 /** 4734 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4735 * @param event packet 4736 * @return sync_handle 4737 * @note: btstack_type H 4738 */ 4739 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_establishment_get_sync_handle(const uint8_t * event){ 4740 return little_endian_read_16(event, 4); 4741 } 4742 /** 4743 * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4744 * @param event packet 4745 * @return advertising_sid 4746 * @note: btstack_type 1 4747 */ 4748 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertising_sid(const uint8_t * event){ 4749 return event[6]; 4750 } 4751 /** 4752 * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4753 * @param event packet 4754 * @return advertiser_address_type 4755 * @note: btstack_type 1 4756 */ 4757 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address_type(const uint8_t * event){ 4758 return event[7]; 4759 } 4760 /** 4761 * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4762 * @param event packet 4763 * @param Pointer to storage for advertiser_address 4764 * @note: btstack_type B 4765 */ 4766 static inline void hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){ 4767 reverse_bytes(&event[8], advertiser_address, 6); 4768 } 4769 /** 4770 * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4771 * @param event packet 4772 * @return advertiser_phy 4773 * @note: btstack_type 1 4774 */ 4775 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_phy(const uint8_t * event){ 4776 return event[14]; 4777 } 4778 /** 4779 * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4780 * @param event packet 4781 * @return periodic_advertising_interval 4782 * @note: btstack_type 2 4783 */ 4784 static inline uint16_t hci_subevent_le_periodic_advertising_sync_establishment_get_periodic_advertising_interval(const uint8_t * event){ 4785 return little_endian_read_16(event, 15); 4786 } 4787 /** 4788 * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 4789 * @param event packet 4790 * @return advertiser_clock_accuracy 4791 * @note: btstack_type 1 4792 */ 4793 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_clock_accuracy(const uint8_t * event){ 4794 return event[17]; 4795 } 4796 4797 /** 4798 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4799 * @param event packet 4800 * @return sync_handle 4801 * @note: btstack_type H 4802 */ 4803 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_report_get_sync_handle(const uint8_t * event){ 4804 return little_endian_read_16(event, 3); 4805 } 4806 /** 4807 * @brief Get field tx_power from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4808 * @param event packet 4809 * @return tx_power 4810 * @note: btstack_type 1 4811 */ 4812 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_tx_power(const uint8_t * event){ 4813 return event[5]; 4814 } 4815 /** 4816 * @brief Get field rssi from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4817 * @param event packet 4818 * @return rssi 4819 * @note: btstack_type 1 4820 */ 4821 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_rssi(const uint8_t * event){ 4822 return event[6]; 4823 } 4824 /** 4825 * @brief Get field cte_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4826 * @param event packet 4827 * @return cte_type 4828 * @note: btstack_type 1 4829 */ 4830 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_cte_type(const uint8_t * event){ 4831 return event[7]; 4832 } 4833 /** 4834 * @brief Get field data_status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4835 * @param event packet 4836 * @return data_status 4837 * @note: btstack_type 1 4838 */ 4839 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_status(const uint8_t * event){ 4840 return event[8]; 4841 } 4842 /** 4843 * @brief Get field data_length from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4844 * @param event packet 4845 * @return data_length 4846 * @note: btstack_type J 4847 */ 4848 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_length(const uint8_t * event){ 4849 return event[9]; 4850 } 4851 /** 4852 * @brief Get field data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 4853 * @param event packet 4854 * @return data 4855 * @note: btstack_type V 4856 */ 4857 static inline const uint8_t * hci_subevent_le_periodic_advertising_report_get_data(const uint8_t * event){ 4858 return &event[10]; 4859 } 4860 4861 /** 4862 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_LOST 4863 * @param event packet 4864 * @return sync_handle 4865 * @note: btstack_type H 4866 */ 4867 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_lost_get_sync_handle(const uint8_t * event){ 4868 return little_endian_read_16(event, 3); 4869 } 4870 4871 4872 /** 4873 * @brief Get field status from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4874 * @param event packet 4875 * @return status 4876 * @note: btstack_type 1 4877 */ 4878 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_status(const uint8_t * event){ 4879 return event[3]; 4880 } 4881 /** 4882 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4883 * @param event packet 4884 * @return advertising_handle 4885 * @note: btstack_type 1 4886 */ 4887 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_advertising_handle(const uint8_t * event){ 4888 return event[4]; 4889 } 4890 /** 4891 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4892 * @param event packet 4893 * @return connection_handle 4894 * @note: btstack_type H 4895 */ 4896 static inline hci_con_handle_t hci_subevent_le_advertising_set_terminated_get_connection_handle(const uint8_t * event){ 4897 return little_endian_read_16(event, 5); 4898 } 4899 /** 4900 * @brief Get field num_completed_exteneded_advertising_events from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 4901 * @param event packet 4902 * @return num_completed_exteneded_advertising_events 4903 * @note: btstack_type 1 4904 */ 4905 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_num_completed_exteneded_advertising_events(const uint8_t * event){ 4906 return event[7]; 4907 } 4908 4909 /** 4910 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 4911 * @param event packet 4912 * @return advertising_handle 4913 * @note: btstack_type 1 4914 */ 4915 static inline uint8_t hci_subevent_le_scan_request_received_get_advertising_handle(const uint8_t * event){ 4916 return event[3]; 4917 } 4918 /** 4919 * @brief Get field scanner_address_type from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 4920 * @param event packet 4921 * @return scanner_address_type 4922 * @note: btstack_type 1 4923 */ 4924 static inline uint8_t hci_subevent_le_scan_request_received_get_scanner_address_type(const uint8_t * event){ 4925 return event[4]; 4926 } 4927 /** 4928 * @brief Get field scanner_address from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 4929 * @param event packet 4930 * @param Pointer to storage for scanner_address 4931 * @note: btstack_type B 4932 */ 4933 static inline void hci_subevent_le_scan_request_received_get_scanner_address(const uint8_t * event, bd_addr_t scanner_address){ 4934 reverse_bytes(&event[5], scanner_address, 6); 4935 } 4936 4937 /** 4938 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM 4939 * @param event packet 4940 * @return connection_handle 4941 * @note: btstack_type H 4942 */ 4943 static inline hci_con_handle_t hci_subevent_le_channel_selection_algorithm_get_connection_handle(const uint8_t * event){ 4944 return little_endian_read_16(event, 3); 4945 } 4946 /** 4947 * @brief Get field channel_selection_algorithm from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM 4948 * @param event packet 4949 * @return channel_selection_algorithm 4950 * @note: btstack_type 1 4951 */ 4952 static inline uint8_t hci_subevent_le_channel_selection_algorithm_get_channel_selection_algorithm(const uint8_t * event){ 4953 return event[5]; 4954 } 4955 4956 /** 4957 * @brief Get field status from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED 4958 * @param event packet 4959 * @return status 4960 * @note: btstack_type 1 4961 */ 4962 static inline uint8_t hci_subevent_le_le_cte_request_failed_get_status(const uint8_t * event){ 4963 return event[3]; 4964 } 4965 /** 4966 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED 4967 * @param event packet 4968 * @return connection_handle 4969 * @note: btstack_type H 4970 */ 4971 static inline hci_con_handle_t hci_subevent_le_le_cte_request_failed_get_connection_handle(const uint8_t * event){ 4972 return little_endian_read_16(event, 4); 4973 } 4974 4975 /** 4976 * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4977 * @param event packet 4978 * @return status 4979 * @note: btstack_type 1 4980 */ 4981 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_status(const uint8_t * event){ 4982 return event[3]; 4983 } 4984 /** 4985 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4986 * @param event packet 4987 * @return connection_handle 4988 * @note: btstack_type H 4989 */ 4990 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_connection_handle(const uint8_t * event){ 4991 return little_endian_read_16(event, 4); 4992 } 4993 /** 4994 * @brief Get field service_data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 4995 * @param event packet 4996 * @return service_data 4997 * @note: btstack_type 2 4998 */ 4999 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_service_data(const uint8_t * event){ 5000 return little_endian_read_16(event, 6); 5001 } 5002 /** 5003 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5004 * @param event packet 5005 * @return sync_handle 5006 * @note: btstack_type H 5007 */ 5008 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_sync_handle(const uint8_t * event){ 5009 return little_endian_read_16(event, 8); 5010 } 5011 /** 5012 * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5013 * @param event packet 5014 * @return advertising_sid 5015 * @note: btstack_type 1 5016 */ 5017 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertising_sid(const uint8_t * event){ 5018 return event[10]; 5019 } 5020 /** 5021 * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5022 * @param event packet 5023 * @return advertiser_address_type 5024 * @note: btstack_type 1 5025 */ 5026 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address_type(const uint8_t * event){ 5027 return event[11]; 5028 } 5029 /** 5030 * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5031 * @param event packet 5032 * @param Pointer to storage for advertiser_address 5033 * @note: btstack_type B 5034 */ 5035 static inline void hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){ 5036 reverse_bytes(&event[12], advertiser_address, 6); 5037 } 5038 /** 5039 * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5040 * @param event packet 5041 * @return advertiser_phy 5042 * @note: btstack_type 1 5043 */ 5044 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_phy(const uint8_t * event){ 5045 return event[18]; 5046 } 5047 /** 5048 * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5049 * @param event packet 5050 * @return periodic_advertising_interval 5051 * @note: btstack_type 2 5052 */ 5053 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_periodic_advertising_interval(const uint8_t * event){ 5054 return little_endian_read_16(event, 19); 5055 } 5056 /** 5057 * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5058 * @param event packet 5059 * @return advertiser_clock_accuracy 5060 * @note: btstack_type 1 5061 */ 5062 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_clock_accuracy(const uint8_t * event){ 5063 return event[21]; 5064 } 5065 5066 /** 5067 * @brief Get field status from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5068 * @param event packet 5069 * @return status 5070 * @note: btstack_type 1 5071 */ 5072 static inline uint8_t hci_subevent_le_cis_established_get_status(const uint8_t * event){ 5073 return event[3]; 5074 } 5075 /** 5076 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5077 * @param event packet 5078 * @return connection_handle 5079 * @note: btstack_type H 5080 */ 5081 static inline hci_con_handle_t hci_subevent_le_cis_established_get_connection_handle(const uint8_t * event){ 5082 return little_endian_read_16(event, 4); 5083 } 5084 /** 5085 * @brief Get field cig_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5086 * @param event packet 5087 * @return cig_sync_delay 5088 * @note: btstack_type 3 5089 */ 5090 static inline uint32_t hci_subevent_le_cis_established_get_cig_sync_delay(const uint8_t * event){ 5091 return little_endian_read_24(event, 6); 5092 } 5093 /** 5094 * @brief Get field cis_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5095 * @param event packet 5096 * @return cis_sync_delay 5097 * @note: btstack_type 3 5098 */ 5099 static inline uint32_t hci_subevent_le_cis_established_get_cis_sync_delay(const uint8_t * event){ 5100 return little_endian_read_24(event, 9); 5101 } 5102 /** 5103 * @brief Get field transport_latency_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5104 * @param event packet 5105 * @return transport_latency_c_to_p 5106 * @note: btstack_type 3 5107 */ 5108 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_c_to_p(const uint8_t * event){ 5109 return little_endian_read_24(event, 12); 5110 } 5111 /** 5112 * @brief Get field transport_latency_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5113 * @param event packet 5114 * @return transport_latency_p_to_c 5115 * @note: btstack_type 3 5116 */ 5117 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_p_to_c(const uint8_t * event){ 5118 return little_endian_read_24(event, 15); 5119 } 5120 /** 5121 * @brief Get field phy_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5122 * @param event packet 5123 * @return phy_c_to_p 5124 * @note: btstack_type 1 5125 */ 5126 static inline uint8_t hci_subevent_le_cis_established_get_phy_c_to_p(const uint8_t * event){ 5127 return event[18]; 5128 } 5129 /** 5130 * @brief Get field phy_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5131 * @param event packet 5132 * @return phy_p_to_c 5133 * @note: btstack_type 1 5134 */ 5135 static inline uint8_t hci_subevent_le_cis_established_get_phy_p_to_c(const uint8_t * event){ 5136 return event[19]; 5137 } 5138 /** 5139 * @brief Get field nse from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5140 * @param event packet 5141 * @return nse 5142 * @note: btstack_type 1 5143 */ 5144 static inline uint8_t hci_subevent_le_cis_established_get_nse(const uint8_t * event){ 5145 return event[20]; 5146 } 5147 /** 5148 * @brief Get field bn_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5149 * @param event packet 5150 * @return bn_c_to_p 5151 * @note: btstack_type 1 5152 */ 5153 static inline uint8_t hci_subevent_le_cis_established_get_bn_c_to_p(const uint8_t * event){ 5154 return event[21]; 5155 } 5156 /** 5157 * @brief Get field bn_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5158 * @param event packet 5159 * @return bn_p_to_c 5160 * @note: btstack_type 1 5161 */ 5162 static inline uint8_t hci_subevent_le_cis_established_get_bn_p_to_c(const uint8_t * event){ 5163 return event[22]; 5164 } 5165 /** 5166 * @brief Get field ft_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5167 * @param event packet 5168 * @return ft_c_to_p 5169 * @note: btstack_type 1 5170 */ 5171 static inline uint8_t hci_subevent_le_cis_established_get_ft_c_to_p(const uint8_t * event){ 5172 return event[23]; 5173 } 5174 /** 5175 * @brief Get field ft_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5176 * @param event packet 5177 * @return ft_p_to_c 5178 * @note: btstack_type 1 5179 */ 5180 static inline uint8_t hci_subevent_le_cis_established_get_ft_p_to_c(const uint8_t * event){ 5181 return event[24]; 5182 } 5183 /** 5184 * @brief Get field max_pdu_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5185 * @param event packet 5186 * @return max_pdu_c_to_p 5187 * @note: btstack_type 2 5188 */ 5189 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_c_to_p(const uint8_t * event){ 5190 return little_endian_read_16(event, 25); 5191 } 5192 /** 5193 * @brief Get field max_pdu_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5194 * @param event packet 5195 * @return max_pdu_p_to_c 5196 * @note: btstack_type 2 5197 */ 5198 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_p_to_c(const uint8_t * event){ 5199 return little_endian_read_16(event, 27); 5200 } 5201 /** 5202 * @brief Get field iso_interval from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5203 * @param event packet 5204 * @return iso_interval 5205 * @note: btstack_type 2 5206 */ 5207 static inline uint16_t hci_subevent_le_cis_established_get_iso_interval(const uint8_t * event){ 5208 return little_endian_read_16(event, 29); 5209 } 5210 5211 /** 5212 * @brief Get field acl_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST 5213 * @param event packet 5214 * @return acl_connection_handle 5215 * @note: btstack_type H 5216 */ 5217 static inline hci_con_handle_t hci_subevent_le_cis_request_get_acl_connection_handle(const uint8_t * event){ 5218 return little_endian_read_16(event, 3); 5219 } 5220 /** 5221 * @brief Get field cis_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST 5222 * @param event packet 5223 * @return cis_connection_handle 5224 * @note: btstack_type H 5225 */ 5226 static inline hci_con_handle_t hci_subevent_le_cis_request_get_cis_connection_handle(const uint8_t * event){ 5227 return little_endian_read_16(event, 5); 5228 } 5229 /** 5230 * @brief Get field cig_id from event HCI_SUBEVENT_LE_CIS_REQUEST 5231 * @param event packet 5232 * @return cig_id 5233 * @note: btstack_type 1 5234 */ 5235 static inline uint8_t hci_subevent_le_cis_request_get_cig_id(const uint8_t * event){ 5236 return event[7]; 5237 } 5238 /** 5239 * @brief Get field cis_id from event HCI_SUBEVENT_LE_CIS_REQUEST 5240 * @param event packet 5241 * @return cis_id 5242 * @note: btstack_type 1 5243 */ 5244 static inline uint8_t hci_subevent_le_cis_request_get_cis_id(const uint8_t * event){ 5245 return event[8]; 5246 } 5247 5248 /** 5249 * @brief Get field big_handle from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE 5250 * @param event packet 5251 * @return big_handle 5252 * @note: btstack_type 1 5253 */ 5254 static inline uint8_t hci_subevent_le_terminate_big_complete_get_big_handle(const uint8_t * event){ 5255 return event[3]; 5256 } 5257 /** 5258 * @brief Get field reason from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE 5259 * @param event packet 5260 * @return reason 5261 * @note: btstack_type 1 5262 */ 5263 static inline uint8_t hci_subevent_le_terminate_big_complete_get_reason(const uint8_t * event){ 5264 return event[4]; 5265 } 5266 5267 /** 5268 * @brief Get field big_handle from event HCI_SUBEVENT_LE_BIG_SYNC_LOST 5269 * @param event packet 5270 * @return big_handle 5271 * @note: btstack_type 1 5272 */ 5273 static inline uint8_t hci_subevent_le_big_sync_lost_get_big_handle(const uint8_t * event){ 5274 return event[3]; 5275 } 5276 /** 5277 * @brief Get field reason from event HCI_SUBEVENT_LE_BIG_SYNC_LOST 5278 * @param event packet 5279 * @return reason 5280 * @note: btstack_type 1 5281 */ 5282 static inline uint8_t hci_subevent_le_big_sync_lost_get_reason(const uint8_t * event){ 5283 return event[4]; 5284 } 5285 5286 /** 5287 * @brief Get field status from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5288 * @param event packet 5289 * @return status 5290 * @note: btstack_type 1 5291 */ 5292 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_status(const uint8_t * event){ 5293 return event[3]; 5294 } 5295 /** 5296 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5297 * @param event packet 5298 * @return connection_handle 5299 * @note: btstack_type H 5300 */ 5301 static inline hci_con_handle_t hci_subevent_le_request_peer_sca_complete_get_connection_handle(const uint8_t * event){ 5302 return little_endian_read_16(event, 4); 5303 } 5304 /** 5305 * @brief Get field peer_clock_accuracy from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5306 * @param event packet 5307 * @return peer_clock_accuracy 5308 * @note: btstack_type 1 5309 */ 5310 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_peer_clock_accuracy(const uint8_t * event){ 5311 return event[6]; 5312 } 5313 5314 /** 5315 * @brief Get field status from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5316 * @param event packet 5317 * @return status 5318 * @note: btstack_type 1 5319 */ 5320 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_status(const uint8_t * event){ 5321 return event[3]; 5322 } 5323 /** 5324 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5325 * @param event packet 5326 * @return connection_handle 5327 * @note: btstack_type H 5328 */ 5329 static inline hci_con_handle_t hci_subevent_le_transmit_power_reporting_get_connection_handle(const uint8_t * event){ 5330 return little_endian_read_16(event, 4); 5331 } 5332 /** 5333 * @brief Get field reason from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5334 * @param event packet 5335 * @return reason 5336 * @note: btstack_type 1 5337 */ 5338 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_reason(const uint8_t * event){ 5339 return event[6]; 5340 } 5341 /** 5342 * @brief Get field phy from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5343 * @param event packet 5344 * @return phy 5345 * @note: btstack_type 1 5346 */ 5347 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_phy(const uint8_t * event){ 5348 return event[7]; 5349 } 5350 /** 5351 * @brief Get field tx_power_level from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5352 * @param event packet 5353 * @return tx_power_level 5354 * @note: btstack_type 1 5355 */ 5356 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level(const uint8_t * event){ 5357 return event[8]; 5358 } 5359 /** 5360 * @brief Get field tx_power_level_flag from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5361 * @param event packet 5362 * @return tx_power_level_flag 5363 * @note: btstack_type 1 5364 */ 5365 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level_flag(const uint8_t * event){ 5366 return event[9]; 5367 } 5368 /** 5369 * @brief Get field delta from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5370 * @param event packet 5371 * @return delta 5372 * @note: btstack_type 1 5373 */ 5374 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_delta(const uint8_t * event){ 5375 return event[10]; 5376 } 5377 5378 /** 5379 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5380 * @param event packet 5381 * @return sync_handle 5382 * @note: btstack_type H 5383 */ 5384 static inline hci_con_handle_t hci_subevent_le_biginfo_advertising_report_get_sync_handle(const uint8_t * event){ 5385 return little_endian_read_16(event, 3); 5386 } 5387 /** 5388 * @brief Get field num_bis from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5389 * @param event packet 5390 * @return num_bis 5391 * @note: btstack_type 1 5392 */ 5393 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_num_bis(const uint8_t * event){ 5394 return event[5]; 5395 } 5396 /** 5397 * @brief Get field nse from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5398 * @param event packet 5399 * @return nse 5400 * @note: btstack_type 1 5401 */ 5402 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_nse(const uint8_t * event){ 5403 return event[6]; 5404 } 5405 /** 5406 * @brief Get field iso_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5407 * @param event packet 5408 * @return iso_interval 5409 * @note: btstack_type 2 5410 */ 5411 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_iso_interval(const uint8_t * event){ 5412 return little_endian_read_16(event, 7); 5413 } 5414 /** 5415 * @brief Get field bn from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5416 * @param event packet 5417 * @return bn 5418 * @note: btstack_type 1 5419 */ 5420 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_bn(const uint8_t * event){ 5421 return event[9]; 5422 } 5423 /** 5424 * @brief Get field pto from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5425 * @param event packet 5426 * @return pto 5427 * @note: btstack_type 1 5428 */ 5429 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_pto(const uint8_t * event){ 5430 return event[10]; 5431 } 5432 /** 5433 * @brief Get field irc from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5434 * @param event packet 5435 * @return irc 5436 * @note: btstack_type 1 5437 */ 5438 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_irc(const uint8_t * event){ 5439 return event[11]; 5440 } 5441 /** 5442 * @brief Get field max_pdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5443 * @param event packet 5444 * @return max_pdu 5445 * @note: btstack_type 2 5446 */ 5447 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_pdu(const uint8_t * event){ 5448 return little_endian_read_16(event, 12); 5449 } 5450 /** 5451 * @brief Get field sdu_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5452 * @param event packet 5453 * @return sdu_interval 5454 * @note: btstack_type 3 5455 */ 5456 static inline uint32_t hci_subevent_le_biginfo_advertising_report_get_sdu_interval(const uint8_t * event){ 5457 return little_endian_read_24(event, 14); 5458 } 5459 /** 5460 * @brief Get field max_sdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5461 * @param event packet 5462 * @return max_sdu 5463 * @note: btstack_type 2 5464 */ 5465 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_sdu(const uint8_t * event){ 5466 return little_endian_read_16(event, 17); 5467 } 5468 /** 5469 * @brief Get field phy from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5470 * @param event packet 5471 * @return phy 5472 * @note: btstack_type 1 5473 */ 5474 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_phy(const uint8_t * event){ 5475 return event[19]; 5476 } 5477 /** 5478 * @brief Get field framing from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5479 * @param event packet 5480 * @return framing 5481 * @note: btstack_type 1 5482 */ 5483 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_framing(const uint8_t * event){ 5484 return event[20]; 5485 } 5486 /** 5487 * @brief Get field encryption from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5488 * @param event packet 5489 * @return encryption 5490 * @note: btstack_type 1 5491 */ 5492 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_encryption(const uint8_t * event){ 5493 return event[21]; 5494 } 5495 5496 /** 5497 * @brief Get field status from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5498 * @param event packet 5499 * @return status 5500 * @note: btstack_type 1 5501 */ 5502 static inline uint8_t hci_subevent_le_subrate_change_get_status(const uint8_t * event){ 5503 return event[3]; 5504 } 5505 /** 5506 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5507 * @param event packet 5508 * @return connection_handle 5509 * @note: btstack_type H 5510 */ 5511 static inline hci_con_handle_t hci_subevent_le_subrate_change_get_connection_handle(const uint8_t * event){ 5512 return little_endian_read_16(event, 4); 5513 } 5514 /** 5515 * @brief Get field subrate_factor from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5516 * @param event packet 5517 * @return subrate_factor 5518 * @note: btstack_type 2 5519 */ 5520 static inline uint16_t hci_subevent_le_subrate_change_get_subrate_factor(const uint8_t * event){ 5521 return little_endian_read_16(event, 6); 5522 } 5523 /** 5524 * @brief Get field peripheral_latency from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5525 * @param event packet 5526 * @return peripheral_latency 5527 * @note: btstack_type 2 5528 */ 5529 static inline uint16_t hci_subevent_le_subrate_change_get_peripheral_latency(const uint8_t * event){ 5530 return little_endian_read_16(event, 8); 5531 } 5532 /** 5533 * @brief Get field continuation_number from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5534 * @param event packet 5535 * @return continuation_number 5536 * @note: btstack_type 2 5537 */ 5538 static inline uint16_t hci_subevent_le_subrate_change_get_continuation_number(const uint8_t * event){ 5539 return little_endian_read_16(event, 10); 5540 } 5541 /** 5542 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5543 * @param event packet 5544 * @return supervision_timeout 5545 * @note: btstack_type 2 5546 */ 5547 static inline uint16_t hci_subevent_le_subrate_change_get_supervision_timeout(const uint8_t * event){ 5548 return little_endian_read_16(event, 12); 5549 } 5550 5551 /** 5552 * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 5553 * @param event packet 5554 * @return advertisement_handle 5555 * @note: btstack_type 1 5556 */ 5557 static inline uint8_t gap_subevent_advertising_set_installed_get_advertisement_handle(const uint8_t * event){ 5558 return event[3]; 5559 } 5560 /** 5561 * @brief Get field status from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 5562 * @param event packet 5563 * @return status 5564 * @note: btstack_type 1 5565 */ 5566 static inline uint8_t gap_subevent_advertising_set_installed_get_status(const uint8_t * event){ 5567 return event[4]; 5568 } 5569 /** 5570 * @brief Get field selected_tx_power from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 5571 * @param event packet 5572 * @return selected_tx_power 5573 * @note: btstack_type 1 5574 */ 5575 static inline uint8_t gap_subevent_advertising_set_installed_get_selected_tx_power(const uint8_t * event){ 5576 return event[5]; 5577 } 5578 5579 /** 5580 * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_REMOVED 5581 * @param event packet 5582 * @return advertisement_handle 5583 * @note: btstack_type 1 5584 */ 5585 static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_handle(const uint8_t * event){ 5586 return event[3]; 5587 } 5588 5589 /** 5590 * @brief Get field status from event GAP_SUBEVENT_BIG_CREATED 5591 * @param event packet 5592 * @return status 5593 * @note: btstack_type 1 5594 */ 5595 static inline uint8_t gap_subevent_big_created_get_status(const uint8_t * event){ 5596 return event[3]; 5597 } 5598 /** 5599 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_CREATED 5600 * @param event packet 5601 * @return big_handle 5602 * @note: btstack_type 1 5603 */ 5604 static inline uint8_t gap_subevent_big_created_get_big_handle(const uint8_t * event){ 5605 return event[4]; 5606 } 5607 /** 5608 * @brief Get field num_bis from event GAP_SUBEVENT_BIG_CREATED 5609 * @param event packet 5610 * @return num_bis 5611 * @note: btstack_type 1 5612 */ 5613 static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event){ 5614 return event[5]; 5615 } 5616 /** 5617 * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_CREATED 5618 * @param event packet 5619 * @param index 5620 * @return bis_con_handles 5621 * @note: btstack_type C 5622 */ 5623 static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){ 5624 return little_endian_read_16(event, 6 + (2 * index)); 5625 } 5626 5627 /** 5628 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_TERMINATED 5629 * @param event packet 5630 * @return big_handle 5631 * @note: btstack_type 1 5632 */ 5633 static inline uint8_t gap_subevent_big_terminated_get_big_handle(const uint8_t * event){ 5634 return event[3]; 5635 } 5636 5637 /** 5638 * @brief Get field status from event GAP_SUBEVENT_BIG_SYNC_CREATED 5639 * @param event packet 5640 * @return status 5641 * @note: btstack_type 1 5642 */ 5643 static inline uint8_t gap_subevent_big_sync_created_get_status(const uint8_t * event){ 5644 return event[3]; 5645 } 5646 /** 5647 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_CREATED 5648 * @param event packet 5649 * @return big_handle 5650 * @note: btstack_type 1 5651 */ 5652 static inline uint8_t gap_subevent_big_sync_created_get_big_handle(const uint8_t * event){ 5653 return event[4]; 5654 } 5655 /** 5656 * @brief Get field num_bis from event GAP_SUBEVENT_BIG_SYNC_CREATED 5657 * @param event packet 5658 * @return num_bis 5659 * @note: btstack_type 1 5660 */ 5661 static inline uint8_t gap_subevent_big_sync_created_get_num_bis(const uint8_t * event){ 5662 return event[5]; 5663 } 5664 /** 5665 * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_SYNC_CREATED 5666 * @param event packet 5667 * @param index 5668 * @return bis_con_handles 5669 * @note: btstack_type C 5670 */ 5671 static inline uint16_t gap_subevent_big_sync_created_get_bis_con_handles(const uint8_t * event, uint8_t index){ 5672 return little_endian_read_16(event, 6 + (2 * index)); 5673 } 5674 5675 /** 5676 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_STOPPED 5677 * @param event packet 5678 * @return big_handle 5679 * @note: btstack_type 1 5680 */ 5681 static inline uint8_t gap_subevent_big_sync_stopped_get_big_handle(const uint8_t * event){ 5682 return event[3]; 5683 } 5684 5685 /** 5686 * @brief Get field status from event GAP_SUBEVENT_CIG_CREATED 5687 * @param event packet 5688 * @return status 5689 * @note: btstack_type 1 5690 */ 5691 static inline uint8_t gap_subevent_cig_created_get_status(const uint8_t * event){ 5692 return event[3]; 5693 } 5694 /** 5695 * @brief Get field cig_id from event GAP_SUBEVENT_CIG_CREATED 5696 * @param event packet 5697 * @return cig_id 5698 * @note: btstack_type 1 5699 */ 5700 static inline uint8_t gap_subevent_cig_created_get_cig_id(const uint8_t * event){ 5701 return event[4]; 5702 } 5703 /** 5704 * @brief Get field num_cis from event GAP_SUBEVENT_CIG_CREATED 5705 * @param event packet 5706 * @return num_cis 5707 * @note: btstack_type 1 5708 */ 5709 static inline uint8_t gap_subevent_cig_created_get_num_cis(const uint8_t * event){ 5710 return event[5]; 5711 } 5712 /** 5713 * @brief Get element of array field cis_con_handles from event GAP_SUBEVENT_CIG_CREATED 5714 * @param event packet 5715 * @param index 5716 * @return cis_con_handles 5717 * @note: btstack_type C 5718 */ 5719 static inline uint16_t gap_subevent_cig_created_get_cis_con_handles(const uint8_t * event, uint8_t index){ 5720 return little_endian_read_16(event, 6 + (2 * index)); 5721 } 5722 5723 /** 5724 * @brief Get field status from event GAP_SUBEVENT_CIS_CREATED 5725 * @param event packet 5726 * @return status 5727 * @note: btstack_type 1 5728 */ 5729 static inline uint8_t gap_subevent_cis_created_get_status(const uint8_t * event){ 5730 return event[3]; 5731 } 5732 /** 5733 * @brief Get field cig_id from event GAP_SUBEVENT_CIS_CREATED 5734 * @param event packet 5735 * @return cig_id 5736 * @note: btstack_type 1 5737 */ 5738 static inline uint8_t gap_subevent_cis_created_get_cig_id(const uint8_t * event){ 5739 return event[4]; 5740 } 5741 /** 5742 * @brief Get field cis_id from event GAP_SUBEVENT_CIS_CREATED 5743 * @param event packet 5744 * @return cis_id 5745 * @note: btstack_type 1 5746 */ 5747 static inline uint8_t gap_subevent_cis_created_get_cis_id(const uint8_t * event){ 5748 return event[5]; 5749 } 5750 /** 5751 * @brief Get field cis_con_handle from event GAP_SUBEVENT_CIS_CREATED 5752 * @param event packet 5753 * @return cis_con_handle 5754 * @note: btstack_type H 5755 */ 5756 static inline hci_con_handle_t gap_subevent_cis_created_get_cis_con_handle(const uint8_t * event){ 5757 return little_endian_read_16(event, 6); 5758 } 5759 /** 5760 * @brief Get field acl_con_handle from event GAP_SUBEVENT_CIS_CREATED 5761 * @param event packet 5762 * @return acl_con_handle 5763 * @note: btstack_type H 5764 */ 5765 static inline hci_con_handle_t gap_subevent_cis_created_get_acl_con_handle(const uint8_t * event){ 5766 return little_endian_read_16(event, 8); 5767 } 5768 5769 /** 5770 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5771 * @param event packet 5772 * @return acl_handle 5773 * @note: btstack_type H 5774 */ 5775 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){ 5776 return little_endian_read_16(event, 3); 5777 } 5778 /** 5779 * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5780 * @param event packet 5781 * @return status 5782 * @note: btstack_type 1 5783 */ 5784 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){ 5785 return event[5]; 5786 } 5787 /** 5788 * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5789 * @param event packet 5790 * @param Pointer to storage for bd_addr 5791 * @note: btstack_type B 5792 */ 5793 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5794 reverse_bytes(&event[6], bd_addr, 6); 5795 } 5796 5797 /** 5798 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE 5799 * @param event packet 5800 * @return acl_handle 5801 * @note: btstack_type H 5802 */ 5803 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){ 5804 return little_endian_read_16(event, 3); 5805 } 5806 5807 /** 5808 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5809 * @param event packet 5810 * @return acl_handle 5811 * @note: btstack_type H 5812 */ 5813 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){ 5814 return little_endian_read_16(event, 3); 5815 } 5816 /** 5817 * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5818 * @param event packet 5819 * @return status 5820 * @note: btstack_type 1 5821 */ 5822 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){ 5823 return event[5]; 5824 } 5825 /** 5826 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5827 * @param event packet 5828 * @return sco_handle 5829 * @note: btstack_type H 5830 */ 5831 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){ 5832 return little_endian_read_16(event, 6); 5833 } 5834 5835 /** 5836 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 5837 * @param event packet 5838 * @return acl_handle 5839 * @note: btstack_type H 5840 */ 5841 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){ 5842 return little_endian_read_16(event, 3); 5843 } 5844 /** 5845 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 5846 * @param event packet 5847 * @return sco_handle 5848 * @note: btstack_type H 5849 */ 5850 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){ 5851 return little_endian_read_16(event, 5); 5852 } 5853 5854 /** 5855 * @brief Get field acl_handle from event HSP_SUBEVENT_RING 5856 * @param event packet 5857 * @return acl_handle 5858 * @note: btstack_type H 5859 */ 5860 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){ 5861 return little_endian_read_16(event, 3); 5862 } 5863 5864 /** 5865 * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 5866 * @param event packet 5867 * @return acl_handle 5868 * @note: btstack_type H 5869 */ 5870 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){ 5871 return little_endian_read_16(event, 3); 5872 } 5873 /** 5874 * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 5875 * @param event packet 5876 * @return gain 5877 * @note: btstack_type 1 5878 */ 5879 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){ 5880 return event[5]; 5881 } 5882 5883 /** 5884 * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 5885 * @param event packet 5886 * @return acl_handle 5887 * @note: btstack_type H 5888 */ 5889 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){ 5890 return little_endian_read_16(event, 3); 5891 } 5892 /** 5893 * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 5894 * @param event packet 5895 * @return gain 5896 * @note: btstack_type 1 5897 */ 5898 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){ 5899 return event[5]; 5900 } 5901 5902 /** 5903 * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND 5904 * @param event packet 5905 * @return acl_handle 5906 * @note: btstack_type H 5907 */ 5908 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){ 5909 return little_endian_read_16(event, 3); 5910 } 5911 /** 5912 * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND 5913 * @param event packet 5914 * @return value_length 5915 * @note: btstack_type J 5916 */ 5917 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){ 5918 return event[5]; 5919 } 5920 /** 5921 * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND 5922 * @param event packet 5923 * @return value 5924 * @note: btstack_type V 5925 */ 5926 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){ 5927 return &event[6]; 5928 } 5929 5930 /** 5931 * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION 5932 * @param event packet 5933 * @return acl_handle 5934 * @note: btstack_type H 5935 */ 5936 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){ 5937 return little_endian_read_16(event, 3); 5938 } 5939 /** 5940 * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION 5941 * @param event packet 5942 * @return value_length 5943 * @note: btstack_type J 5944 */ 5945 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){ 5946 return event[5]; 5947 } 5948 /** 5949 * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION 5950 * @param event packet 5951 * @return value 5952 * @note: btstack_type V 5953 */ 5954 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){ 5955 return &event[6]; 5956 } 5957 5958 /** 5959 * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED 5960 * @param event packet 5961 * @return acl_handle 5962 * @note: btstack_type H 5963 */ 5964 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){ 5965 return little_endian_read_16(event, 3); 5966 } 5967 5968 /** 5969 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5970 * @param event packet 5971 * @return acl_handle 5972 * @note: btstack_type H 5973 */ 5974 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){ 5975 return little_endian_read_16(event, 3); 5976 } 5977 /** 5978 * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5979 * @param event packet 5980 * @return status 5981 * @note: btstack_type 1 5982 */ 5983 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){ 5984 return event[5]; 5985 } 5986 /** 5987 * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5988 * @param event packet 5989 * @param Pointer to storage for bd_addr 5990 * @note: btstack_type B 5991 */ 5992 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5993 reverse_bytes(&event[6], bd_addr, 6); 5994 } 5995 5996 /** 5997 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 5998 * @param event packet 5999 * @return acl_handle 6000 * @note: btstack_type H 6001 */ 6002 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){ 6003 return little_endian_read_16(event, 3); 6004 } 6005 6006 /** 6007 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6008 * @param event packet 6009 * @return acl_handle 6010 * @note: btstack_type H 6011 */ 6012 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){ 6013 return little_endian_read_16(event, 3); 6014 } 6015 /** 6016 * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6017 * @param event packet 6018 * @return status 6019 * @note: btstack_type 1 6020 */ 6021 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){ 6022 return event[5]; 6023 } 6024 /** 6025 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6026 * @param event packet 6027 * @return sco_handle 6028 * @note: btstack_type H 6029 */ 6030 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){ 6031 return little_endian_read_16(event, 6); 6032 } 6033 /** 6034 * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6035 * @param event packet 6036 * @param Pointer to storage for bd_addr 6037 * @note: btstack_type B 6038 */ 6039 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6040 reverse_bytes(&event[8], bd_addr, 6); 6041 } 6042 /** 6043 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6044 * @param event packet 6045 * @return negotiated_codec 6046 * @note: btstack_type 1 6047 */ 6048 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){ 6049 return event[14]; 6050 } 6051 /** 6052 * @brief Get field sco_packet_types from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6053 * @param event packet 6054 * @return sco_packet_types 6055 * @note: btstack_type 2 6056 */ 6057 static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){ 6058 return little_endian_read_16(event, 15); 6059 } 6060 /** 6061 * @brief Get field rx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6062 * @param event packet 6063 * @return rx_packet_length 6064 * @note: btstack_type 2 6065 */ 6066 static inline uint16_t hfp_subevent_audio_connection_established_get_rx_packet_length(const uint8_t * event){ 6067 return little_endian_read_16(event, 17); 6068 } 6069 /** 6070 * @brief Get field tx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6071 * @param event packet 6072 * @return tx_packet_length 6073 * @note: btstack_type 2 6074 */ 6075 static inline uint16_t hfp_subevent_audio_connection_established_get_tx_packet_length(const uint8_t * event){ 6076 return little_endian_read_16(event, 19); 6077 } 6078 6079 /** 6080 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6081 * @param event packet 6082 * @return acl_handle 6083 * @note: btstack_type H 6084 */ 6085 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){ 6086 return little_endian_read_16(event, 3); 6087 } 6088 /** 6089 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6090 * @param event packet 6091 * @return sco_handle 6092 * @note: btstack_type H 6093 */ 6094 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){ 6095 return little_endian_read_16(event, 5); 6096 } 6097 6098 /** 6099 * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE 6100 * @param event packet 6101 * @return acl_handle 6102 * @note: btstack_type H 6103 */ 6104 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){ 6105 return little_endian_read_16(event, 3); 6106 } 6107 /** 6108 * @brief Get field status from event HFP_SUBEVENT_COMPLETE 6109 * @param event packet 6110 * @return status 6111 * @note: btstack_type 1 6112 */ 6113 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){ 6114 return event[5]; 6115 } 6116 6117 /** 6118 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6119 * @param event packet 6120 * @return acl_handle 6121 * @note: btstack_type H 6122 */ 6123 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){ 6124 return little_endian_read_16(event, 3); 6125 } 6126 /** 6127 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6128 * @param event packet 6129 * @return indicator_index 6130 * @note: btstack_type 1 6131 */ 6132 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){ 6133 return event[5]; 6134 } 6135 /** 6136 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6137 * @param event packet 6138 * @return indicator_min_range 6139 * @note: btstack_type 1 6140 */ 6141 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){ 6142 return event[6]; 6143 } 6144 /** 6145 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6146 * @param event packet 6147 * @return indicator_max_range 6148 * @note: btstack_type 1 6149 */ 6150 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){ 6151 return event[7]; 6152 } 6153 /** 6154 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6155 * @param event packet 6156 * @return indicator_name 6157 * @note: btstack_type T 6158 */ 6159 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){ 6160 return (const char *) &event[8]; 6161 } 6162 6163 /** 6164 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6165 * @param event packet 6166 * @return acl_handle 6167 * @note: btstack_type H 6168 */ 6169 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){ 6170 return little_endian_read_16(event, 3); 6171 } 6172 /** 6173 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6174 * @param event packet 6175 * @return indicator_index 6176 * @note: btstack_type 1 6177 */ 6178 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){ 6179 return event[5]; 6180 } 6181 /** 6182 * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6183 * @param event packet 6184 * @return indicator_status 6185 * @note: btstack_type 1 6186 */ 6187 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){ 6188 return event[6]; 6189 } 6190 /** 6191 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6192 * @param event packet 6193 * @return indicator_min_range 6194 * @note: btstack_type 1 6195 */ 6196 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){ 6197 return event[7]; 6198 } 6199 /** 6200 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6201 * @param event packet 6202 * @return indicator_max_range 6203 * @note: btstack_type 1 6204 */ 6205 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){ 6206 return event[8]; 6207 } 6208 /** 6209 * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6210 * @param event packet 6211 * @return indicator_mandatory 6212 * @note: btstack_type 1 6213 */ 6214 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){ 6215 return event[9]; 6216 } 6217 /** 6218 * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6219 * @param event packet 6220 * @return indicator_enabled 6221 * @note: btstack_type 1 6222 */ 6223 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){ 6224 return event[10]; 6225 } 6226 /** 6227 * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6228 * @param event packet 6229 * @return indicator_status_changed 6230 * @note: btstack_type 1 6231 */ 6232 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){ 6233 return event[11]; 6234 } 6235 /** 6236 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6237 * @param event packet 6238 * @return indicator_name 6239 * @note: btstack_type T 6240 */ 6241 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){ 6242 return (const char *) &event[12]; 6243 } 6244 6245 /** 6246 * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6247 * @param event packet 6248 * @return acl_handle 6249 * @note: btstack_type H 6250 */ 6251 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){ 6252 return little_endian_read_16(event, 3); 6253 } 6254 /** 6255 * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6256 * @param event packet 6257 * @return network_operator_mode 6258 * @note: btstack_type 1 6259 */ 6260 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){ 6261 return event[5]; 6262 } 6263 /** 6264 * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6265 * @param event packet 6266 * @return network_operator_format 6267 * @note: btstack_type 1 6268 */ 6269 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){ 6270 return event[6]; 6271 } 6272 /** 6273 * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6274 * @param event packet 6275 * @return network_operator_name 6276 * @note: btstack_type T 6277 */ 6278 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){ 6279 return (const char *) &event[7]; 6280 } 6281 6282 /** 6283 * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 6284 * @param event packet 6285 * @return acl_handle 6286 * @note: btstack_type H 6287 */ 6288 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){ 6289 return little_endian_read_16(event, 3); 6290 } 6291 /** 6292 * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 6293 * @param event packet 6294 * @return error 6295 * @note: btstack_type 1 6296 */ 6297 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){ 6298 return event[5]; 6299 } 6300 6301 /** 6302 * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING 6303 * @param event packet 6304 * @return acl_handle 6305 * @note: btstack_type H 6306 */ 6307 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){ 6308 return little_endian_read_16(event, 3); 6309 } 6310 6311 /** 6312 * @brief Get field acl_handle from event HFP_SUBEVENT_RING 6313 * @param event packet 6314 * @return acl_handle 6315 * @note: btstack_type H 6316 */ 6317 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){ 6318 return little_endian_read_16(event, 3); 6319 } 6320 6321 /** 6322 * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING 6323 * @param event packet 6324 * @return acl_handle 6325 * @note: btstack_type H 6326 */ 6327 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){ 6328 return little_endian_read_16(event, 3); 6329 } 6330 6331 /** 6332 * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 6333 * @param event packet 6334 * @return acl_handle 6335 * @note: btstack_type H 6336 */ 6337 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){ 6338 return little_endian_read_16(event, 3); 6339 } 6340 /** 6341 * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 6342 * @param event packet 6343 * @return number 6344 * @note: btstack_type T 6345 */ 6346 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){ 6347 return (const char *) &event[5]; 6348 } 6349 6350 /** 6351 * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG 6352 * @param event packet 6353 * @return acl_handle 6354 * @note: btstack_type H 6355 */ 6356 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){ 6357 return little_endian_read_16(event, 3); 6358 } 6359 6360 /** 6361 * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 6362 * @param event packet 6363 * @return acl_handle 6364 * @note: btstack_type H 6365 */ 6366 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){ 6367 return little_endian_read_16(event, 3); 6368 } 6369 /** 6370 * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 6371 * @param event packet 6372 * @return number 6373 * @note: btstack_type T 6374 */ 6375 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){ 6376 return (const char *) &event[5]; 6377 } 6378 6379 /** 6380 * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 6381 * @param event packet 6382 * @return acl_handle 6383 * @note: btstack_type H 6384 */ 6385 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){ 6386 return little_endian_read_16(event, 3); 6387 } 6388 /** 6389 * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 6390 * @param event packet 6391 * @return dtmf 6392 * @note: btstack_type T 6393 */ 6394 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){ 6395 return (const char *) &event[5]; 6396 } 6397 6398 /** 6399 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED 6400 * @param event packet 6401 * @return acl_handle 6402 * @note: btstack_type H 6403 */ 6404 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){ 6405 return little_endian_read_16(event, 3); 6406 } 6407 6408 /** 6409 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED 6410 * @param event packet 6411 * @return acl_handle 6412 * @note: btstack_type H 6413 */ 6414 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){ 6415 return little_endian_read_16(event, 3); 6416 } 6417 6418 /** 6419 * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL 6420 * @param event packet 6421 * @return acl_handle 6422 * @note: btstack_type H 6423 */ 6424 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){ 6425 return little_endian_read_16(event, 3); 6426 } 6427 6428 /** 6429 * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME 6430 * @param event packet 6431 * @return acl_handle 6432 * @note: btstack_type H 6433 */ 6434 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){ 6435 return little_endian_read_16(event, 3); 6436 } 6437 /** 6438 * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME 6439 * @param event packet 6440 * @return gain 6441 * @note: btstack_type 1 6442 */ 6443 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){ 6444 return event[5]; 6445 } 6446 6447 /** 6448 * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME 6449 * @param event packet 6450 * @return acl_handle 6451 * @note: btstack_type H 6452 */ 6453 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){ 6454 return little_endian_read_16(event, 3); 6455 } 6456 /** 6457 * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME 6458 * @param event packet 6459 * @return gain 6460 * @note: btstack_type 1 6461 */ 6462 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){ 6463 return event[5]; 6464 } 6465 6466 /** 6467 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6468 * @param event packet 6469 * @return acl_handle 6470 * @note: btstack_type H 6471 */ 6472 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){ 6473 return little_endian_read_16(event, 3); 6474 } 6475 /** 6476 * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6477 * @param event packet 6478 * @return type 6479 * @note: btstack_type 1 6480 */ 6481 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){ 6482 return event[5]; 6483 } 6484 /** 6485 * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6486 * @param event packet 6487 * @return number_length 6488 * @note: btstack_type J 6489 */ 6490 static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){ 6491 return event[6]; 6492 } 6493 /** 6494 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6495 * @param event packet 6496 * @return number 6497 * @note: btstack_type V 6498 */ 6499 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){ 6500 return &event[7]; 6501 } 6502 /** 6503 * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6504 * @param event packet 6505 * @return alpha_length 6506 * @note: btstack_type J 6507 */ 6508 static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){ 6509 return event[7u + event[6]]; 6510 } 6511 /** 6512 * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6513 * @param event packet 6514 * @return alpha 6515 * @note: btstack_type V 6516 */ 6517 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){ 6518 return &event[7u + event[6] + 1u]; 6519 } 6520 6521 /** 6522 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6523 * @param event packet 6524 * @return acl_handle 6525 * @note: btstack_type H 6526 */ 6527 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){ 6528 return little_endian_read_16(event, 3); 6529 } 6530 /** 6531 * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6532 * @param event packet 6533 * @return type 6534 * @note: btstack_type 1 6535 */ 6536 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){ 6537 return event[5]; 6538 } 6539 /** 6540 * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6541 * @param event packet 6542 * @return number_length 6543 * @note: btstack_type J 6544 */ 6545 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){ 6546 return event[6]; 6547 } 6548 /** 6549 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6550 * @param event packet 6551 * @return number 6552 * @note: btstack_type V 6553 */ 6554 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){ 6555 return &event[7]; 6556 } 6557 /** 6558 * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6559 * @param event packet 6560 * @return alpha_length 6561 * @note: btstack_type J 6562 */ 6563 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){ 6564 return event[7u + event[6]]; 6565 } 6566 /** 6567 * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6568 * @param event packet 6569 * @return alpha 6570 * @note: btstack_type V 6571 */ 6572 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){ 6573 return &event[7u + event[6] + 1u]; 6574 } 6575 6576 /** 6577 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6578 * @param event packet 6579 * @return acl_handle 6580 * @note: btstack_type H 6581 */ 6582 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){ 6583 return little_endian_read_16(event, 3); 6584 } 6585 /** 6586 * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6587 * @param event packet 6588 * @return clcc_idx 6589 * @note: btstack_type 1 6590 */ 6591 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){ 6592 return event[5]; 6593 } 6594 /** 6595 * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6596 * @param event packet 6597 * @return clcc_dir 6598 * @note: btstack_type 1 6599 */ 6600 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){ 6601 return event[6]; 6602 } 6603 /** 6604 * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6605 * @param event packet 6606 * @return clcc_status 6607 * @note: btstack_type 1 6608 */ 6609 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){ 6610 return event[7]; 6611 } 6612 /** 6613 * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6614 * @param event packet 6615 * @return clcc_mode 6616 * @note: btstack_type 1 6617 */ 6618 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){ 6619 return event[8]; 6620 } 6621 /** 6622 * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6623 * @param event packet 6624 * @return clcc_mpty 6625 * @note: btstack_type 1 6626 */ 6627 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){ 6628 return event[9]; 6629 } 6630 /** 6631 * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6632 * @param event packet 6633 * @return bnip_type 6634 * @note: btstack_type 1 6635 */ 6636 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){ 6637 return event[10]; 6638 } 6639 /** 6640 * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6641 * @param event packet 6642 * @return bnip_number 6643 * @note: btstack_type T 6644 */ 6645 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){ 6646 return (const char *) &event[11]; 6647 } 6648 6649 /** 6650 * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6651 * @param event packet 6652 * @return acl_handle 6653 * @note: btstack_type H 6654 */ 6655 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){ 6656 return little_endian_read_16(event, 3); 6657 } 6658 /** 6659 * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6660 * @param event packet 6661 * @return status 6662 * @note: btstack_type 1 6663 */ 6664 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){ 6665 return event[5]; 6666 } 6667 /** 6668 * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6669 * @param event packet 6670 * @return bnip_type 6671 * @note: btstack_type 1 6672 */ 6673 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){ 6674 return event[6]; 6675 } 6676 /** 6677 * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6678 * @param event packet 6679 * @return bnip_number 6680 * @note: btstack_type T 6681 */ 6682 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){ 6683 return (const char *) &event[7]; 6684 } 6685 6686 /** 6687 * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 6688 * @param event packet 6689 * @return acl_handle 6690 * @note: btstack_type H 6691 */ 6692 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){ 6693 return little_endian_read_16(event, 3); 6694 } 6695 /** 6696 * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 6697 * @param event packet 6698 * @return value 6699 * @note: btstack_type T 6700 */ 6701 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){ 6702 return (const char *) &event[5]; 6703 } 6704 6705 /** 6706 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT 6707 * @param event packet 6708 * @return acl_handle 6709 * @note: btstack_type H 6710 */ 6711 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){ 6712 return little_endian_read_16(event, 3); 6713 } 6714 /** 6715 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT 6716 * @param event packet 6717 * @return command 6718 * @note: btstack_type T 6719 */ 6720 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){ 6721 return (const char *) &event[5]; 6722 } 6723 6724 /** 6725 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 6726 * @param event packet 6727 * @return acl_handle 6728 * @note: btstack_type H 6729 */ 6730 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){ 6731 return little_endian_read_16(event, 3); 6732 } 6733 /** 6734 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 6735 * @param event packet 6736 * @return command 6737 * @note: btstack_type T 6738 */ 6739 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){ 6740 return (const char *) &event[5]; 6741 } 6742 6743 /** 6744 * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE 6745 * @param event packet 6746 * @return acl_handle 6747 * @note: btstack_type H 6748 */ 6749 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){ 6750 return little_endian_read_16(event, 3); 6751 } 6752 /** 6753 * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE 6754 * @param event packet 6755 * @return status 6756 * @note: btstack_type 1 6757 */ 6758 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){ 6759 return event[5]; 6760 } 6761 6762 /** 6763 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6764 * @param event packet 6765 * @return acl_handle 6766 * @note: btstack_type H 6767 */ 6768 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){ 6769 return little_endian_read_16(event, 3); 6770 } 6771 /** 6772 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6773 * @param event packet 6774 * @return status 6775 * @note: btstack_type 1 6776 */ 6777 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){ 6778 return event[5]; 6779 } 6780 /** 6781 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6782 * @param event packet 6783 * @return enhanced 6784 * @note: btstack_type 1 6785 */ 6786 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){ 6787 return event[6]; 6788 } 6789 6790 /** 6791 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 6792 * @param event packet 6793 * @return acl_handle 6794 * @note: btstack_type H 6795 */ 6796 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){ 6797 return little_endian_read_16(event, 3); 6798 } 6799 /** 6800 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 6801 * @param event packet 6802 * @return status 6803 * @note: btstack_type 1 6804 */ 6805 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){ 6806 return event[5]; 6807 } 6808 6809 /** 6810 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 6811 * @param event packet 6812 * @return acl_handle 6813 * @note: btstack_type H 6814 */ 6815 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){ 6816 return little_endian_read_16(event, 3); 6817 } 6818 /** 6819 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 6820 * @param event packet 6821 * @return status 6822 * @note: btstack_type 1 6823 */ 6824 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){ 6825 return event[5]; 6826 } 6827 6828 /** 6829 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 6830 * @param event packet 6831 * @return acl_handle 6832 * @note: btstack_type H 6833 */ 6834 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){ 6835 return little_endian_read_16(event, 3); 6836 } 6837 /** 6838 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 6839 * @param event packet 6840 * @return status 6841 * @note: btstack_type 1 6842 */ 6843 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){ 6844 return event[5]; 6845 } 6846 6847 /** 6848 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 6849 * @param event packet 6850 * @return acl_handle 6851 * @note: btstack_type H 6852 */ 6853 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){ 6854 return little_endian_read_16(event, 3); 6855 } 6856 /** 6857 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 6858 * @param event packet 6859 * @return status 6860 * @note: btstack_type 1 6861 */ 6862 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){ 6863 return event[5]; 6864 } 6865 6866 /** 6867 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 6868 * @param event packet 6869 * @return acl_handle 6870 * @note: btstack_type H 6871 */ 6872 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){ 6873 return little_endian_read_16(event, 3); 6874 } 6875 /** 6876 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 6877 * @param event packet 6878 * @return status 6879 * @note: btstack_type 1 6880 */ 6881 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){ 6882 return event[5]; 6883 } 6884 6885 /** 6886 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 6887 * @param event packet 6888 * @return acl_handle 6889 * @note: btstack_type H 6890 */ 6891 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){ 6892 return little_endian_read_16(event, 3); 6893 } 6894 /** 6895 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 6896 * @param event packet 6897 * @return status 6898 * @note: btstack_type 1 6899 */ 6900 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){ 6901 return event[5]; 6902 } 6903 6904 /** 6905 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6906 * @param event packet 6907 * @return acl_handle 6908 * @note: btstack_type H 6909 */ 6910 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){ 6911 return little_endian_read_16(event, 3); 6912 } 6913 /** 6914 * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6915 * @param event packet 6916 * @return text_id 6917 * @note: btstack_type 2 6918 */ 6919 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){ 6920 return little_endian_read_16(event, 5); 6921 } 6922 /** 6923 * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6924 * @param event packet 6925 * @return text_type 6926 * @note: btstack_type 1 6927 */ 6928 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){ 6929 return event[7]; 6930 } 6931 /** 6932 * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6933 * @param event packet 6934 * @return text_operation 6935 * @note: btstack_type 1 6936 */ 6937 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){ 6938 return event[8]; 6939 } 6940 /** 6941 * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6942 * @param event packet 6943 * @return text_length 6944 * @note: btstack_type L 6945 */ 6946 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){ 6947 return little_endian_read_16(event, 9); 6948 } 6949 /** 6950 * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6951 * @param event packet 6952 * @return text 6953 * @note: btstack_type V 6954 */ 6955 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){ 6956 return &event[11]; 6957 } 6958 6959 /** 6960 * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 6961 * @param event packet 6962 * @return acl_handle 6963 * @note: btstack_type H 6964 */ 6965 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){ 6966 return little_endian_read_16(event, 3); 6967 } 6968 /** 6969 * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 6970 * @param event packet 6971 * @return status 6972 * @note: btstack_type 1 6973 */ 6974 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){ 6975 return event[5]; 6976 } 6977 6978 /** 6979 * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR 6980 * @param event packet 6981 * @return acl_handle 6982 * @note: btstack_type H 6983 */ 6984 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){ 6985 return little_endian_read_16(event, 3); 6986 } 6987 /** 6988 * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR 6989 * @param event packet 6990 * @return uuid 6991 * @note: btstack_type 2 6992 */ 6993 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){ 6994 return little_endian_read_16(event, 5); 6995 } 6996 /** 6997 * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR 6998 * @param event packet 6999 * @return value 7000 * @note: btstack_type 1 7001 */ 7002 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){ 7003 return event[7]; 7004 } 7005 7006 /** 7007 * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7008 * @param event packet 7009 * @return acl_handle 7010 * @note: btstack_type H 7011 */ 7012 static inline hci_con_handle_t hfp_subevent_custom_at_command_get_acl_handle(const uint8_t * event){ 7013 return little_endian_read_16(event, 3); 7014 } 7015 /** 7016 * @brief Get field command_id from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7017 * @param event packet 7018 * @return command_id 7019 * @note: btstack_type 2 7020 */ 7021 static inline uint16_t hfp_subevent_custom_at_command_get_command_id(const uint8_t * event){ 7022 return little_endian_read_16(event, 5); 7023 } 7024 /** 7025 * @brief Get field command_string from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7026 * @param event packet 7027 * @return command_string 7028 * @note: btstack_type T 7029 */ 7030 static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){ 7031 return (const char *) &event[7]; 7032 } 7033 7034 #ifdef ENABLE_BLE 7035 /** 7036 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED 7037 * @param event packet 7038 * @return handle 7039 * @note: btstack_type H 7040 */ 7041 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){ 7042 return little_endian_read_16(event, 3); 7043 } 7044 #endif 7045 7046 #ifdef ENABLE_BLE 7047 /** 7048 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7049 * @param event packet 7050 * @return handle 7051 * @note: btstack_type H 7052 */ 7053 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){ 7054 return little_endian_read_16(event, 3); 7055 } 7056 /** 7057 * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7058 * @param event packet 7059 * @return attribute_id 7060 * @note: btstack_type 2 7061 */ 7062 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){ 7063 return little_endian_read_16(event, 5); 7064 } 7065 /** 7066 * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7067 * @param event packet 7068 * @return text 7069 * @note: btstack_type T 7070 */ 7071 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){ 7072 return (const char *) &event[7]; 7073 } 7074 #endif 7075 7076 #ifdef ENABLE_BLE 7077 /** 7078 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED 7079 * @param event packet 7080 * @return handle 7081 * @note: btstack_type H 7082 */ 7083 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){ 7084 return little_endian_read_16(event, 3); 7085 } 7086 #endif 7087 7088 /** 7089 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7090 * @param event packet 7091 * @return avdtp_cid 7092 * @note: btstack_type 2 7093 */ 7094 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){ 7095 return little_endian_read_16(event, 3); 7096 } 7097 /** 7098 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7099 * @param event packet 7100 * @return local_seid 7101 * @note: btstack_type 1 7102 */ 7103 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){ 7104 return event[5]; 7105 } 7106 /** 7107 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7108 * @param event packet 7109 * @return is_initiator 7110 * @note: btstack_type 1 7111 */ 7112 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){ 7113 return event[6]; 7114 } 7115 /** 7116 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7117 * @param event packet 7118 * @return signal_identifier 7119 * @note: btstack_type 1 7120 */ 7121 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){ 7122 return event[7]; 7123 } 7124 7125 /** 7126 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT 7127 * @param event packet 7128 * @return avdtp_cid 7129 * @note: btstack_type 2 7130 */ 7131 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){ 7132 return little_endian_read_16(event, 3); 7133 } 7134 /** 7135 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT 7136 * @param event packet 7137 * @return local_seid 7138 * @note: btstack_type 1 7139 */ 7140 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){ 7141 return event[5]; 7142 } 7143 /** 7144 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT 7145 * @param event packet 7146 * @return is_initiator 7147 * @note: btstack_type 1 7148 */ 7149 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){ 7150 return event[6]; 7151 } 7152 /** 7153 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT 7154 * @param event packet 7155 * @return signal_identifier 7156 * @note: btstack_type 1 7157 */ 7158 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){ 7159 return event[7]; 7160 } 7161 7162 /** 7163 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7164 * @param event packet 7165 * @return avdtp_cid 7166 * @note: btstack_type 2 7167 */ 7168 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){ 7169 return little_endian_read_16(event, 3); 7170 } 7171 /** 7172 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7173 * @param event packet 7174 * @return local_seid 7175 * @note: btstack_type 1 7176 */ 7177 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){ 7178 return event[5]; 7179 } 7180 /** 7181 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7182 * @param event packet 7183 * @return is_initiator 7184 * @note: btstack_type 1 7185 */ 7186 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){ 7187 return event[6]; 7188 } 7189 /** 7190 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7191 * @param event packet 7192 * @return signal_identifier 7193 * @note: btstack_type 1 7194 */ 7195 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){ 7196 return event[7]; 7197 } 7198 7199 /** 7200 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7201 * @param event packet 7202 * @return avdtp_cid 7203 * @note: btstack_type 2 7204 */ 7205 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){ 7206 return little_endian_read_16(event, 3); 7207 } 7208 /** 7209 * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7210 * @param event packet 7211 * @param Pointer to storage for bd_addr 7212 * @note: btstack_type B 7213 */ 7214 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 7215 reverse_bytes(&event[5], bd_addr, 6); 7216 } 7217 /** 7218 * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7219 * @param event packet 7220 * @return con_handle 7221 * @note: btstack_type 2 7222 */ 7223 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 7224 return little_endian_read_16(event, 11); 7225 } 7226 /** 7227 * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7228 * @param event packet 7229 * @return status 7230 * @note: btstack_type 1 7231 */ 7232 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 7233 return event[13]; 7234 } 7235 7236 /** 7237 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 7238 * @param event packet 7239 * @return avdtp_cid 7240 * @note: btstack_type 2 7241 */ 7242 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){ 7243 return little_endian_read_16(event, 3); 7244 } 7245 7246 /** 7247 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7248 * @param event packet 7249 * @return avdtp_cid 7250 * @note: btstack_type 2 7251 */ 7252 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){ 7253 return little_endian_read_16(event, 3); 7254 } 7255 /** 7256 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7257 * @param event packet 7258 * @return remote_seid 7259 * @note: btstack_type 1 7260 */ 7261 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){ 7262 return event[5]; 7263 } 7264 /** 7265 * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7266 * @param event packet 7267 * @return in_use 7268 * @note: btstack_type 1 7269 */ 7270 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){ 7271 return event[6]; 7272 } 7273 /** 7274 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7275 * @param event packet 7276 * @return media_type 7277 * @note: btstack_type 1 7278 */ 7279 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){ 7280 return event[7]; 7281 } 7282 /** 7283 * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7284 * @param event packet 7285 * @return sep_type 7286 * @note: btstack_type 1 7287 */ 7288 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){ 7289 return event[8]; 7290 } 7291 7292 /** 7293 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7294 * @param event packet 7295 * @return avdtp_cid 7296 * @note: btstack_type 2 7297 */ 7298 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){ 7299 return little_endian_read_16(event, 3); 7300 } 7301 /** 7302 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7303 * @param event packet 7304 * @return remote_seid 7305 * @note: btstack_type 1 7306 */ 7307 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 7308 return event[5]; 7309 } 7310 /** 7311 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7312 * @param event packet 7313 * @return media_type 7314 * @note: btstack_type 1 7315 */ 7316 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 7317 return event[6]; 7318 } 7319 /** 7320 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7321 * @param event packet 7322 * @return sampling_frequency_bitmap 7323 * @note: btstack_type 1 7324 */ 7325 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7326 return event[7]; 7327 } 7328 /** 7329 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7330 * @param event packet 7331 * @return channel_mode_bitmap 7332 * @note: btstack_type 1 7333 */ 7334 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 7335 return event[8]; 7336 } 7337 /** 7338 * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7339 * @param event packet 7340 * @return block_length_bitmap 7341 * @note: btstack_type 1 7342 */ 7343 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 7344 return event[9]; 7345 } 7346 /** 7347 * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7348 * @param event packet 7349 * @return subbands_bitmap 7350 * @note: btstack_type 1 7351 */ 7352 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 7353 return event[10]; 7354 } 7355 /** 7356 * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7357 * @param event packet 7358 * @return allocation_method_bitmap 7359 * @note: btstack_type 1 7360 */ 7361 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 7362 return event[11]; 7363 } 7364 /** 7365 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7366 * @param event packet 7367 * @return min_bitpool_value 7368 * @note: btstack_type 1 7369 */ 7370 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 7371 return event[12]; 7372 } 7373 /** 7374 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7375 * @param event packet 7376 * @return max_bitpool_value 7377 * @note: btstack_type 1 7378 */ 7379 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 7380 return event[13]; 7381 } 7382 7383 /** 7384 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7385 * @param event packet 7386 * @return avdtp_cid 7387 * @note: btstack_type 2 7388 */ 7389 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){ 7390 return little_endian_read_16(event, 3); 7391 } 7392 /** 7393 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7394 * @param event packet 7395 * @return remote_seid 7396 * @note: btstack_type 1 7397 */ 7398 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 7399 return event[5]; 7400 } 7401 /** 7402 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7403 * @param event packet 7404 * @return media_type 7405 * @note: btstack_type 1 7406 */ 7407 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 7408 return event[6]; 7409 } 7410 /** 7411 * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7412 * @param event packet 7413 * @return layer_bitmap 7414 * @note: btstack_type 1 7415 */ 7416 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 7417 return event[7]; 7418 } 7419 /** 7420 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7421 * @param event packet 7422 * @return crc 7423 * @note: btstack_type 1 7424 */ 7425 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 7426 return event[8]; 7427 } 7428 /** 7429 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7430 * @param event packet 7431 * @return channel_mode_bitmap 7432 * @note: btstack_type 1 7433 */ 7434 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 7435 return event[9]; 7436 } 7437 /** 7438 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7439 * @param event packet 7440 * @return media_payload_format 7441 * @note: btstack_type 1 7442 */ 7443 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 7444 return event[10]; 7445 } 7446 /** 7447 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7448 * @param event packet 7449 * @return sampling_frequency_bitmap 7450 * @note: btstack_type 1 7451 */ 7452 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7453 return event[11]; 7454 } 7455 /** 7456 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7457 * @param event packet 7458 * @return vbr 7459 * @note: btstack_type 1 7460 */ 7461 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 7462 return event[12]; 7463 } 7464 /** 7465 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7466 * @param event packet 7467 * @return bit_rate_index_bitmap 7468 * @note: btstack_type 2 7469 */ 7470 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7471 return little_endian_read_16(event, 13); 7472 } 7473 7474 /** 7475 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7476 * @param event packet 7477 * @return avdtp_cid 7478 * @note: btstack_type 2 7479 */ 7480 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){ 7481 return little_endian_read_16(event, 3); 7482 } 7483 /** 7484 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7485 * @param event packet 7486 * @return remote_seid 7487 * @note: btstack_type 1 7488 */ 7489 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 7490 return event[5]; 7491 } 7492 /** 7493 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7494 * @param event packet 7495 * @return media_type 7496 * @note: btstack_type 1 7497 */ 7498 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 7499 return event[6]; 7500 } 7501 /** 7502 * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7503 * @param event packet 7504 * @return object_type_bitmap 7505 * @note: btstack_type 1 7506 */ 7507 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 7508 return event[7]; 7509 } 7510 /** 7511 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7512 * @param event packet 7513 * @return sampling_frequency_bitmap 7514 * @note: btstack_type 2 7515 */ 7516 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7517 return little_endian_read_16(event, 8); 7518 } 7519 /** 7520 * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7521 * @param event packet 7522 * @return channels_bitmap 7523 * @note: btstack_type 1 7524 */ 7525 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 7526 return event[10]; 7527 } 7528 /** 7529 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7530 * @param event packet 7531 * @return bit_rate 7532 * @note: btstack_type 3 7533 */ 7534 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 7535 return little_endian_read_24(event, 11); 7536 } 7537 /** 7538 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7539 * @param event packet 7540 * @return vbr 7541 * @note: btstack_type 1 7542 */ 7543 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 7544 return event[14]; 7545 } 7546 7547 /** 7548 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7549 * @param event packet 7550 * @return avdtp_cid 7551 * @note: btstack_type 2 7552 */ 7553 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){ 7554 return little_endian_read_16(event, 3); 7555 } 7556 /** 7557 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7558 * @param event packet 7559 * @return remote_seid 7560 * @note: btstack_type 1 7561 */ 7562 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 7563 return event[5]; 7564 } 7565 /** 7566 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7567 * @param event packet 7568 * @return media_type 7569 * @note: btstack_type 1 7570 */ 7571 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 7572 return event[6]; 7573 } 7574 /** 7575 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7576 * @param event packet 7577 * @return version 7578 * @note: btstack_type 1 7579 */ 7580 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 7581 return event[7]; 7582 } 7583 /** 7584 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7585 * @param event packet 7586 * @return channel_mode_bitmap 7587 * @note: btstack_type 1 7588 */ 7589 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 7590 return event[8]; 7591 } 7592 /** 7593 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7594 * @param event packet 7595 * @return sampling_frequency_bitmap 7596 * @note: btstack_type 1 7597 */ 7598 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7599 return event[9]; 7600 } 7601 /** 7602 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7603 * @param event packet 7604 * @return vbr 7605 * @note: btstack_type 1 7606 */ 7607 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 7608 return event[10]; 7609 } 7610 /** 7611 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7612 * @param event packet 7613 * @return bit_rate_index_bitmap 7614 * @note: btstack_type 3 7615 */ 7616 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7617 return little_endian_read_24(event, 11); 7618 } 7619 /** 7620 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7621 * @param event packet 7622 * @return maximum_sul 7623 * @note: btstack_type 2 7624 */ 7625 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 7626 return little_endian_read_16(event, 14); 7627 } 7628 7629 /** 7630 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7631 * @param event packet 7632 * @return avdtp_cid 7633 * @note: btstack_type 2 7634 */ 7635 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){ 7636 return little_endian_read_16(event, 3); 7637 } 7638 /** 7639 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7640 * @param event packet 7641 * @return remote_seid 7642 * @note: btstack_type 1 7643 */ 7644 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 7645 return event[5]; 7646 } 7647 /** 7648 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7649 * @param event packet 7650 * @return media_type 7651 * @note: btstack_type 1 7652 */ 7653 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 7654 return event[6]; 7655 } 7656 /** 7657 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7658 * @param event packet 7659 * @return media_codec_type 7660 * @note: btstack_type 2 7661 */ 7662 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 7663 return little_endian_read_16(event, 7); 7664 } 7665 /** 7666 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7667 * @param event packet 7668 * @return media_codec_information_len 7669 * @note: btstack_type L 7670 */ 7671 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 7672 return little_endian_read_16(event, 9); 7673 } 7674 /** 7675 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7676 * @param event packet 7677 * @return media_codec_information 7678 * @note: btstack_type V 7679 */ 7680 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 7681 return &event[11]; 7682 } 7683 7684 /** 7685 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 7686 * @param event packet 7687 * @return avdtp_cid 7688 * @note: btstack_type 2 7689 */ 7690 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){ 7691 return little_endian_read_16(event, 3); 7692 } 7693 /** 7694 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 7695 * @param event packet 7696 * @return remote_seid 7697 * @note: btstack_type 1 7698 */ 7699 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){ 7700 return event[5]; 7701 } 7702 7703 /** 7704 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 7705 * @param event packet 7706 * @return avdtp_cid 7707 * @note: btstack_type 2 7708 */ 7709 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){ 7710 return little_endian_read_16(event, 3); 7711 } 7712 /** 7713 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 7714 * @param event packet 7715 * @return remote_seid 7716 * @note: btstack_type 1 7717 */ 7718 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){ 7719 return event[5]; 7720 } 7721 7722 /** 7723 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7724 * @param event packet 7725 * @return avdtp_cid 7726 * @note: btstack_type 2 7727 */ 7728 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){ 7729 return little_endian_read_16(event, 3); 7730 } 7731 /** 7732 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7733 * @param event packet 7734 * @return remote_seid 7735 * @note: btstack_type 1 7736 */ 7737 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){ 7738 return event[5]; 7739 } 7740 /** 7741 * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7742 * @param event packet 7743 * @return recovery_type 7744 * @note: btstack_type 1 7745 */ 7746 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){ 7747 return event[6]; 7748 } 7749 /** 7750 * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7751 * @param event packet 7752 * @return maximum_recovery_window_size 7753 * @note: btstack_type 1 7754 */ 7755 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){ 7756 return event[7]; 7757 } 7758 /** 7759 * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7760 * @param event packet 7761 * @return maximum_number_media_packets 7762 * @note: btstack_type 1 7763 */ 7764 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){ 7765 return event[8]; 7766 } 7767 7768 /** 7769 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7770 * @param event packet 7771 * @return avdtp_cid 7772 * @note: btstack_type 2 7773 */ 7774 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){ 7775 return little_endian_read_16(event, 3); 7776 } 7777 /** 7778 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7779 * @param event packet 7780 * @return remote_seid 7781 * @note: btstack_type 1 7782 */ 7783 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){ 7784 return event[5]; 7785 } 7786 /** 7787 * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7788 * @param event packet 7789 * @return cp_type 7790 * @note: btstack_type 2 7791 */ 7792 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){ 7793 return little_endian_read_16(event, 6); 7794 } 7795 /** 7796 * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7797 * @param event packet 7798 * @return cp_type_value_len 7799 * @note: btstack_type L 7800 */ 7801 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){ 7802 return little_endian_read_16(event, 8); 7803 } 7804 /** 7805 * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7806 * @param event packet 7807 * @return cp_type_value 7808 * @note: btstack_type V 7809 */ 7810 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){ 7811 return &event[10]; 7812 } 7813 7814 /** 7815 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7816 * @param event packet 7817 * @return avdtp_cid 7818 * @note: btstack_type 2 7819 */ 7820 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){ 7821 return little_endian_read_16(event, 3); 7822 } 7823 /** 7824 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7825 * @param event packet 7826 * @return remote_seid 7827 * @note: btstack_type 1 7828 */ 7829 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){ 7830 return event[5]; 7831 } 7832 /** 7833 * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7834 * @param event packet 7835 * @return fragmentation 7836 * @note: btstack_type 1 7837 */ 7838 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){ 7839 return event[6]; 7840 } 7841 /** 7842 * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7843 * @param event packet 7844 * @return transport_identifiers_num 7845 * @note: btstack_type 1 7846 */ 7847 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){ 7848 return event[7]; 7849 } 7850 /** 7851 * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7852 * @param event packet 7853 * @return transport_session_identifier_1 7854 * @note: btstack_type 1 7855 */ 7856 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){ 7857 return event[8]; 7858 } 7859 /** 7860 * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7861 * @param event packet 7862 * @return transport_session_identifier_2 7863 * @note: btstack_type 1 7864 */ 7865 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){ 7866 return event[9]; 7867 } 7868 /** 7869 * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7870 * @param event packet 7871 * @return transport_session_identifier_3 7872 * @note: btstack_type 1 7873 */ 7874 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){ 7875 return event[10]; 7876 } 7877 /** 7878 * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7879 * @param event packet 7880 * @return tcid_1 7881 * @note: btstack_type 1 7882 */ 7883 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){ 7884 return event[11]; 7885 } 7886 /** 7887 * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7888 * @param event packet 7889 * @return tcid_2 7890 * @note: btstack_type 1 7891 */ 7892 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){ 7893 return event[12]; 7894 } 7895 /** 7896 * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7897 * @param event packet 7898 * @return tcid_3 7899 * @note: btstack_type 1 7900 */ 7901 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){ 7902 return event[13]; 7903 } 7904 7905 /** 7906 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7907 * @param event packet 7908 * @return avdtp_cid 7909 * @note: btstack_type 2 7910 */ 7911 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){ 7912 return little_endian_read_16(event, 3); 7913 } 7914 /** 7915 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7916 * @param event packet 7917 * @return remote_seid 7918 * @note: btstack_type 1 7919 */ 7920 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 7921 return event[5]; 7922 } 7923 7924 /** 7925 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7926 * @param event packet 7927 * @return avdtp_cid 7928 * @note: btstack_type 2 7929 */ 7930 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){ 7931 return little_endian_read_16(event, 3); 7932 } 7933 /** 7934 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7935 * @param event packet 7936 * @return remote_seid 7937 * @note: btstack_type 1 7938 */ 7939 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){ 7940 return event[5]; 7941 } 7942 /** 7943 * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7944 * @param event packet 7945 * @return back_ch 7946 * @note: btstack_type 1 7947 */ 7948 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){ 7949 return event[6]; 7950 } 7951 /** 7952 * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7953 * @param event packet 7954 * @return media 7955 * @note: btstack_type 1 7956 */ 7957 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){ 7958 return event[7]; 7959 } 7960 /** 7961 * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7962 * @param event packet 7963 * @return recovery 7964 * @note: btstack_type 1 7965 */ 7966 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){ 7967 return event[8]; 7968 } 7969 7970 /** 7971 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7972 * @param event packet 7973 * @return avdtp_cid 7974 * @note: btstack_type 2 7975 */ 7976 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){ 7977 return little_endian_read_16(event, 3); 7978 } 7979 /** 7980 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7981 * @param event packet 7982 * @return remote_seid 7983 * @note: btstack_type 1 7984 */ 7985 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 7986 return event[5]; 7987 } 7988 7989 /** 7990 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7991 * @param event packet 7992 * @return avdtp_cid 7993 * @note: btstack_type 2 7994 */ 7995 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){ 7996 return little_endian_read_16(event, 3); 7997 } 7998 /** 7999 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8000 * @param event packet 8001 * @return local_seid 8002 * @note: btstack_type 1 8003 */ 8004 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 8005 return event[5]; 8006 } 8007 /** 8008 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8009 * @param event packet 8010 * @return remote_seid 8011 * @note: btstack_type 1 8012 */ 8013 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 8014 return event[6]; 8015 } 8016 /** 8017 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8018 * @param event packet 8019 * @return reconfigure 8020 * @note: btstack_type 1 8021 */ 8022 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 8023 return event[7]; 8024 } 8025 /** 8026 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8027 * @param event packet 8028 * @return media_type 8029 * @note: btstack_type 1 8030 */ 8031 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 8032 return event[8]; 8033 } 8034 /** 8035 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8036 * @param event packet 8037 * @return sampling_frequency 8038 * @note: btstack_type 2 8039 */ 8040 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 8041 return little_endian_read_16(event, 9); 8042 } 8043 /** 8044 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8045 * @param event packet 8046 * @return channel_mode 8047 * @note: btstack_type 1 8048 */ 8049 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8050 return event[11]; 8051 } 8052 /** 8053 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8054 * @param event packet 8055 * @return num_channels 8056 * @note: btstack_type 1 8057 */ 8058 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8059 return event[12]; 8060 } 8061 /** 8062 * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8063 * @param event packet 8064 * @return block_length 8065 * @note: btstack_type 1 8066 */ 8067 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8068 return event[13]; 8069 } 8070 /** 8071 * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8072 * @param event packet 8073 * @return subbands 8074 * @note: btstack_type 1 8075 */ 8076 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8077 return event[14]; 8078 } 8079 /** 8080 * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8081 * @param event packet 8082 * @return allocation_method 8083 * @note: btstack_type 1 8084 */ 8085 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8086 return event[15]; 8087 } 8088 /** 8089 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8090 * @param event packet 8091 * @return min_bitpool_value 8092 * @note: btstack_type 1 8093 */ 8094 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8095 return event[16]; 8096 } 8097 /** 8098 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8099 * @param event packet 8100 * @return max_bitpool_value 8101 * @note: btstack_type 1 8102 */ 8103 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8104 return event[17]; 8105 } 8106 8107 /** 8108 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8109 * @param event packet 8110 * @return avdtp_cid 8111 * @note: btstack_type 2 8112 */ 8113 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){ 8114 return little_endian_read_16(event, 3); 8115 } 8116 /** 8117 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8118 * @param event packet 8119 * @return local_seid 8120 * @note: btstack_type 1 8121 */ 8122 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 8123 return event[5]; 8124 } 8125 /** 8126 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8127 * @param event packet 8128 * @return remote_seid 8129 * @note: btstack_type 1 8130 */ 8131 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 8132 return event[6]; 8133 } 8134 /** 8135 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8136 * @param event packet 8137 * @return reconfigure 8138 * @note: btstack_type 1 8139 */ 8140 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 8141 return event[7]; 8142 } 8143 /** 8144 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8145 * @param event packet 8146 * @return media_type 8147 * @note: btstack_type 1 8148 */ 8149 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 8150 return event[8]; 8151 } 8152 /** 8153 * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8154 * @param event packet 8155 * @return layer 8156 * @note: btstack_type 1 8157 */ 8158 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 8159 return event[9]; 8160 } 8161 /** 8162 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8163 * @param event packet 8164 * @return crc 8165 * @note: btstack_type 1 8166 */ 8167 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 8168 return event[10]; 8169 } 8170 /** 8171 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8172 * @param event packet 8173 * @return channel_mode 8174 * @note: btstack_type 1 8175 */ 8176 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 8177 return event[11]; 8178 } 8179 /** 8180 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8181 * @param event packet 8182 * @return num_channels 8183 * @note: btstack_type 1 8184 */ 8185 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 8186 return event[12]; 8187 } 8188 /** 8189 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8190 * @param event packet 8191 * @return media_payload_format 8192 * @note: btstack_type 1 8193 */ 8194 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 8195 return event[13]; 8196 } 8197 /** 8198 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8199 * @param event packet 8200 * @return sampling_frequency 8201 * @note: btstack_type 2 8202 */ 8203 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 8204 return little_endian_read_16(event, 14); 8205 } 8206 /** 8207 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8208 * @param event packet 8209 * @return vbr 8210 * @note: btstack_type 1 8211 */ 8212 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 8213 return event[16]; 8214 } 8215 /** 8216 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8217 * @param event packet 8218 * @return bit_rate_index 8219 * @note: btstack_type 1 8220 */ 8221 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 8222 return event[17]; 8223 } 8224 8225 /** 8226 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8227 * @param event packet 8228 * @return avdtp_cid 8229 * @note: btstack_type 2 8230 */ 8231 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){ 8232 return little_endian_read_16(event, 3); 8233 } 8234 /** 8235 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8236 * @param event packet 8237 * @return local_seid 8238 * @note: btstack_type 1 8239 */ 8240 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 8241 return event[5]; 8242 } 8243 /** 8244 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8245 * @param event packet 8246 * @return remote_seid 8247 * @note: btstack_type 1 8248 */ 8249 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 8250 return event[6]; 8251 } 8252 /** 8253 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8254 * @param event packet 8255 * @return reconfigure 8256 * @note: btstack_type 1 8257 */ 8258 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 8259 return event[7]; 8260 } 8261 /** 8262 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8263 * @param event packet 8264 * @return media_type 8265 * @note: btstack_type 1 8266 */ 8267 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 8268 return event[8]; 8269 } 8270 /** 8271 * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8272 * @param event packet 8273 * @return object_type 8274 * @note: btstack_type 1 8275 */ 8276 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 8277 return event[9]; 8278 } 8279 /** 8280 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8281 * @param event packet 8282 * @return sampling_frequency 8283 * @note: btstack_type 3 8284 */ 8285 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 8286 return little_endian_read_24(event, 10); 8287 } 8288 /** 8289 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8290 * @param event packet 8291 * @return num_channels 8292 * @note: btstack_type 1 8293 */ 8294 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 8295 return event[13]; 8296 } 8297 /** 8298 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8299 * @param event packet 8300 * @return bit_rate 8301 * @note: btstack_type 3 8302 */ 8303 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 8304 return little_endian_read_24(event, 14); 8305 } 8306 /** 8307 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8308 * @param event packet 8309 * @return vbr 8310 * @note: btstack_type 1 8311 */ 8312 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 8313 return event[17]; 8314 } 8315 8316 /** 8317 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8318 * @param event packet 8319 * @return avdtp_cid 8320 * @note: btstack_type 2 8321 */ 8322 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){ 8323 return little_endian_read_16(event, 3); 8324 } 8325 /** 8326 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8327 * @param event packet 8328 * @return local_seid 8329 * @note: btstack_type 1 8330 */ 8331 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 8332 return event[5]; 8333 } 8334 /** 8335 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8336 * @param event packet 8337 * @return remote_seid 8338 * @note: btstack_type 1 8339 */ 8340 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 8341 return event[6]; 8342 } 8343 /** 8344 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8345 * @param event packet 8346 * @return reconfigure 8347 * @note: btstack_type 1 8348 */ 8349 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 8350 return event[7]; 8351 } 8352 /** 8353 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8354 * @param event packet 8355 * @return media_type 8356 * @note: btstack_type 1 8357 */ 8358 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 8359 return event[8]; 8360 } 8361 /** 8362 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8363 * @param event packet 8364 * @return version 8365 * @note: btstack_type 1 8366 */ 8367 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 8368 return event[9]; 8369 } 8370 /** 8371 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8372 * @param event packet 8373 * @return channel_mode 8374 * @note: btstack_type 1 8375 */ 8376 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 8377 return event[10]; 8378 } 8379 /** 8380 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8381 * @param event packet 8382 * @return num_channels 8383 * @note: btstack_type 1 8384 */ 8385 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 8386 return event[11]; 8387 } 8388 /** 8389 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8390 * @param event packet 8391 * @return sampling_frequency 8392 * @note: btstack_type 2 8393 */ 8394 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 8395 return little_endian_read_16(event, 12); 8396 } 8397 /** 8398 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8399 * @param event packet 8400 * @return vbr 8401 * @note: btstack_type 1 8402 */ 8403 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 8404 return event[14]; 8405 } 8406 /** 8407 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8408 * @param event packet 8409 * @return bit_rate_index 8410 * @note: btstack_type 1 8411 */ 8412 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 8413 return event[15]; 8414 } 8415 /** 8416 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8417 * @param event packet 8418 * @return maximum_sul 8419 * @note: btstack_type 2 8420 */ 8421 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 8422 return little_endian_read_16(event, 16); 8423 } 8424 8425 /** 8426 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8427 * @param event packet 8428 * @return avdtp_cid 8429 * @note: btstack_type 2 8430 */ 8431 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){ 8432 return little_endian_read_16(event, 3); 8433 } 8434 /** 8435 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8436 * @param event packet 8437 * @return local_seid 8438 * @note: btstack_type 1 8439 */ 8440 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 8441 return event[5]; 8442 } 8443 /** 8444 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8445 * @param event packet 8446 * @return remote_seid 8447 * @note: btstack_type 1 8448 */ 8449 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 8450 return event[6]; 8451 } 8452 /** 8453 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8454 * @param event packet 8455 * @return reconfigure 8456 * @note: btstack_type 1 8457 */ 8458 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 8459 return event[7]; 8460 } 8461 /** 8462 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8463 * @param event packet 8464 * @return media_type 8465 * @note: btstack_type 1 8466 */ 8467 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 8468 return event[8]; 8469 } 8470 /** 8471 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8472 * @param event packet 8473 * @return media_codec_type 8474 * @note: btstack_type 2 8475 */ 8476 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 8477 return little_endian_read_16(event, 9); 8478 } 8479 /** 8480 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8481 * @param event packet 8482 * @return media_codec_information_len 8483 * @note: btstack_type L 8484 */ 8485 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 8486 return little_endian_read_16(event, 11); 8487 } 8488 /** 8489 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8490 * @param event packet 8491 * @return media_codec_information 8492 * @note: btstack_type V 8493 */ 8494 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 8495 return &event[13]; 8496 } 8497 8498 /** 8499 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8500 * @param event packet 8501 * @return avdtp_cid 8502 * @note: btstack_type 2 8503 */ 8504 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){ 8505 return little_endian_read_16(event, 3); 8506 } 8507 /** 8508 * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8509 * @param event packet 8510 * @param Pointer to storage for bd_addr 8511 * @note: btstack_type B 8512 */ 8513 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8514 reverse_bytes(&event[5], bd_addr, 6); 8515 } 8516 /** 8517 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8518 * @param event packet 8519 * @return local_seid 8520 * @note: btstack_type 1 8521 */ 8522 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){ 8523 return event[11]; 8524 } 8525 /** 8526 * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8527 * @param event packet 8528 * @return remote_seid 8529 * @note: btstack_type 1 8530 */ 8531 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){ 8532 return event[12]; 8533 } 8534 /** 8535 * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8536 * @param event packet 8537 * @return status 8538 * @note: btstack_type 1 8539 */ 8540 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){ 8541 return event[13]; 8542 } 8543 8544 /** 8545 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 8546 * @param event packet 8547 * @return avdtp_cid 8548 * @note: btstack_type 2 8549 */ 8550 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){ 8551 return little_endian_read_16(event, 3); 8552 } 8553 /** 8554 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 8555 * @param event packet 8556 * @return local_seid 8557 * @note: btstack_type 1 8558 */ 8559 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){ 8560 return event[5]; 8561 } 8562 8563 /** 8564 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8565 * @param event packet 8566 * @return avdtp_cid 8567 * @note: btstack_type 2 8568 */ 8569 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){ 8570 return little_endian_read_16(event, 3); 8571 } 8572 /** 8573 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8574 * @param event packet 8575 * @return local_seid 8576 * @note: btstack_type 1 8577 */ 8578 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 8579 return event[5]; 8580 } 8581 /** 8582 * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8583 * @param event packet 8584 * @return sequence_number 8585 * @note: btstack_type 2 8586 */ 8587 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){ 8588 return little_endian_read_16(event, 6); 8589 } 8590 8591 /** 8592 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE 8593 * @param event packet 8594 * @return avdtp_cid 8595 * @note: btstack_type 2 8596 */ 8597 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){ 8598 return little_endian_read_16(event, 3); 8599 } 8600 8601 /** 8602 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8603 * @param event packet 8604 * @return avdtp_cid 8605 * @note: btstack_type 2 8606 */ 8607 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){ 8608 return little_endian_read_16(event, 3); 8609 } 8610 /** 8611 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8612 * @param event packet 8613 * @return local_seid 8614 * @note: btstack_type 1 8615 */ 8616 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 8617 return event[5]; 8618 } 8619 /** 8620 * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8621 * @param event packet 8622 * @return delay_100us 8623 * @note: btstack_type 2 8624 */ 8625 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 8626 return little_endian_read_16(event, 6); 8627 } 8628 8629 /** 8630 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8631 * @param event packet 8632 * @return a2dp_cid 8633 * @note: btstack_type 2 8634 */ 8635 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){ 8636 return little_endian_read_16(event, 3); 8637 } 8638 /** 8639 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8640 * @param event packet 8641 * @return local_seid 8642 * @note: btstack_type 1 8643 */ 8644 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 8645 return event[5]; 8646 } 8647 8648 /** 8649 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8650 * @param event packet 8651 * @return a2dp_cid 8652 * @note: btstack_type 2 8653 */ 8654 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){ 8655 return little_endian_read_16(event, 3); 8656 } 8657 /** 8658 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8659 * @param event packet 8660 * @return local_seid 8661 * @note: btstack_type 1 8662 */ 8663 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 8664 return event[5]; 8665 } 8666 /** 8667 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8668 * @param event packet 8669 * @return remote_seid 8670 * @note: btstack_type 1 8671 */ 8672 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 8673 return event[6]; 8674 } 8675 /** 8676 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8677 * @param event packet 8678 * @return reconfigure 8679 * @note: btstack_type 1 8680 */ 8681 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 8682 return event[7]; 8683 } 8684 /** 8685 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8686 * @param event packet 8687 * @return media_type 8688 * @note: btstack_type 1 8689 */ 8690 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 8691 return event[8]; 8692 } 8693 /** 8694 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8695 * @param event packet 8696 * @return sampling_frequency 8697 * @note: btstack_type 2 8698 */ 8699 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 8700 return little_endian_read_16(event, 9); 8701 } 8702 /** 8703 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8704 * @param event packet 8705 * @return channel_mode 8706 * @note: btstack_type 1 8707 */ 8708 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8709 return event[11]; 8710 } 8711 /** 8712 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8713 * @param event packet 8714 * @return num_channels 8715 * @note: btstack_type 1 8716 */ 8717 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8718 return event[12]; 8719 } 8720 /** 8721 * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8722 * @param event packet 8723 * @return block_length 8724 * @note: btstack_type 1 8725 */ 8726 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8727 return event[13]; 8728 } 8729 /** 8730 * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8731 * @param event packet 8732 * @return subbands 8733 * @note: btstack_type 1 8734 */ 8735 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8736 return event[14]; 8737 } 8738 /** 8739 * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8740 * @param event packet 8741 * @return allocation_method 8742 * @note: btstack_type 1 8743 */ 8744 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8745 return event[15]; 8746 } 8747 /** 8748 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8749 * @param event packet 8750 * @return min_bitpool_value 8751 * @note: btstack_type 1 8752 */ 8753 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8754 return event[16]; 8755 } 8756 /** 8757 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8758 * @param event packet 8759 * @return max_bitpool_value 8760 * @note: btstack_type 1 8761 */ 8762 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8763 return event[17]; 8764 } 8765 8766 /** 8767 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8768 * @param event packet 8769 * @return a2dp_cid 8770 * @note: btstack_type 2 8771 */ 8772 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){ 8773 return little_endian_read_16(event, 3); 8774 } 8775 /** 8776 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8777 * @param event packet 8778 * @return local_seid 8779 * @note: btstack_type 1 8780 */ 8781 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 8782 return event[5]; 8783 } 8784 /** 8785 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8786 * @param event packet 8787 * @return remote_seid 8788 * @note: btstack_type 1 8789 */ 8790 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 8791 return event[6]; 8792 } 8793 /** 8794 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8795 * @param event packet 8796 * @return reconfigure 8797 * @note: btstack_type 1 8798 */ 8799 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 8800 return event[7]; 8801 } 8802 /** 8803 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8804 * @param event packet 8805 * @return media_type 8806 * @note: btstack_type 1 8807 */ 8808 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 8809 return event[8]; 8810 } 8811 /** 8812 * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8813 * @param event packet 8814 * @return layer 8815 * @note: btstack_type 1 8816 */ 8817 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 8818 return event[9]; 8819 } 8820 /** 8821 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8822 * @param event packet 8823 * @return crc 8824 * @note: btstack_type 1 8825 */ 8826 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 8827 return event[10]; 8828 } 8829 /** 8830 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8831 * @param event packet 8832 * @return channel_mode 8833 * @note: btstack_type 1 8834 */ 8835 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 8836 return event[11]; 8837 } 8838 /** 8839 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8840 * @param event packet 8841 * @return num_channels 8842 * @note: btstack_type 1 8843 */ 8844 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 8845 return event[12]; 8846 } 8847 /** 8848 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8849 * @param event packet 8850 * @return media_payload_format 8851 * @note: btstack_type 1 8852 */ 8853 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 8854 return event[13]; 8855 } 8856 /** 8857 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8858 * @param event packet 8859 * @return sampling_frequency 8860 * @note: btstack_type 2 8861 */ 8862 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 8863 return little_endian_read_16(event, 14); 8864 } 8865 /** 8866 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8867 * @param event packet 8868 * @return vbr 8869 * @note: btstack_type 1 8870 */ 8871 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 8872 return event[16]; 8873 } 8874 /** 8875 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8876 * @param event packet 8877 * @return bit_rate_index 8878 * @note: btstack_type 1 8879 */ 8880 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 8881 return event[17]; 8882 } 8883 8884 /** 8885 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8886 * @param event packet 8887 * @return a2dp_cid 8888 * @note: btstack_type 2 8889 */ 8890 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){ 8891 return little_endian_read_16(event, 3); 8892 } 8893 /** 8894 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8895 * @param event packet 8896 * @return local_seid 8897 * @note: btstack_type 1 8898 */ 8899 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 8900 return event[5]; 8901 } 8902 /** 8903 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8904 * @param event packet 8905 * @return remote_seid 8906 * @note: btstack_type 1 8907 */ 8908 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 8909 return event[6]; 8910 } 8911 /** 8912 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8913 * @param event packet 8914 * @return reconfigure 8915 * @note: btstack_type 1 8916 */ 8917 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 8918 return event[7]; 8919 } 8920 /** 8921 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8922 * @param event packet 8923 * @return media_type 8924 * @note: btstack_type 1 8925 */ 8926 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 8927 return event[8]; 8928 } 8929 /** 8930 * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8931 * @param event packet 8932 * @return object_type 8933 * @note: btstack_type 1 8934 */ 8935 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 8936 return event[9]; 8937 } 8938 /** 8939 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8940 * @param event packet 8941 * @return sampling_frequency 8942 * @note: btstack_type 3 8943 */ 8944 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 8945 return little_endian_read_24(event, 10); 8946 } 8947 /** 8948 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8949 * @param event packet 8950 * @return num_channels 8951 * @note: btstack_type 1 8952 */ 8953 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 8954 return event[13]; 8955 } 8956 /** 8957 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8958 * @param event packet 8959 * @return bit_rate 8960 * @note: btstack_type 3 8961 */ 8962 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 8963 return little_endian_read_24(event, 14); 8964 } 8965 /** 8966 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8967 * @param event packet 8968 * @return vbr 8969 * @note: btstack_type 1 8970 */ 8971 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 8972 return event[17]; 8973 } 8974 8975 /** 8976 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8977 * @param event packet 8978 * @return a2dp_cid 8979 * @note: btstack_type 2 8980 */ 8981 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){ 8982 return little_endian_read_16(event, 3); 8983 } 8984 /** 8985 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8986 * @param event packet 8987 * @return local_seid 8988 * @note: btstack_type 1 8989 */ 8990 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 8991 return event[5]; 8992 } 8993 /** 8994 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8995 * @param event packet 8996 * @return remote_seid 8997 * @note: btstack_type 1 8998 */ 8999 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 9000 return event[6]; 9001 } 9002 /** 9003 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9004 * @param event packet 9005 * @return reconfigure 9006 * @note: btstack_type 1 9007 */ 9008 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 9009 return event[7]; 9010 } 9011 /** 9012 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9013 * @param event packet 9014 * @return media_type 9015 * @note: btstack_type 1 9016 */ 9017 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 9018 return event[8]; 9019 } 9020 /** 9021 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9022 * @param event packet 9023 * @return version 9024 * @note: btstack_type 1 9025 */ 9026 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 9027 return event[9]; 9028 } 9029 /** 9030 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9031 * @param event packet 9032 * @return channel_mode 9033 * @note: btstack_type 1 9034 */ 9035 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 9036 return event[10]; 9037 } 9038 /** 9039 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9040 * @param event packet 9041 * @return num_channels 9042 * @note: btstack_type 1 9043 */ 9044 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 9045 return event[11]; 9046 } 9047 /** 9048 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9049 * @param event packet 9050 * @return sampling_frequency 9051 * @note: btstack_type 2 9052 */ 9053 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 9054 return little_endian_read_16(event, 12); 9055 } 9056 /** 9057 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9058 * @param event packet 9059 * @return vbr 9060 * @note: btstack_type 1 9061 */ 9062 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 9063 return event[14]; 9064 } 9065 /** 9066 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9067 * @param event packet 9068 * @return bit_rate_index 9069 * @note: btstack_type 1 9070 */ 9071 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 9072 return event[15]; 9073 } 9074 /** 9075 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9076 * @param event packet 9077 * @return maximum_sul 9078 * @note: btstack_type 2 9079 */ 9080 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 9081 return little_endian_read_16(event, 16); 9082 } 9083 9084 /** 9085 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9086 * @param event packet 9087 * @return a2dp_cid 9088 * @note: btstack_type 2 9089 */ 9090 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){ 9091 return little_endian_read_16(event, 3); 9092 } 9093 /** 9094 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9095 * @param event packet 9096 * @return local_seid 9097 * @note: btstack_type 1 9098 */ 9099 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 9100 return event[5]; 9101 } 9102 /** 9103 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9104 * @param event packet 9105 * @return remote_seid 9106 * @note: btstack_type 1 9107 */ 9108 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 9109 return event[6]; 9110 } 9111 /** 9112 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9113 * @param event packet 9114 * @return reconfigure 9115 * @note: btstack_type 1 9116 */ 9117 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 9118 return event[7]; 9119 } 9120 /** 9121 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9122 * @param event packet 9123 * @return media_type 9124 * @note: btstack_type 1 9125 */ 9126 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 9127 return event[8]; 9128 } 9129 /** 9130 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9131 * @param event packet 9132 * @return media_codec_type 9133 * @note: btstack_type 2 9134 */ 9135 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 9136 return little_endian_read_16(event, 9); 9137 } 9138 /** 9139 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9140 * @param event packet 9141 * @return media_codec_information_len 9142 * @note: btstack_type L 9143 */ 9144 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 9145 return little_endian_read_16(event, 11); 9146 } 9147 /** 9148 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9149 * @param event packet 9150 * @return media_codec_information 9151 * @note: btstack_type V 9152 */ 9153 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 9154 return &event[13]; 9155 } 9156 9157 /** 9158 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9159 * @param event packet 9160 * @return a2dp_cid 9161 * @note: btstack_type 2 9162 */ 9163 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){ 9164 return little_endian_read_16(event, 3); 9165 } 9166 /** 9167 * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9168 * @param event packet 9169 * @param Pointer to storage for bd_addr 9170 * @note: btstack_type B 9171 */ 9172 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9173 reverse_bytes(&event[5], bd_addr, 6); 9174 } 9175 /** 9176 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9177 * @param event packet 9178 * @return local_seid 9179 * @note: btstack_type 1 9180 */ 9181 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){ 9182 return event[11]; 9183 } 9184 /** 9185 * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9186 * @param event packet 9187 * @return remote_seid 9188 * @note: btstack_type 1 9189 */ 9190 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){ 9191 return event[12]; 9192 } 9193 /** 9194 * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9195 * @param event packet 9196 * @return status 9197 * @note: btstack_type 1 9198 */ 9199 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 9200 return event[13]; 9201 } 9202 9203 /** 9204 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 9205 * @param event packet 9206 * @return a2dp_cid 9207 * @note: btstack_type 2 9208 */ 9209 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){ 9210 return little_endian_read_16(event, 3); 9211 } 9212 /** 9213 * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 9214 * @param event packet 9215 * @return local_seid 9216 * @note: btstack_type 1 9217 */ 9218 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){ 9219 return event[5]; 9220 } 9221 9222 /** 9223 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 9224 * @param event packet 9225 * @return a2dp_cid 9226 * @note: btstack_type 2 9227 */ 9228 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 9229 return little_endian_read_16(event, 3); 9230 } 9231 /** 9232 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED 9233 * @param event packet 9234 * @return local_seid 9235 * @note: btstack_type 1 9236 */ 9237 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){ 9238 return event[5]; 9239 } 9240 9241 /** 9242 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED 9243 * @param event packet 9244 * @return a2dp_cid 9245 * @note: btstack_type 2 9246 */ 9247 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){ 9248 return little_endian_read_16(event, 3); 9249 } 9250 /** 9251 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED 9252 * @param event packet 9253 * @return local_seid 9254 * @note: btstack_type 1 9255 */ 9256 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){ 9257 return event[5]; 9258 } 9259 9260 /** 9261 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED 9262 * @param event packet 9263 * @return a2dp_cid 9264 * @note: btstack_type 2 9265 */ 9266 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){ 9267 return little_endian_read_16(event, 3); 9268 } 9269 /** 9270 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED 9271 * @param event packet 9272 * @return local_seid 9273 * @note: btstack_type 1 9274 */ 9275 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){ 9276 return event[5]; 9277 } 9278 9279 /** 9280 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED 9281 * @param event packet 9282 * @return a2dp_cid 9283 * @note: btstack_type 2 9284 */ 9285 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){ 9286 return little_endian_read_16(event, 3); 9287 } 9288 /** 9289 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED 9290 * @param event packet 9291 * @return local_seid 9292 * @note: btstack_type 1 9293 */ 9294 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){ 9295 return event[5]; 9296 } 9297 9298 /** 9299 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9300 * @param event packet 9301 * @return a2dp_cid 9302 * @note: btstack_type 2 9303 */ 9304 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){ 9305 return little_endian_read_16(event, 3); 9306 } 9307 /** 9308 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9309 * @param event packet 9310 * @return local_seid 9311 * @note: btstack_type 1 9312 */ 9313 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){ 9314 return event[5]; 9315 } 9316 /** 9317 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9318 * @param event packet 9319 * @return signal_identifier 9320 * @note: btstack_type 1 9321 */ 9322 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){ 9323 return event[6]; 9324 } 9325 9326 /** 9327 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED 9328 * @param event packet 9329 * @return a2dp_cid 9330 * @note: btstack_type 2 9331 */ 9332 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){ 9333 return little_endian_read_16(event, 3); 9334 } 9335 /** 9336 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED 9337 * @param event packet 9338 * @return local_seid 9339 * @note: btstack_type 1 9340 */ 9341 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){ 9342 return event[5]; 9343 } 9344 /** 9345 * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED 9346 * @param event packet 9347 * @return is_initiator 9348 * @note: btstack_type 1 9349 */ 9350 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){ 9351 return event[6]; 9352 } 9353 /** 9354 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED 9355 * @param event packet 9356 * @return signal_identifier 9357 * @note: btstack_type 1 9358 */ 9359 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){ 9360 return event[7]; 9361 } 9362 9363 /** 9364 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9365 * @param event packet 9366 * @return a2dp_cid 9367 * @note: btstack_type 2 9368 */ 9369 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){ 9370 return little_endian_read_16(event, 3); 9371 } 9372 /** 9373 * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9374 * @param event packet 9375 * @param Pointer to storage for bd_addr 9376 * @note: btstack_type B 9377 */ 9378 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9379 reverse_bytes(&event[5], bd_addr, 6); 9380 } 9381 /** 9382 * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9383 * @param event packet 9384 * @return con_handle 9385 * @note: btstack_type 2 9386 */ 9387 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 9388 return little_endian_read_16(event, 11); 9389 } 9390 /** 9391 * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9392 * @param event packet 9393 * @return status 9394 * @note: btstack_type 1 9395 */ 9396 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 9397 return event[13]; 9398 } 9399 9400 /** 9401 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 9402 * @param event packet 9403 * @return a2dp_cid 9404 * @note: btstack_type 2 9405 */ 9406 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){ 9407 return little_endian_read_16(event, 3); 9408 } 9409 9410 /** 9411 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9412 * @param event packet 9413 * @return a2dp_cid 9414 * @note: btstack_type 2 9415 */ 9416 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){ 9417 return little_endian_read_16(event, 3); 9418 } 9419 /** 9420 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9421 * @param event packet 9422 * @return local_seid 9423 * @note: btstack_type 1 9424 */ 9425 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){ 9426 return event[5]; 9427 } 9428 /** 9429 * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9430 * @param event packet 9431 * @return status 9432 * @note: btstack_type 1 9433 */ 9434 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){ 9435 return event[6]; 9436 } 9437 9438 /** 9439 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9440 * @param event packet 9441 * @return a2dp_cid 9442 * @note: btstack_type 2 9443 */ 9444 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){ 9445 return little_endian_read_16(event, 3); 9446 } 9447 /** 9448 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9449 * @param event packet 9450 * @return remote_seid 9451 * @note: btstack_type 1 9452 */ 9453 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 9454 return event[5]; 9455 } 9456 /** 9457 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9458 * @param event packet 9459 * @return media_type 9460 * @note: btstack_type 1 9461 */ 9462 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 9463 return event[6]; 9464 } 9465 /** 9466 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9467 * @param event packet 9468 * @return sampling_frequency_bitmap 9469 * @note: btstack_type 1 9470 */ 9471 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9472 return event[7]; 9473 } 9474 /** 9475 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9476 * @param event packet 9477 * @return channel_mode_bitmap 9478 * @note: btstack_type 1 9479 */ 9480 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 9481 return event[8]; 9482 } 9483 /** 9484 * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9485 * @param event packet 9486 * @return block_length_bitmap 9487 * @note: btstack_type 1 9488 */ 9489 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 9490 return event[9]; 9491 } 9492 /** 9493 * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9494 * @param event packet 9495 * @return subbands_bitmap 9496 * @note: btstack_type 1 9497 */ 9498 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 9499 return event[10]; 9500 } 9501 /** 9502 * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9503 * @param event packet 9504 * @return allocation_method_bitmap 9505 * @note: btstack_type 1 9506 */ 9507 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 9508 return event[11]; 9509 } 9510 /** 9511 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9512 * @param event packet 9513 * @return min_bitpool_value 9514 * @note: btstack_type 1 9515 */ 9516 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 9517 return event[12]; 9518 } 9519 /** 9520 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9521 * @param event packet 9522 * @return max_bitpool_value 9523 * @note: btstack_type 1 9524 */ 9525 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 9526 return event[13]; 9527 } 9528 9529 /** 9530 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9531 * @param event packet 9532 * @return a2dp_cid 9533 * @note: btstack_type 2 9534 */ 9535 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){ 9536 return little_endian_read_16(event, 3); 9537 } 9538 /** 9539 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9540 * @param event packet 9541 * @return remote_seid 9542 * @note: btstack_type 1 9543 */ 9544 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 9545 return event[5]; 9546 } 9547 /** 9548 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9549 * @param event packet 9550 * @return media_type 9551 * @note: btstack_type 1 9552 */ 9553 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 9554 return event[6]; 9555 } 9556 /** 9557 * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9558 * @param event packet 9559 * @return layer_bitmap 9560 * @note: btstack_type 1 9561 */ 9562 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 9563 return event[7]; 9564 } 9565 /** 9566 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9567 * @param event packet 9568 * @return crc 9569 * @note: btstack_type 1 9570 */ 9571 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 9572 return event[8]; 9573 } 9574 /** 9575 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9576 * @param event packet 9577 * @return channel_mode_bitmap 9578 * @note: btstack_type 1 9579 */ 9580 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 9581 return event[9]; 9582 } 9583 /** 9584 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9585 * @param event packet 9586 * @return media_payload_format 9587 * @note: btstack_type 1 9588 */ 9589 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 9590 return event[10]; 9591 } 9592 /** 9593 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9594 * @param event packet 9595 * @return sampling_frequency_bitmap 9596 * @note: btstack_type 1 9597 */ 9598 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9599 return event[11]; 9600 } 9601 /** 9602 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9603 * @param event packet 9604 * @return vbr 9605 * @note: btstack_type 1 9606 */ 9607 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 9608 return event[12]; 9609 } 9610 /** 9611 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9612 * @param event packet 9613 * @return bit_rate_index_bitmap 9614 * @note: btstack_type 2 9615 */ 9616 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 9617 return little_endian_read_16(event, 13); 9618 } 9619 9620 /** 9621 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9622 * @param event packet 9623 * @return a2dp_cid 9624 * @note: btstack_type 2 9625 */ 9626 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){ 9627 return little_endian_read_16(event, 3); 9628 } 9629 /** 9630 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9631 * @param event packet 9632 * @return remote_seid 9633 * @note: btstack_type 1 9634 */ 9635 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 9636 return event[5]; 9637 } 9638 /** 9639 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9640 * @param event packet 9641 * @return media_type 9642 * @note: btstack_type 1 9643 */ 9644 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 9645 return event[6]; 9646 } 9647 /** 9648 * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9649 * @param event packet 9650 * @return object_type_bitmap 9651 * @note: btstack_type 1 9652 */ 9653 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 9654 return event[7]; 9655 } 9656 /** 9657 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9658 * @param event packet 9659 * @return sampling_frequency_bitmap 9660 * @note: btstack_type 2 9661 */ 9662 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9663 return little_endian_read_16(event, 8); 9664 } 9665 /** 9666 * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9667 * @param event packet 9668 * @return channels_bitmap 9669 * @note: btstack_type 1 9670 */ 9671 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 9672 return event[10]; 9673 } 9674 /** 9675 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9676 * @param event packet 9677 * @return bit_rate 9678 * @note: btstack_type 3 9679 */ 9680 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 9681 return little_endian_read_24(event, 11); 9682 } 9683 /** 9684 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9685 * @param event packet 9686 * @return vbr 9687 * @note: btstack_type 1 9688 */ 9689 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 9690 return event[14]; 9691 } 9692 9693 /** 9694 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9695 * @param event packet 9696 * @return a2dp_cid 9697 * @note: btstack_type 2 9698 */ 9699 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){ 9700 return little_endian_read_16(event, 3); 9701 } 9702 /** 9703 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9704 * @param event packet 9705 * @return remote_seid 9706 * @note: btstack_type 1 9707 */ 9708 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 9709 return event[5]; 9710 } 9711 /** 9712 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9713 * @param event packet 9714 * @return media_type 9715 * @note: btstack_type 1 9716 */ 9717 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 9718 return event[6]; 9719 } 9720 /** 9721 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9722 * @param event packet 9723 * @return version 9724 * @note: btstack_type 1 9725 */ 9726 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 9727 return event[7]; 9728 } 9729 /** 9730 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9731 * @param event packet 9732 * @return channel_mode_bitmap 9733 * @note: btstack_type 1 9734 */ 9735 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 9736 return event[8]; 9737 } 9738 /** 9739 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9740 * @param event packet 9741 * @return sampling_frequency_bitmap 9742 * @note: btstack_type 1 9743 */ 9744 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9745 return event[9]; 9746 } 9747 /** 9748 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9749 * @param event packet 9750 * @return vbr 9751 * @note: btstack_type 1 9752 */ 9753 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 9754 return event[10]; 9755 } 9756 /** 9757 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9758 * @param event packet 9759 * @return bit_rate_index_bitmap 9760 * @note: btstack_type 3 9761 */ 9762 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 9763 return little_endian_read_24(event, 11); 9764 } 9765 /** 9766 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9767 * @param event packet 9768 * @return maximum_sul 9769 * @note: btstack_type 2 9770 */ 9771 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 9772 return little_endian_read_16(event, 14); 9773 } 9774 9775 /** 9776 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9777 * @param event packet 9778 * @return a2dp_cid 9779 * @note: btstack_type 2 9780 */ 9781 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){ 9782 return little_endian_read_16(event, 3); 9783 } 9784 /** 9785 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9786 * @param event packet 9787 * @return remote_seid 9788 * @note: btstack_type 1 9789 */ 9790 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 9791 return event[5]; 9792 } 9793 /** 9794 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9795 * @param event packet 9796 * @return media_type 9797 * @note: btstack_type 1 9798 */ 9799 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 9800 return event[6]; 9801 } 9802 /** 9803 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9804 * @param event packet 9805 * @return media_codec_type 9806 * @note: btstack_type 2 9807 */ 9808 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 9809 return little_endian_read_16(event, 7); 9810 } 9811 /** 9812 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9813 * @param event packet 9814 * @return media_codec_information_len 9815 * @note: btstack_type L 9816 */ 9817 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 9818 return little_endian_read_16(event, 9); 9819 } 9820 /** 9821 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9822 * @param event packet 9823 * @return media_codec_information 9824 * @note: btstack_type V 9825 */ 9826 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 9827 return &event[11]; 9828 } 9829 9830 /** 9831 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 9832 * @param event packet 9833 * @return a2dp_cid 9834 * @note: btstack_type 2 9835 */ 9836 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){ 9837 return little_endian_read_16(event, 3); 9838 } 9839 /** 9840 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 9841 * @param event packet 9842 * @return remote_seid 9843 * @note: btstack_type 1 9844 */ 9845 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 9846 return event[5]; 9847 } 9848 9849 /** 9850 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9851 * @param event packet 9852 * @return a2dp_cid 9853 * @note: btstack_type 2 9854 */ 9855 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){ 9856 return little_endian_read_16(event, 3); 9857 } 9858 /** 9859 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9860 * @param event packet 9861 * @return local_seid 9862 * @note: btstack_type 1 9863 */ 9864 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 9865 return event[5]; 9866 } 9867 /** 9868 * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9869 * @param event packet 9870 * @return delay_100us 9871 * @note: btstack_type 2 9872 */ 9873 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 9874 return little_endian_read_16(event, 6); 9875 } 9876 9877 /** 9878 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 9879 * @param event packet 9880 * @return a2dp_cid 9881 * @note: btstack_type 2 9882 */ 9883 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){ 9884 return little_endian_read_16(event, 3); 9885 } 9886 /** 9887 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 9888 * @param event packet 9889 * @return remote_seid 9890 * @note: btstack_type 1 9891 */ 9892 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 9893 return event[5]; 9894 } 9895 9896 /** 9897 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE 9898 * @param event packet 9899 * @return a2dp_cid 9900 * @note: btstack_type 2 9901 */ 9902 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){ 9903 return little_endian_read_16(event, 3); 9904 } 9905 9906 /** 9907 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9908 * @param event packet 9909 * @return avrcp_cid 9910 * @note: btstack_type 2 9911 */ 9912 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){ 9913 return little_endian_read_16(event, 3); 9914 } 9915 /** 9916 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9917 * @param event packet 9918 * @return command_type 9919 * @note: btstack_type 1 9920 */ 9921 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){ 9922 return event[5]; 9923 } 9924 /** 9925 * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9926 * @param event packet 9927 * @return play_status 9928 * @note: btstack_type 1 9929 */ 9930 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){ 9931 return event[6]; 9932 } 9933 9934 /** 9935 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 9936 * @param event packet 9937 * @return avrcp_cid 9938 * @note: btstack_type 2 9939 */ 9940 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){ 9941 return little_endian_read_16(event, 3); 9942 } 9943 /** 9944 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 9945 * @param event packet 9946 * @return command_type 9947 * @note: btstack_type 1 9948 */ 9949 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){ 9950 return event[5]; 9951 } 9952 9953 /** 9954 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 9955 * @param event packet 9956 * @return avrcp_cid 9957 * @note: btstack_type 2 9958 */ 9959 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){ 9960 return little_endian_read_16(event, 3); 9961 } 9962 /** 9963 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 9964 * @param event packet 9965 * @return command_type 9966 * @note: btstack_type 1 9967 */ 9968 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){ 9969 return event[5]; 9970 } 9971 9972 /** 9973 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 9974 * @param event packet 9975 * @return avrcp_cid 9976 * @note: btstack_type 2 9977 */ 9978 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){ 9979 return little_endian_read_16(event, 3); 9980 } 9981 /** 9982 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 9983 * @param event packet 9984 * @return command_type 9985 * @note: btstack_type 1 9986 */ 9987 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){ 9988 return event[5]; 9989 } 9990 9991 /** 9992 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9993 * @param event packet 9994 * @return avrcp_cid 9995 * @note: btstack_type 2 9996 */ 9997 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 9998 return little_endian_read_16(event, 3); 9999 } 10000 /** 10001 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 10002 * @param event packet 10003 * @return command_type 10004 * @note: btstack_type 1 10005 */ 10006 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){ 10007 return event[5]; 10008 } 10009 /** 10010 * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 10011 * @param event packet 10012 * @return playback_position 10013 * @note: btstack_type 4 10014 */ 10015 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){ 10016 return little_endian_read_32(event, 6); 10017 } 10018 10019 /** 10020 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10021 * @param event packet 10022 * @return avrcp_cid 10023 * @note: btstack_type 2 10024 */ 10025 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){ 10026 return little_endian_read_16(event, 3); 10027 } 10028 /** 10029 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10030 * @param event packet 10031 * @return command_type 10032 * @note: btstack_type 1 10033 */ 10034 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){ 10035 return event[5]; 10036 } 10037 /** 10038 * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10039 * @param event packet 10040 * @return battery_status 10041 * @note: btstack_type 1 10042 */ 10043 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){ 10044 return event[6]; 10045 } 10046 10047 /** 10048 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10049 * @param event packet 10050 * @return avrcp_cid 10051 * @note: btstack_type 2 10052 */ 10053 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){ 10054 return little_endian_read_16(event, 3); 10055 } 10056 /** 10057 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10058 * @param event packet 10059 * @return command_type 10060 * @note: btstack_type 1 10061 */ 10062 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){ 10063 return event[5]; 10064 } 10065 /** 10066 * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10067 * @param event packet 10068 * @return system_status 10069 * @note: btstack_type 1 10070 */ 10071 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){ 10072 return event[6]; 10073 } 10074 10075 /** 10076 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10077 * @param event packet 10078 * @return avrcp_cid 10079 * @note: btstack_type 2 10080 */ 10081 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){ 10082 return little_endian_read_16(event, 3); 10083 } 10084 /** 10085 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10086 * @param event packet 10087 * @return command_type 10088 * @note: btstack_type 1 10089 */ 10090 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){ 10091 return event[5]; 10092 } 10093 10094 /** 10095 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10096 * @param event packet 10097 * @return avrcp_cid 10098 * @note: btstack_type 2 10099 */ 10100 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){ 10101 return little_endian_read_16(event, 3); 10102 } 10103 /** 10104 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10105 * @param event packet 10106 * @return command_type 10107 * @note: btstack_type 1 10108 */ 10109 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){ 10110 return event[5]; 10111 } 10112 10113 /** 10114 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10115 * @param event packet 10116 * @return avrcp_cid 10117 * @note: btstack_type 2 10118 */ 10119 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){ 10120 return little_endian_read_16(event, 3); 10121 } 10122 /** 10123 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10124 * @param event packet 10125 * @return command_type 10126 * @note: btstack_type 1 10127 */ 10128 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){ 10129 return event[5]; 10130 } 10131 /** 10132 * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10133 * @param event packet 10134 * @return uid_counter 10135 * @note: btstack_type 2 10136 */ 10137 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){ 10138 return little_endian_read_16(event, 6); 10139 } 10140 10141 /** 10142 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10143 * @param event packet 10144 * @return avrcp_cid 10145 * @note: btstack_type 2 10146 */ 10147 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){ 10148 return little_endian_read_16(event, 3); 10149 } 10150 /** 10151 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10152 * @param event packet 10153 * @return command_type 10154 * @note: btstack_type 1 10155 */ 10156 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){ 10157 return event[5]; 10158 } 10159 /** 10160 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10161 * @param event packet 10162 * @return absolute_volume 10163 * @note: btstack_type 1 10164 */ 10165 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){ 10166 return event[6]; 10167 } 10168 10169 /** 10170 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10171 * @param event packet 10172 * @return avrcp_cid 10173 * @note: btstack_type 2 10174 */ 10175 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){ 10176 return little_endian_read_16(event, 3); 10177 } 10178 /** 10179 * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10180 * @param event packet 10181 * @return command_type 10182 * @note: btstack_type 1 10183 */ 10184 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){ 10185 return event[5]; 10186 } 10187 /** 10188 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10189 * @param event packet 10190 * @return absolute_volume 10191 * @note: btstack_type 1 10192 */ 10193 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){ 10194 return event[6]; 10195 } 10196 10197 /** 10198 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10199 * @param event packet 10200 * @return avrcp_cid 10201 * @note: btstack_type 2 10202 */ 10203 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){ 10204 return little_endian_read_16(event, 3); 10205 } 10206 /** 10207 * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10208 * @param event packet 10209 * @return status 10210 * @note: btstack_type 1 10211 */ 10212 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){ 10213 return event[5]; 10214 } 10215 /** 10216 * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10217 * @param event packet 10218 * @return enabled 10219 * @note: btstack_type 1 10220 */ 10221 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){ 10222 return event[6]; 10223 } 10224 /** 10225 * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10226 * @param event packet 10227 * @return event_id 10228 * @note: btstack_type 1 10229 */ 10230 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){ 10231 return event[7]; 10232 } 10233 10234 /** 10235 * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10236 * @param event packet 10237 * @return status 10238 * @note: btstack_type 1 10239 */ 10240 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){ 10241 return event[3]; 10242 } 10243 /** 10244 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10245 * @param event packet 10246 * @return avrcp_cid 10247 * @note: btstack_type 2 10248 */ 10249 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){ 10250 return little_endian_read_16(event, 4); 10251 } 10252 /** 10253 * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10254 * @param event packet 10255 * @param Pointer to storage for bd_addr 10256 * @note: btstack_type B 10257 */ 10258 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10259 reverse_bytes(&event[6], bd_addr, 6); 10260 } 10261 /** 10262 * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10263 * @param event packet 10264 * @return con_handle 10265 * @note: btstack_type 2 10266 */ 10267 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){ 10268 return little_endian_read_16(event, 12); 10269 } 10270 10271 /** 10272 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED 10273 * @param event packet 10274 * @return avrcp_cid 10275 * @note: btstack_type 2 10276 */ 10277 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){ 10278 return little_endian_read_16(event, 3); 10279 } 10280 10281 /** 10282 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10283 * @param event packet 10284 * @return avrcp_cid 10285 * @note: btstack_type 2 10286 */ 10287 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){ 10288 return little_endian_read_16(event, 3); 10289 } 10290 /** 10291 * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10292 * @param event packet 10293 * @return command_type 10294 * @note: btstack_type 1 10295 */ 10296 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){ 10297 return event[5]; 10298 } 10299 /** 10300 * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10301 * @param event packet 10302 * @return repeat_mode 10303 * @note: btstack_type 1 10304 */ 10305 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){ 10306 return event[6]; 10307 } 10308 /** 10309 * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10310 * @param event packet 10311 * @return shuffle_mode 10312 * @note: btstack_type 1 10313 */ 10314 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){ 10315 return event[7]; 10316 } 10317 10318 /** 10319 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS 10320 * @param event packet 10321 * @return avrcp_cid 10322 * @note: btstack_type 2 10323 */ 10324 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){ 10325 return little_endian_read_16(event, 3); 10326 } 10327 /** 10328 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS 10329 * @param event packet 10330 * @return command_type 10331 * @note: btstack_type 1 10332 */ 10333 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){ 10334 return event[5]; 10335 } 10336 /** 10337 * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS 10338 * @param event packet 10339 * @return song_length 10340 * @note: btstack_type 4 10341 */ 10342 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){ 10343 return little_endian_read_32(event, 6); 10344 } 10345 /** 10346 * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS 10347 * @param event packet 10348 * @return song_position 10349 * @note: btstack_type 4 10350 */ 10351 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){ 10352 return little_endian_read_32(event, 10); 10353 } 10354 /** 10355 * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS 10356 * @param event packet 10357 * @return play_status 10358 * @note: btstack_type 1 10359 */ 10360 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){ 10361 return event[14]; 10362 } 10363 10364 /** 10365 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START 10366 * @param event packet 10367 * @return avrcp_cid 10368 * @note: btstack_type 2 10369 */ 10370 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){ 10371 return little_endian_read_16(event, 3); 10372 } 10373 /** 10374 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START 10375 * @param event packet 10376 * @return command_type 10377 * @note: btstack_type 1 10378 */ 10379 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){ 10380 return event[5]; 10381 } 10382 /** 10383 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START 10384 * @param event packet 10385 * @return operation_id 10386 * @note: btstack_type 1 10387 */ 10388 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){ 10389 return event[6]; 10390 } 10391 10392 /** 10393 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10394 * @param event packet 10395 * @return avrcp_cid 10396 * @note: btstack_type 2 10397 */ 10398 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){ 10399 return little_endian_read_16(event, 3); 10400 } 10401 /** 10402 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10403 * @param event packet 10404 * @return command_type 10405 * @note: btstack_type 1 10406 */ 10407 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){ 10408 return event[5]; 10409 } 10410 /** 10411 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10412 * @param event packet 10413 * @return operation_id 10414 * @note: btstack_type 1 10415 */ 10416 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){ 10417 return event[6]; 10418 } 10419 10420 /** 10421 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 10422 * @param event packet 10423 * @return avrcp_cid 10424 * @note: btstack_type 2 10425 */ 10426 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){ 10427 return little_endian_read_16(event, 3); 10428 } 10429 /** 10430 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 10431 * @param event packet 10432 * @return command_type 10433 * @note: btstack_type 1 10434 */ 10435 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){ 10436 return event[5]; 10437 } 10438 10439 /** 10440 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY 10441 * @param event packet 10442 * @return avrcp_cid 10443 * @note: btstack_type 2 10444 */ 10445 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){ 10446 return little_endian_read_16(event, 3); 10447 } 10448 10449 /** 10450 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION 10451 * @param event packet 10452 * @return avrcp_cid 10453 * @note: btstack_type 2 10454 */ 10455 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){ 10456 return little_endian_read_16(event, 3); 10457 } 10458 /** 10459 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION 10460 * @param event packet 10461 * @return operation_id 10462 * @note: btstack_type 1 10463 */ 10464 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){ 10465 return event[5]; 10466 } 10467 /** 10468 * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION 10469 * @param event packet 10470 * @return button_pressed 10471 * @note: btstack_type 1 10472 */ 10473 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){ 10474 return event[6]; 10475 } 10476 /** 10477 * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION 10478 * @param event packet 10479 * @return operands_length 10480 * @note: btstack_type 1 10481 */ 10482 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){ 10483 return event[7]; 10484 } 10485 /** 10486 * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION 10487 * @param event packet 10488 * @return operand 10489 * @note: btstack_type 1 10490 */ 10491 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){ 10492 return event[8]; 10493 } 10494 10495 /** 10496 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10497 * @param event packet 10498 * @return avrcp_cid 10499 * @note: btstack_type 2 10500 */ 10501 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){ 10502 return little_endian_read_16(event, 3); 10503 } 10504 /** 10505 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10506 * @param event packet 10507 * @return command_type 10508 * @note: btstack_type 1 10509 */ 10510 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){ 10511 return event[5]; 10512 } 10513 /** 10514 * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10515 * @param event packet 10516 * @return track 10517 * @note: btstack_type 1 10518 */ 10519 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){ 10520 return event[6]; 10521 } 10522 10523 /** 10524 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10525 * @param event packet 10526 * @return avrcp_cid 10527 * @note: btstack_type 2 10528 */ 10529 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){ 10530 return little_endian_read_16(event, 3); 10531 } 10532 /** 10533 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10534 * @param event packet 10535 * @return command_type 10536 * @note: btstack_type 1 10537 */ 10538 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){ 10539 return event[5]; 10540 } 10541 /** 10542 * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10543 * @param event packet 10544 * @return total_tracks 10545 * @note: btstack_type 1 10546 */ 10547 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){ 10548 return event[6]; 10549 } 10550 10551 /** 10552 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10553 * @param event packet 10554 * @return avrcp_cid 10555 * @note: btstack_type 2 10556 */ 10557 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){ 10558 return little_endian_read_16(event, 3); 10559 } 10560 /** 10561 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10562 * @param event packet 10563 * @return command_type 10564 * @note: btstack_type 1 10565 */ 10566 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){ 10567 return event[5]; 10568 } 10569 /** 10570 * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10571 * @param event packet 10572 * @return song_length 10573 * @note: btstack_type 4 10574 */ 10575 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){ 10576 return little_endian_read_32(event, 6); 10577 } 10578 10579 /** 10580 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10581 * @param event packet 10582 * @return avrcp_cid 10583 * @note: btstack_type 2 10584 */ 10585 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){ 10586 return little_endian_read_16(event, 3); 10587 } 10588 /** 10589 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10590 * @param event packet 10591 * @return command_type 10592 * @note: btstack_type 1 10593 */ 10594 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){ 10595 return event[5]; 10596 } 10597 /** 10598 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10599 * @param event packet 10600 * @return value_len 10601 * @note: btstack_type J 10602 */ 10603 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){ 10604 return event[6]; 10605 } 10606 /** 10607 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10608 * @param event packet 10609 * @return value 10610 * @note: btstack_type V 10611 */ 10612 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){ 10613 return &event[7]; 10614 } 10615 10616 /** 10617 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10618 * @param event packet 10619 * @return avrcp_cid 10620 * @note: btstack_type 2 10621 */ 10622 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){ 10623 return little_endian_read_16(event, 3); 10624 } 10625 /** 10626 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10627 * @param event packet 10628 * @return command_type 10629 * @note: btstack_type 1 10630 */ 10631 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){ 10632 return event[5]; 10633 } 10634 /** 10635 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10636 * @param event packet 10637 * @return value_len 10638 * @note: btstack_type J 10639 */ 10640 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){ 10641 return event[6]; 10642 } 10643 /** 10644 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10645 * @param event packet 10646 * @return value 10647 * @note: btstack_type V 10648 */ 10649 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){ 10650 return &event[7]; 10651 } 10652 10653 /** 10654 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10655 * @param event packet 10656 * @return avrcp_cid 10657 * @note: btstack_type 2 10658 */ 10659 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){ 10660 return little_endian_read_16(event, 3); 10661 } 10662 /** 10663 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10664 * @param event packet 10665 * @return command_type 10666 * @note: btstack_type 1 10667 */ 10668 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){ 10669 return event[5]; 10670 } 10671 /** 10672 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10673 * @param event packet 10674 * @return value_len 10675 * @note: btstack_type J 10676 */ 10677 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){ 10678 return event[6]; 10679 } 10680 /** 10681 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10682 * @param event packet 10683 * @return value 10684 * @note: btstack_type V 10685 */ 10686 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){ 10687 return &event[7]; 10688 } 10689 10690 /** 10691 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10692 * @param event packet 10693 * @return avrcp_cid 10694 * @note: btstack_type 2 10695 */ 10696 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){ 10697 return little_endian_read_16(event, 3); 10698 } 10699 /** 10700 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10701 * @param event packet 10702 * @return command_type 10703 * @note: btstack_type 1 10704 */ 10705 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){ 10706 return event[5]; 10707 } 10708 /** 10709 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10710 * @param event packet 10711 * @return value_len 10712 * @note: btstack_type J 10713 */ 10714 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){ 10715 return event[6]; 10716 } 10717 /** 10718 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10719 * @param event packet 10720 * @return value 10721 * @note: btstack_type V 10722 */ 10723 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){ 10724 return &event[7]; 10725 } 10726 10727 /** 10728 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10729 * @param event packet 10730 * @return avrcp_cid 10731 * @note: btstack_type 2 10732 */ 10733 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){ 10734 return little_endian_read_16(event, 3); 10735 } 10736 /** 10737 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10738 * @param event packet 10739 * @return command_type 10740 * @note: btstack_type 1 10741 */ 10742 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){ 10743 return event[5]; 10744 } 10745 /** 10746 * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10747 * @param event packet 10748 * @return status 10749 * @note: btstack_type 1 10750 */ 10751 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){ 10752 return event[6]; 10753 } 10754 10755 /** 10756 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10757 * @param event packet 10758 * @return avrcp_cid 10759 * @note: btstack_type 2 10760 */ 10761 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 10762 return little_endian_read_16(event, 3); 10763 } 10764 /** 10765 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10766 * @param event packet 10767 * @return command_type 10768 * @note: btstack_type 1 10769 */ 10770 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){ 10771 return event[5]; 10772 } 10773 /** 10774 * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10775 * @param event packet 10776 * @return playback_position_ms 10777 * @note: btstack_type 4 10778 */ 10779 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){ 10780 return little_endian_read_32(event, 6); 10781 } 10782 10783 /** 10784 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10785 * @param event packet 10786 * @return avrcp_cid 10787 * @note: btstack_type 2 10788 */ 10789 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){ 10790 return little_endian_read_16(event, 3); 10791 } 10792 /** 10793 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10794 * @param event packet 10795 * @return command_type 10796 * @note: btstack_type 1 10797 */ 10798 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){ 10799 return event[5]; 10800 } 10801 /** 10802 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10803 * @param event packet 10804 * @return status 10805 * @note: btstack_type 1 10806 */ 10807 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){ 10808 return event[6]; 10809 } 10810 /** 10811 * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10812 * @param event packet 10813 * @return event_id 10814 * @note: btstack_type 1 10815 */ 10816 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){ 10817 return event[7]; 10818 } 10819 10820 /** 10821 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10822 * @param event packet 10823 * @return avrcp_cid 10824 * @note: btstack_type 2 10825 */ 10826 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){ 10827 return little_endian_read_16(event, 3); 10828 } 10829 /** 10830 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10831 * @param event packet 10832 * @return command_type 10833 * @note: btstack_type 1 10834 */ 10835 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){ 10836 return event[5]; 10837 } 10838 /** 10839 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10840 * @param event packet 10841 * @return status 10842 * @note: btstack_type 1 10843 */ 10844 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){ 10845 return event[6]; 10846 } 10847 10848 /** 10849 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10850 * @param event packet 10851 * @return avrcp_cid 10852 * @note: btstack_type 2 10853 */ 10854 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){ 10855 return little_endian_read_16(event, 3); 10856 } 10857 /** 10858 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10859 * @param event packet 10860 * @return command_type 10861 * @note: btstack_type 1 10862 */ 10863 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){ 10864 return event[5]; 10865 } 10866 /** 10867 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10868 * @param event packet 10869 * @return status 10870 * @note: btstack_type 1 10871 */ 10872 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){ 10873 return event[6]; 10874 } 10875 /** 10876 * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10877 * @param event packet 10878 * @return company_id 10879 * @note: btstack_type 3 10880 */ 10881 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){ 10882 return little_endian_read_24(event, 7); 10883 } 10884 10885 /** 10886 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10887 * @param event packet 10888 * @return avrcp_cid 10889 * @note: btstack_type 2 10890 */ 10891 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){ 10892 return little_endian_read_16(event, 3); 10893 } 10894 /** 10895 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10896 * @param event packet 10897 * @return command_type 10898 * @note: btstack_type 1 10899 */ 10900 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){ 10901 return event[5]; 10902 } 10903 /** 10904 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10905 * @param event packet 10906 * @return status 10907 * @note: btstack_type 1 10908 */ 10909 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){ 10910 return event[6]; 10911 } 10912 10913 /** 10914 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10915 * @param event packet 10916 * @return avrcp_cid 10917 * @note: btstack_type 2 10918 */ 10919 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){ 10920 return little_endian_read_16(event, 3); 10921 } 10922 /** 10923 * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10924 * @param event packet 10925 * @return command_type 10926 * @note: btstack_type 1 10927 */ 10928 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){ 10929 return event[5]; 10930 } 10931 /** 10932 * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10933 * @param event packet 10934 * @return pdu_id 10935 * @note: btstack_type 1 10936 */ 10937 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){ 10938 return event[6]; 10939 } 10940 /** 10941 * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10942 * @param event packet 10943 * @return params_len 10944 * @note: btstack_type L 10945 */ 10946 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){ 10947 return little_endian_read_16(event, 7); 10948 } 10949 /** 10950 * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10951 * @param event packet 10952 * @return params 10953 * @note: btstack_type V 10954 */ 10955 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){ 10956 return &event[9]; 10957 } 10958 10959 /** 10960 * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 10961 * @param event packet 10962 * @param Pointer to storage for bd_addr 10963 * @note: btstack_type B 10964 */ 10965 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10966 reverse_bytes(&event[3], bd_addr, 6); 10967 } 10968 /** 10969 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 10970 * @param event packet 10971 * @return browsing_cid 10972 * @note: btstack_type 2 10973 */ 10974 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){ 10975 return little_endian_read_16(event, 9); 10976 } 10977 10978 /** 10979 * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10980 * @param event packet 10981 * @return status 10982 * @note: btstack_type 1 10983 */ 10984 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){ 10985 return event[3]; 10986 } 10987 /** 10988 * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10989 * @param event packet 10990 * @param Pointer to storage for bd_addr 10991 * @note: btstack_type B 10992 */ 10993 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10994 reverse_bytes(&event[4], bd_addr, 6); 10995 } 10996 /** 10997 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10998 * @param event packet 10999 * @return browsing_cid 11000 * @note: btstack_type 2 11001 */ 11002 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){ 11003 return little_endian_read_16(event, 10); 11004 } 11005 11006 /** 11007 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 11008 * @param event packet 11009 * @return browsing_cid 11010 * @note: btstack_type 2 11011 */ 11012 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){ 11013 return little_endian_read_16(event, 3); 11014 } 11015 11016 /** 11017 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE 11018 * @param event packet 11019 * @return browsing_cid 11020 * @note: btstack_type 2 11021 */ 11022 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){ 11023 return little_endian_read_16(event, 3); 11024 } 11025 /** 11026 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE 11027 * @param event packet 11028 * @return uid_counter 11029 * @note: btstack_type 2 11030 */ 11031 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){ 11032 return little_endian_read_16(event, 5); 11033 } 11034 /** 11035 * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE 11036 * @param event packet 11037 * @return browsing_status 11038 * @note: btstack_type 1 11039 */ 11040 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){ 11041 return event[7]; 11042 } 11043 /** 11044 * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE 11045 * @param event packet 11046 * @return bluetooth_status 11047 * @note: btstack_type 1 11048 */ 11049 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){ 11050 return event[8]; 11051 } 11052 11053 /** 11054 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11055 * @param event packet 11056 * @return browsing_cid 11057 * @note: btstack_type 2 11058 */ 11059 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){ 11060 return little_endian_read_16(event, 3); 11061 } 11062 /** 11063 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11064 * @param event packet 11065 * @return scope 11066 * @note: btstack_type 1 11067 */ 11068 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){ 11069 return event[5]; 11070 } 11071 /** 11072 * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11073 * @param event packet 11074 * @return attr_bitmap 11075 * @note: btstack_type 4 11076 */ 11077 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){ 11078 return little_endian_read_32(event, 6); 11079 } 11080 11081 /** 11082 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 11083 * @param event packet 11084 * @return browsing_cid 11085 * @note: btstack_type 2 11086 */ 11087 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){ 11088 return little_endian_read_16(event, 3); 11089 } 11090 /** 11091 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 11092 * @param event packet 11093 * @return scope 11094 * @note: btstack_type 1 11095 */ 11096 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){ 11097 return event[5]; 11098 } 11099 11100 /** 11101 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 11102 * @param event packet 11103 * @return browsing_cid 11104 * @note: btstack_type 2 11105 */ 11106 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){ 11107 return little_endian_read_16(event, 3); 11108 } 11109 /** 11110 * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 11111 * @param event packet 11112 * @return player_id 11113 * @note: btstack_type 2 11114 */ 11115 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){ 11116 return little_endian_read_16(event, 5); 11117 } 11118 11119 /** 11120 * @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION 11121 * @param event packet 11122 * @return goep_cid 11123 * @note: btstack_type 2 11124 */ 11125 static inline uint16_t goep_subevent_incoming_connection_get_goep_cid(const uint8_t * event){ 11126 return little_endian_read_16(event, 3); 11127 } 11128 /** 11129 * @brief Get field address from event GOEP_SUBEVENT_INCOMING_CONNECTION 11130 * @param event packet 11131 * @param Pointer to storage for address 11132 * @note: btstack_type B 11133 */ 11134 static inline void goep_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 11135 reverse_bytes(&event[5], address, 6); 11136 } 11137 /** 11138 * @brief Get field handle from event GOEP_SUBEVENT_INCOMING_CONNECTION 11139 * @param event packet 11140 * @return handle 11141 * @note: btstack_type H 11142 */ 11143 static inline hci_con_handle_t goep_subevent_incoming_connection_get_handle(const uint8_t * event){ 11144 return little_endian_read_16(event, 11); 11145 } 11146 11147 /** 11148 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED 11149 * @param event packet 11150 * @return goep_cid 11151 * @note: btstack_type 2 11152 */ 11153 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){ 11154 return little_endian_read_16(event, 3); 11155 } 11156 /** 11157 * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED 11158 * @param event packet 11159 * @return status 11160 * @note: btstack_type 1 11161 */ 11162 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){ 11163 return event[5]; 11164 } 11165 /** 11166 * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED 11167 * @param event packet 11168 * @param Pointer to storage for bd_addr 11169 * @note: btstack_type B 11170 */ 11171 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11172 reverse_bytes(&event[6], bd_addr, 6); 11173 } 11174 /** 11175 * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED 11176 * @param event packet 11177 * @return con_handle 11178 * @note: btstack_type H 11179 */ 11180 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11181 return little_endian_read_16(event, 12); 11182 } 11183 /** 11184 * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED 11185 * @param event packet 11186 * @return incoming 11187 * @note: btstack_type 1 11188 */ 11189 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){ 11190 return event[14]; 11191 } 11192 11193 /** 11194 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED 11195 * @param event packet 11196 * @return goep_cid 11197 * @note: btstack_type 2 11198 */ 11199 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 11200 return little_endian_read_16(event, 3); 11201 } 11202 11203 /** 11204 * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW 11205 * @param event packet 11206 * @return goep_cid 11207 * @note: btstack_type 2 11208 */ 11209 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){ 11210 return little_endian_read_16(event, 3); 11211 } 11212 11213 /** 11214 * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED 11215 * @param event packet 11216 * @return pbap_cid 11217 * @note: btstack_type 2 11218 */ 11219 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){ 11220 return little_endian_read_16(event, 3); 11221 } 11222 /** 11223 * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED 11224 * @param event packet 11225 * @return status 11226 * @note: btstack_type 1 11227 */ 11228 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){ 11229 return event[5]; 11230 } 11231 /** 11232 * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED 11233 * @param event packet 11234 * @param Pointer to storage for bd_addr 11235 * @note: btstack_type B 11236 */ 11237 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11238 reverse_bytes(&event[6], bd_addr, 6); 11239 } 11240 /** 11241 * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED 11242 * @param event packet 11243 * @return con_handle 11244 * @note: btstack_type H 11245 */ 11246 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11247 return little_endian_read_16(event, 12); 11248 } 11249 /** 11250 * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED 11251 * @param event packet 11252 * @return incoming 11253 * @note: btstack_type 1 11254 */ 11255 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){ 11256 return event[14]; 11257 } 11258 11259 /** 11260 * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED 11261 * @param event packet 11262 * @return goep_cid 11263 * @note: btstack_type 2 11264 */ 11265 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 11266 return little_endian_read_16(event, 3); 11267 } 11268 11269 /** 11270 * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED 11271 * @param event packet 11272 * @return goep_cid 11273 * @note: btstack_type 2 11274 */ 11275 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){ 11276 return little_endian_read_16(event, 3); 11277 } 11278 /** 11279 * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED 11280 * @param event packet 11281 * @return status 11282 * @note: btstack_type 1 11283 */ 11284 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){ 11285 return event[5]; 11286 } 11287 11288 /** 11289 * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11290 * @param event packet 11291 * @return goep_cid 11292 * @note: btstack_type 2 11293 */ 11294 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){ 11295 return little_endian_read_16(event, 3); 11296 } 11297 /** 11298 * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11299 * @param event packet 11300 * @return status 11301 * @note: btstack_type 1 11302 */ 11303 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){ 11304 return event[5]; 11305 } 11306 /** 11307 * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11308 * @param event packet 11309 * @return phonebook_size 11310 * @note: btstack_type 2 11311 */ 11312 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){ 11313 return little_endian_read_16(event, 6); 11314 } 11315 11316 /** 11317 * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11318 * @param event packet 11319 * @return goep_cid 11320 * @note: btstack_type 2 11321 */ 11322 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){ 11323 return little_endian_read_16(event, 3); 11324 } 11325 /** 11326 * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11327 * @param event packet 11328 * @return user_id_required 11329 * @note: btstack_type 1 11330 */ 11331 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){ 11332 return event[5]; 11333 } 11334 /** 11335 * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11336 * @param event packet 11337 * @return full_access 11338 * @note: btstack_type 1 11339 */ 11340 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){ 11341 return event[6]; 11342 } 11343 11344 /** 11345 * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT 11346 * @param event packet 11347 * @return goep_cid 11348 * @note: btstack_type 2 11349 */ 11350 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){ 11351 return little_endian_read_16(event, 3); 11352 } 11353 /** 11354 * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT 11355 * @param event packet 11356 * @return name_len 11357 * @note: btstack_type J 11358 */ 11359 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){ 11360 return event[5]; 11361 } 11362 /** 11363 * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT 11364 * @param event packet 11365 * @return name 11366 * @note: btstack_type V 11367 */ 11368 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){ 11369 return &event[6]; 11370 } 11371 /** 11372 * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT 11373 * @param event packet 11374 * @return handle_len 11375 * @note: btstack_type J 11376 */ 11377 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){ 11378 return event[6u + event[5]]; 11379 } 11380 /** 11381 * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT 11382 * @param event packet 11383 * @return handle 11384 * @note: btstack_type V 11385 */ 11386 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){ 11387 return &event[6u + event[5] + 1u]; 11388 } 11389 11390 /** 11391 * @brief Get field goep_cid from event PBAP_SUBEVENT_RESET_MISSED_CALLS 11392 * @param event packet 11393 * @return goep_cid 11394 * @note: btstack_type 2 11395 */ 11396 static inline uint16_t pbap_subevent_reset_missed_calls_get_goep_cid(const uint8_t * event){ 11397 return little_endian_read_16(event, 3); 11398 } 11399 /** 11400 * @brief Get field phonebook from event PBAP_SUBEVENT_RESET_MISSED_CALLS 11401 * @param event packet 11402 * @return phonebook 11403 * @note: btstack_type 1 11404 */ 11405 static inline uint8_t pbap_subevent_reset_missed_calls_get_phonebook(const uint8_t * event){ 11406 return event[5]; 11407 } 11408 11409 /** 11410 * @brief Get field goep_cid from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11411 * @param event packet 11412 * @return goep_cid 11413 * @note: btstack_type 2 11414 */ 11415 static inline uint16_t pbap_subevent_query_phonebook_size_get_goep_cid(const uint8_t * event){ 11416 return little_endian_read_16(event, 3); 11417 } 11418 /** 11419 * @brief Get field vcard_selector from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11420 * @param event packet 11421 * @return vcard_selector 11422 * @note: btstack_type 4 11423 */ 11424 static inline uint32_t pbap_subevent_query_phonebook_size_get_vcard_selector(const uint8_t * event){ 11425 return little_endian_read_32(event, 5); 11426 } 11427 /** 11428 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11429 * @param event packet 11430 * @return vcard_selector_operator 11431 * @note: btstack_type 1 11432 */ 11433 static inline uint8_t pbap_subevent_query_phonebook_size_get_vcard_selector_operator(const uint8_t * event){ 11434 return event[9]; 11435 } 11436 /** 11437 * @brief Get field phonebook from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11438 * @param event packet 11439 * @return phonebook 11440 * @note: btstack_type 1 11441 */ 11442 static inline uint8_t pbap_subevent_query_phonebook_size_get_phonebook(const uint8_t * event){ 11443 return event[10]; 11444 } 11445 11446 /** 11447 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_PHONEBOOK 11448 * @param event packet 11449 * @return goep_cid 11450 * @note: btstack_type 2 11451 */ 11452 static inline uint16_t pbap_subevent_pull_phonebook_get_goep_cid(const uint8_t * event){ 11453 return little_endian_read_16(event, 3); 11454 } 11455 /** 11456 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_PHONEBOOK 11457 * @param event packet 11458 * @return continuation 11459 * @note: btstack_type 4 11460 */ 11461 static inline uint32_t pbap_subevent_pull_phonebook_get_continuation(const uint8_t * event){ 11462 return little_endian_read_32(event, 5); 11463 } 11464 /** 11465 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 11466 * @param event packet 11467 * @return property_selector 11468 * @note: btstack_type 4 11469 */ 11470 static inline uint32_t pbap_subevent_pull_phonebook_get_property_selector(const uint8_t * event){ 11471 return little_endian_read_32(event, 9); 11472 } 11473 /** 11474 * @brief Get field format from event PBAP_SUBEVENT_PULL_PHONEBOOK 11475 * @param event packet 11476 * @return format 11477 * @note: btstack_type 1 11478 */ 11479 static inline uint8_t pbap_subevent_pull_phonebook_get_format(const uint8_t * event){ 11480 return event[13]; 11481 } 11482 /** 11483 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_PHONEBOOK 11484 * @param event packet 11485 * @return max_list_count 11486 * @note: btstack_type 2 11487 */ 11488 static inline uint16_t pbap_subevent_pull_phonebook_get_max_list_count(const uint8_t * event){ 11489 return little_endian_read_16(event, 14); 11490 } 11491 /** 11492 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_PHONEBOOK 11493 * @param event packet 11494 * @return list_start_offset 11495 * @note: btstack_type 2 11496 */ 11497 static inline uint16_t pbap_subevent_pull_phonebook_get_list_start_offset(const uint8_t * event){ 11498 return little_endian_read_16(event, 16); 11499 } 11500 /** 11501 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 11502 * @param event packet 11503 * @return vcard_selector 11504 * @note: btstack_type 4 11505 */ 11506 static inline uint32_t pbap_subevent_pull_phonebook_get_vcard_selector(const uint8_t * event){ 11507 return little_endian_read_32(event, 18); 11508 } 11509 /** 11510 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_PHONEBOOK 11511 * @param event packet 11512 * @return vcard_selector_operator 11513 * @note: btstack_type 1 11514 */ 11515 static inline uint8_t pbap_subevent_pull_phonebook_get_vcard_selector_operator(const uint8_t * event){ 11516 return event[22]; 11517 } 11518 /** 11519 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_PHONEBOOK 11520 * @param event packet 11521 * @return phonebook 11522 * @note: btstack_type 1 11523 */ 11524 static inline uint8_t pbap_subevent_pull_phonebook_get_phonebook(const uint8_t * event){ 11525 return event[23]; 11526 } 11527 11528 /** 11529 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11530 * @param event packet 11531 * @return goep_cid 11532 * @note: btstack_type 2 11533 */ 11534 static inline uint16_t pbap_subevent_pull_vcard_listing_get_goep_cid(const uint8_t * event){ 11535 return little_endian_read_16(event, 3); 11536 } 11537 /** 11538 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11539 * @param event packet 11540 * @return continuation 11541 * @note: btstack_type 4 11542 */ 11543 static inline uint32_t pbap_subevent_pull_vcard_listing_get_continuation(const uint8_t * event){ 11544 return little_endian_read_32(event, 5); 11545 } 11546 /** 11547 * @brief Get field order from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11548 * @param event packet 11549 * @return order 11550 * @note: btstack_type 1 11551 */ 11552 static inline uint8_t pbap_subevent_pull_vcard_listing_get_order(const uint8_t * event){ 11553 return event[9]; 11554 } 11555 /** 11556 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11557 * @param event packet 11558 * @return max_list_count 11559 * @note: btstack_type 2 11560 */ 11561 static inline uint16_t pbap_subevent_pull_vcard_listing_get_max_list_count(const uint8_t * event){ 11562 return little_endian_read_16(event, 10); 11563 } 11564 /** 11565 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11566 * @param event packet 11567 * @return list_start_offset 11568 * @note: btstack_type 2 11569 */ 11570 static inline uint16_t pbap_subevent_pull_vcard_listing_get_list_start_offset(const uint8_t * event){ 11571 return little_endian_read_16(event, 12); 11572 } 11573 /** 11574 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11575 * @param event packet 11576 * @return vcard_selector 11577 * @note: btstack_type 4 11578 */ 11579 static inline uint32_t pbap_subevent_pull_vcard_listing_get_vcard_selector(const uint8_t * event){ 11580 return little_endian_read_32(event, 14); 11581 } 11582 /** 11583 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11584 * @param event packet 11585 * @return vcard_selector_operator 11586 * @note: btstack_type 1 11587 */ 11588 static inline uint8_t pbap_subevent_pull_vcard_listing_get_vcard_selector_operator(const uint8_t * event){ 11589 return event[18]; 11590 } 11591 /** 11592 * @brief Get field search_property from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11593 * @param event packet 11594 * @return search_property 11595 * @note: btstack_type 1 11596 */ 11597 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_property(const uint8_t * event){ 11598 return event[19]; 11599 } 11600 /** 11601 * @brief Get field search_value_len from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11602 * @param event packet 11603 * @return search_value_len 11604 * @note: btstack_type J 11605 */ 11606 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_value_len(const uint8_t * event){ 11607 return event[20]; 11608 } 11609 /** 11610 * @brief Get field search_value from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11611 * @param event packet 11612 * @return search_value 11613 * @note: btstack_type V 11614 */ 11615 static inline const uint8_t * pbap_subevent_pull_vcard_listing_get_search_value(const uint8_t * event){ 11616 return &event[21]; 11617 } 11618 /** 11619 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11620 * @param event packet 11621 * @return phonebook 11622 * @note: btstack_type 1 11623 */ 11624 static inline uint8_t pbap_subevent_pull_vcard_listing_get_phonebook(const uint8_t * event){ 11625 return event[21u + event[20]]; 11626 } 11627 11628 /** 11629 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11630 * @param event packet 11631 * @return goep_cid 11632 * @note: btstack_type 2 11633 */ 11634 static inline uint16_t pbap_subevent_pull_vcard_entry_get_goep_cid(const uint8_t * event){ 11635 return little_endian_read_16(event, 3); 11636 } 11637 /** 11638 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11639 * @param event packet 11640 * @return continuation 11641 * @note: btstack_type 4 11642 */ 11643 static inline uint32_t pbap_subevent_pull_vcard_entry_get_continuation(const uint8_t * event){ 11644 return little_endian_read_32(event, 5); 11645 } 11646 /** 11647 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11648 * @param event packet 11649 * @return property_selector 11650 * @note: btstack_type 4 11651 */ 11652 static inline uint32_t pbap_subevent_pull_vcard_entry_get_property_selector(const uint8_t * event){ 11653 return little_endian_read_32(event, 9); 11654 } 11655 /** 11656 * @brief Get field format from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11657 * @param event packet 11658 * @return format 11659 * @note: btstack_type 1 11660 */ 11661 static inline uint8_t pbap_subevent_pull_vcard_entry_get_format(const uint8_t * event){ 11662 return event[13]; 11663 } 11664 /** 11665 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11666 * @param event packet 11667 * @return phonebook 11668 * @note: btstack_type 1 11669 */ 11670 static inline uint8_t pbap_subevent_pull_vcard_entry_get_phonebook(const uint8_t * event){ 11671 return event[14]; 11672 } 11673 /** 11674 * @brief Get field name from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11675 * @param event packet 11676 * @return name 11677 * @note: btstack_type T 11678 */ 11679 static inline const char * pbap_subevent_pull_vcard_entry_get_name(const uint8_t * event){ 11680 return (const char *) &event[15]; 11681 } 11682 11683 /** 11684 * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION 11685 * @param event packet 11686 * @return hid_cid 11687 * @note: btstack_type 2 11688 */ 11689 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){ 11690 return little_endian_read_16(event, 3); 11691 } 11692 /** 11693 * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION 11694 * @param event packet 11695 * @param Pointer to storage for address 11696 * @note: btstack_type B 11697 */ 11698 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 11699 reverse_bytes(&event[5], address, 6); 11700 } 11701 /** 11702 * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION 11703 * @param event packet 11704 * @return handle 11705 * @note: btstack_type H 11706 */ 11707 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){ 11708 return little_endian_read_16(event, 11); 11709 } 11710 11711 /** 11712 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED 11713 * @param event packet 11714 * @return hid_cid 11715 * @note: btstack_type 2 11716 */ 11717 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){ 11718 return little_endian_read_16(event, 3); 11719 } 11720 /** 11721 * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED 11722 * @param event packet 11723 * @return status 11724 * @note: btstack_type 1 11725 */ 11726 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){ 11727 return event[5]; 11728 } 11729 /** 11730 * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED 11731 * @param event packet 11732 * @param Pointer to storage for bd_addr 11733 * @note: btstack_type B 11734 */ 11735 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11736 reverse_bytes(&event[6], bd_addr, 6); 11737 } 11738 /** 11739 * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED 11740 * @param event packet 11741 * @return con_handle 11742 * @note: btstack_type H 11743 */ 11744 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11745 return little_endian_read_16(event, 12); 11746 } 11747 /** 11748 * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED 11749 * @param event packet 11750 * @return incoming 11751 * @note: btstack_type 1 11752 */ 11753 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){ 11754 return event[14]; 11755 } 11756 11757 /** 11758 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED 11759 * @param event packet 11760 * @return hid_cid 11761 * @note: btstack_type 2 11762 */ 11763 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){ 11764 return little_endian_read_16(event, 3); 11765 } 11766 11767 /** 11768 * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW 11769 * @param event packet 11770 * @return hid_cid 11771 * @note: btstack_type 2 11772 */ 11773 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){ 11774 return little_endian_read_16(event, 3); 11775 } 11776 11777 /** 11778 * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND 11779 * @param event packet 11780 * @return hid_cid 11781 * @note: btstack_type 2 11782 */ 11783 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){ 11784 return little_endian_read_16(event, 3); 11785 } 11786 11787 /** 11788 * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND 11789 * @param event packet 11790 * @return hid_cid 11791 * @note: btstack_type 2 11792 */ 11793 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){ 11794 return little_endian_read_16(event, 3); 11795 } 11796 11797 /** 11798 * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG 11799 * @param event packet 11800 * @return hid_cid 11801 * @note: btstack_type 2 11802 */ 11803 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){ 11804 return little_endian_read_16(event, 3); 11805 } 11806 11807 /** 11808 * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE 11809 * @param event packet 11810 * @return hid_cid 11811 * @note: btstack_type 2 11812 */ 11813 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){ 11814 return little_endian_read_16(event, 3); 11815 } 11816 /** 11817 * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE 11818 * @param event packet 11819 * @return handshake_status 11820 * @note: btstack_type 1 11821 */ 11822 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){ 11823 return event[5]; 11824 } 11825 /** 11826 * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE 11827 * @param event packet 11828 * @return report_len 11829 * @note: btstack_type L 11830 */ 11831 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){ 11832 return little_endian_read_16(event, 6); 11833 } 11834 /** 11835 * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE 11836 * @param event packet 11837 * @return report 11838 * @note: btstack_type V 11839 */ 11840 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){ 11841 return &event[8]; 11842 } 11843 11844 /** 11845 * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE 11846 * @param event packet 11847 * @return hid_cid 11848 * @note: btstack_type 2 11849 */ 11850 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){ 11851 return little_endian_read_16(event, 3); 11852 } 11853 /** 11854 * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE 11855 * @param event packet 11856 * @return handshake_status 11857 * @note: btstack_type 1 11858 */ 11859 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){ 11860 return event[5]; 11861 } 11862 11863 /** 11864 * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11865 * @param event packet 11866 * @return hid_cid 11867 * @note: btstack_type 2 11868 */ 11869 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){ 11870 return little_endian_read_16(event, 3); 11871 } 11872 /** 11873 * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11874 * @param event packet 11875 * @return handshake_status 11876 * @note: btstack_type 1 11877 */ 11878 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){ 11879 return event[5]; 11880 } 11881 /** 11882 * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11883 * @param event packet 11884 * @return protocol_mode 11885 * @note: btstack_type 1 11886 */ 11887 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){ 11888 return event[6]; 11889 } 11890 11891 /** 11892 * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11893 * @param event packet 11894 * @return hid_cid 11895 * @note: btstack_type 2 11896 */ 11897 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){ 11898 return little_endian_read_16(event, 3); 11899 } 11900 /** 11901 * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11902 * @param event packet 11903 * @return handshake_status 11904 * @note: btstack_type 1 11905 */ 11906 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){ 11907 return event[5]; 11908 } 11909 /** 11910 * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11911 * @param event packet 11912 * @return protocol_mode 11913 * @note: btstack_type 1 11914 */ 11915 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){ 11916 return event[6]; 11917 } 11918 11919 /** 11920 * @brief Get field hid_cid from event HID_SUBEVENT_REPORT 11921 * @param event packet 11922 * @return hid_cid 11923 * @note: btstack_type 2 11924 */ 11925 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){ 11926 return little_endian_read_16(event, 3); 11927 } 11928 /** 11929 * @brief Get field report_len from event HID_SUBEVENT_REPORT 11930 * @param event packet 11931 * @return report_len 11932 * @note: btstack_type L 11933 */ 11934 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){ 11935 return little_endian_read_16(event, 5); 11936 } 11937 /** 11938 * @brief Get field report from event HID_SUBEVENT_REPORT 11939 * @param event packet 11940 * @return report 11941 * @note: btstack_type V 11942 */ 11943 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){ 11944 return &event[7]; 11945 } 11946 11947 /** 11948 * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 11949 * @param event packet 11950 * @return hid_cid 11951 * @note: btstack_type 2 11952 */ 11953 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){ 11954 return little_endian_read_16(event, 3); 11955 } 11956 /** 11957 * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 11958 * @param event packet 11959 * @return status 11960 * @note: btstack_type 1 11961 */ 11962 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){ 11963 return event[5]; 11964 } 11965 11966 /** 11967 * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11968 * @param event packet 11969 * @return hid_cid 11970 * @note: btstack_type 2 11971 */ 11972 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){ 11973 return little_endian_read_16(event, 3); 11974 } 11975 /** 11976 * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11977 * @param event packet 11978 * @return host_max_latency 11979 * @note: btstack_type 2 11980 */ 11981 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){ 11982 return little_endian_read_16(event, 5); 11983 } 11984 /** 11985 * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11986 * @param event packet 11987 * @return host_min_timeout 11988 * @note: btstack_type 2 11989 */ 11990 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){ 11991 return little_endian_read_16(event, 7); 11992 } 11993 11994 /** 11995 * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW 11996 * @param event packet 11997 * @return con_handle 11998 * @note: btstack_type 2 11999 */ 12000 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){ 12001 return little_endian_read_16(event, 3); 12002 } 12003 12004 /** 12005 * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE 12006 * @param event packet 12007 * @return con_handle 12008 * @note: btstack_type 2 12009 */ 12010 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){ 12011 return little_endian_read_16(event, 3); 12012 } 12013 /** 12014 * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE 12015 * @param event packet 12016 * @return protocol_mode 12017 * @note: btstack_type 1 12018 */ 12019 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){ 12020 return event[5]; 12021 } 12022 12023 /** 12024 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 12025 * @param event packet 12026 * @return con_handle 12027 * @note: btstack_type 2 12028 */ 12029 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){ 12030 return little_endian_read_16(event, 3); 12031 } 12032 /** 12033 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 12034 * @param event packet 12035 * @return enable 12036 * @note: btstack_type 1 12037 */ 12038 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){ 12039 return event[5]; 12040 } 12041 12042 /** 12043 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 12044 * @param event packet 12045 * @return con_handle 12046 * @note: btstack_type 2 12047 */ 12048 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){ 12049 return little_endian_read_16(event, 3); 12050 } 12051 /** 12052 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 12053 * @param event packet 12054 * @return enable 12055 * @note: btstack_type 1 12056 */ 12057 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){ 12058 return event[5]; 12059 } 12060 12061 /** 12062 * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 12063 * @param event packet 12064 * @return con_handle 12065 * @note: btstack_type 2 12066 */ 12067 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){ 12068 return little_endian_read_16(event, 3); 12069 } 12070 /** 12071 * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 12072 * @param event packet 12073 * @return enable 12074 * @note: btstack_type 1 12075 */ 12076 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){ 12077 return event[5]; 12078 } 12079 12080 /** 12081 * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 12082 * @param event packet 12083 * @return con_handle 12084 * @note: btstack_type 2 12085 */ 12086 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){ 12087 return little_endian_read_16(event, 3); 12088 } 12089 /** 12090 * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 12091 * @param event packet 12092 * @return enable 12093 * @note: btstack_type 1 12094 */ 12095 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){ 12096 return event[5]; 12097 } 12098 12099 /** 12100 * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 12101 * @param event packet 12102 * @return con_handle 12103 * @note: btstack_type 2 12104 */ 12105 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){ 12106 return little_endian_read_16(event, 3); 12107 } 12108 /** 12109 * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 12110 * @param event packet 12111 * @return enable 12112 * @note: btstack_type 1 12113 */ 12114 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){ 12115 return event[5]; 12116 } 12117 12118 /** 12119 * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND 12120 * @param event packet 12121 * @return con_handle 12122 * @note: btstack_type 2 12123 */ 12124 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){ 12125 return little_endian_read_16(event, 3); 12126 } 12127 12128 /** 12129 * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND 12130 * @param event packet 12131 * @return con_handle 12132 * @note: btstack_type 2 12133 */ 12134 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){ 12135 return little_endian_read_16(event, 3); 12136 } 12137 12138 /** 12139 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12140 * @param event packet 12141 * @return con_handle 12142 * @note: btstack_type 2 12143 */ 12144 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){ 12145 return little_endian_read_16(event, 3); 12146 } 12147 /** 12148 * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12149 * @param event packet 12150 * @return measurement_type 12151 * @note: btstack_type 1 12152 */ 12153 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){ 12154 return event[5]; 12155 } 12156 /** 12157 * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12158 * @param event packet 12159 * @return is_enhanced 12160 * @note: btstack_type 1 12161 */ 12162 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){ 12163 return event[6]; 12164 } 12165 12166 /** 12167 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START 12168 * @param event packet 12169 * @return con_handle 12170 * @note: btstack_type 2 12171 */ 12172 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){ 12173 return little_endian_read_16(event, 3); 12174 } 12175 12176 /** 12177 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP 12178 * @param event packet 12179 * @return con_handle 12180 * @note: btstack_type 2 12181 */ 12182 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){ 12183 return little_endian_read_16(event, 3); 12184 } 12185 12186 /** 12187 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12188 * @param event packet 12189 * @return hids_cid 12190 * @note: btstack_type 2 12191 */ 12192 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){ 12193 return little_endian_read_16(event, 3); 12194 } 12195 /** 12196 * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12197 * @param event packet 12198 * @return status 12199 * @note: btstack_type 1 12200 */ 12201 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){ 12202 return event[5]; 12203 } 12204 /** 12205 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12206 * @param event packet 12207 * @return num_instances 12208 * @note: btstack_type 1 12209 */ 12210 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){ 12211 return event[6]; 12212 } 12213 /** 12214 * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12215 * @param event packet 12216 * @return poll_bitmap 12217 * @note: btstack_type 1 12218 */ 12219 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){ 12220 return event[7]; 12221 } 12222 12223 /** 12224 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12225 * @param event packet 12226 * @return hids_cid 12227 * @note: btstack_type 2 12228 */ 12229 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){ 12230 return little_endian_read_16(event, 3); 12231 } 12232 /** 12233 * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12234 * @param event packet 12235 * @return sevice_index 12236 * @note: btstack_type 1 12237 */ 12238 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){ 12239 return event[5]; 12240 } 12241 /** 12242 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12243 * @param event packet 12244 * @return att_status 12245 * @note: btstack_type 1 12246 */ 12247 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){ 12248 return event[6]; 12249 } 12250 /** 12251 * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12252 * @param event packet 12253 * @return level 12254 * @note: btstack_type 1 12255 */ 12256 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){ 12257 return event[7]; 12258 } 12259 12260 /** 12261 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 12262 * @param event packet 12263 * @return con_handle 12264 * @note: btstack_type H 12265 */ 12266 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){ 12267 return little_endian_read_16(event, 3); 12268 } 12269 /** 12270 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 12271 * @param event packet 12272 * @return att_status 12273 * @note: btstack_type 1 12274 */ 12275 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){ 12276 return event[5]; 12277 } 12278 12279 /** 12280 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12281 * @param event packet 12282 * @return con_handle 12283 * @note: btstack_type H 12284 */ 12285 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){ 12286 return little_endian_read_16(event, 3); 12287 } 12288 /** 12289 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12290 * @param event packet 12291 * @return att_status 12292 * @note: btstack_type 1 12293 */ 12294 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){ 12295 return event[5]; 12296 } 12297 /** 12298 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12299 * @param event packet 12300 * @return value 12301 * @note: btstack_type T 12302 */ 12303 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){ 12304 return (const char *) &event[6]; 12305 } 12306 12307 /** 12308 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12309 * @param event packet 12310 * @return con_handle 12311 * @note: btstack_type H 12312 */ 12313 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){ 12314 return little_endian_read_16(event, 3); 12315 } 12316 /** 12317 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12318 * @param event packet 12319 * @return att_status 12320 * @note: btstack_type 1 12321 */ 12322 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){ 12323 return event[5]; 12324 } 12325 /** 12326 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12327 * @param event packet 12328 * @return value 12329 * @note: btstack_type T 12330 */ 12331 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){ 12332 return (const char *) &event[6]; 12333 } 12334 12335 /** 12336 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12337 * @param event packet 12338 * @return con_handle 12339 * @note: btstack_type H 12340 */ 12341 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){ 12342 return little_endian_read_16(event, 3); 12343 } 12344 /** 12345 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12346 * @param event packet 12347 * @return att_status 12348 * @note: btstack_type 1 12349 */ 12350 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){ 12351 return event[5]; 12352 } 12353 /** 12354 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12355 * @param event packet 12356 * @return value 12357 * @note: btstack_type T 12358 */ 12359 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){ 12360 return (const char *) &event[6]; 12361 } 12362 12363 /** 12364 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12365 * @param event packet 12366 * @return con_handle 12367 * @note: btstack_type H 12368 */ 12369 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){ 12370 return little_endian_read_16(event, 3); 12371 } 12372 /** 12373 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12374 * @param event packet 12375 * @return att_status 12376 * @note: btstack_type 1 12377 */ 12378 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){ 12379 return event[5]; 12380 } 12381 /** 12382 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12383 * @param event packet 12384 * @return value 12385 * @note: btstack_type T 12386 */ 12387 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){ 12388 return (const char *) &event[6]; 12389 } 12390 12391 /** 12392 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12393 * @param event packet 12394 * @return con_handle 12395 * @note: btstack_type H 12396 */ 12397 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){ 12398 return little_endian_read_16(event, 3); 12399 } 12400 /** 12401 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12402 * @param event packet 12403 * @return att_status 12404 * @note: btstack_type 1 12405 */ 12406 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){ 12407 return event[5]; 12408 } 12409 /** 12410 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12411 * @param event packet 12412 * @return value 12413 * @note: btstack_type T 12414 */ 12415 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){ 12416 return (const char *) &event[6]; 12417 } 12418 12419 /** 12420 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12421 * @param event packet 12422 * @return con_handle 12423 * @note: btstack_type H 12424 */ 12425 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){ 12426 return little_endian_read_16(event, 3); 12427 } 12428 /** 12429 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12430 * @param event packet 12431 * @return att_status 12432 * @note: btstack_type 1 12433 */ 12434 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){ 12435 return event[5]; 12436 } 12437 /** 12438 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12439 * @param event packet 12440 * @return value 12441 * @note: btstack_type T 12442 */ 12443 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){ 12444 return (const char *) &event[6]; 12445 } 12446 12447 /** 12448 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12449 * @param event packet 12450 * @return con_handle 12451 * @note: btstack_type H 12452 */ 12453 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){ 12454 return little_endian_read_16(event, 3); 12455 } 12456 /** 12457 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12458 * @param event packet 12459 * @return att_status 12460 * @note: btstack_type 1 12461 */ 12462 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){ 12463 return event[5]; 12464 } 12465 /** 12466 * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12467 * @param event packet 12468 * @return manufacturer_id_low 12469 * @note: btstack_type 4 12470 */ 12471 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){ 12472 return little_endian_read_32(event, 6); 12473 } 12474 /** 12475 * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12476 * @param event packet 12477 * @return manufacturer_id_high 12478 * @note: btstack_type 1 12479 */ 12480 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){ 12481 return event[10]; 12482 } 12483 /** 12484 * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12485 * @param event packet 12486 * @return organizationally_unique_id 12487 * @note: btstack_type 3 12488 */ 12489 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){ 12490 return little_endian_read_24(event, 11); 12491 } 12492 12493 /** 12494 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12495 * @param event packet 12496 * @return con_handle 12497 * @note: btstack_type H 12498 */ 12499 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){ 12500 return little_endian_read_16(event, 3); 12501 } 12502 /** 12503 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12504 * @param event packet 12505 * @return att_status 12506 * @note: btstack_type 1 12507 */ 12508 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){ 12509 return event[5]; 12510 } 12511 /** 12512 * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12513 * @param event packet 12514 * @return value_a 12515 * @note: btstack_type 2 12516 */ 12517 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){ 12518 return little_endian_read_16(event, 6); 12519 } 12520 /** 12521 * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12522 * @param event packet 12523 * @return value_b 12524 * @note: btstack_type 2 12525 */ 12526 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){ 12527 return little_endian_read_16(event, 8); 12528 } 12529 12530 /** 12531 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12532 * @param event packet 12533 * @return con_handle 12534 * @note: btstack_type H 12535 */ 12536 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){ 12537 return little_endian_read_16(event, 3); 12538 } 12539 /** 12540 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12541 * @param event packet 12542 * @return att_status 12543 * @note: btstack_type 1 12544 */ 12545 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){ 12546 return event[5]; 12547 } 12548 /** 12549 * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12550 * @param event packet 12551 * @return vendor_source_id 12552 * @note: btstack_type 1 12553 */ 12554 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){ 12555 return event[6]; 12556 } 12557 /** 12558 * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12559 * @param event packet 12560 * @return vendor_id 12561 * @note: btstack_type 2 12562 */ 12563 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){ 12564 return little_endian_read_16(event, 7); 12565 } 12566 /** 12567 * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12568 * @param event packet 12569 * @return product_id 12570 * @note: btstack_type 2 12571 */ 12572 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){ 12573 return little_endian_read_16(event, 9); 12574 } 12575 /** 12576 * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12577 * @param event packet 12578 * @return product_version 12579 * @note: btstack_type 2 12580 */ 12581 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){ 12582 return little_endian_read_16(event, 11); 12583 } 12584 12585 /** 12586 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 12587 * @param event packet 12588 * @return con_handle 12589 * @note: btstack_type H 12590 */ 12591 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){ 12592 return little_endian_read_16(event, 3); 12593 } 12594 /** 12595 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 12596 * @param event packet 12597 * @return att_status 12598 * @note: btstack_type 1 12599 */ 12600 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){ 12601 return event[5]; 12602 } 12603 12604 /** 12605 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED 12606 * @param event packet 12607 * @return con_handle 12608 * @note: btstack_type H 12609 */ 12610 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){ 12611 return little_endian_read_16(event, 3); 12612 } 12613 12614 /** 12615 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED 12616 * @param event packet 12617 * @return con_handle 12618 * @note: btstack_type H 12619 */ 12620 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){ 12621 return little_endian_read_16(event, 3); 12622 } 12623 12624 /** 12625 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12626 * @param event packet 12627 * @return hids_cid 12628 * @note: btstack_type 2 12629 */ 12630 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){ 12631 return little_endian_read_16(event, 3); 12632 } 12633 /** 12634 * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12635 * @param event packet 12636 * @return status 12637 * @note: btstack_type 1 12638 */ 12639 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){ 12640 return event[5]; 12641 } 12642 /** 12643 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12644 * @param event packet 12645 * @return protocol_mode 12646 * @note: btstack_type 1 12647 */ 12648 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){ 12649 return event[6]; 12650 } 12651 /** 12652 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12653 * @param event packet 12654 * @return num_instances 12655 * @note: btstack_type 1 12656 */ 12657 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){ 12658 return event[7]; 12659 } 12660 12661 /** 12662 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT 12663 * @param event packet 12664 * @return hids_cid 12665 * @note: btstack_type 2 12666 */ 12667 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){ 12668 return little_endian_read_16(event, 3); 12669 } 12670 /** 12671 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT 12672 * @param event packet 12673 * @return service_index 12674 * @note: btstack_type 1 12675 */ 12676 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){ 12677 return event[5]; 12678 } 12679 /** 12680 * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT 12681 * @param event packet 12682 * @return report_id 12683 * @note: btstack_type 1 12684 */ 12685 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){ 12686 return event[6]; 12687 } 12688 /** 12689 * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT 12690 * @param event packet 12691 * @return report_len 12692 * @note: btstack_type L 12693 */ 12694 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){ 12695 return little_endian_read_16(event, 7); 12696 } 12697 /** 12698 * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT 12699 * @param event packet 12700 * @return report 12701 * @note: btstack_type V 12702 */ 12703 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){ 12704 return &event[9]; 12705 } 12706 12707 /** 12708 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12709 * @param event packet 12710 * @return hids_cid 12711 * @note: btstack_type 2 12712 */ 12713 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){ 12714 return little_endian_read_16(event, 3); 12715 } 12716 /** 12717 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12718 * @param event packet 12719 * @return service_index 12720 * @note: btstack_type 1 12721 */ 12722 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){ 12723 return event[5]; 12724 } 12725 /** 12726 * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12727 * @param event packet 12728 * @return base_usb_hid_version 12729 * @note: btstack_type 2 12730 */ 12731 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){ 12732 return little_endian_read_16(event, 6); 12733 } 12734 /** 12735 * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12736 * @param event packet 12737 * @return country_code 12738 * @note: btstack_type 1 12739 */ 12740 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){ 12741 return event[8]; 12742 } 12743 /** 12744 * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12745 * @param event packet 12746 * @return remote_wake 12747 * @note: btstack_type 1 12748 */ 12749 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){ 12750 return event[9]; 12751 } 12752 /** 12753 * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12754 * @param event packet 12755 * @return normally_connectable 12756 * @note: btstack_type 1 12757 */ 12758 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){ 12759 return event[10]; 12760 } 12761 12762 /** 12763 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12764 * @param event packet 12765 * @return hids_cid 12766 * @note: btstack_type 2 12767 */ 12768 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){ 12769 return little_endian_read_16(event, 3); 12770 } 12771 /** 12772 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12773 * @param event packet 12774 * @return service_index 12775 * @note: btstack_type 1 12776 */ 12777 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){ 12778 return event[5]; 12779 } 12780 /** 12781 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12782 * @param event packet 12783 * @return protocol_mode 12784 * @note: btstack_type 1 12785 */ 12786 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){ 12787 return event[6]; 12788 } 12789 12790 /** 12791 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 12792 * @param event packet 12793 * @return hids_cid 12794 * @note: btstack_type 2 12795 */ 12796 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){ 12797 return little_endian_read_16(event, 3); 12798 } 12799 /** 12800 * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 12801 * @param event packet 12802 * @return configuration 12803 * @note: btstack_type 1 12804 */ 12805 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 12806 return event[5]; 12807 } 12808 12809 /** 12810 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12811 * @param event packet 12812 * @return con_handle 12813 * @note: btstack_type H 12814 */ 12815 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){ 12816 return little_endian_read_16(event, 3); 12817 } 12818 /** 12819 * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12820 * @param event packet 12821 * @return max_scan_interval 12822 * @note: btstack_type 2 12823 */ 12824 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){ 12825 return little_endian_read_16(event, 5); 12826 } 12827 /** 12828 * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12829 * @param event packet 12830 * @return min_scan_window 12831 * @note: btstack_type 2 12832 */ 12833 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){ 12834 return little_endian_read_16(event, 7); 12835 } 12836 12837 /** 12838 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SCAN_STOPPED 12839 * @param event packet 12840 * @return con_handle 12841 * @note: btstack_type H 12842 */ 12843 static inline hci_con_handle_t gattservice_subevent_bass_server_scan_stopped_get_con_handle(const uint8_t * event){ 12844 return little_endian_read_16(event, 3); 12845 } 12846 12847 /** 12848 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SCAN_STARTED 12849 * @param event packet 12850 * @return con_handle 12851 * @note: btstack_type H 12852 */ 12853 static inline hci_con_handle_t gattservice_subevent_bass_server_scan_started_get_con_handle(const uint8_t * event){ 12854 return little_endian_read_16(event, 3); 12855 } 12856 12857 /** 12858 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_BROADCAST_CODE 12859 * @param event packet 12860 * @return con_handle 12861 * @note: btstack_type H 12862 */ 12863 static inline hci_con_handle_t gattservice_subevent_bass_server_broadcast_code_get_con_handle(const uint8_t * event){ 12864 return little_endian_read_16(event, 3); 12865 } 12866 /** 12867 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_BROADCAST_CODE 12868 * @param event packet 12869 * @return source_id 12870 * @note: btstack_type 1 12871 */ 12872 static inline uint8_t gattservice_subevent_bass_server_broadcast_code_get_source_id(const uint8_t * event){ 12873 return event[5]; 12874 } 12875 /** 12876 * @brief Get field broadcast_code from event GATTSERVICE_SUBEVENT_BASS_SERVER_BROADCAST_CODE 12877 * @param event packet 12878 * @param Pointer to storage for broadcast_code 12879 * @note: btstack_type K 12880 */ 12881 static inline void gattservice_subevent_bass_server_broadcast_code_get_broadcast_code(const uint8_t * event, uint8_t * broadcast_code){ 12882 reverse_bytes(&event[6], broadcast_code, 16); 12883 } 12884 12885 /** 12886 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_ADDED 12887 * @param event packet 12888 * @return con_handle 12889 * @note: btstack_type H 12890 */ 12891 static inline hci_con_handle_t gattservice_subevent_bass_server_source_added_get_con_handle(const uint8_t * event){ 12892 return little_endian_read_16(event, 3); 12893 } 12894 /** 12895 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_ADDED 12896 * @param event packet 12897 * @return source_id 12898 * @note: btstack_type 1 12899 */ 12900 static inline uint8_t gattservice_subevent_bass_server_source_added_get_source_id(const uint8_t * event){ 12901 return event[5]; 12902 } 12903 /** 12904 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_ADDED 12905 * @param event packet 12906 * @return pa_sync 12907 * @note: btstack_type 1 12908 */ 12909 static inline uint8_t gattservice_subevent_bass_server_source_added_get_pa_sync(const uint8_t * event){ 12910 return event[6]; 12911 } 12912 12913 /** 12914 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 12915 * @param event packet 12916 * @return con_handle 12917 * @note: btstack_type H 12918 */ 12919 static inline hci_con_handle_t gattservice_subevent_bass_server_source_modified_get_con_handle(const uint8_t * event){ 12920 return little_endian_read_16(event, 3); 12921 } 12922 /** 12923 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 12924 * @param event packet 12925 * @return source_id 12926 * @note: btstack_type 1 12927 */ 12928 static inline uint8_t gattservice_subevent_bass_server_source_modified_get_source_id(const uint8_t * event){ 12929 return event[5]; 12930 } 12931 /** 12932 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 12933 * @param event packet 12934 * @return pa_sync 12935 * @note: btstack_type 1 12936 */ 12937 static inline uint8_t gattservice_subevent_bass_server_source_modified_get_pa_sync(const uint8_t * event){ 12938 return event[6]; 12939 } 12940 12941 /** 12942 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_DELETED 12943 * @param event packet 12944 * @return con_handle 12945 * @note: btstack_type H 12946 */ 12947 static inline hci_con_handle_t gattservice_subevent_bass_server_source_deleted_get_con_handle(const uint8_t * event){ 12948 return little_endian_read_16(event, 3); 12949 } 12950 /** 12951 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_DELETED 12952 * @param event packet 12953 * @return source_id 12954 * @note: btstack_type 1 12955 */ 12956 static inline uint8_t gattservice_subevent_bass_server_source_deleted_get_source_id(const uint8_t * event){ 12957 return event[5]; 12958 } 12959 /** 12960 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_DELETED 12961 * @param event packet 12962 * @return pa_sync 12963 * @note: btstack_type 1 12964 */ 12965 static inline uint8_t gattservice_subevent_bass_server_source_deleted_get_pa_sync(const uint8_t * event){ 12966 return event[6]; 12967 } 12968 12969 /** 12970 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_CLIENT_CONNECTED 12971 * @param event packet 12972 * @return con_handle 12973 * @note: btstack_type H 12974 */ 12975 static inline hci_con_handle_t gattservice_subevent_bass_client_connected_get_con_handle(const uint8_t * event){ 12976 return little_endian_read_16(event, 3); 12977 } 12978 /** 12979 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_CONNECTED 12980 * @param event packet 12981 * @return bass_cid 12982 * @note: btstack_type 2 12983 */ 12984 static inline uint16_t gattservice_subevent_bass_client_connected_get_bass_cid(const uint8_t * event){ 12985 return little_endian_read_16(event, 5); 12986 } 12987 /** 12988 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CLIENT_CONNECTED 12989 * @param event packet 12990 * @return status 12991 * @note: btstack_type 1 12992 */ 12993 static inline uint8_t gattservice_subevent_bass_client_connected_get_status(const uint8_t * event){ 12994 return event[7]; 12995 } 12996 12997 /** 12998 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_DISCONNECTED 12999 * @param event packet 13000 * @return bass_cid 13001 * @note: btstack_type 2 13002 */ 13003 static inline uint16_t gattservice_subevent_bass_client_disconnected_get_bass_cid(const uint8_t * event){ 13004 return little_endian_read_16(event, 3); 13005 } 13006 13007 /** 13008 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 13009 * @param event packet 13010 * @return bass_cid 13011 * @note: btstack_type 2 13012 */ 13013 static inline uint16_t gattservice_subevent_bass_client_scan_operation_complete_get_bass_cid(const uint8_t * event){ 13014 return little_endian_read_16(event, 3); 13015 } 13016 /** 13017 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 13018 * @param event packet 13019 * @return status 13020 * @note: btstack_type 1 13021 */ 13022 static inline uint8_t gattservice_subevent_bass_client_scan_operation_complete_get_status(const uint8_t * event){ 13023 return event[5]; 13024 } 13025 /** 13026 * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 13027 * @param event packet 13028 * @return opcode 13029 * @note: btstack_type 1 13030 */ 13031 static inline uint8_t gattservice_subevent_bass_client_scan_operation_complete_get_opcode(const uint8_t * event){ 13032 return event[6]; 13033 } 13034 13035 /** 13036 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13037 * @param event packet 13038 * @return bass_cid 13039 * @note: btstack_type 2 13040 */ 13041 // static inline uint16_t gattservice_subevent_bass_notify_receive_state_base_get_bass_cid(const uint8_t * event){ 13042 // not implemented yet 13043 // } 13044 /** 13045 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13046 * @param event packet 13047 * @return source_id 13048 * @note: btstack_type 1 13049 */ 13050 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_id(const uint8_t * event){ 13051 // not implemented yet 13052 // } 13053 /** 13054 * @brief Get field source_address_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13055 * @param event packet 13056 * @return source_address_type 13057 * @note: btstack_type 1 13058 */ 13059 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_address_type(const uint8_t * event){ 13060 // not implemented yet 13061 // } 13062 /** 13063 * @brief Get field source_address from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13064 * @param event packet 13065 * @return source_address 13066 * @note: btstack_type B 13067 */ 13068 // static inline bd_addr_t gattservice_subevent_bass_notify_receive_state_base_get_source_address(const uint8_t * event){ 13069 // not implemented yet 13070 // } 13071 /** 13072 * @brief Get field source_adv_sid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13073 * @param event packet 13074 * @return source_adv_sid 13075 * @note: btstack_type 1 13076 */ 13077 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_adv_sid(const uint8_t * event){ 13078 // not implemented yet 13079 // } 13080 /** 13081 * @brief Get field broadcast_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13082 * @param event packet 13083 * @return broadcast_id 13084 * @note: btstack_type 3 13085 */ 13086 // static inline uint32_t gattservice_subevent_bass_notify_receive_state_base_get_broadcast_id(const uint8_t * event){ 13087 // not implemented yet 13088 // } 13089 /** 13090 * @brief Get field pa_sync_state from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13091 * @param event packet 13092 * @return pa_sync_state 13093 * @note: btstack_type 1 13094 */ 13095 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_pa_sync_state(const uint8_t * event){ 13096 // not implemented yet 13097 // } 13098 /** 13099 * @brief Get field big_encryption from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13100 * @param event packet 13101 * @return big_encryption 13102 * @note: btstack_type 1 13103 */ 13104 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_big_encryption(const uint8_t * event){ 13105 // not implemented yet 13106 // } 13107 /** 13108 * @brief Get field bad_code from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13109 * @param event packet 13110 * @return bad_code 13111 * @note: btstack_type P 13112 */ 13113 // static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_base_get_bad_code(const uint8_t * event){ 13114 // not implemented yet 13115 // } 13116 /** 13117 * @brief Get field subgroups_num from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13118 * @param event packet 13119 * @return subgroups_num 13120 * @note: btstack_type 1 13121 */ 13122 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_subgroups_num(const uint8_t * event){ 13123 // not implemented yet 13124 // } 13125 13126 /** 13127 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13128 * @param event packet 13129 * @return bass_cid 13130 * @note: btstack_type 2 13131 */ 13132 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_bass_cid(const uint8_t * event){ 13133 return little_endian_read_16(event, 3); 13134 } 13135 /** 13136 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13137 * @param event packet 13138 * @return source_id 13139 * @note: btstack_type 1 13140 */ 13141 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_source_id(const uint8_t * event){ 13142 return event[5]; 13143 } 13144 /** 13145 * @brief Get field bis_sync_state from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13146 * @param event packet 13147 * @return bis_sync_state 13148 * @note: btstack_type 4 13149 */ 13150 static inline uint32_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_bis_sync_state(const uint8_t * event){ 13151 return little_endian_read_32(event, 6); 13152 } 13153 /** 13154 * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13155 * @param event packet 13156 * @return metadata_mask 13157 * @note: btstack_type 1 13158 */ 13159 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_metadata_mask(const uint8_t * event){ 13160 return event[10]; 13161 } 13162 /** 13163 * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13164 * @param event packet 13165 * @return preferred_audio_contexts_mask 13166 * @note: btstack_type 2 13167 */ 13168 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_preferred_audio_contexts_mask(const uint8_t * event){ 13169 return little_endian_read_16(event, 11); 13170 } 13171 /** 13172 * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13173 * @param event packet 13174 * @return streaming_audio_contexts_mask 13175 * @note: btstack_type 2 13176 */ 13177 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_streaming_audio_contexts_mask(const uint8_t * event){ 13178 return little_endian_read_16(event, 13); 13179 } 13180 /** 13181 * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13182 * @param event packet 13183 * @return program_info_length 13184 * @note: btstack_type J 13185 */ 13186 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info_length(const uint8_t * event){ 13187 return event[15]; 13188 } 13189 /** 13190 * @brief Get field program_info from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13191 * @param event packet 13192 * @return program_info 13193 * @note: btstack_type V 13194 */ 13195 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info(const uint8_t * event){ 13196 return &event[16]; 13197 } 13198 /** 13199 * @brief Get field language_code from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13200 * @param event packet 13201 * @return language_code 13202 * @note: btstack_type 3 13203 */ 13204 static inline uint32_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_language_code(const uint8_t * event){ 13205 return little_endian_read_24(event, 16u + event[15]); 13206 } 13207 /** 13208 * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13209 * @param event packet 13210 * @return ccids_num 13211 * @note: btstack_type J 13212 */ 13213 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_ccids_num(const uint8_t * event){ 13214 return event[16u + event[15] + 3u]; 13215 } 13216 /** 13217 * @brief Get field ccids from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13218 * @param event packet 13219 * @return ccids 13220 * @note: btstack_type V 13221 */ 13222 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_ccids(const uint8_t * event){ 13223 return &event[16u + event[15] + 3u + 1u]; 13224 } 13225 /** 13226 * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13227 * @param event packet 13228 * @return parental_rating 13229 * @note: btstack_type 1 13230 */ 13231 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_parental_rating(const uint8_t * event){ 13232 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u]]; 13233 } 13234 /** 13235 * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13236 * @param event packet 13237 * @return program_info_uri_length 13238 * @note: btstack_type J 13239 */ 13240 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri_length(const uint8_t * event){ 13241 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]; 13242 } 13243 /** 13244 * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13245 * @param event packet 13246 * @return program_info_uri 13247 * @note: btstack_type V 13248 */ 13249 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri(const uint8_t * event){ 13250 return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u]; 13251 } 13252 /** 13253 * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13254 * @param event packet 13255 * @return extended_metadata_type 13256 * @note: btstack_type 2 13257 */ 13258 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_type(const uint8_t * event){ 13259 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]); 13260 } 13261 /** 13262 * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13263 * @param event packet 13264 * @return extended_metadata_value_length 13265 * @note: btstack_type J 13266 */ 13267 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value_length(const uint8_t * event){ 13268 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]; 13269 } 13270 /** 13271 * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13272 * @param event packet 13273 * @return extended_metadata_value 13274 * @note: btstack_type V 13275 */ 13276 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value(const uint8_t * event){ 13277 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]; 13278 } 13279 /** 13280 * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13281 * @param event packet 13282 * @return vendor_specific_metadata_type 13283 * @note: btstack_type 2 13284 */ 13285 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_type(const uint8_t * event){ 13286 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]); 13287 } 13288 /** 13289 * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13290 * @param event packet 13291 * @return vendor_specific_metadata_value_length 13292 * @note: btstack_type J 13293 */ 13294 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value_length(const uint8_t * event){ 13295 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]; 13296 } 13297 /** 13298 * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13299 * @param event packet 13300 * @return vendor_specific_metadata_value 13301 * @note: btstack_type V 13302 */ 13303 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value(const uint8_t * event){ 13304 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]; 13305 } 13306 13307 /** 13308 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE 13309 * @param event packet 13310 * @return bass_cid 13311 * @note: btstack_type 2 13312 */ 13313 static inline uint16_t gattservice_subevent_bass_client_notification_complete_get_bass_cid(const uint8_t * event){ 13314 return little_endian_read_16(event, 3); 13315 } 13316 /** 13317 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE 13318 * @param event packet 13319 * @return source_id 13320 * @note: btstack_type 1 13321 */ 13322 static inline uint8_t gattservice_subevent_bass_client_notification_complete_get_source_id(const uint8_t * event){ 13323 return event[5]; 13324 } 13325 13326 /** 13327 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13328 * @param event packet 13329 * @return bass_cid 13330 * @note: btstack_type 2 13331 */ 13332 static inline uint16_t gattservice_subevent_bass_client_source_operation_complete_get_bass_cid(const uint8_t * event){ 13333 return little_endian_read_16(event, 3); 13334 } 13335 /** 13336 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13337 * @param event packet 13338 * @return status 13339 * @note: btstack_type 1 13340 */ 13341 static inline uint8_t gattservice_subevent_bass_client_source_operation_complete_get_status(const uint8_t * event){ 13342 return event[5]; 13343 } 13344 /** 13345 * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13346 * @param event packet 13347 * @return opcode 13348 * @note: btstack_type 1 13349 */ 13350 static inline uint8_t gattservice_subevent_bass_client_source_operation_complete_get_opcode(const uint8_t * event){ 13351 return event[6]; 13352 } 13353 /** 13354 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13355 * @param event packet 13356 * @return source_id 13357 * @note: btstack_type 1 13358 */ 13359 static inline uint8_t gattservice_subevent_bass_client_source_operation_complete_get_source_id(const uint8_t * event){ 13360 return event[7]; 13361 } 13362 13363 /** 13364 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_CONNECTED 13365 * @param event packet 13366 * @return con_handle 13367 * @note: btstack_type H 13368 */ 13369 static inline hci_con_handle_t gattservice_subevent_bass_server_connected_get_con_handle(const uint8_t * event){ 13370 return little_endian_read_16(event, 3); 13371 } 13372 /** 13373 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_SERVER_CONNECTED 13374 * @param event packet 13375 * @return status 13376 * @note: btstack_type 1 13377 */ 13378 static inline uint8_t gattservice_subevent_bass_server_connected_get_status(const uint8_t * event){ 13379 return event[5]; 13380 } 13381 13382 /** 13383 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_DISCONNECTED 13384 * @param event packet 13385 * @return con_handle 13386 * @note: btstack_type H 13387 */ 13388 static inline hci_con_handle_t gattservice_subevent_bass_server_disconnected_get_con_handle(const uint8_t * event){ 13389 return little_endian_read_16(event, 3); 13390 } 13391 13392 13393 /** 13394 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT 13395 * @param event packet 13396 * @return status 13397 * @note: btstack_type 1 13398 */ 13399 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){ 13400 return event[3]; 13401 } 13402 13403 /** 13404 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 13405 * @param event packet 13406 * @return status 13407 * @note: btstack_type 1 13408 */ 13409 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){ 13410 return event[3]; 13411 } 13412 /** 13413 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 13414 * @param event packet 13415 * @return pb_transport_cid 13416 * @note: btstack_type 2 13417 */ 13418 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){ 13419 return little_endian_read_16(event, 4); 13420 } 13421 /** 13422 * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 13423 * @param event packet 13424 * @return pb_type 13425 * @note: btstack_type 1 13426 */ 13427 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){ 13428 return event[6]; 13429 } 13430 13431 /** 13432 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 13433 * @param event packet 13434 * @return pb_transport_cid 13435 * @note: btstack_type 1 13436 */ 13437 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){ 13438 return event[3]; 13439 } 13440 /** 13441 * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 13442 * @param event packet 13443 * @return reason 13444 * @note: btstack_type 2 13445 */ 13446 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){ 13447 return little_endian_read_16(event, 4); 13448 } 13449 13450 /** 13451 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 13452 * @param event packet 13453 * @return pb_transport_cid 13454 * @note: btstack_type 2 13455 */ 13456 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){ 13457 return little_endian_read_16(event, 3); 13458 } 13459 /** 13460 * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 13461 * @param event packet 13462 * @return attention_time 13463 * @note: btstack_type 1 13464 */ 13465 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){ 13466 return event[5]; 13467 } 13468 13469 /** 13470 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB 13471 * @param event packet 13472 * @return pb_transport_cid 13473 * @note: btstack_type 2 13474 */ 13475 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13476 return little_endian_read_16(event, 3); 13477 } 13478 13479 /** 13480 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB 13481 * @param event packet 13482 * @return pb_transport_cid 13483 * @note: btstack_type 2 13484 */ 13485 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13486 return little_endian_read_16(event, 3); 13487 } 13488 13489 /** 13490 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST 13491 * @param event packet 13492 * @return pb_transport_cid 13493 * @note: btstack_type 2 13494 */ 13495 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){ 13496 return little_endian_read_16(event, 3); 13497 } 13498 13499 /** 13500 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 13501 * @param event packet 13502 * @return pb_transport_cid 13503 * @note: btstack_type 2 13504 */ 13505 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 13506 return little_endian_read_16(event, 3); 13507 } 13508 /** 13509 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 13510 * @param event packet 13511 * @return output_oob 13512 * @note: btstack_type 4 13513 */ 13514 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){ 13515 return little_endian_read_32(event, 5); 13516 } 13517 13518 /** 13519 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB 13520 * @param event packet 13521 * @return pb_transport_cid 13522 * @note: btstack_type 2 13523 */ 13524 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 13525 return little_endian_read_16(event, 3); 13526 } 13527 13528 /** 13529 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB 13530 * @param event packet 13531 * @return pb_transport_cid 13532 * @note: btstack_type 2 13533 */ 13534 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13535 return little_endian_read_16(event, 3); 13536 } 13537 13538 /** 13539 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB 13540 * @param event packet 13541 * @return pb_transport_cid 13542 * @note: btstack_type 2 13543 */ 13544 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13545 return little_endian_read_16(event, 3); 13546 } 13547 13548 /** 13549 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST 13550 * @param event packet 13551 * @return pb_transport_cid 13552 * @note: btstack_type 2 13553 */ 13554 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){ 13555 return little_endian_read_16(event, 3); 13556 } 13557 13558 /** 13559 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 13560 * @param event packet 13561 * @return pb_transport_cid 13562 * @note: btstack_type 2 13563 */ 13564 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 13565 return little_endian_read_16(event, 3); 13566 } 13567 /** 13568 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 13569 * @param event packet 13570 * @return output_oob 13571 * @note: btstack_type 4 13572 */ 13573 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){ 13574 return little_endian_read_32(event, 5); 13575 } 13576 13577 /** 13578 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB 13579 * @param event packet 13580 * @return pb_transport_cid 13581 * @note: btstack_type 2 13582 */ 13583 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 13584 return little_endian_read_16(event, 3); 13585 } 13586 13587 /** 13588 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13589 * @param event packet 13590 * @return pb_transport_cid 13591 * @note: btstack_type 2 13592 */ 13593 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){ 13594 return little_endian_read_16(event, 3); 13595 } 13596 /** 13597 * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13598 * @param event packet 13599 * @return num_elements 13600 * @note: btstack_type 1 13601 */ 13602 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){ 13603 return event[5]; 13604 } 13605 /** 13606 * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13607 * @param event packet 13608 * @return algorithms 13609 * @note: btstack_type 2 13610 */ 13611 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){ 13612 return little_endian_read_16(event, 6); 13613 } 13614 /** 13615 * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13616 * @param event packet 13617 * @return public_key 13618 * @note: btstack_type 1 13619 */ 13620 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){ 13621 return event[8]; 13622 } 13623 /** 13624 * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13625 * @param event packet 13626 * @return static_oob_type 13627 * @note: btstack_type 1 13628 */ 13629 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){ 13630 return event[9]; 13631 } 13632 /** 13633 * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13634 * @param event packet 13635 * @return output_oob_size 13636 * @note: btstack_type 1 13637 */ 13638 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){ 13639 return event[10]; 13640 } 13641 /** 13642 * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13643 * @param event packet 13644 * @return output_oob_action 13645 * @note: btstack_type 2 13646 */ 13647 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){ 13648 return little_endian_read_16(event, 11); 13649 } 13650 /** 13651 * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13652 * @param event packet 13653 * @return input_oob_size 13654 * @note: btstack_type 1 13655 */ 13656 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){ 13657 return event[13]; 13658 } 13659 /** 13660 * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13661 * @param event packet 13662 * @return input_oob_action 13663 * @note: btstack_type 2 13664 */ 13665 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){ 13666 return little_endian_read_16(event, 14); 13667 } 13668 13669 /** 13670 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE 13671 * @param event packet 13672 * @return pb_transport_cid 13673 * @note: btstack_type 2 13674 */ 13675 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){ 13676 return little_endian_read_16(event, 3); 13677 } 13678 13679 /** 13680 * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER 13681 * @param event packet 13682 * @return attention_time 13683 * @note: btstack_type 1 13684 */ 13685 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 13686 return event[3]; 13687 } 13688 13689 /** 13690 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 13691 * @param event packet 13692 * @return con_handle 13693 * @note: btstack_type H 13694 */ 13695 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ 13696 return little_endian_read_16(event, 3); 13697 } 13698 13699 /** 13700 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 13701 * @param event packet 13702 * @return con_handle 13703 * @note: btstack_type H 13704 */ 13705 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){ 13706 return little_endian_read_16(event, 3); 13707 } 13708 13709 /** 13710 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED 13711 * @param event packet 13712 * @return con_handle 13713 * @note: btstack_type H 13714 */ 13715 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){ 13716 return little_endian_read_16(event, 3); 13717 } 13718 13719 /** 13720 * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT 13721 * @param event packet 13722 * @return con_handle 13723 * @note: btstack_type H 13724 */ 13725 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){ 13726 return little_endian_read_16(event, 3); 13727 } 13728 13729 /** 13730 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13731 * @param event packet 13732 * @return element_index 13733 * @note: btstack_type 1 13734 */ 13735 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){ 13736 return event[3]; 13737 } 13738 /** 13739 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13740 * @param event packet 13741 * @return model_identifier 13742 * @note: btstack_type 4 13743 */ 13744 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){ 13745 return little_endian_read_32(event, 4); 13746 } 13747 /** 13748 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13749 * @param event packet 13750 * @return state_identifier 13751 * @note: btstack_type 4 13752 */ 13753 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){ 13754 return little_endian_read_32(event, 8); 13755 } 13756 /** 13757 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13758 * @param event packet 13759 * @return reason 13760 * @note: btstack_type 1 13761 */ 13762 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){ 13763 return event[12]; 13764 } 13765 /** 13766 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13767 * @param event packet 13768 * @return value 13769 * @note: btstack_type 1 13770 */ 13771 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){ 13772 return event[13]; 13773 } 13774 13775 /** 13776 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16 13777 * @param event packet 13778 * @return element_index 13779 * @note: btstack_type 1 13780 */ 13781 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){ 13782 return event[3]; 13783 } 13784 /** 13785 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 13786 * @param event packet 13787 * @return model_identifier 13788 * @note: btstack_type 4 13789 */ 13790 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){ 13791 return little_endian_read_32(event, 4); 13792 } 13793 /** 13794 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 13795 * @param event packet 13796 * @return state_identifier 13797 * @note: btstack_type 4 13798 */ 13799 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){ 13800 return little_endian_read_32(event, 8); 13801 } 13802 /** 13803 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16 13804 * @param event packet 13805 * @return reason 13806 * @note: btstack_type 1 13807 */ 13808 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){ 13809 return event[12]; 13810 } 13811 /** 13812 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16 13813 * @param event packet 13814 * @return value 13815 * @note: btstack_type 2 13816 */ 13817 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){ 13818 return little_endian_read_16(event, 13); 13819 } 13820 13821 /** 13822 * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13823 * @param event packet 13824 * @return element_index 13825 * @note: btstack_type 1 13826 */ 13827 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){ 13828 return event[3]; 13829 } 13830 /** 13831 * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13832 * @param event packet 13833 * @return model_identifier 13834 * @note: btstack_type 4 13835 */ 13836 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){ 13837 return little_endian_read_32(event, 4); 13838 } 13839 /** 13840 * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13841 * @param event packet 13842 * @return opcode 13843 * @note: btstack_type 4 13844 */ 13845 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){ 13846 return little_endian_read_32(event, 8); 13847 } 13848 /** 13849 * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13850 * @param event packet 13851 * @return dest 13852 * @note: btstack_type 2 13853 */ 13854 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){ 13855 return little_endian_read_16(event, 12); 13856 } 13857 13858 /** 13859 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF 13860 * @param event packet 13861 * @return dest 13862 * @note: btstack_type 2 13863 */ 13864 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){ 13865 return little_endian_read_16(event, 3); 13866 } 13867 /** 13868 * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF 13869 * @param event packet 13870 * @return status 13871 * @note: btstack_type 1 13872 */ 13873 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){ 13874 return event[5]; 13875 } 13876 /** 13877 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF 13878 * @param event packet 13879 * @return present_value 13880 * @note: btstack_type 1 13881 */ 13882 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){ 13883 return event[6]; 13884 } 13885 /** 13886 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF 13887 * @param event packet 13888 * @return target_value 13889 * @note: btstack_type 1 13890 */ 13891 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){ 13892 return event[7]; 13893 } 13894 /** 13895 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF 13896 * @param event packet 13897 * @return remaining_time_ms 13898 * @note: btstack_type 4 13899 */ 13900 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){ 13901 return little_endian_read_32(event, 8); 13902 } 13903 13904 /** 13905 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL 13906 * @param event packet 13907 * @return dest 13908 * @note: btstack_type 2 13909 */ 13910 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){ 13911 return little_endian_read_16(event, 3); 13912 } 13913 /** 13914 * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL 13915 * @param event packet 13916 * @return status 13917 * @note: btstack_type 1 13918 */ 13919 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){ 13920 return event[5]; 13921 } 13922 /** 13923 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL 13924 * @param event packet 13925 * @return present_value 13926 * @note: btstack_type 2 13927 */ 13928 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){ 13929 return little_endian_read_16(event, 6); 13930 } 13931 /** 13932 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL 13933 * @param event packet 13934 * @return target_value 13935 * @note: btstack_type 2 13936 */ 13937 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){ 13938 return little_endian_read_16(event, 8); 13939 } 13940 /** 13941 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL 13942 * @param event packet 13943 * @return remaining_time_ms 13944 * @note: btstack_type 4 13945 */ 13946 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){ 13947 return little_endian_read_32(event, 10); 13948 } 13949 13950 /** 13951 * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13952 * @param event packet 13953 * @return dest 13954 * @note: btstack_type 2 13955 */ 13956 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){ 13957 return little_endian_read_16(event, 3); 13958 } 13959 /** 13960 * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13961 * @param event packet 13962 * @return netkey_index 13963 * @note: btstack_type 2 13964 */ 13965 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){ 13966 return little_endian_read_16(event, 5); 13967 } 13968 /** 13969 * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13970 * @param event packet 13971 * @return appkey_index 13972 * @note: btstack_type 2 13973 */ 13974 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){ 13975 return little_endian_read_16(event, 7); 13976 } 13977 /** 13978 * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13979 * @param event packet 13980 * @return company_id 13981 * @note: btstack_type 2 13982 */ 13983 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){ 13984 return little_endian_read_16(event, 9); 13985 } 13986 /** 13987 * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13988 * @param event packet 13989 * @return test_id 13990 * @note: btstack_type 1 13991 */ 13992 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){ 13993 return event[11]; 13994 } 13995 /** 13996 * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13997 * @param event packet 13998 * @return acknowledged 13999 * @note: btstack_type 1 14000 */ 14001 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){ 14002 return event[12]; 14003 } 14004 14005 /** 14006 * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED 14007 * @param event packet 14008 * @return element_index 14009 * @note: btstack_type 1 14010 */ 14011 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){ 14012 return event[3]; 14013 } 14014 14015 /** 14016 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 14017 * @param event packet 14018 * @return dest 14019 * @note: btstack_type 2 14020 */ 14021 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){ 14022 return little_endian_read_16(event, 3); 14023 } 14024 /** 14025 * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 14026 * @param event packet 14027 * @return status 14028 * @note: btstack_type 1 14029 */ 14030 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){ 14031 return event[5]; 14032 } 14033 /** 14034 * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 14035 * @param event packet 14036 * @return transition_time_gdtt 14037 * @note: btstack_type 1 14038 */ 14039 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){ 14040 return event[6]; 14041 } 14042 14043 /** 14044 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON 14045 * @param event packet 14046 * @return dest 14047 * @note: btstack_type 2 14048 */ 14049 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){ 14050 return little_endian_read_16(event, 3); 14051 } 14052 /** 14053 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON 14054 * @param event packet 14055 * @return foundation_status 14056 * @note: btstack_type 1 14057 */ 14058 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){ 14059 return event[5]; 14060 } 14061 /** 14062 * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON 14063 * @param event packet 14064 * @return secure_network_beacon_state 14065 * @note: btstack_type 1 14066 */ 14067 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){ 14068 return event[6]; 14069 } 14070 14071 /** 14072 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 14073 * @param event packet 14074 * @return dest 14075 * @note: btstack_type 2 14076 */ 14077 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){ 14078 return little_endian_read_16(event, 3); 14079 } 14080 /** 14081 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 14082 * @param event packet 14083 * @return foundation_status 14084 * @note: btstack_type 1 14085 */ 14086 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){ 14087 return event[5]; 14088 } 14089 /** 14090 * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 14091 * @param event packet 14092 * @return default_ttl 14093 * @note: btstack_type 1 14094 */ 14095 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){ 14096 return event[6]; 14097 } 14098 14099 /** 14100 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 14101 * @param event packet 14102 * @return dest 14103 * @note: btstack_type 2 14104 */ 14105 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){ 14106 return little_endian_read_16(event, 3); 14107 } 14108 /** 14109 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 14110 * @param event packet 14111 * @return foundation_status 14112 * @note: btstack_type 1 14113 */ 14114 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){ 14115 return event[5]; 14116 } 14117 /** 14118 * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 14119 * @param event packet 14120 * @return gatt_proxy_state 14121 * @note: btstack_type 1 14122 */ 14123 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){ 14124 return event[6]; 14125 } 14126 14127 /** 14128 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY 14129 * @param event packet 14130 * @return dest 14131 * @note: btstack_type 2 14132 */ 14133 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){ 14134 return little_endian_read_16(event, 3); 14135 } 14136 /** 14137 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY 14138 * @param event packet 14139 * @return foundation_status 14140 * @note: btstack_type 1 14141 */ 14142 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){ 14143 return event[5]; 14144 } 14145 /** 14146 * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY 14147 * @param event packet 14148 * @return relay 14149 * @note: btstack_type 1 14150 */ 14151 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){ 14152 return event[6]; 14153 } 14154 /** 14155 * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY 14156 * @param event packet 14157 * @return retransmit_count 14158 * @note: btstack_type 1 14159 */ 14160 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){ 14161 return event[7]; 14162 } 14163 /** 14164 * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY 14165 * @param event packet 14166 * @return retransmit_interval_ms 14167 * @note: btstack_type 1 14168 */ 14169 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){ 14170 return event[8]; 14171 } 14172 14173 /** 14174 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14175 * @param event packet 14176 * @return dest 14177 * @note: btstack_type 2 14178 */ 14179 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){ 14180 return little_endian_read_16(event, 3); 14181 } 14182 /** 14183 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14184 * @param event packet 14185 * @return foundation_status 14186 * @note: btstack_type 1 14187 */ 14188 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){ 14189 return event[5]; 14190 } 14191 /** 14192 * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14193 * @param event packet 14194 * @return publish_address 14195 * @note: btstack_type 2 14196 */ 14197 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){ 14198 return little_endian_read_16(event, 6); 14199 } 14200 /** 14201 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14202 * @param event packet 14203 * @return appkey_index 14204 * @note: btstack_type 2 14205 */ 14206 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){ 14207 return little_endian_read_16(event, 8); 14208 } 14209 /** 14210 * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14211 * @param event packet 14212 * @return credential_flag 14213 * @note: btstack_type 1 14214 */ 14215 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){ 14216 return event[10]; 14217 } 14218 /** 14219 * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14220 * @param event packet 14221 * @return publish_ttl 14222 * @note: btstack_type 1 14223 */ 14224 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){ 14225 return event[11]; 14226 } 14227 /** 14228 * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14229 * @param event packet 14230 * @return publish_period 14231 * @note: btstack_type 1 14232 */ 14233 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){ 14234 return event[12]; 14235 } 14236 /** 14237 * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14238 * @param event packet 14239 * @return publish_retransmit_count 14240 * @note: btstack_type 1 14241 */ 14242 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){ 14243 return event[13]; 14244 } 14245 /** 14246 * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14247 * @param event packet 14248 * @return publish_retransmit_interval_steps 14249 * @note: btstack_type 1 14250 */ 14251 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){ 14252 return event[14]; 14253 } 14254 /** 14255 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14256 * @param event packet 14257 * @return model_identifier 14258 * @note: btstack_type 4 14259 */ 14260 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){ 14261 return little_endian_read_32(event, 15); 14262 } 14263 14264 /** 14265 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14266 * @param event packet 14267 * @return dest 14268 * @note: btstack_type 2 14269 */ 14270 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){ 14271 return little_endian_read_16(event, 3); 14272 } 14273 /** 14274 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14275 * @param event packet 14276 * @return foundation_status 14277 * @note: btstack_type 1 14278 */ 14279 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){ 14280 return event[5]; 14281 } 14282 /** 14283 * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14284 * @param event packet 14285 * @return address 14286 * @note: btstack_type 2 14287 */ 14288 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){ 14289 return little_endian_read_16(event, 6); 14290 } 14291 /** 14292 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14293 * @param event packet 14294 * @return model_identifier 14295 * @note: btstack_type 4 14296 */ 14297 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){ 14298 return little_endian_read_32(event, 8); 14299 } 14300 14301 /** 14302 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14303 * @param event packet 14304 * @return dest 14305 * @note: btstack_type 2 14306 */ 14307 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){ 14308 return little_endian_read_16(event, 3); 14309 } 14310 /** 14311 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14312 * @param event packet 14313 * @return foundation_status 14314 * @note: btstack_type 1 14315 */ 14316 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){ 14317 return event[5]; 14318 } 14319 /** 14320 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14321 * @param event packet 14322 * @return model_identifier 14323 * @note: btstack_type 4 14324 */ 14325 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){ 14326 return little_endian_read_32(event, 6); 14327 } 14328 /** 14329 * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14330 * @param event packet 14331 * @return num_subscription_addresses 14332 * @note: btstack_type 1 14333 */ 14334 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){ 14335 return event[10]; 14336 } 14337 /** 14338 * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14339 * @param event packet 14340 * @return subscription_address_pos 14341 * @note: btstack_type 1 14342 */ 14343 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){ 14344 return event[11]; 14345 } 14346 /** 14347 * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14348 * @param event packet 14349 * @return subscription_address_item 14350 * @note: btstack_type 2 14351 */ 14352 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){ 14353 return little_endian_read_16(event, 12); 14354 } 14355 14356 /** 14357 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 14358 * @param event packet 14359 * @return dest 14360 * @note: btstack_type 2 14361 */ 14362 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){ 14363 return little_endian_read_16(event, 3); 14364 } 14365 /** 14366 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 14367 * @param event packet 14368 * @return foundation_status 14369 * @note: btstack_type 1 14370 */ 14371 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){ 14372 return event[5]; 14373 } 14374 14375 /** 14376 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14377 * @param event packet 14378 * @return dest 14379 * @note: btstack_type 2 14380 */ 14381 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){ 14382 return little_endian_read_16(event, 3); 14383 } 14384 /** 14385 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14386 * @param event packet 14387 * @return foundation_status 14388 * @note: btstack_type 1 14389 */ 14390 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){ 14391 return event[5]; 14392 } 14393 /** 14394 * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14395 * @param event packet 14396 * @return num_netkey_indexes 14397 * @note: btstack_type 1 14398 */ 14399 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){ 14400 return event[6]; 14401 } 14402 /** 14403 * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14404 * @param event packet 14405 * @return netkey_index_pos 14406 * @note: btstack_type 1 14407 */ 14408 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){ 14409 return event[7]; 14410 } 14411 /** 14412 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14413 * @param event packet 14414 * @return netkey_index_item 14415 * @note: btstack_type 2 14416 */ 14417 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 14418 return little_endian_read_16(event, 8); 14419 } 14420 14421 /** 14422 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14423 * @param event packet 14424 * @return dest 14425 * @note: btstack_type 2 14426 */ 14427 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){ 14428 return little_endian_read_16(event, 3); 14429 } 14430 /** 14431 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14432 * @param event packet 14433 * @return foundation_status 14434 * @note: btstack_type 1 14435 */ 14436 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){ 14437 return event[5]; 14438 } 14439 /** 14440 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14441 * @param event packet 14442 * @return netkey_index_item 14443 * @note: btstack_type 2 14444 */ 14445 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){ 14446 return little_endian_read_16(event, 6); 14447 } 14448 /** 14449 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14450 * @param event packet 14451 * @return appkey_index_item 14452 * @note: btstack_type 2 14453 */ 14454 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){ 14455 return little_endian_read_16(event, 8); 14456 } 14457 14458 /** 14459 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14460 * @param event packet 14461 * @return dest 14462 * @note: btstack_type 2 14463 */ 14464 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){ 14465 return little_endian_read_16(event, 3); 14466 } 14467 /** 14468 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14469 * @param event packet 14470 * @return foundation_status 14471 * @note: btstack_type 1 14472 */ 14473 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){ 14474 return event[5]; 14475 } 14476 /** 14477 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14478 * @param event packet 14479 * @return netkey_index 14480 * @note: btstack_type 2 14481 */ 14482 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){ 14483 return little_endian_read_16(event, 6); 14484 } 14485 /** 14486 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14487 * @param event packet 14488 * @return num_appkey_indexes 14489 * @note: btstack_type 1 14490 */ 14491 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){ 14492 return event[8]; 14493 } 14494 /** 14495 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14496 * @param event packet 14497 * @return appkey_index_pos 14498 * @note: btstack_type 1 14499 */ 14500 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){ 14501 return event[9]; 14502 } 14503 /** 14504 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14505 * @param event packet 14506 * @return netkey_index_item 14507 * @note: btstack_type 2 14508 */ 14509 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 14510 return little_endian_read_16(event, 10); 14511 } 14512 /** 14513 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14514 * @param event packet 14515 * @return appkey_index_item 14516 * @note: btstack_type 2 14517 */ 14518 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){ 14519 return little_endian_read_16(event, 12); 14520 } 14521 14522 /** 14523 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14524 * @param event packet 14525 * @return dest 14526 * @note: btstack_type 2 14527 */ 14528 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){ 14529 return little_endian_read_16(event, 3); 14530 } 14531 /** 14532 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14533 * @param event packet 14534 * @return foundation_status 14535 * @note: btstack_type 1 14536 */ 14537 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){ 14538 return event[5]; 14539 } 14540 /** 14541 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14542 * @param event packet 14543 * @return netkey_index_item 14544 * @note: btstack_type 2 14545 */ 14546 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){ 14547 return little_endian_read_16(event, 6); 14548 } 14549 /** 14550 * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14551 * @param event packet 14552 * @return identity_status 14553 * @note: btstack_type 1 14554 */ 14555 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){ 14556 return event[8]; 14557 } 14558 14559 /** 14560 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14561 * @param event packet 14562 * @return dest 14563 * @note: btstack_type 2 14564 */ 14565 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){ 14566 return little_endian_read_16(event, 3); 14567 } 14568 /** 14569 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14570 * @param event packet 14571 * @return foundation_status 14572 * @note: btstack_type 1 14573 */ 14574 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){ 14575 return event[5]; 14576 } 14577 /** 14578 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14579 * @param event packet 14580 * @return appkey_index 14581 * @note: btstack_type 2 14582 */ 14583 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){ 14584 return little_endian_read_16(event, 6); 14585 } 14586 /** 14587 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14588 * @param event packet 14589 * @return model_identifier 14590 * @note: btstack_type 4 14591 */ 14592 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){ 14593 return little_endian_read_32(event, 8); 14594 } 14595 14596 /** 14597 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14598 * @param event packet 14599 * @return dest 14600 * @note: btstack_type 2 14601 */ 14602 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){ 14603 return little_endian_read_16(event, 3); 14604 } 14605 /** 14606 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14607 * @param event packet 14608 * @return foundation_status 14609 * @note: btstack_type 1 14610 */ 14611 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){ 14612 return event[5]; 14613 } 14614 /** 14615 * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14616 * @param event packet 14617 * @return model_id 14618 * @note: btstack_type 4 14619 */ 14620 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){ 14621 return little_endian_read_32(event, 6); 14622 } 14623 /** 14624 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14625 * @param event packet 14626 * @return num_appkey_indexes 14627 * @note: btstack_type 1 14628 */ 14629 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){ 14630 return event[10]; 14631 } 14632 /** 14633 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14634 * @param event packet 14635 * @return appkey_index_pos 14636 * @note: btstack_type 1 14637 */ 14638 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){ 14639 return event[11]; 14640 } 14641 /** 14642 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14643 * @param event packet 14644 * @return appkey_index_item 14645 * @note: btstack_type 2 14646 */ 14647 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){ 14648 return little_endian_read_16(event, 12); 14649 } 14650 14651 /** 14652 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 14653 * @param event packet 14654 * @return dest 14655 * @note: btstack_type 2 14656 */ 14657 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){ 14658 return little_endian_read_16(event, 3); 14659 } 14660 /** 14661 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 14662 * @param event packet 14663 * @return foundation_status 14664 * @note: btstack_type 1 14665 */ 14666 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){ 14667 return event[5]; 14668 } 14669 14670 /** 14671 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND 14672 * @param event packet 14673 * @return dest 14674 * @note: btstack_type 2 14675 */ 14676 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){ 14677 return little_endian_read_16(event, 3); 14678 } 14679 /** 14680 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND 14681 * @param event packet 14682 * @return foundation_status 14683 * @note: btstack_type 1 14684 */ 14685 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){ 14686 return event[5]; 14687 } 14688 /** 14689 * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND 14690 * @param event packet 14691 * @return friend_state 14692 * @note: btstack_type 1 14693 */ 14694 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){ 14695 return event[6]; 14696 } 14697 14698 /** 14699 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14700 * @param event packet 14701 * @return dest 14702 * @note: btstack_type 2 14703 */ 14704 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){ 14705 return little_endian_read_16(event, 3); 14706 } 14707 /** 14708 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14709 * @param event packet 14710 * @return foundation_status 14711 * @note: btstack_type 1 14712 */ 14713 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){ 14714 return event[5]; 14715 } 14716 /** 14717 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14718 * @param event packet 14719 * @return netkey_index 14720 * @note: btstack_type 2 14721 */ 14722 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){ 14723 return little_endian_read_16(event, 6); 14724 } 14725 /** 14726 * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14727 * @param event packet 14728 * @return phase 14729 * @note: btstack_type 1 14730 */ 14731 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){ 14732 return event[8]; 14733 } 14734 14735 /** 14736 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14737 * @param event packet 14738 * @return dest 14739 * @note: btstack_type 2 14740 */ 14741 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){ 14742 return little_endian_read_16(event, 3); 14743 } 14744 /** 14745 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14746 * @param event packet 14747 * @return foundation_status 14748 * @note: btstack_type 1 14749 */ 14750 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){ 14751 return event[5]; 14752 } 14753 /** 14754 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14755 * @param event packet 14756 * @return heartbeat_destination 14757 * @note: btstack_type 2 14758 */ 14759 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){ 14760 return little_endian_read_16(event, 6); 14761 } 14762 /** 14763 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14764 * @param event packet 14765 * @return count_S 14766 * @note: btstack_type 2 14767 */ 14768 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){ 14769 return little_endian_read_16(event, 8); 14770 } 14771 /** 14772 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14773 * @param event packet 14774 * @return period_S 14775 * @note: btstack_type 2 14776 */ 14777 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){ 14778 return little_endian_read_16(event, 10); 14779 } 14780 /** 14781 * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14782 * @param event packet 14783 * @return ttl 14784 * @note: btstack_type 1 14785 */ 14786 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){ 14787 return event[12]; 14788 } 14789 /** 14790 * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14791 * @param event packet 14792 * @return features 14793 * @note: btstack_type 2 14794 */ 14795 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){ 14796 return little_endian_read_16(event, 13); 14797 } 14798 /** 14799 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14800 * @param event packet 14801 * @return netkey_index 14802 * @note: btstack_type 2 14803 */ 14804 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){ 14805 return little_endian_read_16(event, 15); 14806 } 14807 14808 /** 14809 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14810 * @param event packet 14811 * @return dest 14812 * @note: btstack_type 2 14813 */ 14814 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){ 14815 return little_endian_read_16(event, 3); 14816 } 14817 /** 14818 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14819 * @param event packet 14820 * @return foundation_status 14821 * @note: btstack_type 1 14822 */ 14823 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){ 14824 return event[5]; 14825 } 14826 /** 14827 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14828 * @param event packet 14829 * @return heartbeat_destination 14830 * @note: btstack_type 2 14831 */ 14832 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){ 14833 return little_endian_read_16(event, 6); 14834 } 14835 /** 14836 * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14837 * @param event packet 14838 * @return heartbeat_source 14839 * @note: btstack_type 2 14840 */ 14841 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){ 14842 return little_endian_read_16(event, 8); 14843 } 14844 /** 14845 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14846 * @param event packet 14847 * @return count_S 14848 * @note: btstack_type 2 14849 */ 14850 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){ 14851 return little_endian_read_16(event, 10); 14852 } 14853 /** 14854 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14855 * @param event packet 14856 * @return period_S 14857 * @note: btstack_type 2 14858 */ 14859 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){ 14860 return little_endian_read_16(event, 12); 14861 } 14862 /** 14863 * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14864 * @param event packet 14865 * @return min_hops 14866 * @note: btstack_type 1 14867 */ 14868 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){ 14869 return event[14]; 14870 } 14871 /** 14872 * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14873 * @param event packet 14874 * @return max_hops 14875 * @note: btstack_type 1 14876 */ 14877 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){ 14878 return event[15]; 14879 } 14880 14881 /** 14882 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14883 * @param event packet 14884 * @return dest 14885 * @note: btstack_type 2 14886 */ 14887 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){ 14888 return little_endian_read_16(event, 3); 14889 } 14890 /** 14891 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14892 * @param event packet 14893 * @return foundation_status 14894 * @note: btstack_type 1 14895 */ 14896 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){ 14897 return event[5]; 14898 } 14899 /** 14900 * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14901 * @param event packet 14902 * @return lpn_address 14903 * @note: btstack_type 2 14904 */ 14905 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){ 14906 return little_endian_read_16(event, 6); 14907 } 14908 /** 14909 * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14910 * @param event packet 14911 * @return poll_timeout 14912 * @note: btstack_type 3 14913 */ 14914 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){ 14915 return little_endian_read_24(event, 8); 14916 } 14917 14918 /** 14919 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14920 * @param event packet 14921 * @return dest 14922 * @note: btstack_type 2 14923 */ 14924 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){ 14925 return little_endian_read_16(event, 3); 14926 } 14927 /** 14928 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14929 * @param event packet 14930 * @return foundation_status 14931 * @note: btstack_type 1 14932 */ 14933 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){ 14934 return event[5]; 14935 } 14936 /** 14937 * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14938 * @param event packet 14939 * @return transmit_count 14940 * @note: btstack_type 1 14941 */ 14942 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){ 14943 return event[6]; 14944 } 14945 /** 14946 * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14947 * @param event packet 14948 * @return transmit_interval_steps_ms 14949 * @note: btstack_type 2 14950 */ 14951 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){ 14952 return little_endian_read_16(event, 7); 14953 } 14954 14955 14956 14957 /* API_END */ 14958 14959 #if defined __cplusplus 14960 } 14961 #endif 14962 14963 #endif // BTSTACK_EVENT_H 14964