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_con_handle from event GAP_SUBEVENT_CIS_CREATED 5743 * @param event packet 5744 * @return cis_con_handle 5745 * @note: btstack_type H 5746 */ 5747 static inline hci_con_handle_t gap_subevent_cis_created_get_cis_con_handle(const uint8_t * event){ 5748 return little_endian_read_16(event, 5); 5749 } 5750 5751 /** 5752 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5753 * @param event packet 5754 * @return acl_handle 5755 * @note: btstack_type H 5756 */ 5757 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){ 5758 return little_endian_read_16(event, 3); 5759 } 5760 /** 5761 * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5762 * @param event packet 5763 * @return status 5764 * @note: btstack_type 1 5765 */ 5766 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){ 5767 return event[5]; 5768 } 5769 /** 5770 * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 5771 * @param event packet 5772 * @param Pointer to storage for bd_addr 5773 * @note: btstack_type B 5774 */ 5775 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5776 reverse_bytes(&event[6], bd_addr, 6); 5777 } 5778 5779 /** 5780 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE 5781 * @param event packet 5782 * @return acl_handle 5783 * @note: btstack_type H 5784 */ 5785 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){ 5786 return little_endian_read_16(event, 3); 5787 } 5788 5789 /** 5790 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5791 * @param event packet 5792 * @return acl_handle 5793 * @note: btstack_type H 5794 */ 5795 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){ 5796 return little_endian_read_16(event, 3); 5797 } 5798 /** 5799 * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5800 * @param event packet 5801 * @return status 5802 * @note: btstack_type 1 5803 */ 5804 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){ 5805 return event[5]; 5806 } 5807 /** 5808 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 5809 * @param event packet 5810 * @return sco_handle 5811 * @note: btstack_type H 5812 */ 5813 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){ 5814 return little_endian_read_16(event, 6); 5815 } 5816 5817 /** 5818 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 5819 * @param event packet 5820 * @return acl_handle 5821 * @note: btstack_type H 5822 */ 5823 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){ 5824 return little_endian_read_16(event, 3); 5825 } 5826 /** 5827 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 5828 * @param event packet 5829 * @return sco_handle 5830 * @note: btstack_type H 5831 */ 5832 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){ 5833 return little_endian_read_16(event, 5); 5834 } 5835 5836 /** 5837 * @brief Get field acl_handle from event HSP_SUBEVENT_RING 5838 * @param event packet 5839 * @return acl_handle 5840 * @note: btstack_type H 5841 */ 5842 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){ 5843 return little_endian_read_16(event, 3); 5844 } 5845 5846 /** 5847 * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 5848 * @param event packet 5849 * @return acl_handle 5850 * @note: btstack_type H 5851 */ 5852 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){ 5853 return little_endian_read_16(event, 3); 5854 } 5855 /** 5856 * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 5857 * @param event packet 5858 * @return gain 5859 * @note: btstack_type 1 5860 */ 5861 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){ 5862 return event[5]; 5863 } 5864 5865 /** 5866 * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 5867 * @param event packet 5868 * @return acl_handle 5869 * @note: btstack_type H 5870 */ 5871 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){ 5872 return little_endian_read_16(event, 3); 5873 } 5874 /** 5875 * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 5876 * @param event packet 5877 * @return gain 5878 * @note: btstack_type 1 5879 */ 5880 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){ 5881 return event[5]; 5882 } 5883 5884 /** 5885 * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND 5886 * @param event packet 5887 * @return acl_handle 5888 * @note: btstack_type H 5889 */ 5890 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){ 5891 return little_endian_read_16(event, 3); 5892 } 5893 /** 5894 * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND 5895 * @param event packet 5896 * @return value_length 5897 * @note: btstack_type J 5898 */ 5899 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){ 5900 return event[5]; 5901 } 5902 /** 5903 * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND 5904 * @param event packet 5905 * @return value 5906 * @note: btstack_type V 5907 */ 5908 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){ 5909 return &event[6]; 5910 } 5911 5912 /** 5913 * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION 5914 * @param event packet 5915 * @return acl_handle 5916 * @note: btstack_type H 5917 */ 5918 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){ 5919 return little_endian_read_16(event, 3); 5920 } 5921 /** 5922 * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION 5923 * @param event packet 5924 * @return value_length 5925 * @note: btstack_type J 5926 */ 5927 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){ 5928 return event[5]; 5929 } 5930 /** 5931 * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION 5932 * @param event packet 5933 * @return value 5934 * @note: btstack_type V 5935 */ 5936 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){ 5937 return &event[6]; 5938 } 5939 5940 /** 5941 * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED 5942 * @param event packet 5943 * @return acl_handle 5944 * @note: btstack_type H 5945 */ 5946 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){ 5947 return little_endian_read_16(event, 3); 5948 } 5949 5950 /** 5951 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5952 * @param event packet 5953 * @return acl_handle 5954 * @note: btstack_type H 5955 */ 5956 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){ 5957 return little_endian_read_16(event, 3); 5958 } 5959 /** 5960 * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5961 * @param event packet 5962 * @return status 5963 * @note: btstack_type 1 5964 */ 5965 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){ 5966 return event[5]; 5967 } 5968 /** 5969 * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 5970 * @param event packet 5971 * @param Pointer to storage for bd_addr 5972 * @note: btstack_type B 5973 */ 5974 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5975 reverse_bytes(&event[6], bd_addr, 6); 5976 } 5977 5978 /** 5979 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 5980 * @param event packet 5981 * @return acl_handle 5982 * @note: btstack_type H 5983 */ 5984 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){ 5985 return little_endian_read_16(event, 3); 5986 } 5987 5988 /** 5989 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 5990 * @param event packet 5991 * @return acl_handle 5992 * @note: btstack_type H 5993 */ 5994 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){ 5995 return little_endian_read_16(event, 3); 5996 } 5997 /** 5998 * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 5999 * @param event packet 6000 * @return status 6001 * @note: btstack_type 1 6002 */ 6003 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){ 6004 return event[5]; 6005 } 6006 /** 6007 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6008 * @param event packet 6009 * @return sco_handle 6010 * @note: btstack_type H 6011 */ 6012 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){ 6013 return little_endian_read_16(event, 6); 6014 } 6015 /** 6016 * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6017 * @param event packet 6018 * @param Pointer to storage for bd_addr 6019 * @note: btstack_type B 6020 */ 6021 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6022 reverse_bytes(&event[8], bd_addr, 6); 6023 } 6024 /** 6025 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6026 * @param event packet 6027 * @return negotiated_codec 6028 * @note: btstack_type 1 6029 */ 6030 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){ 6031 return event[14]; 6032 } 6033 /** 6034 * @brief Get field sco_packet_types from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6035 * @param event packet 6036 * @return sco_packet_types 6037 * @note: btstack_type 2 6038 */ 6039 static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){ 6040 return little_endian_read_16(event, 15); 6041 } 6042 /** 6043 * @brief Get field rx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6044 * @param event packet 6045 * @return rx_packet_length 6046 * @note: btstack_type 2 6047 */ 6048 static inline uint16_t hfp_subevent_audio_connection_established_get_rx_packet_length(const uint8_t * event){ 6049 return little_endian_read_16(event, 17); 6050 } 6051 /** 6052 * @brief Get field tx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6053 * @param event packet 6054 * @return tx_packet_length 6055 * @note: btstack_type 2 6056 */ 6057 static inline uint16_t hfp_subevent_audio_connection_established_get_tx_packet_length(const uint8_t * event){ 6058 return little_endian_read_16(event, 19); 6059 } 6060 6061 /** 6062 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6063 * @param event packet 6064 * @return acl_handle 6065 * @note: btstack_type H 6066 */ 6067 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){ 6068 return little_endian_read_16(event, 3); 6069 } 6070 /** 6071 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6072 * @param event packet 6073 * @return sco_handle 6074 * @note: btstack_type H 6075 */ 6076 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){ 6077 return little_endian_read_16(event, 5); 6078 } 6079 6080 /** 6081 * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE 6082 * @param event packet 6083 * @return acl_handle 6084 * @note: btstack_type H 6085 */ 6086 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){ 6087 return little_endian_read_16(event, 3); 6088 } 6089 /** 6090 * @brief Get field status from event HFP_SUBEVENT_COMPLETE 6091 * @param event packet 6092 * @return status 6093 * @note: btstack_type 1 6094 */ 6095 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){ 6096 return event[5]; 6097 } 6098 6099 /** 6100 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6101 * @param event packet 6102 * @return acl_handle 6103 * @note: btstack_type H 6104 */ 6105 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){ 6106 return little_endian_read_16(event, 3); 6107 } 6108 /** 6109 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6110 * @param event packet 6111 * @return indicator_index 6112 * @note: btstack_type 1 6113 */ 6114 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){ 6115 return event[5]; 6116 } 6117 /** 6118 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6119 * @param event packet 6120 * @return indicator_min_range 6121 * @note: btstack_type 1 6122 */ 6123 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){ 6124 return event[6]; 6125 } 6126 /** 6127 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6128 * @param event packet 6129 * @return indicator_max_range 6130 * @note: btstack_type 1 6131 */ 6132 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){ 6133 return event[7]; 6134 } 6135 /** 6136 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6137 * @param event packet 6138 * @return indicator_name 6139 * @note: btstack_type T 6140 */ 6141 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){ 6142 return (const char *) &event[8]; 6143 } 6144 6145 /** 6146 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6147 * @param event packet 6148 * @return acl_handle 6149 * @note: btstack_type H 6150 */ 6151 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){ 6152 return little_endian_read_16(event, 3); 6153 } 6154 /** 6155 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6156 * @param event packet 6157 * @return indicator_index 6158 * @note: btstack_type 1 6159 */ 6160 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){ 6161 return event[5]; 6162 } 6163 /** 6164 * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6165 * @param event packet 6166 * @return indicator_status 6167 * @note: btstack_type 1 6168 */ 6169 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){ 6170 return event[6]; 6171 } 6172 /** 6173 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6174 * @param event packet 6175 * @return indicator_min_range 6176 * @note: btstack_type 1 6177 */ 6178 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){ 6179 return event[7]; 6180 } 6181 /** 6182 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6183 * @param event packet 6184 * @return indicator_max_range 6185 * @note: btstack_type 1 6186 */ 6187 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){ 6188 return event[8]; 6189 } 6190 /** 6191 * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6192 * @param event packet 6193 * @return indicator_mandatory 6194 * @note: btstack_type 1 6195 */ 6196 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){ 6197 return event[9]; 6198 } 6199 /** 6200 * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6201 * @param event packet 6202 * @return indicator_enabled 6203 * @note: btstack_type 1 6204 */ 6205 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){ 6206 return event[10]; 6207 } 6208 /** 6209 * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6210 * @param event packet 6211 * @return indicator_status_changed 6212 * @note: btstack_type 1 6213 */ 6214 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){ 6215 return event[11]; 6216 } 6217 /** 6218 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6219 * @param event packet 6220 * @return indicator_name 6221 * @note: btstack_type T 6222 */ 6223 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){ 6224 return (const char *) &event[12]; 6225 } 6226 6227 /** 6228 * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6229 * @param event packet 6230 * @return acl_handle 6231 * @note: btstack_type H 6232 */ 6233 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){ 6234 return little_endian_read_16(event, 3); 6235 } 6236 /** 6237 * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6238 * @param event packet 6239 * @return network_operator_mode 6240 * @note: btstack_type 1 6241 */ 6242 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){ 6243 return event[5]; 6244 } 6245 /** 6246 * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6247 * @param event packet 6248 * @return network_operator_format 6249 * @note: btstack_type 1 6250 */ 6251 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){ 6252 return event[6]; 6253 } 6254 /** 6255 * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 6256 * @param event packet 6257 * @return network_operator_name 6258 * @note: btstack_type T 6259 */ 6260 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){ 6261 return (const char *) &event[7]; 6262 } 6263 6264 /** 6265 * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 6266 * @param event packet 6267 * @return acl_handle 6268 * @note: btstack_type H 6269 */ 6270 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){ 6271 return little_endian_read_16(event, 3); 6272 } 6273 /** 6274 * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 6275 * @param event packet 6276 * @return error 6277 * @note: btstack_type 1 6278 */ 6279 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){ 6280 return event[5]; 6281 } 6282 6283 /** 6284 * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING 6285 * @param event packet 6286 * @return acl_handle 6287 * @note: btstack_type H 6288 */ 6289 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){ 6290 return little_endian_read_16(event, 3); 6291 } 6292 6293 /** 6294 * @brief Get field acl_handle from event HFP_SUBEVENT_RING 6295 * @param event packet 6296 * @return acl_handle 6297 * @note: btstack_type H 6298 */ 6299 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){ 6300 return little_endian_read_16(event, 3); 6301 } 6302 6303 /** 6304 * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING 6305 * @param event packet 6306 * @return acl_handle 6307 * @note: btstack_type H 6308 */ 6309 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){ 6310 return little_endian_read_16(event, 3); 6311 } 6312 6313 /** 6314 * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 6315 * @param event packet 6316 * @return acl_handle 6317 * @note: btstack_type H 6318 */ 6319 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){ 6320 return little_endian_read_16(event, 3); 6321 } 6322 /** 6323 * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 6324 * @param event packet 6325 * @return number 6326 * @note: btstack_type T 6327 */ 6328 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){ 6329 return (const char *) &event[5]; 6330 } 6331 6332 /** 6333 * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG 6334 * @param event packet 6335 * @return acl_handle 6336 * @note: btstack_type H 6337 */ 6338 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){ 6339 return little_endian_read_16(event, 3); 6340 } 6341 6342 /** 6343 * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 6344 * @param event packet 6345 * @return acl_handle 6346 * @note: btstack_type H 6347 */ 6348 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){ 6349 return little_endian_read_16(event, 3); 6350 } 6351 /** 6352 * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 6353 * @param event packet 6354 * @return number 6355 * @note: btstack_type T 6356 */ 6357 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){ 6358 return (const char *) &event[5]; 6359 } 6360 6361 /** 6362 * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 6363 * @param event packet 6364 * @return acl_handle 6365 * @note: btstack_type H 6366 */ 6367 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){ 6368 return little_endian_read_16(event, 3); 6369 } 6370 /** 6371 * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 6372 * @param event packet 6373 * @return dtmf 6374 * @note: btstack_type T 6375 */ 6376 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){ 6377 return (const char *) &event[5]; 6378 } 6379 6380 /** 6381 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED 6382 * @param event packet 6383 * @return acl_handle 6384 * @note: btstack_type H 6385 */ 6386 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){ 6387 return little_endian_read_16(event, 3); 6388 } 6389 6390 /** 6391 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED 6392 * @param event packet 6393 * @return acl_handle 6394 * @note: btstack_type H 6395 */ 6396 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){ 6397 return little_endian_read_16(event, 3); 6398 } 6399 6400 /** 6401 * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL 6402 * @param event packet 6403 * @return acl_handle 6404 * @note: btstack_type H 6405 */ 6406 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){ 6407 return little_endian_read_16(event, 3); 6408 } 6409 6410 /** 6411 * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME 6412 * @param event packet 6413 * @return acl_handle 6414 * @note: btstack_type H 6415 */ 6416 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){ 6417 return little_endian_read_16(event, 3); 6418 } 6419 /** 6420 * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME 6421 * @param event packet 6422 * @return gain 6423 * @note: btstack_type 1 6424 */ 6425 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){ 6426 return event[5]; 6427 } 6428 6429 /** 6430 * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME 6431 * @param event packet 6432 * @return acl_handle 6433 * @note: btstack_type H 6434 */ 6435 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){ 6436 return little_endian_read_16(event, 3); 6437 } 6438 /** 6439 * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME 6440 * @param event packet 6441 * @return gain 6442 * @note: btstack_type 1 6443 */ 6444 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){ 6445 return event[5]; 6446 } 6447 6448 /** 6449 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6450 * @param event packet 6451 * @return acl_handle 6452 * @note: btstack_type H 6453 */ 6454 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){ 6455 return little_endian_read_16(event, 3); 6456 } 6457 /** 6458 * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6459 * @param event packet 6460 * @return type 6461 * @note: btstack_type 1 6462 */ 6463 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){ 6464 return event[5]; 6465 } 6466 /** 6467 * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6468 * @param event packet 6469 * @return number_length 6470 * @note: btstack_type J 6471 */ 6472 static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){ 6473 return event[6]; 6474 } 6475 /** 6476 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6477 * @param event packet 6478 * @return number 6479 * @note: btstack_type V 6480 */ 6481 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){ 6482 return &event[7]; 6483 } 6484 /** 6485 * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6486 * @param event packet 6487 * @return alpha_length 6488 * @note: btstack_type J 6489 */ 6490 static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){ 6491 return event[7u + event[6]]; 6492 } 6493 /** 6494 * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 6495 * @param event packet 6496 * @return alpha 6497 * @note: btstack_type V 6498 */ 6499 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){ 6500 return &event[7u + event[6] + 1u]; 6501 } 6502 6503 /** 6504 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6505 * @param event packet 6506 * @return acl_handle 6507 * @note: btstack_type H 6508 */ 6509 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){ 6510 return little_endian_read_16(event, 3); 6511 } 6512 /** 6513 * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6514 * @param event packet 6515 * @return type 6516 * @note: btstack_type 1 6517 */ 6518 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){ 6519 return event[5]; 6520 } 6521 /** 6522 * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6523 * @param event packet 6524 * @return number_length 6525 * @note: btstack_type J 6526 */ 6527 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){ 6528 return event[6]; 6529 } 6530 /** 6531 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6532 * @param event packet 6533 * @return number 6534 * @note: btstack_type V 6535 */ 6536 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){ 6537 return &event[7]; 6538 } 6539 /** 6540 * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6541 * @param event packet 6542 * @return alpha_length 6543 * @note: btstack_type J 6544 */ 6545 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){ 6546 return event[7u + event[6]]; 6547 } 6548 /** 6549 * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 6550 * @param event packet 6551 * @return alpha 6552 * @note: btstack_type V 6553 */ 6554 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){ 6555 return &event[7u + event[6] + 1u]; 6556 } 6557 6558 /** 6559 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6560 * @param event packet 6561 * @return acl_handle 6562 * @note: btstack_type H 6563 */ 6564 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){ 6565 return little_endian_read_16(event, 3); 6566 } 6567 /** 6568 * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6569 * @param event packet 6570 * @return clcc_idx 6571 * @note: btstack_type 1 6572 */ 6573 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){ 6574 return event[5]; 6575 } 6576 /** 6577 * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6578 * @param event packet 6579 * @return clcc_dir 6580 * @note: btstack_type 1 6581 */ 6582 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){ 6583 return event[6]; 6584 } 6585 /** 6586 * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6587 * @param event packet 6588 * @return clcc_status 6589 * @note: btstack_type 1 6590 */ 6591 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){ 6592 return event[7]; 6593 } 6594 /** 6595 * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6596 * @param event packet 6597 * @return clcc_mode 6598 * @note: btstack_type 1 6599 */ 6600 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){ 6601 return event[8]; 6602 } 6603 /** 6604 * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6605 * @param event packet 6606 * @return clcc_mpty 6607 * @note: btstack_type 1 6608 */ 6609 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){ 6610 return event[9]; 6611 } 6612 /** 6613 * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6614 * @param event packet 6615 * @return bnip_type 6616 * @note: btstack_type 1 6617 */ 6618 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){ 6619 return event[10]; 6620 } 6621 /** 6622 * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 6623 * @param event packet 6624 * @return bnip_number 6625 * @note: btstack_type T 6626 */ 6627 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){ 6628 return (const char *) &event[11]; 6629 } 6630 6631 /** 6632 * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6633 * @param event packet 6634 * @return acl_handle 6635 * @note: btstack_type H 6636 */ 6637 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){ 6638 return little_endian_read_16(event, 3); 6639 } 6640 /** 6641 * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6642 * @param event packet 6643 * @return status 6644 * @note: btstack_type 1 6645 */ 6646 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){ 6647 return event[5]; 6648 } 6649 /** 6650 * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6651 * @param event packet 6652 * @return bnip_type 6653 * @note: btstack_type 1 6654 */ 6655 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){ 6656 return event[6]; 6657 } 6658 /** 6659 * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 6660 * @param event packet 6661 * @return bnip_number 6662 * @note: btstack_type T 6663 */ 6664 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){ 6665 return (const char *) &event[7]; 6666 } 6667 6668 /** 6669 * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 6670 * @param event packet 6671 * @return acl_handle 6672 * @note: btstack_type H 6673 */ 6674 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){ 6675 return little_endian_read_16(event, 3); 6676 } 6677 /** 6678 * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 6679 * @param event packet 6680 * @return value 6681 * @note: btstack_type T 6682 */ 6683 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){ 6684 return (const char *) &event[5]; 6685 } 6686 6687 /** 6688 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT 6689 * @param event packet 6690 * @return acl_handle 6691 * @note: btstack_type H 6692 */ 6693 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){ 6694 return little_endian_read_16(event, 3); 6695 } 6696 /** 6697 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT 6698 * @param event packet 6699 * @return command 6700 * @note: btstack_type T 6701 */ 6702 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){ 6703 return (const char *) &event[5]; 6704 } 6705 6706 /** 6707 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 6708 * @param event packet 6709 * @return acl_handle 6710 * @note: btstack_type H 6711 */ 6712 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){ 6713 return little_endian_read_16(event, 3); 6714 } 6715 /** 6716 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 6717 * @param event packet 6718 * @return command 6719 * @note: btstack_type T 6720 */ 6721 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){ 6722 return (const char *) &event[5]; 6723 } 6724 6725 /** 6726 * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE 6727 * @param event packet 6728 * @return acl_handle 6729 * @note: btstack_type H 6730 */ 6731 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){ 6732 return little_endian_read_16(event, 3); 6733 } 6734 /** 6735 * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE 6736 * @param event packet 6737 * @return status 6738 * @note: btstack_type 1 6739 */ 6740 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){ 6741 return event[5]; 6742 } 6743 6744 /** 6745 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6746 * @param event packet 6747 * @return acl_handle 6748 * @note: btstack_type H 6749 */ 6750 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){ 6751 return little_endian_read_16(event, 3); 6752 } 6753 /** 6754 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6755 * @param event packet 6756 * @return status 6757 * @note: btstack_type 1 6758 */ 6759 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){ 6760 return event[5]; 6761 } 6762 /** 6763 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 6764 * @param event packet 6765 * @return enhanced 6766 * @note: btstack_type 1 6767 */ 6768 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){ 6769 return event[6]; 6770 } 6771 6772 /** 6773 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 6774 * @param event packet 6775 * @return acl_handle 6776 * @note: btstack_type H 6777 */ 6778 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){ 6779 return little_endian_read_16(event, 3); 6780 } 6781 /** 6782 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 6783 * @param event packet 6784 * @return status 6785 * @note: btstack_type 1 6786 */ 6787 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){ 6788 return event[5]; 6789 } 6790 6791 /** 6792 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 6793 * @param event packet 6794 * @return acl_handle 6795 * @note: btstack_type H 6796 */ 6797 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){ 6798 return little_endian_read_16(event, 3); 6799 } 6800 /** 6801 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 6802 * @param event packet 6803 * @return status 6804 * @note: btstack_type 1 6805 */ 6806 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){ 6807 return event[5]; 6808 } 6809 6810 /** 6811 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 6812 * @param event packet 6813 * @return acl_handle 6814 * @note: btstack_type H 6815 */ 6816 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){ 6817 return little_endian_read_16(event, 3); 6818 } 6819 /** 6820 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 6821 * @param event packet 6822 * @return status 6823 * @note: btstack_type 1 6824 */ 6825 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){ 6826 return event[5]; 6827 } 6828 6829 /** 6830 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 6831 * @param event packet 6832 * @return acl_handle 6833 * @note: btstack_type H 6834 */ 6835 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){ 6836 return little_endian_read_16(event, 3); 6837 } 6838 /** 6839 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 6840 * @param event packet 6841 * @return status 6842 * @note: btstack_type 1 6843 */ 6844 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){ 6845 return event[5]; 6846 } 6847 6848 /** 6849 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 6850 * @param event packet 6851 * @return acl_handle 6852 * @note: btstack_type H 6853 */ 6854 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){ 6855 return little_endian_read_16(event, 3); 6856 } 6857 /** 6858 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 6859 * @param event packet 6860 * @return status 6861 * @note: btstack_type 1 6862 */ 6863 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){ 6864 return event[5]; 6865 } 6866 6867 /** 6868 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 6869 * @param event packet 6870 * @return acl_handle 6871 * @note: btstack_type H 6872 */ 6873 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){ 6874 return little_endian_read_16(event, 3); 6875 } 6876 /** 6877 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 6878 * @param event packet 6879 * @return status 6880 * @note: btstack_type 1 6881 */ 6882 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){ 6883 return event[5]; 6884 } 6885 6886 /** 6887 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6888 * @param event packet 6889 * @return acl_handle 6890 * @note: btstack_type H 6891 */ 6892 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){ 6893 return little_endian_read_16(event, 3); 6894 } 6895 /** 6896 * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6897 * @param event packet 6898 * @return text_id 6899 * @note: btstack_type 2 6900 */ 6901 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){ 6902 return little_endian_read_16(event, 5); 6903 } 6904 /** 6905 * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6906 * @param event packet 6907 * @return text_type 6908 * @note: btstack_type 1 6909 */ 6910 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){ 6911 return event[7]; 6912 } 6913 /** 6914 * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6915 * @param event packet 6916 * @return text_operation 6917 * @note: btstack_type 1 6918 */ 6919 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){ 6920 return event[8]; 6921 } 6922 /** 6923 * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6924 * @param event packet 6925 * @return text_length 6926 * @note: btstack_type L 6927 */ 6928 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){ 6929 return little_endian_read_16(event, 9); 6930 } 6931 /** 6932 * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 6933 * @param event packet 6934 * @return text 6935 * @note: btstack_type V 6936 */ 6937 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){ 6938 return &event[11]; 6939 } 6940 6941 /** 6942 * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 6943 * @param event packet 6944 * @return acl_handle 6945 * @note: btstack_type H 6946 */ 6947 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){ 6948 return little_endian_read_16(event, 3); 6949 } 6950 /** 6951 * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 6952 * @param event packet 6953 * @return status 6954 * @note: btstack_type 1 6955 */ 6956 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){ 6957 return event[5]; 6958 } 6959 6960 /** 6961 * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR 6962 * @param event packet 6963 * @return acl_handle 6964 * @note: btstack_type H 6965 */ 6966 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){ 6967 return little_endian_read_16(event, 3); 6968 } 6969 /** 6970 * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR 6971 * @param event packet 6972 * @return uuid 6973 * @note: btstack_type 2 6974 */ 6975 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){ 6976 return little_endian_read_16(event, 5); 6977 } 6978 /** 6979 * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR 6980 * @param event packet 6981 * @return value 6982 * @note: btstack_type 1 6983 */ 6984 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){ 6985 return event[7]; 6986 } 6987 6988 /** 6989 * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 6990 * @param event packet 6991 * @return acl_handle 6992 * @note: btstack_type H 6993 */ 6994 static inline hci_con_handle_t hfp_subevent_custom_at_command_get_acl_handle(const uint8_t * event){ 6995 return little_endian_read_16(event, 3); 6996 } 6997 /** 6998 * @brief Get field command_id from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 6999 * @param event packet 7000 * @return command_id 7001 * @note: btstack_type 2 7002 */ 7003 static inline uint16_t hfp_subevent_custom_at_command_get_command_id(const uint8_t * event){ 7004 return little_endian_read_16(event, 5); 7005 } 7006 /** 7007 * @brief Get field command_string from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7008 * @param event packet 7009 * @return command_string 7010 * @note: btstack_type T 7011 */ 7012 static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){ 7013 return (const char *) &event[7]; 7014 } 7015 7016 #ifdef ENABLE_BLE 7017 /** 7018 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED 7019 * @param event packet 7020 * @return handle 7021 * @note: btstack_type H 7022 */ 7023 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){ 7024 return little_endian_read_16(event, 3); 7025 } 7026 #endif 7027 7028 #ifdef ENABLE_BLE 7029 /** 7030 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7031 * @param event packet 7032 * @return handle 7033 * @note: btstack_type H 7034 */ 7035 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){ 7036 return little_endian_read_16(event, 3); 7037 } 7038 /** 7039 * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7040 * @param event packet 7041 * @return attribute_id 7042 * @note: btstack_type 2 7043 */ 7044 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){ 7045 return little_endian_read_16(event, 5); 7046 } 7047 /** 7048 * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7049 * @param event packet 7050 * @return text 7051 * @note: btstack_type T 7052 */ 7053 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){ 7054 return (const char *) &event[7]; 7055 } 7056 #endif 7057 7058 #ifdef ENABLE_BLE 7059 /** 7060 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED 7061 * @param event packet 7062 * @return handle 7063 * @note: btstack_type H 7064 */ 7065 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){ 7066 return little_endian_read_16(event, 3); 7067 } 7068 #endif 7069 7070 /** 7071 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7072 * @param event packet 7073 * @return avdtp_cid 7074 * @note: btstack_type 2 7075 */ 7076 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){ 7077 return little_endian_read_16(event, 3); 7078 } 7079 /** 7080 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7081 * @param event packet 7082 * @return local_seid 7083 * @note: btstack_type 1 7084 */ 7085 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){ 7086 return event[5]; 7087 } 7088 /** 7089 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7090 * @param event packet 7091 * @return is_initiator 7092 * @note: btstack_type 1 7093 */ 7094 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){ 7095 return event[6]; 7096 } 7097 /** 7098 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7099 * @param event packet 7100 * @return signal_identifier 7101 * @note: btstack_type 1 7102 */ 7103 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){ 7104 return event[7]; 7105 } 7106 7107 /** 7108 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT 7109 * @param event packet 7110 * @return avdtp_cid 7111 * @note: btstack_type 2 7112 */ 7113 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){ 7114 return little_endian_read_16(event, 3); 7115 } 7116 /** 7117 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT 7118 * @param event packet 7119 * @return local_seid 7120 * @note: btstack_type 1 7121 */ 7122 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){ 7123 return event[5]; 7124 } 7125 /** 7126 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT 7127 * @param event packet 7128 * @return is_initiator 7129 * @note: btstack_type 1 7130 */ 7131 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){ 7132 return event[6]; 7133 } 7134 /** 7135 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT 7136 * @param event packet 7137 * @return signal_identifier 7138 * @note: btstack_type 1 7139 */ 7140 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){ 7141 return event[7]; 7142 } 7143 7144 /** 7145 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7146 * @param event packet 7147 * @return avdtp_cid 7148 * @note: btstack_type 2 7149 */ 7150 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){ 7151 return little_endian_read_16(event, 3); 7152 } 7153 /** 7154 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7155 * @param event packet 7156 * @return local_seid 7157 * @note: btstack_type 1 7158 */ 7159 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){ 7160 return event[5]; 7161 } 7162 /** 7163 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7164 * @param event packet 7165 * @return is_initiator 7166 * @note: btstack_type 1 7167 */ 7168 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){ 7169 return event[6]; 7170 } 7171 /** 7172 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 7173 * @param event packet 7174 * @return signal_identifier 7175 * @note: btstack_type 1 7176 */ 7177 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){ 7178 return event[7]; 7179 } 7180 7181 /** 7182 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7183 * @param event packet 7184 * @return avdtp_cid 7185 * @note: btstack_type 2 7186 */ 7187 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){ 7188 return little_endian_read_16(event, 3); 7189 } 7190 /** 7191 * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7192 * @param event packet 7193 * @param Pointer to storage for bd_addr 7194 * @note: btstack_type B 7195 */ 7196 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 7197 reverse_bytes(&event[5], bd_addr, 6); 7198 } 7199 /** 7200 * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7201 * @param event packet 7202 * @return con_handle 7203 * @note: btstack_type 2 7204 */ 7205 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 7206 return little_endian_read_16(event, 11); 7207 } 7208 /** 7209 * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7210 * @param event packet 7211 * @return status 7212 * @note: btstack_type 1 7213 */ 7214 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 7215 return event[13]; 7216 } 7217 7218 /** 7219 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 7220 * @param event packet 7221 * @return avdtp_cid 7222 * @note: btstack_type 2 7223 */ 7224 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){ 7225 return little_endian_read_16(event, 3); 7226 } 7227 7228 /** 7229 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7230 * @param event packet 7231 * @return avdtp_cid 7232 * @note: btstack_type 2 7233 */ 7234 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){ 7235 return little_endian_read_16(event, 3); 7236 } 7237 /** 7238 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7239 * @param event packet 7240 * @return remote_seid 7241 * @note: btstack_type 1 7242 */ 7243 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){ 7244 return event[5]; 7245 } 7246 /** 7247 * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7248 * @param event packet 7249 * @return in_use 7250 * @note: btstack_type 1 7251 */ 7252 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){ 7253 return event[6]; 7254 } 7255 /** 7256 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7257 * @param event packet 7258 * @return media_type 7259 * @note: btstack_type 1 7260 */ 7261 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){ 7262 return event[7]; 7263 } 7264 /** 7265 * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 7266 * @param event packet 7267 * @return sep_type 7268 * @note: btstack_type 1 7269 */ 7270 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){ 7271 return event[8]; 7272 } 7273 7274 /** 7275 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7276 * @param event packet 7277 * @return avdtp_cid 7278 * @note: btstack_type 2 7279 */ 7280 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){ 7281 return little_endian_read_16(event, 3); 7282 } 7283 /** 7284 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7285 * @param event packet 7286 * @return remote_seid 7287 * @note: btstack_type 1 7288 */ 7289 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 7290 return event[5]; 7291 } 7292 /** 7293 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7294 * @param event packet 7295 * @return media_type 7296 * @note: btstack_type 1 7297 */ 7298 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 7299 return event[6]; 7300 } 7301 /** 7302 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7303 * @param event packet 7304 * @return sampling_frequency_bitmap 7305 * @note: btstack_type 1 7306 */ 7307 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7308 return event[7]; 7309 } 7310 /** 7311 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7312 * @param event packet 7313 * @return channel_mode_bitmap 7314 * @note: btstack_type 1 7315 */ 7316 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 7317 return event[8]; 7318 } 7319 /** 7320 * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7321 * @param event packet 7322 * @return block_length_bitmap 7323 * @note: btstack_type 1 7324 */ 7325 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 7326 return event[9]; 7327 } 7328 /** 7329 * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7330 * @param event packet 7331 * @return subbands_bitmap 7332 * @note: btstack_type 1 7333 */ 7334 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 7335 return event[10]; 7336 } 7337 /** 7338 * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7339 * @param event packet 7340 * @return allocation_method_bitmap 7341 * @note: btstack_type 1 7342 */ 7343 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 7344 return event[11]; 7345 } 7346 /** 7347 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7348 * @param event packet 7349 * @return min_bitpool_value 7350 * @note: btstack_type 1 7351 */ 7352 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 7353 return event[12]; 7354 } 7355 /** 7356 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7357 * @param event packet 7358 * @return max_bitpool_value 7359 * @note: btstack_type 1 7360 */ 7361 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 7362 return event[13]; 7363 } 7364 7365 /** 7366 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7367 * @param event packet 7368 * @return avdtp_cid 7369 * @note: btstack_type 2 7370 */ 7371 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){ 7372 return little_endian_read_16(event, 3); 7373 } 7374 /** 7375 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7376 * @param event packet 7377 * @return remote_seid 7378 * @note: btstack_type 1 7379 */ 7380 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 7381 return event[5]; 7382 } 7383 /** 7384 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7385 * @param event packet 7386 * @return media_type 7387 * @note: btstack_type 1 7388 */ 7389 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 7390 return event[6]; 7391 } 7392 /** 7393 * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7394 * @param event packet 7395 * @return layer_bitmap 7396 * @note: btstack_type 1 7397 */ 7398 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 7399 return event[7]; 7400 } 7401 /** 7402 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7403 * @param event packet 7404 * @return crc 7405 * @note: btstack_type 1 7406 */ 7407 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 7408 return event[8]; 7409 } 7410 /** 7411 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7412 * @param event packet 7413 * @return channel_mode_bitmap 7414 * @note: btstack_type 1 7415 */ 7416 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 7417 return event[9]; 7418 } 7419 /** 7420 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7421 * @param event packet 7422 * @return media_payload_format 7423 * @note: btstack_type 1 7424 */ 7425 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 7426 return event[10]; 7427 } 7428 /** 7429 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7430 * @param event packet 7431 * @return sampling_frequency_bitmap 7432 * @note: btstack_type 1 7433 */ 7434 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7435 return event[11]; 7436 } 7437 /** 7438 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7439 * @param event packet 7440 * @return vbr 7441 * @note: btstack_type 1 7442 */ 7443 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 7444 return event[12]; 7445 } 7446 /** 7447 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7448 * @param event packet 7449 * @return bit_rate_index_bitmap 7450 * @note: btstack_type 2 7451 */ 7452 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7453 return little_endian_read_16(event, 13); 7454 } 7455 7456 /** 7457 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7458 * @param event packet 7459 * @return avdtp_cid 7460 * @note: btstack_type 2 7461 */ 7462 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){ 7463 return little_endian_read_16(event, 3); 7464 } 7465 /** 7466 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7467 * @param event packet 7468 * @return remote_seid 7469 * @note: btstack_type 1 7470 */ 7471 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 7472 return event[5]; 7473 } 7474 /** 7475 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7476 * @param event packet 7477 * @return media_type 7478 * @note: btstack_type 1 7479 */ 7480 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 7481 return event[6]; 7482 } 7483 /** 7484 * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7485 * @param event packet 7486 * @return object_type_bitmap 7487 * @note: btstack_type 1 7488 */ 7489 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 7490 return event[7]; 7491 } 7492 /** 7493 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7494 * @param event packet 7495 * @return sampling_frequency_bitmap 7496 * @note: btstack_type 2 7497 */ 7498 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7499 return little_endian_read_16(event, 8); 7500 } 7501 /** 7502 * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7503 * @param event packet 7504 * @return channels_bitmap 7505 * @note: btstack_type 1 7506 */ 7507 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 7508 return event[10]; 7509 } 7510 /** 7511 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7512 * @param event packet 7513 * @return bit_rate 7514 * @note: btstack_type 3 7515 */ 7516 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 7517 return little_endian_read_24(event, 11); 7518 } 7519 /** 7520 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7521 * @param event packet 7522 * @return vbr 7523 * @note: btstack_type 1 7524 */ 7525 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 7526 return event[14]; 7527 } 7528 7529 /** 7530 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7531 * @param event packet 7532 * @return avdtp_cid 7533 * @note: btstack_type 2 7534 */ 7535 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){ 7536 return little_endian_read_16(event, 3); 7537 } 7538 /** 7539 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7540 * @param event packet 7541 * @return remote_seid 7542 * @note: btstack_type 1 7543 */ 7544 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 7545 return event[5]; 7546 } 7547 /** 7548 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7549 * @param event packet 7550 * @return media_type 7551 * @note: btstack_type 1 7552 */ 7553 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 7554 return event[6]; 7555 } 7556 /** 7557 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7558 * @param event packet 7559 * @return version 7560 * @note: btstack_type 1 7561 */ 7562 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 7563 return event[7]; 7564 } 7565 /** 7566 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7567 * @param event packet 7568 * @return channel_mode_bitmap 7569 * @note: btstack_type 1 7570 */ 7571 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 7572 return event[8]; 7573 } 7574 /** 7575 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7576 * @param event packet 7577 * @return sampling_frequency_bitmap 7578 * @note: btstack_type 1 7579 */ 7580 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7581 return event[9]; 7582 } 7583 /** 7584 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7585 * @param event packet 7586 * @return vbr 7587 * @note: btstack_type 1 7588 */ 7589 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 7590 return event[10]; 7591 } 7592 /** 7593 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7594 * @param event packet 7595 * @return bit_rate_index_bitmap 7596 * @note: btstack_type 3 7597 */ 7598 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7599 return little_endian_read_24(event, 11); 7600 } 7601 /** 7602 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7603 * @param event packet 7604 * @return maximum_sul 7605 * @note: btstack_type 2 7606 */ 7607 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 7608 return little_endian_read_16(event, 14); 7609 } 7610 7611 /** 7612 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7613 * @param event packet 7614 * @return avdtp_cid 7615 * @note: btstack_type 2 7616 */ 7617 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){ 7618 return little_endian_read_16(event, 3); 7619 } 7620 /** 7621 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7622 * @param event packet 7623 * @return remote_seid 7624 * @note: btstack_type 1 7625 */ 7626 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 7627 return event[5]; 7628 } 7629 /** 7630 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7631 * @param event packet 7632 * @return media_type 7633 * @note: btstack_type 1 7634 */ 7635 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 7636 return event[6]; 7637 } 7638 /** 7639 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7640 * @param event packet 7641 * @return media_codec_type 7642 * @note: btstack_type 2 7643 */ 7644 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 7645 return little_endian_read_16(event, 7); 7646 } 7647 /** 7648 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7649 * @param event packet 7650 * @return media_codec_information_len 7651 * @note: btstack_type L 7652 */ 7653 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 7654 return little_endian_read_16(event, 9); 7655 } 7656 /** 7657 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7658 * @param event packet 7659 * @return media_codec_information 7660 * @note: btstack_type V 7661 */ 7662 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 7663 return &event[11]; 7664 } 7665 7666 /** 7667 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 7668 * @param event packet 7669 * @return avdtp_cid 7670 * @note: btstack_type 2 7671 */ 7672 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){ 7673 return little_endian_read_16(event, 3); 7674 } 7675 /** 7676 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 7677 * @param event packet 7678 * @return remote_seid 7679 * @note: btstack_type 1 7680 */ 7681 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){ 7682 return event[5]; 7683 } 7684 7685 /** 7686 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 7687 * @param event packet 7688 * @return avdtp_cid 7689 * @note: btstack_type 2 7690 */ 7691 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){ 7692 return little_endian_read_16(event, 3); 7693 } 7694 /** 7695 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 7696 * @param event packet 7697 * @return remote_seid 7698 * @note: btstack_type 1 7699 */ 7700 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){ 7701 return event[5]; 7702 } 7703 7704 /** 7705 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7706 * @param event packet 7707 * @return avdtp_cid 7708 * @note: btstack_type 2 7709 */ 7710 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){ 7711 return little_endian_read_16(event, 3); 7712 } 7713 /** 7714 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7715 * @param event packet 7716 * @return remote_seid 7717 * @note: btstack_type 1 7718 */ 7719 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){ 7720 return event[5]; 7721 } 7722 /** 7723 * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7724 * @param event packet 7725 * @return recovery_type 7726 * @note: btstack_type 1 7727 */ 7728 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){ 7729 return event[6]; 7730 } 7731 /** 7732 * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7733 * @param event packet 7734 * @return maximum_recovery_window_size 7735 * @note: btstack_type 1 7736 */ 7737 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){ 7738 return event[7]; 7739 } 7740 /** 7741 * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 7742 * @param event packet 7743 * @return maximum_number_media_packets 7744 * @note: btstack_type 1 7745 */ 7746 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){ 7747 return event[8]; 7748 } 7749 7750 /** 7751 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7752 * @param event packet 7753 * @return avdtp_cid 7754 * @note: btstack_type 2 7755 */ 7756 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){ 7757 return little_endian_read_16(event, 3); 7758 } 7759 /** 7760 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7761 * @param event packet 7762 * @return remote_seid 7763 * @note: btstack_type 1 7764 */ 7765 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){ 7766 return event[5]; 7767 } 7768 /** 7769 * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7770 * @param event packet 7771 * @return cp_type 7772 * @note: btstack_type 2 7773 */ 7774 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){ 7775 return little_endian_read_16(event, 6); 7776 } 7777 /** 7778 * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7779 * @param event packet 7780 * @return cp_type_value_len 7781 * @note: btstack_type L 7782 */ 7783 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){ 7784 return little_endian_read_16(event, 8); 7785 } 7786 /** 7787 * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 7788 * @param event packet 7789 * @return cp_type_value 7790 * @note: btstack_type V 7791 */ 7792 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){ 7793 return &event[10]; 7794 } 7795 7796 /** 7797 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7798 * @param event packet 7799 * @return avdtp_cid 7800 * @note: btstack_type 2 7801 */ 7802 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){ 7803 return little_endian_read_16(event, 3); 7804 } 7805 /** 7806 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7807 * @param event packet 7808 * @return remote_seid 7809 * @note: btstack_type 1 7810 */ 7811 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){ 7812 return event[5]; 7813 } 7814 /** 7815 * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7816 * @param event packet 7817 * @return fragmentation 7818 * @note: btstack_type 1 7819 */ 7820 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){ 7821 return event[6]; 7822 } 7823 /** 7824 * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7825 * @param event packet 7826 * @return transport_identifiers_num 7827 * @note: btstack_type 1 7828 */ 7829 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){ 7830 return event[7]; 7831 } 7832 /** 7833 * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7834 * @param event packet 7835 * @return transport_session_identifier_1 7836 * @note: btstack_type 1 7837 */ 7838 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){ 7839 return event[8]; 7840 } 7841 /** 7842 * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7843 * @param event packet 7844 * @return transport_session_identifier_2 7845 * @note: btstack_type 1 7846 */ 7847 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){ 7848 return event[9]; 7849 } 7850 /** 7851 * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7852 * @param event packet 7853 * @return transport_session_identifier_3 7854 * @note: btstack_type 1 7855 */ 7856 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){ 7857 return event[10]; 7858 } 7859 /** 7860 * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7861 * @param event packet 7862 * @return tcid_1 7863 * @note: btstack_type 1 7864 */ 7865 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){ 7866 return event[11]; 7867 } 7868 /** 7869 * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7870 * @param event packet 7871 * @return tcid_2 7872 * @note: btstack_type 1 7873 */ 7874 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){ 7875 return event[12]; 7876 } 7877 /** 7878 * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 7879 * @param event packet 7880 * @return tcid_3 7881 * @note: btstack_type 1 7882 */ 7883 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){ 7884 return event[13]; 7885 } 7886 7887 /** 7888 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7889 * @param event packet 7890 * @return avdtp_cid 7891 * @note: btstack_type 2 7892 */ 7893 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){ 7894 return little_endian_read_16(event, 3); 7895 } 7896 /** 7897 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7898 * @param event packet 7899 * @return remote_seid 7900 * @note: btstack_type 1 7901 */ 7902 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 7903 return event[5]; 7904 } 7905 7906 /** 7907 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7908 * @param event packet 7909 * @return avdtp_cid 7910 * @note: btstack_type 2 7911 */ 7912 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){ 7913 return little_endian_read_16(event, 3); 7914 } 7915 /** 7916 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7917 * @param event packet 7918 * @return remote_seid 7919 * @note: btstack_type 1 7920 */ 7921 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){ 7922 return event[5]; 7923 } 7924 /** 7925 * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7926 * @param event packet 7927 * @return back_ch 7928 * @note: btstack_type 1 7929 */ 7930 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){ 7931 return event[6]; 7932 } 7933 /** 7934 * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7935 * @param event packet 7936 * @return media 7937 * @note: btstack_type 1 7938 */ 7939 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){ 7940 return event[7]; 7941 } 7942 /** 7943 * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 7944 * @param event packet 7945 * @return recovery 7946 * @note: btstack_type 1 7947 */ 7948 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){ 7949 return event[8]; 7950 } 7951 7952 /** 7953 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7954 * @param event packet 7955 * @return avdtp_cid 7956 * @note: btstack_type 2 7957 */ 7958 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){ 7959 return little_endian_read_16(event, 3); 7960 } 7961 /** 7962 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7963 * @param event packet 7964 * @return remote_seid 7965 * @note: btstack_type 1 7966 */ 7967 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 7968 return event[5]; 7969 } 7970 7971 /** 7972 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7973 * @param event packet 7974 * @return avdtp_cid 7975 * @note: btstack_type 2 7976 */ 7977 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){ 7978 return little_endian_read_16(event, 3); 7979 } 7980 /** 7981 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7982 * @param event packet 7983 * @return local_seid 7984 * @note: btstack_type 1 7985 */ 7986 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 7987 return event[5]; 7988 } 7989 /** 7990 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 7991 * @param event packet 7992 * @return remote_seid 7993 * @note: btstack_type 1 7994 */ 7995 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 7996 return event[6]; 7997 } 7998 /** 7999 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8000 * @param event packet 8001 * @return reconfigure 8002 * @note: btstack_type 1 8003 */ 8004 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 8005 return event[7]; 8006 } 8007 /** 8008 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8009 * @param event packet 8010 * @return media_type 8011 * @note: btstack_type 1 8012 */ 8013 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 8014 return event[8]; 8015 } 8016 /** 8017 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8018 * @param event packet 8019 * @return sampling_frequency 8020 * @note: btstack_type 2 8021 */ 8022 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 8023 return little_endian_read_16(event, 9); 8024 } 8025 /** 8026 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8027 * @param event packet 8028 * @return channel_mode 8029 * @note: btstack_type 1 8030 */ 8031 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8032 return event[11]; 8033 } 8034 /** 8035 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8036 * @param event packet 8037 * @return num_channels 8038 * @note: btstack_type 1 8039 */ 8040 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8041 return event[12]; 8042 } 8043 /** 8044 * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8045 * @param event packet 8046 * @return block_length 8047 * @note: btstack_type 1 8048 */ 8049 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8050 return event[13]; 8051 } 8052 /** 8053 * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8054 * @param event packet 8055 * @return subbands 8056 * @note: btstack_type 1 8057 */ 8058 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8059 return event[14]; 8060 } 8061 /** 8062 * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8063 * @param event packet 8064 * @return allocation_method 8065 * @note: btstack_type 1 8066 */ 8067 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8068 return event[15]; 8069 } 8070 /** 8071 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8072 * @param event packet 8073 * @return min_bitpool_value 8074 * @note: btstack_type 1 8075 */ 8076 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8077 return event[16]; 8078 } 8079 /** 8080 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8081 * @param event packet 8082 * @return max_bitpool_value 8083 * @note: btstack_type 1 8084 */ 8085 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8086 return event[17]; 8087 } 8088 8089 /** 8090 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8091 * @param event packet 8092 * @return avdtp_cid 8093 * @note: btstack_type 2 8094 */ 8095 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){ 8096 return little_endian_read_16(event, 3); 8097 } 8098 /** 8099 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8100 * @param event packet 8101 * @return local_seid 8102 * @note: btstack_type 1 8103 */ 8104 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 8105 return event[5]; 8106 } 8107 /** 8108 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8109 * @param event packet 8110 * @return remote_seid 8111 * @note: btstack_type 1 8112 */ 8113 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 8114 return event[6]; 8115 } 8116 /** 8117 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8118 * @param event packet 8119 * @return reconfigure 8120 * @note: btstack_type 1 8121 */ 8122 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 8123 return event[7]; 8124 } 8125 /** 8126 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8127 * @param event packet 8128 * @return media_type 8129 * @note: btstack_type 1 8130 */ 8131 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 8132 return event[8]; 8133 } 8134 /** 8135 * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8136 * @param event packet 8137 * @return layer 8138 * @note: btstack_type 1 8139 */ 8140 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 8141 return event[9]; 8142 } 8143 /** 8144 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8145 * @param event packet 8146 * @return crc 8147 * @note: btstack_type 1 8148 */ 8149 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 8150 return event[10]; 8151 } 8152 /** 8153 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8154 * @param event packet 8155 * @return channel_mode 8156 * @note: btstack_type 1 8157 */ 8158 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 8159 return event[11]; 8160 } 8161 /** 8162 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8163 * @param event packet 8164 * @return num_channels 8165 * @note: btstack_type 1 8166 */ 8167 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 8168 return event[12]; 8169 } 8170 /** 8171 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8172 * @param event packet 8173 * @return media_payload_format 8174 * @note: btstack_type 1 8175 */ 8176 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 8177 return event[13]; 8178 } 8179 /** 8180 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8181 * @param event packet 8182 * @return sampling_frequency 8183 * @note: btstack_type 2 8184 */ 8185 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 8186 return little_endian_read_16(event, 14); 8187 } 8188 /** 8189 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8190 * @param event packet 8191 * @return vbr 8192 * @note: btstack_type 1 8193 */ 8194 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 8195 return event[16]; 8196 } 8197 /** 8198 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8199 * @param event packet 8200 * @return bit_rate_index 8201 * @note: btstack_type 1 8202 */ 8203 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 8204 return event[17]; 8205 } 8206 8207 /** 8208 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8209 * @param event packet 8210 * @return avdtp_cid 8211 * @note: btstack_type 2 8212 */ 8213 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){ 8214 return little_endian_read_16(event, 3); 8215 } 8216 /** 8217 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8218 * @param event packet 8219 * @return local_seid 8220 * @note: btstack_type 1 8221 */ 8222 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 8223 return event[5]; 8224 } 8225 /** 8226 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8227 * @param event packet 8228 * @return remote_seid 8229 * @note: btstack_type 1 8230 */ 8231 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 8232 return event[6]; 8233 } 8234 /** 8235 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8236 * @param event packet 8237 * @return reconfigure 8238 * @note: btstack_type 1 8239 */ 8240 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 8241 return event[7]; 8242 } 8243 /** 8244 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8245 * @param event packet 8246 * @return media_type 8247 * @note: btstack_type 1 8248 */ 8249 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 8250 return event[8]; 8251 } 8252 /** 8253 * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8254 * @param event packet 8255 * @return object_type 8256 * @note: btstack_type 1 8257 */ 8258 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 8259 return event[9]; 8260 } 8261 /** 8262 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8263 * @param event packet 8264 * @return sampling_frequency 8265 * @note: btstack_type 3 8266 */ 8267 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 8268 return little_endian_read_24(event, 10); 8269 } 8270 /** 8271 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8272 * @param event packet 8273 * @return num_channels 8274 * @note: btstack_type 1 8275 */ 8276 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 8277 return event[13]; 8278 } 8279 /** 8280 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8281 * @param event packet 8282 * @return bit_rate 8283 * @note: btstack_type 3 8284 */ 8285 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 8286 return little_endian_read_24(event, 14); 8287 } 8288 /** 8289 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8290 * @param event packet 8291 * @return vbr 8292 * @note: btstack_type 1 8293 */ 8294 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 8295 return event[17]; 8296 } 8297 8298 /** 8299 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8300 * @param event packet 8301 * @return avdtp_cid 8302 * @note: btstack_type 2 8303 */ 8304 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){ 8305 return little_endian_read_16(event, 3); 8306 } 8307 /** 8308 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8309 * @param event packet 8310 * @return local_seid 8311 * @note: btstack_type 1 8312 */ 8313 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 8314 return event[5]; 8315 } 8316 /** 8317 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8318 * @param event packet 8319 * @return remote_seid 8320 * @note: btstack_type 1 8321 */ 8322 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 8323 return event[6]; 8324 } 8325 /** 8326 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8327 * @param event packet 8328 * @return reconfigure 8329 * @note: btstack_type 1 8330 */ 8331 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 8332 return event[7]; 8333 } 8334 /** 8335 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8336 * @param event packet 8337 * @return media_type 8338 * @note: btstack_type 1 8339 */ 8340 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 8341 return event[8]; 8342 } 8343 /** 8344 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8345 * @param event packet 8346 * @return version 8347 * @note: btstack_type 1 8348 */ 8349 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 8350 return event[9]; 8351 } 8352 /** 8353 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8354 * @param event packet 8355 * @return channel_mode 8356 * @note: btstack_type 1 8357 */ 8358 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 8359 return event[10]; 8360 } 8361 /** 8362 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8363 * @param event packet 8364 * @return num_channels 8365 * @note: btstack_type 1 8366 */ 8367 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 8368 return event[11]; 8369 } 8370 /** 8371 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8372 * @param event packet 8373 * @return sampling_frequency 8374 * @note: btstack_type 2 8375 */ 8376 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 8377 return little_endian_read_16(event, 12); 8378 } 8379 /** 8380 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8381 * @param event packet 8382 * @return vbr 8383 * @note: btstack_type 1 8384 */ 8385 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 8386 return event[14]; 8387 } 8388 /** 8389 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8390 * @param event packet 8391 * @return bit_rate_index 8392 * @note: btstack_type 1 8393 */ 8394 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 8395 return event[15]; 8396 } 8397 /** 8398 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8399 * @param event packet 8400 * @return maximum_sul 8401 * @note: btstack_type 2 8402 */ 8403 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 8404 return little_endian_read_16(event, 16); 8405 } 8406 8407 /** 8408 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8409 * @param event packet 8410 * @return avdtp_cid 8411 * @note: btstack_type 2 8412 */ 8413 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){ 8414 return little_endian_read_16(event, 3); 8415 } 8416 /** 8417 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8418 * @param event packet 8419 * @return local_seid 8420 * @note: btstack_type 1 8421 */ 8422 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 8423 return event[5]; 8424 } 8425 /** 8426 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8427 * @param event packet 8428 * @return remote_seid 8429 * @note: btstack_type 1 8430 */ 8431 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 8432 return event[6]; 8433 } 8434 /** 8435 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8436 * @param event packet 8437 * @return reconfigure 8438 * @note: btstack_type 1 8439 */ 8440 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 8441 return event[7]; 8442 } 8443 /** 8444 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8445 * @param event packet 8446 * @return media_type 8447 * @note: btstack_type 1 8448 */ 8449 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 8450 return event[8]; 8451 } 8452 /** 8453 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8454 * @param event packet 8455 * @return media_codec_type 8456 * @note: btstack_type 2 8457 */ 8458 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 8459 return little_endian_read_16(event, 9); 8460 } 8461 /** 8462 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8463 * @param event packet 8464 * @return media_codec_information_len 8465 * @note: btstack_type L 8466 */ 8467 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 8468 return little_endian_read_16(event, 11); 8469 } 8470 /** 8471 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 8472 * @param event packet 8473 * @return media_codec_information 8474 * @note: btstack_type V 8475 */ 8476 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 8477 return &event[13]; 8478 } 8479 8480 /** 8481 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8482 * @param event packet 8483 * @return avdtp_cid 8484 * @note: btstack_type 2 8485 */ 8486 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){ 8487 return little_endian_read_16(event, 3); 8488 } 8489 /** 8490 * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8491 * @param event packet 8492 * @param Pointer to storage for bd_addr 8493 * @note: btstack_type B 8494 */ 8495 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8496 reverse_bytes(&event[5], bd_addr, 6); 8497 } 8498 /** 8499 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8500 * @param event packet 8501 * @return local_seid 8502 * @note: btstack_type 1 8503 */ 8504 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){ 8505 return event[11]; 8506 } 8507 /** 8508 * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8509 * @param event packet 8510 * @return remote_seid 8511 * @note: btstack_type 1 8512 */ 8513 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){ 8514 return event[12]; 8515 } 8516 /** 8517 * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 8518 * @param event packet 8519 * @return status 8520 * @note: btstack_type 1 8521 */ 8522 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){ 8523 return event[13]; 8524 } 8525 8526 /** 8527 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 8528 * @param event packet 8529 * @return avdtp_cid 8530 * @note: btstack_type 2 8531 */ 8532 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){ 8533 return little_endian_read_16(event, 3); 8534 } 8535 /** 8536 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 8537 * @param event packet 8538 * @return local_seid 8539 * @note: btstack_type 1 8540 */ 8541 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){ 8542 return event[5]; 8543 } 8544 8545 /** 8546 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8547 * @param event packet 8548 * @return avdtp_cid 8549 * @note: btstack_type 2 8550 */ 8551 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){ 8552 return little_endian_read_16(event, 3); 8553 } 8554 /** 8555 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8556 * @param event packet 8557 * @return local_seid 8558 * @note: btstack_type 1 8559 */ 8560 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 8561 return event[5]; 8562 } 8563 /** 8564 * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8565 * @param event packet 8566 * @return sequence_number 8567 * @note: btstack_type 2 8568 */ 8569 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){ 8570 return little_endian_read_16(event, 6); 8571 } 8572 8573 /** 8574 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE 8575 * @param event packet 8576 * @return avdtp_cid 8577 * @note: btstack_type 2 8578 */ 8579 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){ 8580 return little_endian_read_16(event, 3); 8581 } 8582 8583 /** 8584 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8585 * @param event packet 8586 * @return avdtp_cid 8587 * @note: btstack_type 2 8588 */ 8589 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){ 8590 return little_endian_read_16(event, 3); 8591 } 8592 /** 8593 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8594 * @param event packet 8595 * @return local_seid 8596 * @note: btstack_type 1 8597 */ 8598 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 8599 return event[5]; 8600 } 8601 /** 8602 * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 8603 * @param event packet 8604 * @return delay_100us 8605 * @note: btstack_type 2 8606 */ 8607 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 8608 return little_endian_read_16(event, 6); 8609 } 8610 8611 /** 8612 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8613 * @param event packet 8614 * @return a2dp_cid 8615 * @note: btstack_type 2 8616 */ 8617 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){ 8618 return little_endian_read_16(event, 3); 8619 } 8620 /** 8621 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 8622 * @param event packet 8623 * @return local_seid 8624 * @note: btstack_type 1 8625 */ 8626 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 8627 return event[5]; 8628 } 8629 8630 /** 8631 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8632 * @param event packet 8633 * @return a2dp_cid 8634 * @note: btstack_type 2 8635 */ 8636 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){ 8637 return little_endian_read_16(event, 3); 8638 } 8639 /** 8640 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8641 * @param event packet 8642 * @return local_seid 8643 * @note: btstack_type 1 8644 */ 8645 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 8646 return event[5]; 8647 } 8648 /** 8649 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8650 * @param event packet 8651 * @return remote_seid 8652 * @note: btstack_type 1 8653 */ 8654 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 8655 return event[6]; 8656 } 8657 /** 8658 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8659 * @param event packet 8660 * @return reconfigure 8661 * @note: btstack_type 1 8662 */ 8663 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 8664 return event[7]; 8665 } 8666 /** 8667 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8668 * @param event packet 8669 * @return media_type 8670 * @note: btstack_type 1 8671 */ 8672 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 8673 return event[8]; 8674 } 8675 /** 8676 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8677 * @param event packet 8678 * @return sampling_frequency 8679 * @note: btstack_type 2 8680 */ 8681 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 8682 return little_endian_read_16(event, 9); 8683 } 8684 /** 8685 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8686 * @param event packet 8687 * @return channel_mode 8688 * @note: btstack_type 1 8689 */ 8690 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8691 return event[11]; 8692 } 8693 /** 8694 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8695 * @param event packet 8696 * @return num_channels 8697 * @note: btstack_type 1 8698 */ 8699 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8700 return event[12]; 8701 } 8702 /** 8703 * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8704 * @param event packet 8705 * @return block_length 8706 * @note: btstack_type 1 8707 */ 8708 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8709 return event[13]; 8710 } 8711 /** 8712 * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8713 * @param event packet 8714 * @return subbands 8715 * @note: btstack_type 1 8716 */ 8717 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8718 return event[14]; 8719 } 8720 /** 8721 * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8722 * @param event packet 8723 * @return allocation_method 8724 * @note: btstack_type 1 8725 */ 8726 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8727 return event[15]; 8728 } 8729 /** 8730 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8731 * @param event packet 8732 * @return min_bitpool_value 8733 * @note: btstack_type 1 8734 */ 8735 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8736 return event[16]; 8737 } 8738 /** 8739 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8740 * @param event packet 8741 * @return max_bitpool_value 8742 * @note: btstack_type 1 8743 */ 8744 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8745 return event[17]; 8746 } 8747 8748 /** 8749 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8750 * @param event packet 8751 * @return a2dp_cid 8752 * @note: btstack_type 2 8753 */ 8754 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){ 8755 return little_endian_read_16(event, 3); 8756 } 8757 /** 8758 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8759 * @param event packet 8760 * @return local_seid 8761 * @note: btstack_type 1 8762 */ 8763 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 8764 return event[5]; 8765 } 8766 /** 8767 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8768 * @param event packet 8769 * @return remote_seid 8770 * @note: btstack_type 1 8771 */ 8772 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 8773 return event[6]; 8774 } 8775 /** 8776 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8777 * @param event packet 8778 * @return reconfigure 8779 * @note: btstack_type 1 8780 */ 8781 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 8782 return event[7]; 8783 } 8784 /** 8785 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8786 * @param event packet 8787 * @return media_type 8788 * @note: btstack_type 1 8789 */ 8790 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 8791 return event[8]; 8792 } 8793 /** 8794 * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8795 * @param event packet 8796 * @return layer 8797 * @note: btstack_type 1 8798 */ 8799 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 8800 return event[9]; 8801 } 8802 /** 8803 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8804 * @param event packet 8805 * @return crc 8806 * @note: btstack_type 1 8807 */ 8808 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 8809 return event[10]; 8810 } 8811 /** 8812 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8813 * @param event packet 8814 * @return channel_mode 8815 * @note: btstack_type 1 8816 */ 8817 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 8818 return event[11]; 8819 } 8820 /** 8821 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8822 * @param event packet 8823 * @return num_channels 8824 * @note: btstack_type 1 8825 */ 8826 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 8827 return event[12]; 8828 } 8829 /** 8830 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8831 * @param event packet 8832 * @return media_payload_format 8833 * @note: btstack_type 1 8834 */ 8835 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 8836 return event[13]; 8837 } 8838 /** 8839 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8840 * @param event packet 8841 * @return sampling_frequency 8842 * @note: btstack_type 2 8843 */ 8844 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 8845 return little_endian_read_16(event, 14); 8846 } 8847 /** 8848 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8849 * @param event packet 8850 * @return vbr 8851 * @note: btstack_type 1 8852 */ 8853 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 8854 return event[16]; 8855 } 8856 /** 8857 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8858 * @param event packet 8859 * @return bit_rate_index 8860 * @note: btstack_type 1 8861 */ 8862 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 8863 return event[17]; 8864 } 8865 8866 /** 8867 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8868 * @param event packet 8869 * @return a2dp_cid 8870 * @note: btstack_type 2 8871 */ 8872 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){ 8873 return little_endian_read_16(event, 3); 8874 } 8875 /** 8876 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8877 * @param event packet 8878 * @return local_seid 8879 * @note: btstack_type 1 8880 */ 8881 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 8882 return event[5]; 8883 } 8884 /** 8885 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8886 * @param event packet 8887 * @return remote_seid 8888 * @note: btstack_type 1 8889 */ 8890 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 8891 return event[6]; 8892 } 8893 /** 8894 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8895 * @param event packet 8896 * @return reconfigure 8897 * @note: btstack_type 1 8898 */ 8899 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 8900 return event[7]; 8901 } 8902 /** 8903 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8904 * @param event packet 8905 * @return media_type 8906 * @note: btstack_type 1 8907 */ 8908 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 8909 return event[8]; 8910 } 8911 /** 8912 * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8913 * @param event packet 8914 * @return object_type 8915 * @note: btstack_type 1 8916 */ 8917 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 8918 return event[9]; 8919 } 8920 /** 8921 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8922 * @param event packet 8923 * @return sampling_frequency 8924 * @note: btstack_type 3 8925 */ 8926 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 8927 return little_endian_read_24(event, 10); 8928 } 8929 /** 8930 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8931 * @param event packet 8932 * @return num_channels 8933 * @note: btstack_type 1 8934 */ 8935 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 8936 return event[13]; 8937 } 8938 /** 8939 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8940 * @param event packet 8941 * @return bit_rate 8942 * @note: btstack_type 3 8943 */ 8944 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 8945 return little_endian_read_24(event, 14); 8946 } 8947 /** 8948 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 8949 * @param event packet 8950 * @return vbr 8951 * @note: btstack_type 1 8952 */ 8953 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 8954 return event[17]; 8955 } 8956 8957 /** 8958 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8959 * @param event packet 8960 * @return a2dp_cid 8961 * @note: btstack_type 2 8962 */ 8963 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){ 8964 return little_endian_read_16(event, 3); 8965 } 8966 /** 8967 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8968 * @param event packet 8969 * @return local_seid 8970 * @note: btstack_type 1 8971 */ 8972 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 8973 return event[5]; 8974 } 8975 /** 8976 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8977 * @param event packet 8978 * @return remote_seid 8979 * @note: btstack_type 1 8980 */ 8981 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 8982 return event[6]; 8983 } 8984 /** 8985 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8986 * @param event packet 8987 * @return reconfigure 8988 * @note: btstack_type 1 8989 */ 8990 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 8991 return event[7]; 8992 } 8993 /** 8994 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 8995 * @param event packet 8996 * @return media_type 8997 * @note: btstack_type 1 8998 */ 8999 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 9000 return event[8]; 9001 } 9002 /** 9003 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9004 * @param event packet 9005 * @return version 9006 * @note: btstack_type 1 9007 */ 9008 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 9009 return event[9]; 9010 } 9011 /** 9012 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9013 * @param event packet 9014 * @return channel_mode 9015 * @note: btstack_type 1 9016 */ 9017 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 9018 return event[10]; 9019 } 9020 /** 9021 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9022 * @param event packet 9023 * @return num_channels 9024 * @note: btstack_type 1 9025 */ 9026 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 9027 return event[11]; 9028 } 9029 /** 9030 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9031 * @param event packet 9032 * @return sampling_frequency 9033 * @note: btstack_type 2 9034 */ 9035 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 9036 return little_endian_read_16(event, 12); 9037 } 9038 /** 9039 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9040 * @param event packet 9041 * @return vbr 9042 * @note: btstack_type 1 9043 */ 9044 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 9045 return event[14]; 9046 } 9047 /** 9048 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9049 * @param event packet 9050 * @return bit_rate_index 9051 * @note: btstack_type 1 9052 */ 9053 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 9054 return event[15]; 9055 } 9056 /** 9057 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9058 * @param event packet 9059 * @return maximum_sul 9060 * @note: btstack_type 2 9061 */ 9062 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 9063 return little_endian_read_16(event, 16); 9064 } 9065 9066 /** 9067 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9068 * @param event packet 9069 * @return a2dp_cid 9070 * @note: btstack_type 2 9071 */ 9072 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){ 9073 return little_endian_read_16(event, 3); 9074 } 9075 /** 9076 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9077 * @param event packet 9078 * @return local_seid 9079 * @note: btstack_type 1 9080 */ 9081 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 9082 return event[5]; 9083 } 9084 /** 9085 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9086 * @param event packet 9087 * @return remote_seid 9088 * @note: btstack_type 1 9089 */ 9090 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 9091 return event[6]; 9092 } 9093 /** 9094 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9095 * @param event packet 9096 * @return reconfigure 9097 * @note: btstack_type 1 9098 */ 9099 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 9100 return event[7]; 9101 } 9102 /** 9103 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9104 * @param event packet 9105 * @return media_type 9106 * @note: btstack_type 1 9107 */ 9108 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 9109 return event[8]; 9110 } 9111 /** 9112 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9113 * @param event packet 9114 * @return media_codec_type 9115 * @note: btstack_type 2 9116 */ 9117 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 9118 return little_endian_read_16(event, 9); 9119 } 9120 /** 9121 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9122 * @param event packet 9123 * @return media_codec_information_len 9124 * @note: btstack_type L 9125 */ 9126 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 9127 return little_endian_read_16(event, 11); 9128 } 9129 /** 9130 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9131 * @param event packet 9132 * @return media_codec_information 9133 * @note: btstack_type V 9134 */ 9135 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 9136 return &event[13]; 9137 } 9138 9139 /** 9140 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9141 * @param event packet 9142 * @return a2dp_cid 9143 * @note: btstack_type 2 9144 */ 9145 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){ 9146 return little_endian_read_16(event, 3); 9147 } 9148 /** 9149 * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9150 * @param event packet 9151 * @param Pointer to storage for bd_addr 9152 * @note: btstack_type B 9153 */ 9154 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9155 reverse_bytes(&event[5], bd_addr, 6); 9156 } 9157 /** 9158 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9159 * @param event packet 9160 * @return local_seid 9161 * @note: btstack_type 1 9162 */ 9163 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){ 9164 return event[11]; 9165 } 9166 /** 9167 * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9168 * @param event packet 9169 * @return remote_seid 9170 * @note: btstack_type 1 9171 */ 9172 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){ 9173 return event[12]; 9174 } 9175 /** 9176 * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED 9177 * @param event packet 9178 * @return status 9179 * @note: btstack_type 1 9180 */ 9181 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 9182 return event[13]; 9183 } 9184 9185 /** 9186 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 9187 * @param event packet 9188 * @return a2dp_cid 9189 * @note: btstack_type 2 9190 */ 9191 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){ 9192 return little_endian_read_16(event, 3); 9193 } 9194 /** 9195 * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 9196 * @param event packet 9197 * @return local_seid 9198 * @note: btstack_type 1 9199 */ 9200 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){ 9201 return event[5]; 9202 } 9203 9204 /** 9205 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 9206 * @param event packet 9207 * @return a2dp_cid 9208 * @note: btstack_type 2 9209 */ 9210 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 9211 return little_endian_read_16(event, 3); 9212 } 9213 /** 9214 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED 9215 * @param event packet 9216 * @return local_seid 9217 * @note: btstack_type 1 9218 */ 9219 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){ 9220 return event[5]; 9221 } 9222 9223 /** 9224 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED 9225 * @param event packet 9226 * @return a2dp_cid 9227 * @note: btstack_type 2 9228 */ 9229 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){ 9230 return little_endian_read_16(event, 3); 9231 } 9232 /** 9233 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED 9234 * @param event packet 9235 * @return local_seid 9236 * @note: btstack_type 1 9237 */ 9238 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){ 9239 return event[5]; 9240 } 9241 9242 /** 9243 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED 9244 * @param event packet 9245 * @return a2dp_cid 9246 * @note: btstack_type 2 9247 */ 9248 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){ 9249 return little_endian_read_16(event, 3); 9250 } 9251 /** 9252 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED 9253 * @param event packet 9254 * @return local_seid 9255 * @note: btstack_type 1 9256 */ 9257 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){ 9258 return event[5]; 9259 } 9260 9261 /** 9262 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED 9263 * @param event packet 9264 * @return a2dp_cid 9265 * @note: btstack_type 2 9266 */ 9267 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){ 9268 return little_endian_read_16(event, 3); 9269 } 9270 /** 9271 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED 9272 * @param event packet 9273 * @return local_seid 9274 * @note: btstack_type 1 9275 */ 9276 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){ 9277 return event[5]; 9278 } 9279 9280 /** 9281 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9282 * @param event packet 9283 * @return a2dp_cid 9284 * @note: btstack_type 2 9285 */ 9286 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){ 9287 return little_endian_read_16(event, 3); 9288 } 9289 /** 9290 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9291 * @param event packet 9292 * @return local_seid 9293 * @note: btstack_type 1 9294 */ 9295 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){ 9296 return event[5]; 9297 } 9298 /** 9299 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED 9300 * @param event packet 9301 * @return signal_identifier 9302 * @note: btstack_type 1 9303 */ 9304 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){ 9305 return event[6]; 9306 } 9307 9308 /** 9309 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED 9310 * @param event packet 9311 * @return a2dp_cid 9312 * @note: btstack_type 2 9313 */ 9314 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){ 9315 return little_endian_read_16(event, 3); 9316 } 9317 /** 9318 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED 9319 * @param event packet 9320 * @return local_seid 9321 * @note: btstack_type 1 9322 */ 9323 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){ 9324 return event[5]; 9325 } 9326 /** 9327 * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED 9328 * @param event packet 9329 * @return is_initiator 9330 * @note: btstack_type 1 9331 */ 9332 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){ 9333 return event[6]; 9334 } 9335 /** 9336 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED 9337 * @param event packet 9338 * @return signal_identifier 9339 * @note: btstack_type 1 9340 */ 9341 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){ 9342 return event[7]; 9343 } 9344 9345 /** 9346 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9347 * @param event packet 9348 * @return a2dp_cid 9349 * @note: btstack_type 2 9350 */ 9351 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){ 9352 return little_endian_read_16(event, 3); 9353 } 9354 /** 9355 * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9356 * @param event packet 9357 * @param Pointer to storage for bd_addr 9358 * @note: btstack_type B 9359 */ 9360 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9361 reverse_bytes(&event[5], bd_addr, 6); 9362 } 9363 /** 9364 * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9365 * @param event packet 9366 * @return con_handle 9367 * @note: btstack_type 2 9368 */ 9369 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 9370 return little_endian_read_16(event, 11); 9371 } 9372 /** 9373 * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 9374 * @param event packet 9375 * @return status 9376 * @note: btstack_type 1 9377 */ 9378 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 9379 return event[13]; 9380 } 9381 9382 /** 9383 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 9384 * @param event packet 9385 * @return a2dp_cid 9386 * @note: btstack_type 2 9387 */ 9388 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){ 9389 return little_endian_read_16(event, 3); 9390 } 9391 9392 /** 9393 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9394 * @param event packet 9395 * @return a2dp_cid 9396 * @note: btstack_type 2 9397 */ 9398 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){ 9399 return little_endian_read_16(event, 3); 9400 } 9401 /** 9402 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9403 * @param event packet 9404 * @return local_seid 9405 * @note: btstack_type 1 9406 */ 9407 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){ 9408 return event[5]; 9409 } 9410 /** 9411 * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED 9412 * @param event packet 9413 * @return status 9414 * @note: btstack_type 1 9415 */ 9416 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){ 9417 return event[6]; 9418 } 9419 9420 /** 9421 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9422 * @param event packet 9423 * @return a2dp_cid 9424 * @note: btstack_type 2 9425 */ 9426 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){ 9427 return little_endian_read_16(event, 3); 9428 } 9429 /** 9430 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9431 * @param event packet 9432 * @return remote_seid 9433 * @note: btstack_type 1 9434 */ 9435 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 9436 return event[5]; 9437 } 9438 /** 9439 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9440 * @param event packet 9441 * @return media_type 9442 * @note: btstack_type 1 9443 */ 9444 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 9445 return event[6]; 9446 } 9447 /** 9448 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9449 * @param event packet 9450 * @return sampling_frequency_bitmap 9451 * @note: btstack_type 1 9452 */ 9453 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9454 return event[7]; 9455 } 9456 /** 9457 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9458 * @param event packet 9459 * @return channel_mode_bitmap 9460 * @note: btstack_type 1 9461 */ 9462 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 9463 return event[8]; 9464 } 9465 /** 9466 * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9467 * @param event packet 9468 * @return block_length_bitmap 9469 * @note: btstack_type 1 9470 */ 9471 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 9472 return event[9]; 9473 } 9474 /** 9475 * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9476 * @param event packet 9477 * @return subbands_bitmap 9478 * @note: btstack_type 1 9479 */ 9480 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 9481 return event[10]; 9482 } 9483 /** 9484 * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9485 * @param event packet 9486 * @return allocation_method_bitmap 9487 * @note: btstack_type 1 9488 */ 9489 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 9490 return event[11]; 9491 } 9492 /** 9493 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9494 * @param event packet 9495 * @return min_bitpool_value 9496 * @note: btstack_type 1 9497 */ 9498 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 9499 return event[12]; 9500 } 9501 /** 9502 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 9503 * @param event packet 9504 * @return max_bitpool_value 9505 * @note: btstack_type 1 9506 */ 9507 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 9508 return event[13]; 9509 } 9510 9511 /** 9512 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9513 * @param event packet 9514 * @return a2dp_cid 9515 * @note: btstack_type 2 9516 */ 9517 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){ 9518 return little_endian_read_16(event, 3); 9519 } 9520 /** 9521 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9522 * @param event packet 9523 * @return remote_seid 9524 * @note: btstack_type 1 9525 */ 9526 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 9527 return event[5]; 9528 } 9529 /** 9530 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9531 * @param event packet 9532 * @return media_type 9533 * @note: btstack_type 1 9534 */ 9535 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 9536 return event[6]; 9537 } 9538 /** 9539 * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9540 * @param event packet 9541 * @return layer_bitmap 9542 * @note: btstack_type 1 9543 */ 9544 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 9545 return event[7]; 9546 } 9547 /** 9548 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9549 * @param event packet 9550 * @return crc 9551 * @note: btstack_type 1 9552 */ 9553 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 9554 return event[8]; 9555 } 9556 /** 9557 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9558 * @param event packet 9559 * @return channel_mode_bitmap 9560 * @note: btstack_type 1 9561 */ 9562 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 9563 return event[9]; 9564 } 9565 /** 9566 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9567 * @param event packet 9568 * @return media_payload_format 9569 * @note: btstack_type 1 9570 */ 9571 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 9572 return event[10]; 9573 } 9574 /** 9575 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9576 * @param event packet 9577 * @return sampling_frequency_bitmap 9578 * @note: btstack_type 1 9579 */ 9580 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9581 return event[11]; 9582 } 9583 /** 9584 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9585 * @param event packet 9586 * @return vbr 9587 * @note: btstack_type 1 9588 */ 9589 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 9590 return event[12]; 9591 } 9592 /** 9593 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 9594 * @param event packet 9595 * @return bit_rate_index_bitmap 9596 * @note: btstack_type 2 9597 */ 9598 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 9599 return little_endian_read_16(event, 13); 9600 } 9601 9602 /** 9603 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9604 * @param event packet 9605 * @return a2dp_cid 9606 * @note: btstack_type 2 9607 */ 9608 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){ 9609 return little_endian_read_16(event, 3); 9610 } 9611 /** 9612 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9613 * @param event packet 9614 * @return remote_seid 9615 * @note: btstack_type 1 9616 */ 9617 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 9618 return event[5]; 9619 } 9620 /** 9621 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9622 * @param event packet 9623 * @return media_type 9624 * @note: btstack_type 1 9625 */ 9626 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 9627 return event[6]; 9628 } 9629 /** 9630 * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9631 * @param event packet 9632 * @return object_type_bitmap 9633 * @note: btstack_type 1 9634 */ 9635 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 9636 return event[7]; 9637 } 9638 /** 9639 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9640 * @param event packet 9641 * @return sampling_frequency_bitmap 9642 * @note: btstack_type 2 9643 */ 9644 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9645 return little_endian_read_16(event, 8); 9646 } 9647 /** 9648 * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9649 * @param event packet 9650 * @return channels_bitmap 9651 * @note: btstack_type 1 9652 */ 9653 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 9654 return event[10]; 9655 } 9656 /** 9657 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9658 * @param event packet 9659 * @return bit_rate 9660 * @note: btstack_type 3 9661 */ 9662 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 9663 return little_endian_read_24(event, 11); 9664 } 9665 /** 9666 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 9667 * @param event packet 9668 * @return vbr 9669 * @note: btstack_type 1 9670 */ 9671 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 9672 return event[14]; 9673 } 9674 9675 /** 9676 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9677 * @param event packet 9678 * @return a2dp_cid 9679 * @note: btstack_type 2 9680 */ 9681 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){ 9682 return little_endian_read_16(event, 3); 9683 } 9684 /** 9685 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9686 * @param event packet 9687 * @return remote_seid 9688 * @note: btstack_type 1 9689 */ 9690 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 9691 return event[5]; 9692 } 9693 /** 9694 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9695 * @param event packet 9696 * @return media_type 9697 * @note: btstack_type 1 9698 */ 9699 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 9700 return event[6]; 9701 } 9702 /** 9703 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9704 * @param event packet 9705 * @return version 9706 * @note: btstack_type 1 9707 */ 9708 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 9709 return event[7]; 9710 } 9711 /** 9712 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9713 * @param event packet 9714 * @return channel_mode_bitmap 9715 * @note: btstack_type 1 9716 */ 9717 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 9718 return event[8]; 9719 } 9720 /** 9721 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9722 * @param event packet 9723 * @return sampling_frequency_bitmap 9724 * @note: btstack_type 1 9725 */ 9726 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 9727 return event[9]; 9728 } 9729 /** 9730 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9731 * @param event packet 9732 * @return vbr 9733 * @note: btstack_type 1 9734 */ 9735 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 9736 return event[10]; 9737 } 9738 /** 9739 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9740 * @param event packet 9741 * @return bit_rate_index_bitmap 9742 * @note: btstack_type 3 9743 */ 9744 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 9745 return little_endian_read_24(event, 11); 9746 } 9747 /** 9748 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 9749 * @param event packet 9750 * @return maximum_sul 9751 * @note: btstack_type 2 9752 */ 9753 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 9754 return little_endian_read_16(event, 14); 9755 } 9756 9757 /** 9758 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9759 * @param event packet 9760 * @return a2dp_cid 9761 * @note: btstack_type 2 9762 */ 9763 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){ 9764 return little_endian_read_16(event, 3); 9765 } 9766 /** 9767 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9768 * @param event packet 9769 * @return remote_seid 9770 * @note: btstack_type 1 9771 */ 9772 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 9773 return event[5]; 9774 } 9775 /** 9776 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9777 * @param event packet 9778 * @return media_type 9779 * @note: btstack_type 1 9780 */ 9781 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 9782 return event[6]; 9783 } 9784 /** 9785 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9786 * @param event packet 9787 * @return media_codec_type 9788 * @note: btstack_type 2 9789 */ 9790 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 9791 return little_endian_read_16(event, 7); 9792 } 9793 /** 9794 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9795 * @param event packet 9796 * @return media_codec_information_len 9797 * @note: btstack_type L 9798 */ 9799 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 9800 return little_endian_read_16(event, 9); 9801 } 9802 /** 9803 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 9804 * @param event packet 9805 * @return media_codec_information 9806 * @note: btstack_type V 9807 */ 9808 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 9809 return &event[11]; 9810 } 9811 9812 /** 9813 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 9814 * @param event packet 9815 * @return a2dp_cid 9816 * @note: btstack_type 2 9817 */ 9818 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){ 9819 return little_endian_read_16(event, 3); 9820 } 9821 /** 9822 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 9823 * @param event packet 9824 * @return remote_seid 9825 * @note: btstack_type 1 9826 */ 9827 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 9828 return event[5]; 9829 } 9830 9831 /** 9832 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9833 * @param event packet 9834 * @return a2dp_cid 9835 * @note: btstack_type 2 9836 */ 9837 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){ 9838 return little_endian_read_16(event, 3); 9839 } 9840 /** 9841 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9842 * @param event packet 9843 * @return local_seid 9844 * @note: btstack_type 1 9845 */ 9846 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 9847 return event[5]; 9848 } 9849 /** 9850 * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 9851 * @param event packet 9852 * @return delay_100us 9853 * @note: btstack_type 2 9854 */ 9855 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 9856 return little_endian_read_16(event, 6); 9857 } 9858 9859 /** 9860 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 9861 * @param event packet 9862 * @return a2dp_cid 9863 * @note: btstack_type 2 9864 */ 9865 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){ 9866 return little_endian_read_16(event, 3); 9867 } 9868 /** 9869 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 9870 * @param event packet 9871 * @return remote_seid 9872 * @note: btstack_type 1 9873 */ 9874 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 9875 return event[5]; 9876 } 9877 9878 /** 9879 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE 9880 * @param event packet 9881 * @return a2dp_cid 9882 * @note: btstack_type 2 9883 */ 9884 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){ 9885 return little_endian_read_16(event, 3); 9886 } 9887 9888 /** 9889 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9890 * @param event packet 9891 * @return avrcp_cid 9892 * @note: btstack_type 2 9893 */ 9894 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){ 9895 return little_endian_read_16(event, 3); 9896 } 9897 /** 9898 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9899 * @param event packet 9900 * @return command_type 9901 * @note: btstack_type 1 9902 */ 9903 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){ 9904 return event[5]; 9905 } 9906 /** 9907 * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 9908 * @param event packet 9909 * @return play_status 9910 * @note: btstack_type 1 9911 */ 9912 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){ 9913 return event[6]; 9914 } 9915 9916 /** 9917 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 9918 * @param event packet 9919 * @return avrcp_cid 9920 * @note: btstack_type 2 9921 */ 9922 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){ 9923 return little_endian_read_16(event, 3); 9924 } 9925 /** 9926 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 9927 * @param event packet 9928 * @return command_type 9929 * @note: btstack_type 1 9930 */ 9931 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){ 9932 return event[5]; 9933 } 9934 9935 /** 9936 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 9937 * @param event packet 9938 * @return avrcp_cid 9939 * @note: btstack_type 2 9940 */ 9941 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){ 9942 return little_endian_read_16(event, 3); 9943 } 9944 /** 9945 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 9946 * @param event packet 9947 * @return command_type 9948 * @note: btstack_type 1 9949 */ 9950 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){ 9951 return event[5]; 9952 } 9953 9954 /** 9955 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 9956 * @param event packet 9957 * @return avrcp_cid 9958 * @note: btstack_type 2 9959 */ 9960 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){ 9961 return little_endian_read_16(event, 3); 9962 } 9963 /** 9964 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 9965 * @param event packet 9966 * @return command_type 9967 * @note: btstack_type 1 9968 */ 9969 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){ 9970 return event[5]; 9971 } 9972 9973 /** 9974 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9975 * @param event packet 9976 * @return avrcp_cid 9977 * @note: btstack_type 2 9978 */ 9979 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 9980 return little_endian_read_16(event, 3); 9981 } 9982 /** 9983 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9984 * @param event packet 9985 * @return command_type 9986 * @note: btstack_type 1 9987 */ 9988 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){ 9989 return event[5]; 9990 } 9991 /** 9992 * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 9993 * @param event packet 9994 * @return playback_position 9995 * @note: btstack_type 4 9996 */ 9997 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){ 9998 return little_endian_read_32(event, 6); 9999 } 10000 10001 /** 10002 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10003 * @param event packet 10004 * @return avrcp_cid 10005 * @note: btstack_type 2 10006 */ 10007 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){ 10008 return little_endian_read_16(event, 3); 10009 } 10010 /** 10011 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10012 * @param event packet 10013 * @return command_type 10014 * @note: btstack_type 1 10015 */ 10016 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){ 10017 return event[5]; 10018 } 10019 /** 10020 * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10021 * @param event packet 10022 * @return battery_status 10023 * @note: btstack_type 1 10024 */ 10025 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){ 10026 return event[6]; 10027 } 10028 10029 /** 10030 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10031 * @param event packet 10032 * @return avrcp_cid 10033 * @note: btstack_type 2 10034 */ 10035 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){ 10036 return little_endian_read_16(event, 3); 10037 } 10038 /** 10039 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10040 * @param event packet 10041 * @return command_type 10042 * @note: btstack_type 1 10043 */ 10044 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){ 10045 return event[5]; 10046 } 10047 /** 10048 * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10049 * @param event packet 10050 * @return system_status 10051 * @note: btstack_type 1 10052 */ 10053 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){ 10054 return event[6]; 10055 } 10056 10057 /** 10058 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10059 * @param event packet 10060 * @return avrcp_cid 10061 * @note: btstack_type 2 10062 */ 10063 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){ 10064 return little_endian_read_16(event, 3); 10065 } 10066 /** 10067 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10068 * @param event packet 10069 * @return command_type 10070 * @note: btstack_type 1 10071 */ 10072 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){ 10073 return event[5]; 10074 } 10075 10076 /** 10077 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10078 * @param event packet 10079 * @return avrcp_cid 10080 * @note: btstack_type 2 10081 */ 10082 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){ 10083 return little_endian_read_16(event, 3); 10084 } 10085 /** 10086 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10087 * @param event packet 10088 * @return command_type 10089 * @note: btstack_type 1 10090 */ 10091 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){ 10092 return event[5]; 10093 } 10094 10095 /** 10096 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10097 * @param event packet 10098 * @return avrcp_cid 10099 * @note: btstack_type 2 10100 */ 10101 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){ 10102 return little_endian_read_16(event, 3); 10103 } 10104 /** 10105 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10106 * @param event packet 10107 * @return command_type 10108 * @note: btstack_type 1 10109 */ 10110 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){ 10111 return event[5]; 10112 } 10113 /** 10114 * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 10115 * @param event packet 10116 * @return uid_counter 10117 * @note: btstack_type 2 10118 */ 10119 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){ 10120 return little_endian_read_16(event, 6); 10121 } 10122 10123 /** 10124 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10125 * @param event packet 10126 * @return avrcp_cid 10127 * @note: btstack_type 2 10128 */ 10129 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){ 10130 return little_endian_read_16(event, 3); 10131 } 10132 /** 10133 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10134 * @param event packet 10135 * @return command_type 10136 * @note: btstack_type 1 10137 */ 10138 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){ 10139 return event[5]; 10140 } 10141 /** 10142 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 10143 * @param event packet 10144 * @return absolute_volume 10145 * @note: btstack_type 1 10146 */ 10147 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){ 10148 return event[6]; 10149 } 10150 10151 /** 10152 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10153 * @param event packet 10154 * @return avrcp_cid 10155 * @note: btstack_type 2 10156 */ 10157 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){ 10158 return little_endian_read_16(event, 3); 10159 } 10160 /** 10161 * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10162 * @param event packet 10163 * @return command_type 10164 * @note: btstack_type 1 10165 */ 10166 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){ 10167 return event[5]; 10168 } 10169 /** 10170 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 10171 * @param event packet 10172 * @return absolute_volume 10173 * @note: btstack_type 1 10174 */ 10175 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){ 10176 return event[6]; 10177 } 10178 10179 /** 10180 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10181 * @param event packet 10182 * @return avrcp_cid 10183 * @note: btstack_type 2 10184 */ 10185 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){ 10186 return little_endian_read_16(event, 3); 10187 } 10188 /** 10189 * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10190 * @param event packet 10191 * @return status 10192 * @note: btstack_type 1 10193 */ 10194 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){ 10195 return event[5]; 10196 } 10197 /** 10198 * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10199 * @param event packet 10200 * @return enabled 10201 * @note: btstack_type 1 10202 */ 10203 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){ 10204 return event[6]; 10205 } 10206 /** 10207 * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE 10208 * @param event packet 10209 * @return event_id 10210 * @note: btstack_type 1 10211 */ 10212 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){ 10213 return event[7]; 10214 } 10215 10216 /** 10217 * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10218 * @param event packet 10219 * @return status 10220 * @note: btstack_type 1 10221 */ 10222 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){ 10223 return event[3]; 10224 } 10225 /** 10226 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10227 * @param event packet 10228 * @return avrcp_cid 10229 * @note: btstack_type 2 10230 */ 10231 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){ 10232 return little_endian_read_16(event, 4); 10233 } 10234 /** 10235 * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10236 * @param event packet 10237 * @param Pointer to storage for bd_addr 10238 * @note: btstack_type B 10239 */ 10240 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10241 reverse_bytes(&event[6], bd_addr, 6); 10242 } 10243 /** 10244 * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 10245 * @param event packet 10246 * @return con_handle 10247 * @note: btstack_type 2 10248 */ 10249 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){ 10250 return little_endian_read_16(event, 12); 10251 } 10252 10253 /** 10254 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED 10255 * @param event packet 10256 * @return avrcp_cid 10257 * @note: btstack_type 2 10258 */ 10259 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){ 10260 return little_endian_read_16(event, 3); 10261 } 10262 10263 /** 10264 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10265 * @param event packet 10266 * @return avrcp_cid 10267 * @note: btstack_type 2 10268 */ 10269 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){ 10270 return little_endian_read_16(event, 3); 10271 } 10272 /** 10273 * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10274 * @param event packet 10275 * @return command_type 10276 * @note: btstack_type 1 10277 */ 10278 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){ 10279 return event[5]; 10280 } 10281 /** 10282 * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10283 * @param event packet 10284 * @return repeat_mode 10285 * @note: btstack_type 1 10286 */ 10287 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){ 10288 return event[6]; 10289 } 10290 /** 10291 * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 10292 * @param event packet 10293 * @return shuffle_mode 10294 * @note: btstack_type 1 10295 */ 10296 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){ 10297 return event[7]; 10298 } 10299 10300 /** 10301 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS 10302 * @param event packet 10303 * @return avrcp_cid 10304 * @note: btstack_type 2 10305 */ 10306 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){ 10307 return little_endian_read_16(event, 3); 10308 } 10309 /** 10310 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS 10311 * @param event packet 10312 * @return command_type 10313 * @note: btstack_type 1 10314 */ 10315 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){ 10316 return event[5]; 10317 } 10318 /** 10319 * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS 10320 * @param event packet 10321 * @return song_length 10322 * @note: btstack_type 4 10323 */ 10324 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){ 10325 return little_endian_read_32(event, 6); 10326 } 10327 /** 10328 * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS 10329 * @param event packet 10330 * @return song_position 10331 * @note: btstack_type 4 10332 */ 10333 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){ 10334 return little_endian_read_32(event, 10); 10335 } 10336 /** 10337 * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS 10338 * @param event packet 10339 * @return play_status 10340 * @note: btstack_type 1 10341 */ 10342 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){ 10343 return event[14]; 10344 } 10345 10346 /** 10347 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START 10348 * @param event packet 10349 * @return avrcp_cid 10350 * @note: btstack_type 2 10351 */ 10352 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){ 10353 return little_endian_read_16(event, 3); 10354 } 10355 /** 10356 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START 10357 * @param event packet 10358 * @return command_type 10359 * @note: btstack_type 1 10360 */ 10361 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){ 10362 return event[5]; 10363 } 10364 /** 10365 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START 10366 * @param event packet 10367 * @return operation_id 10368 * @note: btstack_type 1 10369 */ 10370 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){ 10371 return event[6]; 10372 } 10373 10374 /** 10375 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10376 * @param event packet 10377 * @return avrcp_cid 10378 * @note: btstack_type 2 10379 */ 10380 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){ 10381 return little_endian_read_16(event, 3); 10382 } 10383 /** 10384 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10385 * @param event packet 10386 * @return command_type 10387 * @note: btstack_type 1 10388 */ 10389 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){ 10390 return event[5]; 10391 } 10392 /** 10393 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE 10394 * @param event packet 10395 * @return operation_id 10396 * @note: btstack_type 1 10397 */ 10398 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){ 10399 return event[6]; 10400 } 10401 10402 /** 10403 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 10404 * @param event packet 10405 * @return avrcp_cid 10406 * @note: btstack_type 2 10407 */ 10408 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){ 10409 return little_endian_read_16(event, 3); 10410 } 10411 /** 10412 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 10413 * @param event packet 10414 * @return command_type 10415 * @note: btstack_type 1 10416 */ 10417 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){ 10418 return event[5]; 10419 } 10420 10421 /** 10422 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY 10423 * @param event packet 10424 * @return avrcp_cid 10425 * @note: btstack_type 2 10426 */ 10427 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){ 10428 return little_endian_read_16(event, 3); 10429 } 10430 10431 /** 10432 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION 10433 * @param event packet 10434 * @return avrcp_cid 10435 * @note: btstack_type 2 10436 */ 10437 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){ 10438 return little_endian_read_16(event, 3); 10439 } 10440 /** 10441 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION 10442 * @param event packet 10443 * @return operation_id 10444 * @note: btstack_type 1 10445 */ 10446 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){ 10447 return event[5]; 10448 } 10449 /** 10450 * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION 10451 * @param event packet 10452 * @return button_pressed 10453 * @note: btstack_type 1 10454 */ 10455 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){ 10456 return event[6]; 10457 } 10458 /** 10459 * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION 10460 * @param event packet 10461 * @return operands_length 10462 * @note: btstack_type 1 10463 */ 10464 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){ 10465 return event[7]; 10466 } 10467 /** 10468 * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION 10469 * @param event packet 10470 * @return operand 10471 * @note: btstack_type 1 10472 */ 10473 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){ 10474 return event[8]; 10475 } 10476 10477 /** 10478 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10479 * @param event packet 10480 * @return avrcp_cid 10481 * @note: btstack_type 2 10482 */ 10483 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){ 10484 return little_endian_read_16(event, 3); 10485 } 10486 /** 10487 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10488 * @param event packet 10489 * @return command_type 10490 * @note: btstack_type 1 10491 */ 10492 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){ 10493 return event[5]; 10494 } 10495 /** 10496 * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 10497 * @param event packet 10498 * @return track 10499 * @note: btstack_type 1 10500 */ 10501 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){ 10502 return event[6]; 10503 } 10504 10505 /** 10506 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10507 * @param event packet 10508 * @return avrcp_cid 10509 * @note: btstack_type 2 10510 */ 10511 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){ 10512 return little_endian_read_16(event, 3); 10513 } 10514 /** 10515 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10516 * @param event packet 10517 * @return command_type 10518 * @note: btstack_type 1 10519 */ 10520 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){ 10521 return event[5]; 10522 } 10523 /** 10524 * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 10525 * @param event packet 10526 * @return total_tracks 10527 * @note: btstack_type 1 10528 */ 10529 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){ 10530 return event[6]; 10531 } 10532 10533 /** 10534 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10535 * @param event packet 10536 * @return avrcp_cid 10537 * @note: btstack_type 2 10538 */ 10539 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){ 10540 return little_endian_read_16(event, 3); 10541 } 10542 /** 10543 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10544 * @param event packet 10545 * @return command_type 10546 * @note: btstack_type 1 10547 */ 10548 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){ 10549 return event[5]; 10550 } 10551 /** 10552 * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 10553 * @param event packet 10554 * @return song_length 10555 * @note: btstack_type 4 10556 */ 10557 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){ 10558 return little_endian_read_32(event, 6); 10559 } 10560 10561 /** 10562 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10563 * @param event packet 10564 * @return avrcp_cid 10565 * @note: btstack_type 2 10566 */ 10567 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){ 10568 return little_endian_read_16(event, 3); 10569 } 10570 /** 10571 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10572 * @param event packet 10573 * @return command_type 10574 * @note: btstack_type 1 10575 */ 10576 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){ 10577 return event[5]; 10578 } 10579 /** 10580 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10581 * @param event packet 10582 * @return value_len 10583 * @note: btstack_type J 10584 */ 10585 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){ 10586 return event[6]; 10587 } 10588 /** 10589 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 10590 * @param event packet 10591 * @return value 10592 * @note: btstack_type V 10593 */ 10594 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){ 10595 return &event[7]; 10596 } 10597 10598 /** 10599 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10600 * @param event packet 10601 * @return avrcp_cid 10602 * @note: btstack_type 2 10603 */ 10604 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){ 10605 return little_endian_read_16(event, 3); 10606 } 10607 /** 10608 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10609 * @param event packet 10610 * @return command_type 10611 * @note: btstack_type 1 10612 */ 10613 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){ 10614 return event[5]; 10615 } 10616 /** 10617 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10618 * @param event packet 10619 * @return value_len 10620 * @note: btstack_type J 10621 */ 10622 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){ 10623 return event[6]; 10624 } 10625 /** 10626 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 10627 * @param event packet 10628 * @return value 10629 * @note: btstack_type V 10630 */ 10631 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){ 10632 return &event[7]; 10633 } 10634 10635 /** 10636 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10637 * @param event packet 10638 * @return avrcp_cid 10639 * @note: btstack_type 2 10640 */ 10641 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){ 10642 return little_endian_read_16(event, 3); 10643 } 10644 /** 10645 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10646 * @param event packet 10647 * @return command_type 10648 * @note: btstack_type 1 10649 */ 10650 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){ 10651 return event[5]; 10652 } 10653 /** 10654 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10655 * @param event packet 10656 * @return value_len 10657 * @note: btstack_type J 10658 */ 10659 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){ 10660 return event[6]; 10661 } 10662 /** 10663 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 10664 * @param event packet 10665 * @return value 10666 * @note: btstack_type V 10667 */ 10668 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){ 10669 return &event[7]; 10670 } 10671 10672 /** 10673 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10674 * @param event packet 10675 * @return avrcp_cid 10676 * @note: btstack_type 2 10677 */ 10678 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){ 10679 return little_endian_read_16(event, 3); 10680 } 10681 /** 10682 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10683 * @param event packet 10684 * @return command_type 10685 * @note: btstack_type 1 10686 */ 10687 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){ 10688 return event[5]; 10689 } 10690 /** 10691 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10692 * @param event packet 10693 * @return value_len 10694 * @note: btstack_type J 10695 */ 10696 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){ 10697 return event[6]; 10698 } 10699 /** 10700 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 10701 * @param event packet 10702 * @return value 10703 * @note: btstack_type V 10704 */ 10705 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){ 10706 return &event[7]; 10707 } 10708 10709 /** 10710 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10711 * @param event packet 10712 * @return avrcp_cid 10713 * @note: btstack_type 2 10714 */ 10715 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){ 10716 return little_endian_read_16(event, 3); 10717 } 10718 /** 10719 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10720 * @param event packet 10721 * @return command_type 10722 * @note: btstack_type 1 10723 */ 10724 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){ 10725 return event[5]; 10726 } 10727 /** 10728 * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 10729 * @param event packet 10730 * @return status 10731 * @note: btstack_type 1 10732 */ 10733 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){ 10734 return event[6]; 10735 } 10736 10737 /** 10738 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10739 * @param event packet 10740 * @return avrcp_cid 10741 * @note: btstack_type 2 10742 */ 10743 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 10744 return little_endian_read_16(event, 3); 10745 } 10746 /** 10747 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10748 * @param event packet 10749 * @return command_type 10750 * @note: btstack_type 1 10751 */ 10752 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){ 10753 return event[5]; 10754 } 10755 /** 10756 * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 10757 * @param event packet 10758 * @return playback_position_ms 10759 * @note: btstack_type 4 10760 */ 10761 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){ 10762 return little_endian_read_32(event, 6); 10763 } 10764 10765 /** 10766 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10767 * @param event packet 10768 * @return avrcp_cid 10769 * @note: btstack_type 2 10770 */ 10771 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){ 10772 return little_endian_read_16(event, 3); 10773 } 10774 /** 10775 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10776 * @param event packet 10777 * @return command_type 10778 * @note: btstack_type 1 10779 */ 10780 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){ 10781 return event[5]; 10782 } 10783 /** 10784 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10785 * @param event packet 10786 * @return status 10787 * @note: btstack_type 1 10788 */ 10789 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){ 10790 return event[6]; 10791 } 10792 /** 10793 * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 10794 * @param event packet 10795 * @return event_id 10796 * @note: btstack_type 1 10797 */ 10798 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){ 10799 return event[7]; 10800 } 10801 10802 /** 10803 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10804 * @param event packet 10805 * @return avrcp_cid 10806 * @note: btstack_type 2 10807 */ 10808 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){ 10809 return little_endian_read_16(event, 3); 10810 } 10811 /** 10812 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10813 * @param event packet 10814 * @return command_type 10815 * @note: btstack_type 1 10816 */ 10817 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){ 10818 return event[5]; 10819 } 10820 /** 10821 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 10822 * @param event packet 10823 * @return status 10824 * @note: btstack_type 1 10825 */ 10826 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){ 10827 return event[6]; 10828 } 10829 10830 /** 10831 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10832 * @param event packet 10833 * @return avrcp_cid 10834 * @note: btstack_type 2 10835 */ 10836 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){ 10837 return little_endian_read_16(event, 3); 10838 } 10839 /** 10840 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10841 * @param event packet 10842 * @return command_type 10843 * @note: btstack_type 1 10844 */ 10845 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){ 10846 return event[5]; 10847 } 10848 /** 10849 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10850 * @param event packet 10851 * @return status 10852 * @note: btstack_type 1 10853 */ 10854 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){ 10855 return event[6]; 10856 } 10857 /** 10858 * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 10859 * @param event packet 10860 * @return company_id 10861 * @note: btstack_type 3 10862 */ 10863 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){ 10864 return little_endian_read_24(event, 7); 10865 } 10866 10867 /** 10868 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10869 * @param event packet 10870 * @return avrcp_cid 10871 * @note: btstack_type 2 10872 */ 10873 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){ 10874 return little_endian_read_16(event, 3); 10875 } 10876 /** 10877 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10878 * @param event packet 10879 * @return command_type 10880 * @note: btstack_type 1 10881 */ 10882 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){ 10883 return event[5]; 10884 } 10885 /** 10886 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 10887 * @param event packet 10888 * @return status 10889 * @note: btstack_type 1 10890 */ 10891 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){ 10892 return event[6]; 10893 } 10894 10895 /** 10896 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10897 * @param event packet 10898 * @return avrcp_cid 10899 * @note: btstack_type 2 10900 */ 10901 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){ 10902 return little_endian_read_16(event, 3); 10903 } 10904 /** 10905 * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10906 * @param event packet 10907 * @return command_type 10908 * @note: btstack_type 1 10909 */ 10910 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){ 10911 return event[5]; 10912 } 10913 /** 10914 * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10915 * @param event packet 10916 * @return pdu_id 10917 * @note: btstack_type 1 10918 */ 10919 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){ 10920 return event[6]; 10921 } 10922 /** 10923 * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10924 * @param event packet 10925 * @return params_len 10926 * @note: btstack_type L 10927 */ 10928 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){ 10929 return little_endian_read_16(event, 7); 10930 } 10931 /** 10932 * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 10933 * @param event packet 10934 * @return params 10935 * @note: btstack_type V 10936 */ 10937 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){ 10938 return &event[9]; 10939 } 10940 10941 /** 10942 * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 10943 * @param event packet 10944 * @param Pointer to storage for bd_addr 10945 * @note: btstack_type B 10946 */ 10947 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10948 reverse_bytes(&event[3], bd_addr, 6); 10949 } 10950 /** 10951 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 10952 * @param event packet 10953 * @return browsing_cid 10954 * @note: btstack_type 2 10955 */ 10956 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){ 10957 return little_endian_read_16(event, 9); 10958 } 10959 10960 /** 10961 * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10962 * @param event packet 10963 * @return status 10964 * @note: btstack_type 1 10965 */ 10966 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){ 10967 return event[3]; 10968 } 10969 /** 10970 * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10971 * @param event packet 10972 * @param Pointer to storage for bd_addr 10973 * @note: btstack_type B 10974 */ 10975 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10976 reverse_bytes(&event[4], bd_addr, 6); 10977 } 10978 /** 10979 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 10980 * @param event packet 10981 * @return browsing_cid 10982 * @note: btstack_type 2 10983 */ 10984 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){ 10985 return little_endian_read_16(event, 10); 10986 } 10987 10988 /** 10989 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 10990 * @param event packet 10991 * @return browsing_cid 10992 * @note: btstack_type 2 10993 */ 10994 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){ 10995 return little_endian_read_16(event, 3); 10996 } 10997 10998 /** 10999 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE 11000 * @param event packet 11001 * @return browsing_cid 11002 * @note: btstack_type 2 11003 */ 11004 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){ 11005 return little_endian_read_16(event, 3); 11006 } 11007 /** 11008 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE 11009 * @param event packet 11010 * @return uid_counter 11011 * @note: btstack_type 2 11012 */ 11013 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){ 11014 return little_endian_read_16(event, 5); 11015 } 11016 /** 11017 * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE 11018 * @param event packet 11019 * @return browsing_status 11020 * @note: btstack_type 1 11021 */ 11022 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){ 11023 return event[7]; 11024 } 11025 /** 11026 * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE 11027 * @param event packet 11028 * @return bluetooth_status 11029 * @note: btstack_type 1 11030 */ 11031 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){ 11032 return event[8]; 11033 } 11034 11035 /** 11036 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11037 * @param event packet 11038 * @return browsing_cid 11039 * @note: btstack_type 2 11040 */ 11041 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){ 11042 return little_endian_read_16(event, 3); 11043 } 11044 /** 11045 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11046 * @param event packet 11047 * @return scope 11048 * @note: btstack_type 1 11049 */ 11050 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){ 11051 return event[5]; 11052 } 11053 /** 11054 * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11055 * @param event packet 11056 * @return attr_bitmap 11057 * @note: btstack_type 4 11058 */ 11059 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){ 11060 return little_endian_read_32(event, 6); 11061 } 11062 11063 /** 11064 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 11065 * @param event packet 11066 * @return browsing_cid 11067 * @note: btstack_type 2 11068 */ 11069 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){ 11070 return little_endian_read_16(event, 3); 11071 } 11072 /** 11073 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 11074 * @param event packet 11075 * @return scope 11076 * @note: btstack_type 1 11077 */ 11078 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){ 11079 return event[5]; 11080 } 11081 11082 /** 11083 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 11084 * @param event packet 11085 * @return browsing_cid 11086 * @note: btstack_type 2 11087 */ 11088 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){ 11089 return little_endian_read_16(event, 3); 11090 } 11091 /** 11092 * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 11093 * @param event packet 11094 * @return player_id 11095 * @note: btstack_type 2 11096 */ 11097 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){ 11098 return little_endian_read_16(event, 5); 11099 } 11100 11101 /** 11102 * @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION 11103 * @param event packet 11104 * @return goep_cid 11105 * @note: btstack_type 2 11106 */ 11107 static inline uint16_t goep_subevent_incoming_connection_get_goep_cid(const uint8_t * event){ 11108 return little_endian_read_16(event, 3); 11109 } 11110 /** 11111 * @brief Get field address from event GOEP_SUBEVENT_INCOMING_CONNECTION 11112 * @param event packet 11113 * @param Pointer to storage for address 11114 * @note: btstack_type B 11115 */ 11116 static inline void goep_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 11117 reverse_bytes(&event[5], address, 6); 11118 } 11119 /** 11120 * @brief Get field handle from event GOEP_SUBEVENT_INCOMING_CONNECTION 11121 * @param event packet 11122 * @return handle 11123 * @note: btstack_type H 11124 */ 11125 static inline hci_con_handle_t goep_subevent_incoming_connection_get_handle(const uint8_t * event){ 11126 return little_endian_read_16(event, 11); 11127 } 11128 11129 /** 11130 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED 11131 * @param event packet 11132 * @return goep_cid 11133 * @note: btstack_type 2 11134 */ 11135 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){ 11136 return little_endian_read_16(event, 3); 11137 } 11138 /** 11139 * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED 11140 * @param event packet 11141 * @return status 11142 * @note: btstack_type 1 11143 */ 11144 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){ 11145 return event[5]; 11146 } 11147 /** 11148 * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED 11149 * @param event packet 11150 * @param Pointer to storage for bd_addr 11151 * @note: btstack_type B 11152 */ 11153 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11154 reverse_bytes(&event[6], bd_addr, 6); 11155 } 11156 /** 11157 * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED 11158 * @param event packet 11159 * @return con_handle 11160 * @note: btstack_type H 11161 */ 11162 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11163 return little_endian_read_16(event, 12); 11164 } 11165 /** 11166 * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED 11167 * @param event packet 11168 * @return incoming 11169 * @note: btstack_type 1 11170 */ 11171 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){ 11172 return event[14]; 11173 } 11174 11175 /** 11176 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED 11177 * @param event packet 11178 * @return goep_cid 11179 * @note: btstack_type 2 11180 */ 11181 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 11182 return little_endian_read_16(event, 3); 11183 } 11184 11185 /** 11186 * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW 11187 * @param event packet 11188 * @return goep_cid 11189 * @note: btstack_type 2 11190 */ 11191 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){ 11192 return little_endian_read_16(event, 3); 11193 } 11194 11195 /** 11196 * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED 11197 * @param event packet 11198 * @return pbap_cid 11199 * @note: btstack_type 2 11200 */ 11201 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){ 11202 return little_endian_read_16(event, 3); 11203 } 11204 /** 11205 * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED 11206 * @param event packet 11207 * @return status 11208 * @note: btstack_type 1 11209 */ 11210 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){ 11211 return event[5]; 11212 } 11213 /** 11214 * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED 11215 * @param event packet 11216 * @param Pointer to storage for bd_addr 11217 * @note: btstack_type B 11218 */ 11219 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11220 reverse_bytes(&event[6], bd_addr, 6); 11221 } 11222 /** 11223 * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED 11224 * @param event packet 11225 * @return con_handle 11226 * @note: btstack_type H 11227 */ 11228 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11229 return little_endian_read_16(event, 12); 11230 } 11231 /** 11232 * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED 11233 * @param event packet 11234 * @return incoming 11235 * @note: btstack_type 1 11236 */ 11237 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){ 11238 return event[14]; 11239 } 11240 11241 /** 11242 * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED 11243 * @param event packet 11244 * @return goep_cid 11245 * @note: btstack_type 2 11246 */ 11247 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 11248 return little_endian_read_16(event, 3); 11249 } 11250 11251 /** 11252 * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED 11253 * @param event packet 11254 * @return goep_cid 11255 * @note: btstack_type 2 11256 */ 11257 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){ 11258 return little_endian_read_16(event, 3); 11259 } 11260 /** 11261 * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED 11262 * @param event packet 11263 * @return status 11264 * @note: btstack_type 1 11265 */ 11266 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){ 11267 return event[5]; 11268 } 11269 11270 /** 11271 * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11272 * @param event packet 11273 * @return goep_cid 11274 * @note: btstack_type 2 11275 */ 11276 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){ 11277 return little_endian_read_16(event, 3); 11278 } 11279 /** 11280 * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11281 * @param event packet 11282 * @return status 11283 * @note: btstack_type 1 11284 */ 11285 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){ 11286 return event[5]; 11287 } 11288 /** 11289 * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE 11290 * @param event packet 11291 * @return phonebook_size 11292 * @note: btstack_type 2 11293 */ 11294 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){ 11295 return little_endian_read_16(event, 6); 11296 } 11297 11298 /** 11299 * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11300 * @param event packet 11301 * @return goep_cid 11302 * @note: btstack_type 2 11303 */ 11304 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){ 11305 return little_endian_read_16(event, 3); 11306 } 11307 /** 11308 * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11309 * @param event packet 11310 * @return user_id_required 11311 * @note: btstack_type 1 11312 */ 11313 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){ 11314 return event[5]; 11315 } 11316 /** 11317 * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 11318 * @param event packet 11319 * @return full_access 11320 * @note: btstack_type 1 11321 */ 11322 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){ 11323 return event[6]; 11324 } 11325 11326 /** 11327 * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT 11328 * @param event packet 11329 * @return goep_cid 11330 * @note: btstack_type 2 11331 */ 11332 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){ 11333 return little_endian_read_16(event, 3); 11334 } 11335 /** 11336 * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT 11337 * @param event packet 11338 * @return name_len 11339 * @note: btstack_type J 11340 */ 11341 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){ 11342 return event[5]; 11343 } 11344 /** 11345 * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT 11346 * @param event packet 11347 * @return name 11348 * @note: btstack_type V 11349 */ 11350 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){ 11351 return &event[6]; 11352 } 11353 /** 11354 * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT 11355 * @param event packet 11356 * @return handle_len 11357 * @note: btstack_type J 11358 */ 11359 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){ 11360 return event[6u + event[5]]; 11361 } 11362 /** 11363 * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT 11364 * @param event packet 11365 * @return handle 11366 * @note: btstack_type V 11367 */ 11368 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){ 11369 return &event[6u + event[5] + 1u]; 11370 } 11371 11372 /** 11373 * @brief Get field goep_cid from event PBAP_SUBEVENT_RESET_MISSED_CALLS 11374 * @param event packet 11375 * @return goep_cid 11376 * @note: btstack_type 2 11377 */ 11378 static inline uint16_t pbap_subevent_reset_missed_calls_get_goep_cid(const uint8_t * event){ 11379 return little_endian_read_16(event, 3); 11380 } 11381 /** 11382 * @brief Get field phonebook from event PBAP_SUBEVENT_RESET_MISSED_CALLS 11383 * @param event packet 11384 * @return phonebook 11385 * @note: btstack_type 1 11386 */ 11387 static inline uint8_t pbap_subevent_reset_missed_calls_get_phonebook(const uint8_t * event){ 11388 return event[5]; 11389 } 11390 11391 /** 11392 * @brief Get field goep_cid from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11393 * @param event packet 11394 * @return goep_cid 11395 * @note: btstack_type 2 11396 */ 11397 static inline uint16_t pbap_subevent_query_phonebook_size_get_goep_cid(const uint8_t * event){ 11398 return little_endian_read_16(event, 3); 11399 } 11400 /** 11401 * @brief Get field vcard_selector from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11402 * @param event packet 11403 * @return vcard_selector 11404 * @note: btstack_type 4 11405 */ 11406 static inline uint32_t pbap_subevent_query_phonebook_size_get_vcard_selector(const uint8_t * event){ 11407 return little_endian_read_32(event, 5); 11408 } 11409 /** 11410 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11411 * @param event packet 11412 * @return vcard_selector_operator 11413 * @note: btstack_type 1 11414 */ 11415 static inline uint8_t pbap_subevent_query_phonebook_size_get_vcard_selector_operator(const uint8_t * event){ 11416 return event[9]; 11417 } 11418 /** 11419 * @brief Get field phonebook from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 11420 * @param event packet 11421 * @return phonebook 11422 * @note: btstack_type 1 11423 */ 11424 static inline uint8_t pbap_subevent_query_phonebook_size_get_phonebook(const uint8_t * event){ 11425 return event[10]; 11426 } 11427 11428 /** 11429 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_PHONEBOOK 11430 * @param event packet 11431 * @return goep_cid 11432 * @note: btstack_type 2 11433 */ 11434 static inline uint16_t pbap_subevent_pull_phonebook_get_goep_cid(const uint8_t * event){ 11435 return little_endian_read_16(event, 3); 11436 } 11437 /** 11438 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_PHONEBOOK 11439 * @param event packet 11440 * @return continuation 11441 * @note: btstack_type 4 11442 */ 11443 static inline uint32_t pbap_subevent_pull_phonebook_get_continuation(const uint8_t * event){ 11444 return little_endian_read_32(event, 5); 11445 } 11446 /** 11447 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 11448 * @param event packet 11449 * @return property_selector 11450 * @note: btstack_type 4 11451 */ 11452 static inline uint32_t pbap_subevent_pull_phonebook_get_property_selector(const uint8_t * event){ 11453 return little_endian_read_32(event, 9); 11454 } 11455 /** 11456 * @brief Get field format from event PBAP_SUBEVENT_PULL_PHONEBOOK 11457 * @param event packet 11458 * @return format 11459 * @note: btstack_type 1 11460 */ 11461 static inline uint8_t pbap_subevent_pull_phonebook_get_format(const uint8_t * event){ 11462 return event[13]; 11463 } 11464 /** 11465 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_PHONEBOOK 11466 * @param event packet 11467 * @return max_list_count 11468 * @note: btstack_type 2 11469 */ 11470 static inline uint16_t pbap_subevent_pull_phonebook_get_max_list_count(const uint8_t * event){ 11471 return little_endian_read_16(event, 14); 11472 } 11473 /** 11474 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_PHONEBOOK 11475 * @param event packet 11476 * @return list_start_offset 11477 * @note: btstack_type 2 11478 */ 11479 static inline uint16_t pbap_subevent_pull_phonebook_get_list_start_offset(const uint8_t * event){ 11480 return little_endian_read_16(event, 16); 11481 } 11482 /** 11483 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 11484 * @param event packet 11485 * @return vcard_selector 11486 * @note: btstack_type 4 11487 */ 11488 static inline uint32_t pbap_subevent_pull_phonebook_get_vcard_selector(const uint8_t * event){ 11489 return little_endian_read_32(event, 18); 11490 } 11491 /** 11492 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_PHONEBOOK 11493 * @param event packet 11494 * @return vcard_selector_operator 11495 * @note: btstack_type 1 11496 */ 11497 static inline uint8_t pbap_subevent_pull_phonebook_get_vcard_selector_operator(const uint8_t * event){ 11498 return event[22]; 11499 } 11500 /** 11501 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_PHONEBOOK 11502 * @param event packet 11503 * @return phonebook 11504 * @note: btstack_type 1 11505 */ 11506 static inline uint8_t pbap_subevent_pull_phonebook_get_phonebook(const uint8_t * event){ 11507 return event[23]; 11508 } 11509 11510 /** 11511 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11512 * @param event packet 11513 * @return goep_cid 11514 * @note: btstack_type 2 11515 */ 11516 static inline uint16_t pbap_subevent_pull_vcard_listing_get_goep_cid(const uint8_t * event){ 11517 return little_endian_read_16(event, 3); 11518 } 11519 /** 11520 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11521 * @param event packet 11522 * @return continuation 11523 * @note: btstack_type 4 11524 */ 11525 static inline uint32_t pbap_subevent_pull_vcard_listing_get_continuation(const uint8_t * event){ 11526 return little_endian_read_32(event, 5); 11527 } 11528 /** 11529 * @brief Get field order from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11530 * @param event packet 11531 * @return order 11532 * @note: btstack_type 1 11533 */ 11534 static inline uint8_t pbap_subevent_pull_vcard_listing_get_order(const uint8_t * event){ 11535 return event[9]; 11536 } 11537 /** 11538 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11539 * @param event packet 11540 * @return max_list_count 11541 * @note: btstack_type 2 11542 */ 11543 static inline uint16_t pbap_subevent_pull_vcard_listing_get_max_list_count(const uint8_t * event){ 11544 return little_endian_read_16(event, 10); 11545 } 11546 /** 11547 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11548 * @param event packet 11549 * @return list_start_offset 11550 * @note: btstack_type 2 11551 */ 11552 static inline uint16_t pbap_subevent_pull_vcard_listing_get_list_start_offset(const uint8_t * event){ 11553 return little_endian_read_16(event, 12); 11554 } 11555 /** 11556 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11557 * @param event packet 11558 * @return vcard_selector 11559 * @note: btstack_type 4 11560 */ 11561 static inline uint32_t pbap_subevent_pull_vcard_listing_get_vcard_selector(const uint8_t * event){ 11562 return little_endian_read_32(event, 14); 11563 } 11564 /** 11565 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11566 * @param event packet 11567 * @return vcard_selector_operator 11568 * @note: btstack_type 1 11569 */ 11570 static inline uint8_t pbap_subevent_pull_vcard_listing_get_vcard_selector_operator(const uint8_t * event){ 11571 return event[18]; 11572 } 11573 /** 11574 * @brief Get field search_property from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11575 * @param event packet 11576 * @return search_property 11577 * @note: btstack_type 1 11578 */ 11579 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_property(const uint8_t * event){ 11580 return event[19]; 11581 } 11582 /** 11583 * @brief Get field search_value_len from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11584 * @param event packet 11585 * @return search_value_len 11586 * @note: btstack_type J 11587 */ 11588 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_value_len(const uint8_t * event){ 11589 return event[20]; 11590 } 11591 /** 11592 * @brief Get field search_value from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11593 * @param event packet 11594 * @return search_value 11595 * @note: btstack_type V 11596 */ 11597 static inline const uint8_t * pbap_subevent_pull_vcard_listing_get_search_value(const uint8_t * event){ 11598 return &event[21]; 11599 } 11600 /** 11601 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_LISTING 11602 * @param event packet 11603 * @return phonebook 11604 * @note: btstack_type 1 11605 */ 11606 static inline uint8_t pbap_subevent_pull_vcard_listing_get_phonebook(const uint8_t * event){ 11607 return event[21u + event[20]]; 11608 } 11609 11610 /** 11611 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11612 * @param event packet 11613 * @return goep_cid 11614 * @note: btstack_type 2 11615 */ 11616 static inline uint16_t pbap_subevent_pull_vcard_entry_get_goep_cid(const uint8_t * event){ 11617 return little_endian_read_16(event, 3); 11618 } 11619 /** 11620 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11621 * @param event packet 11622 * @return continuation 11623 * @note: btstack_type 4 11624 */ 11625 static inline uint32_t pbap_subevent_pull_vcard_entry_get_continuation(const uint8_t * event){ 11626 return little_endian_read_32(event, 5); 11627 } 11628 /** 11629 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11630 * @param event packet 11631 * @return property_selector 11632 * @note: btstack_type 4 11633 */ 11634 static inline uint32_t pbap_subevent_pull_vcard_entry_get_property_selector(const uint8_t * event){ 11635 return little_endian_read_32(event, 9); 11636 } 11637 /** 11638 * @brief Get field format from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11639 * @param event packet 11640 * @return format 11641 * @note: btstack_type 1 11642 */ 11643 static inline uint8_t pbap_subevent_pull_vcard_entry_get_format(const uint8_t * event){ 11644 return event[13]; 11645 } 11646 /** 11647 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11648 * @param event packet 11649 * @return phonebook 11650 * @note: btstack_type 1 11651 */ 11652 static inline uint8_t pbap_subevent_pull_vcard_entry_get_phonebook(const uint8_t * event){ 11653 return event[14]; 11654 } 11655 /** 11656 * @brief Get field name from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 11657 * @param event packet 11658 * @return name 11659 * @note: btstack_type T 11660 */ 11661 static inline const char * pbap_subevent_pull_vcard_entry_get_name(const uint8_t * event){ 11662 return (const char *) &event[15]; 11663 } 11664 11665 /** 11666 * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION 11667 * @param event packet 11668 * @return hid_cid 11669 * @note: btstack_type 2 11670 */ 11671 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){ 11672 return little_endian_read_16(event, 3); 11673 } 11674 /** 11675 * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION 11676 * @param event packet 11677 * @param Pointer to storage for address 11678 * @note: btstack_type B 11679 */ 11680 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 11681 reverse_bytes(&event[5], address, 6); 11682 } 11683 /** 11684 * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION 11685 * @param event packet 11686 * @return handle 11687 * @note: btstack_type H 11688 */ 11689 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){ 11690 return little_endian_read_16(event, 11); 11691 } 11692 11693 /** 11694 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED 11695 * @param event packet 11696 * @return hid_cid 11697 * @note: btstack_type 2 11698 */ 11699 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){ 11700 return little_endian_read_16(event, 3); 11701 } 11702 /** 11703 * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED 11704 * @param event packet 11705 * @return status 11706 * @note: btstack_type 1 11707 */ 11708 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){ 11709 return event[5]; 11710 } 11711 /** 11712 * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED 11713 * @param event packet 11714 * @param Pointer to storage for bd_addr 11715 * @note: btstack_type B 11716 */ 11717 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11718 reverse_bytes(&event[6], bd_addr, 6); 11719 } 11720 /** 11721 * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED 11722 * @param event packet 11723 * @return con_handle 11724 * @note: btstack_type H 11725 */ 11726 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){ 11727 return little_endian_read_16(event, 12); 11728 } 11729 /** 11730 * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED 11731 * @param event packet 11732 * @return incoming 11733 * @note: btstack_type 1 11734 */ 11735 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){ 11736 return event[14]; 11737 } 11738 11739 /** 11740 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED 11741 * @param event packet 11742 * @return hid_cid 11743 * @note: btstack_type 2 11744 */ 11745 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){ 11746 return little_endian_read_16(event, 3); 11747 } 11748 11749 /** 11750 * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW 11751 * @param event packet 11752 * @return hid_cid 11753 * @note: btstack_type 2 11754 */ 11755 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){ 11756 return little_endian_read_16(event, 3); 11757 } 11758 11759 /** 11760 * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND 11761 * @param event packet 11762 * @return hid_cid 11763 * @note: btstack_type 2 11764 */ 11765 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){ 11766 return little_endian_read_16(event, 3); 11767 } 11768 11769 /** 11770 * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND 11771 * @param event packet 11772 * @return hid_cid 11773 * @note: btstack_type 2 11774 */ 11775 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){ 11776 return little_endian_read_16(event, 3); 11777 } 11778 11779 /** 11780 * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG 11781 * @param event packet 11782 * @return hid_cid 11783 * @note: btstack_type 2 11784 */ 11785 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){ 11786 return little_endian_read_16(event, 3); 11787 } 11788 11789 /** 11790 * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE 11791 * @param event packet 11792 * @return hid_cid 11793 * @note: btstack_type 2 11794 */ 11795 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){ 11796 return little_endian_read_16(event, 3); 11797 } 11798 /** 11799 * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE 11800 * @param event packet 11801 * @return handshake_status 11802 * @note: btstack_type 1 11803 */ 11804 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){ 11805 return event[5]; 11806 } 11807 /** 11808 * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE 11809 * @param event packet 11810 * @return report_len 11811 * @note: btstack_type L 11812 */ 11813 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){ 11814 return little_endian_read_16(event, 6); 11815 } 11816 /** 11817 * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE 11818 * @param event packet 11819 * @return report 11820 * @note: btstack_type V 11821 */ 11822 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){ 11823 return &event[8]; 11824 } 11825 11826 /** 11827 * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE 11828 * @param event packet 11829 * @return hid_cid 11830 * @note: btstack_type 2 11831 */ 11832 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){ 11833 return little_endian_read_16(event, 3); 11834 } 11835 /** 11836 * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE 11837 * @param event packet 11838 * @return handshake_status 11839 * @note: btstack_type 1 11840 */ 11841 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){ 11842 return event[5]; 11843 } 11844 11845 /** 11846 * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11847 * @param event packet 11848 * @return hid_cid 11849 * @note: btstack_type 2 11850 */ 11851 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){ 11852 return little_endian_read_16(event, 3); 11853 } 11854 /** 11855 * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11856 * @param event packet 11857 * @return handshake_status 11858 * @note: btstack_type 1 11859 */ 11860 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){ 11861 return event[5]; 11862 } 11863 /** 11864 * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 11865 * @param event packet 11866 * @return protocol_mode 11867 * @note: btstack_type 1 11868 */ 11869 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){ 11870 return event[6]; 11871 } 11872 11873 /** 11874 * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11875 * @param event packet 11876 * @return hid_cid 11877 * @note: btstack_type 2 11878 */ 11879 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){ 11880 return little_endian_read_16(event, 3); 11881 } 11882 /** 11883 * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11884 * @param event packet 11885 * @return handshake_status 11886 * @note: btstack_type 1 11887 */ 11888 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){ 11889 return event[5]; 11890 } 11891 /** 11892 * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 11893 * @param event packet 11894 * @return protocol_mode 11895 * @note: btstack_type 1 11896 */ 11897 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){ 11898 return event[6]; 11899 } 11900 11901 /** 11902 * @brief Get field hid_cid from event HID_SUBEVENT_REPORT 11903 * @param event packet 11904 * @return hid_cid 11905 * @note: btstack_type 2 11906 */ 11907 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){ 11908 return little_endian_read_16(event, 3); 11909 } 11910 /** 11911 * @brief Get field report_len from event HID_SUBEVENT_REPORT 11912 * @param event packet 11913 * @return report_len 11914 * @note: btstack_type L 11915 */ 11916 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){ 11917 return little_endian_read_16(event, 5); 11918 } 11919 /** 11920 * @brief Get field report from event HID_SUBEVENT_REPORT 11921 * @param event packet 11922 * @return report 11923 * @note: btstack_type V 11924 */ 11925 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){ 11926 return &event[7]; 11927 } 11928 11929 /** 11930 * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 11931 * @param event packet 11932 * @return hid_cid 11933 * @note: btstack_type 2 11934 */ 11935 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){ 11936 return little_endian_read_16(event, 3); 11937 } 11938 /** 11939 * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 11940 * @param event packet 11941 * @return status 11942 * @note: btstack_type 1 11943 */ 11944 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){ 11945 return event[5]; 11946 } 11947 11948 /** 11949 * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11950 * @param event packet 11951 * @return hid_cid 11952 * @note: btstack_type 2 11953 */ 11954 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){ 11955 return little_endian_read_16(event, 3); 11956 } 11957 /** 11958 * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11959 * @param event packet 11960 * @return host_max_latency 11961 * @note: btstack_type 2 11962 */ 11963 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){ 11964 return little_endian_read_16(event, 5); 11965 } 11966 /** 11967 * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 11968 * @param event packet 11969 * @return host_min_timeout 11970 * @note: btstack_type 2 11971 */ 11972 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){ 11973 return little_endian_read_16(event, 7); 11974 } 11975 11976 /** 11977 * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW 11978 * @param event packet 11979 * @return con_handle 11980 * @note: btstack_type 2 11981 */ 11982 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){ 11983 return little_endian_read_16(event, 3); 11984 } 11985 11986 /** 11987 * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE 11988 * @param event packet 11989 * @return con_handle 11990 * @note: btstack_type 2 11991 */ 11992 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){ 11993 return little_endian_read_16(event, 3); 11994 } 11995 /** 11996 * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE 11997 * @param event packet 11998 * @return protocol_mode 11999 * @note: btstack_type 1 12000 */ 12001 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){ 12002 return event[5]; 12003 } 12004 12005 /** 12006 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 12007 * @param event packet 12008 * @return con_handle 12009 * @note: btstack_type 2 12010 */ 12011 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){ 12012 return little_endian_read_16(event, 3); 12013 } 12014 /** 12015 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 12016 * @param event packet 12017 * @return enable 12018 * @note: btstack_type 1 12019 */ 12020 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){ 12021 return event[5]; 12022 } 12023 12024 /** 12025 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 12026 * @param event packet 12027 * @return con_handle 12028 * @note: btstack_type 2 12029 */ 12030 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){ 12031 return little_endian_read_16(event, 3); 12032 } 12033 /** 12034 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 12035 * @param event packet 12036 * @return enable 12037 * @note: btstack_type 1 12038 */ 12039 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){ 12040 return event[5]; 12041 } 12042 12043 /** 12044 * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 12045 * @param event packet 12046 * @return con_handle 12047 * @note: btstack_type 2 12048 */ 12049 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){ 12050 return little_endian_read_16(event, 3); 12051 } 12052 /** 12053 * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 12054 * @param event packet 12055 * @return enable 12056 * @note: btstack_type 1 12057 */ 12058 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){ 12059 return event[5]; 12060 } 12061 12062 /** 12063 * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 12064 * @param event packet 12065 * @return con_handle 12066 * @note: btstack_type 2 12067 */ 12068 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){ 12069 return little_endian_read_16(event, 3); 12070 } 12071 /** 12072 * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 12073 * @param event packet 12074 * @return enable 12075 * @note: btstack_type 1 12076 */ 12077 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){ 12078 return event[5]; 12079 } 12080 12081 /** 12082 * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 12083 * @param event packet 12084 * @return con_handle 12085 * @note: btstack_type 2 12086 */ 12087 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){ 12088 return little_endian_read_16(event, 3); 12089 } 12090 /** 12091 * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 12092 * @param event packet 12093 * @return enable 12094 * @note: btstack_type 1 12095 */ 12096 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){ 12097 return event[5]; 12098 } 12099 12100 /** 12101 * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND 12102 * @param event packet 12103 * @return con_handle 12104 * @note: btstack_type 2 12105 */ 12106 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){ 12107 return little_endian_read_16(event, 3); 12108 } 12109 12110 /** 12111 * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND 12112 * @param event packet 12113 * @return con_handle 12114 * @note: btstack_type 2 12115 */ 12116 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){ 12117 return little_endian_read_16(event, 3); 12118 } 12119 12120 /** 12121 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12122 * @param event packet 12123 * @return con_handle 12124 * @note: btstack_type 2 12125 */ 12126 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){ 12127 return little_endian_read_16(event, 3); 12128 } 12129 /** 12130 * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12131 * @param event packet 12132 * @return measurement_type 12133 * @note: btstack_type 1 12134 */ 12135 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){ 12136 return event[5]; 12137 } 12138 /** 12139 * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 12140 * @param event packet 12141 * @return is_enhanced 12142 * @note: btstack_type 1 12143 */ 12144 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){ 12145 return event[6]; 12146 } 12147 12148 /** 12149 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START 12150 * @param event packet 12151 * @return con_handle 12152 * @note: btstack_type 2 12153 */ 12154 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){ 12155 return little_endian_read_16(event, 3); 12156 } 12157 12158 /** 12159 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP 12160 * @param event packet 12161 * @return con_handle 12162 * @note: btstack_type 2 12163 */ 12164 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){ 12165 return little_endian_read_16(event, 3); 12166 } 12167 12168 /** 12169 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12170 * @param event packet 12171 * @return hids_cid 12172 * @note: btstack_type 2 12173 */ 12174 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){ 12175 return little_endian_read_16(event, 3); 12176 } 12177 /** 12178 * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12179 * @param event packet 12180 * @return status 12181 * @note: btstack_type 1 12182 */ 12183 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){ 12184 return event[5]; 12185 } 12186 /** 12187 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12188 * @param event packet 12189 * @return num_instances 12190 * @note: btstack_type 1 12191 */ 12192 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){ 12193 return event[6]; 12194 } 12195 /** 12196 * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 12197 * @param event packet 12198 * @return poll_bitmap 12199 * @note: btstack_type 1 12200 */ 12201 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){ 12202 return event[7]; 12203 } 12204 12205 /** 12206 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12207 * @param event packet 12208 * @return hids_cid 12209 * @note: btstack_type 2 12210 */ 12211 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){ 12212 return little_endian_read_16(event, 3); 12213 } 12214 /** 12215 * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12216 * @param event packet 12217 * @return sevice_index 12218 * @note: btstack_type 1 12219 */ 12220 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){ 12221 return event[5]; 12222 } 12223 /** 12224 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12225 * @param event packet 12226 * @return att_status 12227 * @note: btstack_type 1 12228 */ 12229 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){ 12230 return event[6]; 12231 } 12232 /** 12233 * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 12234 * @param event packet 12235 * @return level 12236 * @note: btstack_type 1 12237 */ 12238 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){ 12239 return event[7]; 12240 } 12241 12242 /** 12243 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 12244 * @param event packet 12245 * @return con_handle 12246 * @note: btstack_type H 12247 */ 12248 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){ 12249 return little_endian_read_16(event, 3); 12250 } 12251 /** 12252 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 12253 * @param event packet 12254 * @return att_status 12255 * @note: btstack_type 1 12256 */ 12257 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){ 12258 return event[5]; 12259 } 12260 12261 /** 12262 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12263 * @param event packet 12264 * @return con_handle 12265 * @note: btstack_type H 12266 */ 12267 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){ 12268 return little_endian_read_16(event, 3); 12269 } 12270 /** 12271 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12272 * @param event packet 12273 * @return att_status 12274 * @note: btstack_type 1 12275 */ 12276 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){ 12277 return event[5]; 12278 } 12279 /** 12280 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 12281 * @param event packet 12282 * @return value 12283 * @note: btstack_type T 12284 */ 12285 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){ 12286 return (const char *) &event[6]; 12287 } 12288 12289 /** 12290 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12291 * @param event packet 12292 * @return con_handle 12293 * @note: btstack_type H 12294 */ 12295 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){ 12296 return little_endian_read_16(event, 3); 12297 } 12298 /** 12299 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12300 * @param event packet 12301 * @return att_status 12302 * @note: btstack_type 1 12303 */ 12304 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){ 12305 return event[5]; 12306 } 12307 /** 12308 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 12309 * @param event packet 12310 * @return value 12311 * @note: btstack_type T 12312 */ 12313 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){ 12314 return (const char *) &event[6]; 12315 } 12316 12317 /** 12318 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12319 * @param event packet 12320 * @return con_handle 12321 * @note: btstack_type H 12322 */ 12323 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){ 12324 return little_endian_read_16(event, 3); 12325 } 12326 /** 12327 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12328 * @param event packet 12329 * @return att_status 12330 * @note: btstack_type 1 12331 */ 12332 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){ 12333 return event[5]; 12334 } 12335 /** 12336 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 12337 * @param event packet 12338 * @return value 12339 * @note: btstack_type T 12340 */ 12341 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){ 12342 return (const char *) &event[6]; 12343 } 12344 12345 /** 12346 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12347 * @param event packet 12348 * @return con_handle 12349 * @note: btstack_type H 12350 */ 12351 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){ 12352 return little_endian_read_16(event, 3); 12353 } 12354 /** 12355 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12356 * @param event packet 12357 * @return att_status 12358 * @note: btstack_type 1 12359 */ 12360 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){ 12361 return event[5]; 12362 } 12363 /** 12364 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 12365 * @param event packet 12366 * @return value 12367 * @note: btstack_type T 12368 */ 12369 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){ 12370 return (const char *) &event[6]; 12371 } 12372 12373 /** 12374 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12375 * @param event packet 12376 * @return con_handle 12377 * @note: btstack_type H 12378 */ 12379 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){ 12380 return little_endian_read_16(event, 3); 12381 } 12382 /** 12383 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12384 * @param event packet 12385 * @return att_status 12386 * @note: btstack_type 1 12387 */ 12388 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){ 12389 return event[5]; 12390 } 12391 /** 12392 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 12393 * @param event packet 12394 * @return value 12395 * @note: btstack_type T 12396 */ 12397 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){ 12398 return (const char *) &event[6]; 12399 } 12400 12401 /** 12402 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12403 * @param event packet 12404 * @return con_handle 12405 * @note: btstack_type H 12406 */ 12407 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){ 12408 return little_endian_read_16(event, 3); 12409 } 12410 /** 12411 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12412 * @param event packet 12413 * @return att_status 12414 * @note: btstack_type 1 12415 */ 12416 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){ 12417 return event[5]; 12418 } 12419 /** 12420 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 12421 * @param event packet 12422 * @return value 12423 * @note: btstack_type T 12424 */ 12425 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){ 12426 return (const char *) &event[6]; 12427 } 12428 12429 /** 12430 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12431 * @param event packet 12432 * @return con_handle 12433 * @note: btstack_type H 12434 */ 12435 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){ 12436 return little_endian_read_16(event, 3); 12437 } 12438 /** 12439 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12440 * @param event packet 12441 * @return att_status 12442 * @note: btstack_type 1 12443 */ 12444 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){ 12445 return event[5]; 12446 } 12447 /** 12448 * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12449 * @param event packet 12450 * @return manufacturer_id_low 12451 * @note: btstack_type 4 12452 */ 12453 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){ 12454 return little_endian_read_32(event, 6); 12455 } 12456 /** 12457 * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12458 * @param event packet 12459 * @return manufacturer_id_high 12460 * @note: btstack_type 1 12461 */ 12462 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){ 12463 return event[10]; 12464 } 12465 /** 12466 * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 12467 * @param event packet 12468 * @return organizationally_unique_id 12469 * @note: btstack_type 3 12470 */ 12471 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){ 12472 return little_endian_read_24(event, 11); 12473 } 12474 12475 /** 12476 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12477 * @param event packet 12478 * @return con_handle 12479 * @note: btstack_type H 12480 */ 12481 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){ 12482 return little_endian_read_16(event, 3); 12483 } 12484 /** 12485 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12486 * @param event packet 12487 * @return att_status 12488 * @note: btstack_type 1 12489 */ 12490 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){ 12491 return event[5]; 12492 } 12493 /** 12494 * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12495 * @param event packet 12496 * @return value_a 12497 * @note: btstack_type 2 12498 */ 12499 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){ 12500 return little_endian_read_16(event, 6); 12501 } 12502 /** 12503 * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 12504 * @param event packet 12505 * @return value_b 12506 * @note: btstack_type 2 12507 */ 12508 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){ 12509 return little_endian_read_16(event, 8); 12510 } 12511 12512 /** 12513 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12514 * @param event packet 12515 * @return con_handle 12516 * @note: btstack_type H 12517 */ 12518 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){ 12519 return little_endian_read_16(event, 3); 12520 } 12521 /** 12522 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12523 * @param event packet 12524 * @return att_status 12525 * @note: btstack_type 1 12526 */ 12527 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){ 12528 return event[5]; 12529 } 12530 /** 12531 * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12532 * @param event packet 12533 * @return vendor_source_id 12534 * @note: btstack_type 1 12535 */ 12536 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){ 12537 return event[6]; 12538 } 12539 /** 12540 * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12541 * @param event packet 12542 * @return vendor_id 12543 * @note: btstack_type 2 12544 */ 12545 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){ 12546 return little_endian_read_16(event, 7); 12547 } 12548 /** 12549 * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12550 * @param event packet 12551 * @return product_id 12552 * @note: btstack_type 2 12553 */ 12554 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){ 12555 return little_endian_read_16(event, 9); 12556 } 12557 /** 12558 * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 12559 * @param event packet 12560 * @return product_version 12561 * @note: btstack_type 2 12562 */ 12563 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){ 12564 return little_endian_read_16(event, 11); 12565 } 12566 12567 /** 12568 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 12569 * @param event packet 12570 * @return con_handle 12571 * @note: btstack_type H 12572 */ 12573 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){ 12574 return little_endian_read_16(event, 3); 12575 } 12576 /** 12577 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 12578 * @param event packet 12579 * @return att_status 12580 * @note: btstack_type 1 12581 */ 12582 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){ 12583 return event[5]; 12584 } 12585 12586 /** 12587 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED 12588 * @param event packet 12589 * @return con_handle 12590 * @note: btstack_type H 12591 */ 12592 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){ 12593 return little_endian_read_16(event, 3); 12594 } 12595 12596 /** 12597 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED 12598 * @param event packet 12599 * @return con_handle 12600 * @note: btstack_type H 12601 */ 12602 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){ 12603 return little_endian_read_16(event, 3); 12604 } 12605 12606 /** 12607 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12608 * @param event packet 12609 * @return hids_cid 12610 * @note: btstack_type 2 12611 */ 12612 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){ 12613 return little_endian_read_16(event, 3); 12614 } 12615 /** 12616 * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12617 * @param event packet 12618 * @return status 12619 * @note: btstack_type 1 12620 */ 12621 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){ 12622 return event[5]; 12623 } 12624 /** 12625 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12626 * @param event packet 12627 * @return protocol_mode 12628 * @note: btstack_type 1 12629 */ 12630 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){ 12631 return event[6]; 12632 } 12633 /** 12634 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 12635 * @param event packet 12636 * @return num_instances 12637 * @note: btstack_type 1 12638 */ 12639 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){ 12640 return event[7]; 12641 } 12642 12643 /** 12644 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT 12645 * @param event packet 12646 * @return hids_cid 12647 * @note: btstack_type 2 12648 */ 12649 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){ 12650 return little_endian_read_16(event, 3); 12651 } 12652 /** 12653 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT 12654 * @param event packet 12655 * @return service_index 12656 * @note: btstack_type 1 12657 */ 12658 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){ 12659 return event[5]; 12660 } 12661 /** 12662 * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT 12663 * @param event packet 12664 * @return report_id 12665 * @note: btstack_type 1 12666 */ 12667 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){ 12668 return event[6]; 12669 } 12670 /** 12671 * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT 12672 * @param event packet 12673 * @return report_len 12674 * @note: btstack_type L 12675 */ 12676 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){ 12677 return little_endian_read_16(event, 7); 12678 } 12679 /** 12680 * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT 12681 * @param event packet 12682 * @return report 12683 * @note: btstack_type V 12684 */ 12685 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){ 12686 return &event[9]; 12687 } 12688 12689 /** 12690 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12691 * @param event packet 12692 * @return hids_cid 12693 * @note: btstack_type 2 12694 */ 12695 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){ 12696 return little_endian_read_16(event, 3); 12697 } 12698 /** 12699 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12700 * @param event packet 12701 * @return service_index 12702 * @note: btstack_type 1 12703 */ 12704 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){ 12705 return event[5]; 12706 } 12707 /** 12708 * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12709 * @param event packet 12710 * @return base_usb_hid_version 12711 * @note: btstack_type 2 12712 */ 12713 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){ 12714 return little_endian_read_16(event, 6); 12715 } 12716 /** 12717 * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12718 * @param event packet 12719 * @return country_code 12720 * @note: btstack_type 1 12721 */ 12722 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){ 12723 return event[8]; 12724 } 12725 /** 12726 * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12727 * @param event packet 12728 * @return remote_wake 12729 * @note: btstack_type 1 12730 */ 12731 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){ 12732 return event[9]; 12733 } 12734 /** 12735 * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION 12736 * @param event packet 12737 * @return normally_connectable 12738 * @note: btstack_type 1 12739 */ 12740 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){ 12741 return event[10]; 12742 } 12743 12744 /** 12745 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12746 * @param event packet 12747 * @return hids_cid 12748 * @note: btstack_type 2 12749 */ 12750 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){ 12751 return little_endian_read_16(event, 3); 12752 } 12753 /** 12754 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12755 * @param event packet 12756 * @return service_index 12757 * @note: btstack_type 1 12758 */ 12759 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){ 12760 return event[5]; 12761 } 12762 /** 12763 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 12764 * @param event packet 12765 * @return protocol_mode 12766 * @note: btstack_type 1 12767 */ 12768 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){ 12769 return event[6]; 12770 } 12771 12772 /** 12773 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 12774 * @param event packet 12775 * @return hids_cid 12776 * @note: btstack_type 2 12777 */ 12778 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){ 12779 return little_endian_read_16(event, 3); 12780 } 12781 /** 12782 * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 12783 * @param event packet 12784 * @return configuration 12785 * @note: btstack_type 1 12786 */ 12787 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 12788 return event[5]; 12789 } 12790 12791 /** 12792 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12793 * @param event packet 12794 * @return con_handle 12795 * @note: btstack_type H 12796 */ 12797 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){ 12798 return little_endian_read_16(event, 3); 12799 } 12800 /** 12801 * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12802 * @param event packet 12803 * @return max_scan_interval 12804 * @note: btstack_type 2 12805 */ 12806 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){ 12807 return little_endian_read_16(event, 5); 12808 } 12809 /** 12810 * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 12811 * @param event packet 12812 * @return min_scan_window 12813 * @note: btstack_type 2 12814 */ 12815 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){ 12816 return little_endian_read_16(event, 7); 12817 } 12818 12819 /** 12820 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SCAN_STOPPED 12821 * @param event packet 12822 * @return con_handle 12823 * @note: btstack_type H 12824 */ 12825 static inline hci_con_handle_t gattservice_subevent_bass_server_scan_stopped_get_con_handle(const uint8_t * event){ 12826 return little_endian_read_16(event, 3); 12827 } 12828 12829 /** 12830 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SCAN_STARTED 12831 * @param event packet 12832 * @return con_handle 12833 * @note: btstack_type H 12834 */ 12835 static inline hci_con_handle_t gattservice_subevent_bass_server_scan_started_get_con_handle(const uint8_t * event){ 12836 return little_endian_read_16(event, 3); 12837 } 12838 12839 /** 12840 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_BROADCAST_CODE 12841 * @param event packet 12842 * @return con_handle 12843 * @note: btstack_type H 12844 */ 12845 static inline hci_con_handle_t gattservice_subevent_bass_server_broadcast_code_get_con_handle(const uint8_t * event){ 12846 return little_endian_read_16(event, 3); 12847 } 12848 /** 12849 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_BROADCAST_CODE 12850 * @param event packet 12851 * @return source_id 12852 * @note: btstack_type 1 12853 */ 12854 static inline uint8_t gattservice_subevent_bass_server_broadcast_code_get_source_id(const uint8_t * event){ 12855 return event[5]; 12856 } 12857 /** 12858 * @brief Get field broadcast_code from event GATTSERVICE_SUBEVENT_BASS_SERVER_BROADCAST_CODE 12859 * @param event packet 12860 * @param Pointer to storage for broadcast_code 12861 * @note: btstack_type K 12862 */ 12863 static inline void gattservice_subevent_bass_server_broadcast_code_get_broadcast_code(const uint8_t * event, uint8_t * broadcast_code){ 12864 reverse_bytes(&event[6], broadcast_code, 16); 12865 } 12866 12867 /** 12868 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_ADDED 12869 * @param event packet 12870 * @return con_handle 12871 * @note: btstack_type H 12872 */ 12873 static inline hci_con_handle_t gattservice_subevent_bass_server_source_added_get_con_handle(const uint8_t * event){ 12874 return little_endian_read_16(event, 3); 12875 } 12876 /** 12877 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_ADDED 12878 * @param event packet 12879 * @return source_id 12880 * @note: btstack_type 1 12881 */ 12882 static inline uint8_t gattservice_subevent_bass_server_source_added_get_source_id(const uint8_t * event){ 12883 return event[5]; 12884 } 12885 /** 12886 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_ADDED 12887 * @param event packet 12888 * @return pa_sync 12889 * @note: btstack_type 1 12890 */ 12891 static inline uint8_t gattservice_subevent_bass_server_source_added_get_pa_sync(const uint8_t * event){ 12892 return event[6]; 12893 } 12894 12895 /** 12896 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 12897 * @param event packet 12898 * @return con_handle 12899 * @note: btstack_type H 12900 */ 12901 static inline hci_con_handle_t gattservice_subevent_bass_server_source_modified_get_con_handle(const uint8_t * event){ 12902 return little_endian_read_16(event, 3); 12903 } 12904 /** 12905 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 12906 * @param event packet 12907 * @return source_id 12908 * @note: btstack_type 1 12909 */ 12910 static inline uint8_t gattservice_subevent_bass_server_source_modified_get_source_id(const uint8_t * event){ 12911 return event[5]; 12912 } 12913 /** 12914 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 12915 * @param event packet 12916 * @return pa_sync 12917 * @note: btstack_type 1 12918 */ 12919 static inline uint8_t gattservice_subevent_bass_server_source_modified_get_pa_sync(const uint8_t * event){ 12920 return event[6]; 12921 } 12922 12923 /** 12924 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_DELETED 12925 * @param event packet 12926 * @return con_handle 12927 * @note: btstack_type H 12928 */ 12929 static inline hci_con_handle_t gattservice_subevent_bass_server_source_deleted_get_con_handle(const uint8_t * event){ 12930 return little_endian_read_16(event, 3); 12931 } 12932 /** 12933 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_DELETED 12934 * @param event packet 12935 * @return source_id 12936 * @note: btstack_type 1 12937 */ 12938 static inline uint8_t gattservice_subevent_bass_server_source_deleted_get_source_id(const uint8_t * event){ 12939 return event[5]; 12940 } 12941 /** 12942 * @brief Get field pa_sync from event GATTSERVICE_SUBEVENT_BASS_SERVER_SOURCE_DELETED 12943 * @param event packet 12944 * @return pa_sync 12945 * @note: btstack_type 1 12946 */ 12947 static inline uint8_t gattservice_subevent_bass_server_source_deleted_get_pa_sync(const uint8_t * event){ 12948 return event[6]; 12949 } 12950 12951 /** 12952 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_CLIENT_CONNECTED 12953 * @param event packet 12954 * @return con_handle 12955 * @note: btstack_type H 12956 */ 12957 static inline hci_con_handle_t gattservice_subevent_bass_client_connected_get_con_handle(const uint8_t * event){ 12958 return little_endian_read_16(event, 3); 12959 } 12960 /** 12961 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_CONNECTED 12962 * @param event packet 12963 * @return bass_cid 12964 * @note: btstack_type 2 12965 */ 12966 static inline uint16_t gattservice_subevent_bass_client_connected_get_bass_cid(const uint8_t * event){ 12967 return little_endian_read_16(event, 5); 12968 } 12969 /** 12970 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CLIENT_CONNECTED 12971 * @param event packet 12972 * @return status 12973 * @note: btstack_type 1 12974 */ 12975 static inline uint8_t gattservice_subevent_bass_client_connected_get_status(const uint8_t * event){ 12976 return event[7]; 12977 } 12978 12979 /** 12980 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_DISCONNECTED 12981 * @param event packet 12982 * @return bass_cid 12983 * @note: btstack_type 2 12984 */ 12985 static inline uint16_t gattservice_subevent_bass_client_disconnected_get_bass_cid(const uint8_t * event){ 12986 return little_endian_read_16(event, 3); 12987 } 12988 12989 /** 12990 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 12991 * @param event packet 12992 * @return bass_cid 12993 * @note: btstack_type 2 12994 */ 12995 static inline uint16_t gattservice_subevent_bass_client_scan_operation_complete_get_bass_cid(const uint8_t * event){ 12996 return little_endian_read_16(event, 3); 12997 } 12998 /** 12999 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 13000 * @param event packet 13001 * @return status 13002 * @note: btstack_type 1 13003 */ 13004 static inline uint8_t gattservice_subevent_bass_client_scan_operation_complete_get_status(const uint8_t * event){ 13005 return event[5]; 13006 } 13007 /** 13008 * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 13009 * @param event packet 13010 * @return opcode 13011 * @note: btstack_type 1 13012 */ 13013 static inline uint8_t gattservice_subevent_bass_client_scan_operation_complete_get_opcode(const uint8_t * event){ 13014 return event[6]; 13015 } 13016 13017 /** 13018 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13019 * @param event packet 13020 * @return bass_cid 13021 * @note: btstack_type 2 13022 */ 13023 // static inline uint16_t gattservice_subevent_bass_notify_receive_state_base_get_bass_cid(const uint8_t * event){ 13024 // not implemented yet 13025 // } 13026 /** 13027 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13028 * @param event packet 13029 * @return source_id 13030 * @note: btstack_type 1 13031 */ 13032 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_id(const uint8_t * event){ 13033 // not implemented yet 13034 // } 13035 /** 13036 * @brief Get field source_address_type from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13037 * @param event packet 13038 * @return source_address_type 13039 * @note: btstack_type 1 13040 */ 13041 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_address_type(const uint8_t * event){ 13042 // not implemented yet 13043 // } 13044 /** 13045 * @brief Get field source_address from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13046 * @param event packet 13047 * @return source_address 13048 * @note: btstack_type B 13049 */ 13050 // static inline bd_addr_t gattservice_subevent_bass_notify_receive_state_base_get_source_address(const uint8_t * event){ 13051 // not implemented yet 13052 // } 13053 /** 13054 * @brief Get field source_adv_sid from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13055 * @param event packet 13056 * @return source_adv_sid 13057 * @note: btstack_type 1 13058 */ 13059 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_source_adv_sid(const uint8_t * event){ 13060 // not implemented yet 13061 // } 13062 /** 13063 * @brief Get field broadcast_id from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13064 * @param event packet 13065 * @return broadcast_id 13066 * @note: btstack_type 3 13067 */ 13068 // static inline uint32_t gattservice_subevent_bass_notify_receive_state_base_get_broadcast_id(const uint8_t * event){ 13069 // not implemented yet 13070 // } 13071 /** 13072 * @brief Get field pa_sync_state from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13073 * @param event packet 13074 * @return pa_sync_state 13075 * @note: btstack_type 1 13076 */ 13077 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_pa_sync_state(const uint8_t * event){ 13078 // not implemented yet 13079 // } 13080 /** 13081 * @brief Get field big_encryption from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13082 * @param event packet 13083 * @return big_encryption 13084 * @note: btstack_type 1 13085 */ 13086 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_big_encryption(const uint8_t * event){ 13087 // not implemented yet 13088 // } 13089 /** 13090 * @brief Get field bad_code from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13091 * @param event packet 13092 * @return bad_code 13093 * @note: btstack_type P 13094 */ 13095 // static inline const uint8_t * gattservice_subevent_bass_notify_receive_state_base_get_bad_code(const uint8_t * event){ 13096 // not implemented yet 13097 // } 13098 /** 13099 * @brief Get field subgroups_num from event GATTSERVICE_SUBEVENT_BASS_NOTIFY_RECEIVE_STATE_BASE 13100 * @param event packet 13101 * @return subgroups_num 13102 * @note: btstack_type 1 13103 */ 13104 // static inline uint8_t gattservice_subevent_bass_notify_receive_state_base_get_subgroups_num(const uint8_t * event){ 13105 // not implemented yet 13106 // } 13107 13108 /** 13109 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13110 * @param event packet 13111 * @return bass_cid 13112 * @note: btstack_type 2 13113 */ 13114 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_bass_cid(const uint8_t * event){ 13115 return little_endian_read_16(event, 3); 13116 } 13117 /** 13118 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13119 * @param event packet 13120 * @return source_id 13121 * @note: btstack_type 1 13122 */ 13123 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_source_id(const uint8_t * event){ 13124 return event[5]; 13125 } 13126 /** 13127 * @brief Get field bis_sync_state from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13128 * @param event packet 13129 * @return bis_sync_state 13130 * @note: btstack_type 4 13131 */ 13132 static inline uint32_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_bis_sync_state(const uint8_t * event){ 13133 return little_endian_read_32(event, 6); 13134 } 13135 /** 13136 * @brief Get field metadata_mask from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13137 * @param event packet 13138 * @return metadata_mask 13139 * @note: btstack_type 1 13140 */ 13141 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_metadata_mask(const uint8_t * event){ 13142 return event[10]; 13143 } 13144 /** 13145 * @brief Get field preferred_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13146 * @param event packet 13147 * @return preferred_audio_contexts_mask 13148 * @note: btstack_type 2 13149 */ 13150 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_preferred_audio_contexts_mask(const uint8_t * event){ 13151 return little_endian_read_16(event, 11); 13152 } 13153 /** 13154 * @brief Get field streaming_audio_contexts_mask from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13155 * @param event packet 13156 * @return streaming_audio_contexts_mask 13157 * @note: btstack_type 2 13158 */ 13159 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_streaming_audio_contexts_mask(const uint8_t * event){ 13160 return little_endian_read_16(event, 13); 13161 } 13162 /** 13163 * @brief Get field program_info_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13164 * @param event packet 13165 * @return program_info_length 13166 * @note: btstack_type J 13167 */ 13168 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info_length(const uint8_t * event){ 13169 return event[15]; 13170 } 13171 /** 13172 * @brief Get field program_info from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13173 * @param event packet 13174 * @return program_info 13175 * @note: btstack_type V 13176 */ 13177 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info(const uint8_t * event){ 13178 return &event[16]; 13179 } 13180 /** 13181 * @brief Get field language_code from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13182 * @param event packet 13183 * @return language_code 13184 * @note: btstack_type 3 13185 */ 13186 static inline uint32_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_language_code(const uint8_t * event){ 13187 return little_endian_read_24(event, 16u + event[15]); 13188 } 13189 /** 13190 * @brief Get field ccids_num from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13191 * @param event packet 13192 * @return ccids_num 13193 * @note: btstack_type J 13194 */ 13195 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_ccids_num(const uint8_t * event){ 13196 return event[16u + event[15] + 3u]; 13197 } 13198 /** 13199 * @brief Get field ccids from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13200 * @param event packet 13201 * @return ccids 13202 * @note: btstack_type V 13203 */ 13204 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_ccids(const uint8_t * event){ 13205 return &event[16u + event[15] + 3u + 1u]; 13206 } 13207 /** 13208 * @brief Get field parental_rating from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13209 * @param event packet 13210 * @return parental_rating 13211 * @note: btstack_type 1 13212 */ 13213 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_parental_rating(const uint8_t * event){ 13214 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u]]; 13215 } 13216 /** 13217 * @brief Get field program_info_uri_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13218 * @param event packet 13219 * @return program_info_uri_length 13220 * @note: btstack_type J 13221 */ 13222 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri_length(const uint8_t * event){ 13223 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]; 13224 } 13225 /** 13226 * @brief Get field program_info_uri from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13227 * @param event packet 13228 * @return program_info_uri 13229 * @note: btstack_type V 13230 */ 13231 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri(const uint8_t * event){ 13232 return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u]; 13233 } 13234 /** 13235 * @brief Get field extended_metadata_type from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13236 * @param event packet 13237 * @return extended_metadata_type 13238 * @note: btstack_type 2 13239 */ 13240 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_type(const uint8_t * event){ 13241 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]); 13242 } 13243 /** 13244 * @brief Get field extended_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13245 * @param event packet 13246 * @return extended_metadata_value_length 13247 * @note: btstack_type J 13248 */ 13249 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value_length(const uint8_t * event){ 13250 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]; 13251 } 13252 /** 13253 * @brief Get field extended_metadata_value from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13254 * @param event packet 13255 * @return extended_metadata_value 13256 * @note: btstack_type V 13257 */ 13258 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value(const uint8_t * event){ 13259 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]; 13260 } 13261 /** 13262 * @brief Get field vendor_specific_metadata_type from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13263 * @param event packet 13264 * @return vendor_specific_metadata_type 13265 * @note: btstack_type 2 13266 */ 13267 static inline uint16_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_type(const uint8_t * event){ 13268 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]); 13269 } 13270 /** 13271 * @brief Get field vendor_specific_metadata_value_length from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13272 * @param event packet 13273 * @return vendor_specific_metadata_value_length 13274 * @note: btstack_type J 13275 */ 13276 static inline uint8_t gattservice_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value_length(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 + 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]; 13278 } 13279 /** 13280 * @brief Get field vendor_specific_metadata_value from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 13281 * @param event packet 13282 * @return vendor_specific_metadata_value 13283 * @note: btstack_type V 13284 */ 13285 static inline const uint8_t * gattservice_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value(const uint8_t * event){ 13286 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]; 13287 } 13288 13289 /** 13290 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE 13291 * @param event packet 13292 * @return bass_cid 13293 * @note: btstack_type 2 13294 */ 13295 static inline uint16_t gattservice_subevent_bass_client_notification_complete_get_bass_cid(const uint8_t * event){ 13296 return little_endian_read_16(event, 3); 13297 } 13298 /** 13299 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE 13300 * @param event packet 13301 * @return source_id 13302 * @note: btstack_type 1 13303 */ 13304 static inline uint8_t gattservice_subevent_bass_client_notification_complete_get_source_id(const uint8_t * event){ 13305 return event[5]; 13306 } 13307 13308 /** 13309 * @brief Get field bass_cid from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13310 * @param event packet 13311 * @return bass_cid 13312 * @note: btstack_type 2 13313 */ 13314 static inline uint16_t gattservice_subevent_bass_client_source_operation_complete_get_bass_cid(const uint8_t * event){ 13315 return little_endian_read_16(event, 3); 13316 } 13317 /** 13318 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13319 * @param event packet 13320 * @return status 13321 * @note: btstack_type 1 13322 */ 13323 static inline uint8_t gattservice_subevent_bass_client_source_operation_complete_get_status(const uint8_t * event){ 13324 return event[5]; 13325 } 13326 /** 13327 * @brief Get field opcode from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13328 * @param event packet 13329 * @return opcode 13330 * @note: btstack_type 1 13331 */ 13332 static inline uint8_t gattservice_subevent_bass_client_source_operation_complete_get_opcode(const uint8_t * event){ 13333 return event[6]; 13334 } 13335 /** 13336 * @brief Get field source_id from event GATTSERVICE_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 13337 * @param event packet 13338 * @return source_id 13339 * @note: btstack_type 1 13340 */ 13341 static inline uint8_t gattservice_subevent_bass_client_source_operation_complete_get_source_id(const uint8_t * event){ 13342 return event[7]; 13343 } 13344 13345 /** 13346 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_CONNECTED 13347 * @param event packet 13348 * @return con_handle 13349 * @note: btstack_type H 13350 */ 13351 static inline hci_con_handle_t gattservice_subevent_bass_server_connected_get_con_handle(const uint8_t * event){ 13352 return little_endian_read_16(event, 3); 13353 } 13354 /** 13355 * @brief Get field status from event GATTSERVICE_SUBEVENT_BASS_SERVER_CONNECTED 13356 * @param event packet 13357 * @return status 13358 * @note: btstack_type 1 13359 */ 13360 static inline uint8_t gattservice_subevent_bass_server_connected_get_status(const uint8_t * event){ 13361 return event[5]; 13362 } 13363 13364 /** 13365 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_BASS_SERVER_DISCONNECTED 13366 * @param event packet 13367 * @return con_handle 13368 * @note: btstack_type H 13369 */ 13370 static inline hci_con_handle_t gattservice_subevent_bass_server_disconnected_get_con_handle(const uint8_t * event){ 13371 return little_endian_read_16(event, 3); 13372 } 13373 13374 13375 /** 13376 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT 13377 * @param event packet 13378 * @return status 13379 * @note: btstack_type 1 13380 */ 13381 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){ 13382 return event[3]; 13383 } 13384 13385 /** 13386 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 13387 * @param event packet 13388 * @return status 13389 * @note: btstack_type 1 13390 */ 13391 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){ 13392 return event[3]; 13393 } 13394 /** 13395 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 13396 * @param event packet 13397 * @return pb_transport_cid 13398 * @note: btstack_type 2 13399 */ 13400 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){ 13401 return little_endian_read_16(event, 4); 13402 } 13403 /** 13404 * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 13405 * @param event packet 13406 * @return pb_type 13407 * @note: btstack_type 1 13408 */ 13409 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){ 13410 return event[6]; 13411 } 13412 13413 /** 13414 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 13415 * @param event packet 13416 * @return pb_transport_cid 13417 * @note: btstack_type 1 13418 */ 13419 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){ 13420 return event[3]; 13421 } 13422 /** 13423 * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 13424 * @param event packet 13425 * @return reason 13426 * @note: btstack_type 2 13427 */ 13428 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){ 13429 return little_endian_read_16(event, 4); 13430 } 13431 13432 /** 13433 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 13434 * @param event packet 13435 * @return pb_transport_cid 13436 * @note: btstack_type 2 13437 */ 13438 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){ 13439 return little_endian_read_16(event, 3); 13440 } 13441 /** 13442 * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 13443 * @param event packet 13444 * @return attention_time 13445 * @note: btstack_type 1 13446 */ 13447 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){ 13448 return event[5]; 13449 } 13450 13451 /** 13452 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB 13453 * @param event packet 13454 * @return pb_transport_cid 13455 * @note: btstack_type 2 13456 */ 13457 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13458 return little_endian_read_16(event, 3); 13459 } 13460 13461 /** 13462 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB 13463 * @param event packet 13464 * @return pb_transport_cid 13465 * @note: btstack_type 2 13466 */ 13467 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13468 return little_endian_read_16(event, 3); 13469 } 13470 13471 /** 13472 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST 13473 * @param event packet 13474 * @return pb_transport_cid 13475 * @note: btstack_type 2 13476 */ 13477 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){ 13478 return little_endian_read_16(event, 3); 13479 } 13480 13481 /** 13482 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 13483 * @param event packet 13484 * @return pb_transport_cid 13485 * @note: btstack_type 2 13486 */ 13487 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 13488 return little_endian_read_16(event, 3); 13489 } 13490 /** 13491 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 13492 * @param event packet 13493 * @return output_oob 13494 * @note: btstack_type 4 13495 */ 13496 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){ 13497 return little_endian_read_32(event, 5); 13498 } 13499 13500 /** 13501 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB 13502 * @param event packet 13503 * @return pb_transport_cid 13504 * @note: btstack_type 2 13505 */ 13506 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 13507 return little_endian_read_16(event, 3); 13508 } 13509 13510 /** 13511 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB 13512 * @param event packet 13513 * @return pb_transport_cid 13514 * @note: btstack_type 2 13515 */ 13516 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13517 return little_endian_read_16(event, 3); 13518 } 13519 13520 /** 13521 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB 13522 * @param event packet 13523 * @return pb_transport_cid 13524 * @note: btstack_type 2 13525 */ 13526 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 13527 return little_endian_read_16(event, 3); 13528 } 13529 13530 /** 13531 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST 13532 * @param event packet 13533 * @return pb_transport_cid 13534 * @note: btstack_type 2 13535 */ 13536 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){ 13537 return little_endian_read_16(event, 3); 13538 } 13539 13540 /** 13541 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 13542 * @param event packet 13543 * @return pb_transport_cid 13544 * @note: btstack_type 2 13545 */ 13546 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 13547 return little_endian_read_16(event, 3); 13548 } 13549 /** 13550 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 13551 * @param event packet 13552 * @return output_oob 13553 * @note: btstack_type 4 13554 */ 13555 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){ 13556 return little_endian_read_32(event, 5); 13557 } 13558 13559 /** 13560 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB 13561 * @param event packet 13562 * @return pb_transport_cid 13563 * @note: btstack_type 2 13564 */ 13565 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 13566 return little_endian_read_16(event, 3); 13567 } 13568 13569 /** 13570 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13571 * @param event packet 13572 * @return pb_transport_cid 13573 * @note: btstack_type 2 13574 */ 13575 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){ 13576 return little_endian_read_16(event, 3); 13577 } 13578 /** 13579 * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13580 * @param event packet 13581 * @return num_elements 13582 * @note: btstack_type 1 13583 */ 13584 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){ 13585 return event[5]; 13586 } 13587 /** 13588 * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13589 * @param event packet 13590 * @return algorithms 13591 * @note: btstack_type 2 13592 */ 13593 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){ 13594 return little_endian_read_16(event, 6); 13595 } 13596 /** 13597 * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13598 * @param event packet 13599 * @return public_key 13600 * @note: btstack_type 1 13601 */ 13602 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){ 13603 return event[8]; 13604 } 13605 /** 13606 * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13607 * @param event packet 13608 * @return static_oob_type 13609 * @note: btstack_type 1 13610 */ 13611 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){ 13612 return event[9]; 13613 } 13614 /** 13615 * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13616 * @param event packet 13617 * @return output_oob_size 13618 * @note: btstack_type 1 13619 */ 13620 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){ 13621 return event[10]; 13622 } 13623 /** 13624 * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13625 * @param event packet 13626 * @return output_oob_action 13627 * @note: btstack_type 2 13628 */ 13629 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){ 13630 return little_endian_read_16(event, 11); 13631 } 13632 /** 13633 * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13634 * @param event packet 13635 * @return input_oob_size 13636 * @note: btstack_type 1 13637 */ 13638 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){ 13639 return event[13]; 13640 } 13641 /** 13642 * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 13643 * @param event packet 13644 * @return input_oob_action 13645 * @note: btstack_type 2 13646 */ 13647 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){ 13648 return little_endian_read_16(event, 14); 13649 } 13650 13651 /** 13652 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE 13653 * @param event packet 13654 * @return pb_transport_cid 13655 * @note: btstack_type 2 13656 */ 13657 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){ 13658 return little_endian_read_16(event, 3); 13659 } 13660 13661 /** 13662 * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER 13663 * @param event packet 13664 * @return attention_time 13665 * @note: btstack_type 1 13666 */ 13667 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 13668 return event[3]; 13669 } 13670 13671 /** 13672 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 13673 * @param event packet 13674 * @return con_handle 13675 * @note: btstack_type H 13676 */ 13677 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ 13678 return little_endian_read_16(event, 3); 13679 } 13680 13681 /** 13682 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 13683 * @param event packet 13684 * @return con_handle 13685 * @note: btstack_type H 13686 */ 13687 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){ 13688 return little_endian_read_16(event, 3); 13689 } 13690 13691 /** 13692 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED 13693 * @param event packet 13694 * @return con_handle 13695 * @note: btstack_type H 13696 */ 13697 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){ 13698 return little_endian_read_16(event, 3); 13699 } 13700 13701 /** 13702 * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT 13703 * @param event packet 13704 * @return con_handle 13705 * @note: btstack_type H 13706 */ 13707 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){ 13708 return little_endian_read_16(event, 3); 13709 } 13710 13711 /** 13712 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13713 * @param event packet 13714 * @return element_index 13715 * @note: btstack_type 1 13716 */ 13717 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){ 13718 return event[3]; 13719 } 13720 /** 13721 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13722 * @param event packet 13723 * @return model_identifier 13724 * @note: btstack_type 4 13725 */ 13726 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){ 13727 return little_endian_read_32(event, 4); 13728 } 13729 /** 13730 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13731 * @param event packet 13732 * @return state_identifier 13733 * @note: btstack_type 4 13734 */ 13735 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){ 13736 return little_endian_read_32(event, 8); 13737 } 13738 /** 13739 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13740 * @param event packet 13741 * @return reason 13742 * @note: btstack_type 1 13743 */ 13744 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){ 13745 return event[12]; 13746 } 13747 /** 13748 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL 13749 * @param event packet 13750 * @return value 13751 * @note: btstack_type 1 13752 */ 13753 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){ 13754 return event[13]; 13755 } 13756 13757 /** 13758 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16 13759 * @param event packet 13760 * @return element_index 13761 * @note: btstack_type 1 13762 */ 13763 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){ 13764 return event[3]; 13765 } 13766 /** 13767 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 13768 * @param event packet 13769 * @return model_identifier 13770 * @note: btstack_type 4 13771 */ 13772 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){ 13773 return little_endian_read_32(event, 4); 13774 } 13775 /** 13776 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 13777 * @param event packet 13778 * @return state_identifier 13779 * @note: btstack_type 4 13780 */ 13781 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){ 13782 return little_endian_read_32(event, 8); 13783 } 13784 /** 13785 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16 13786 * @param event packet 13787 * @return reason 13788 * @note: btstack_type 1 13789 */ 13790 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){ 13791 return event[12]; 13792 } 13793 /** 13794 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16 13795 * @param event packet 13796 * @return value 13797 * @note: btstack_type 2 13798 */ 13799 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){ 13800 return little_endian_read_16(event, 13); 13801 } 13802 13803 /** 13804 * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13805 * @param event packet 13806 * @return element_index 13807 * @note: btstack_type 1 13808 */ 13809 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){ 13810 return event[3]; 13811 } 13812 /** 13813 * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13814 * @param event packet 13815 * @return model_identifier 13816 * @note: btstack_type 4 13817 */ 13818 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){ 13819 return little_endian_read_32(event, 4); 13820 } 13821 /** 13822 * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13823 * @param event packet 13824 * @return opcode 13825 * @note: btstack_type 4 13826 */ 13827 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){ 13828 return little_endian_read_32(event, 8); 13829 } 13830 /** 13831 * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 13832 * @param event packet 13833 * @return dest 13834 * @note: btstack_type 2 13835 */ 13836 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){ 13837 return little_endian_read_16(event, 12); 13838 } 13839 13840 /** 13841 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF 13842 * @param event packet 13843 * @return dest 13844 * @note: btstack_type 2 13845 */ 13846 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){ 13847 return little_endian_read_16(event, 3); 13848 } 13849 /** 13850 * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF 13851 * @param event packet 13852 * @return status 13853 * @note: btstack_type 1 13854 */ 13855 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){ 13856 return event[5]; 13857 } 13858 /** 13859 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF 13860 * @param event packet 13861 * @return present_value 13862 * @note: btstack_type 1 13863 */ 13864 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){ 13865 return event[6]; 13866 } 13867 /** 13868 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF 13869 * @param event packet 13870 * @return target_value 13871 * @note: btstack_type 1 13872 */ 13873 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){ 13874 return event[7]; 13875 } 13876 /** 13877 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF 13878 * @param event packet 13879 * @return remaining_time_ms 13880 * @note: btstack_type 4 13881 */ 13882 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){ 13883 return little_endian_read_32(event, 8); 13884 } 13885 13886 /** 13887 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL 13888 * @param event packet 13889 * @return dest 13890 * @note: btstack_type 2 13891 */ 13892 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){ 13893 return little_endian_read_16(event, 3); 13894 } 13895 /** 13896 * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL 13897 * @param event packet 13898 * @return status 13899 * @note: btstack_type 1 13900 */ 13901 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){ 13902 return event[5]; 13903 } 13904 /** 13905 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL 13906 * @param event packet 13907 * @return present_value 13908 * @note: btstack_type 2 13909 */ 13910 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){ 13911 return little_endian_read_16(event, 6); 13912 } 13913 /** 13914 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL 13915 * @param event packet 13916 * @return target_value 13917 * @note: btstack_type 2 13918 */ 13919 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){ 13920 return little_endian_read_16(event, 8); 13921 } 13922 /** 13923 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL 13924 * @param event packet 13925 * @return remaining_time_ms 13926 * @note: btstack_type 4 13927 */ 13928 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){ 13929 return little_endian_read_32(event, 10); 13930 } 13931 13932 /** 13933 * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13934 * @param event packet 13935 * @return dest 13936 * @note: btstack_type 2 13937 */ 13938 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){ 13939 return little_endian_read_16(event, 3); 13940 } 13941 /** 13942 * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13943 * @param event packet 13944 * @return netkey_index 13945 * @note: btstack_type 2 13946 */ 13947 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){ 13948 return little_endian_read_16(event, 5); 13949 } 13950 /** 13951 * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13952 * @param event packet 13953 * @return appkey_index 13954 * @note: btstack_type 2 13955 */ 13956 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){ 13957 return little_endian_read_16(event, 7); 13958 } 13959 /** 13960 * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13961 * @param event packet 13962 * @return company_id 13963 * @note: btstack_type 2 13964 */ 13965 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){ 13966 return little_endian_read_16(event, 9); 13967 } 13968 /** 13969 * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13970 * @param event packet 13971 * @return test_id 13972 * @note: btstack_type 1 13973 */ 13974 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){ 13975 return event[11]; 13976 } 13977 /** 13978 * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 13979 * @param event packet 13980 * @return acknowledged 13981 * @note: btstack_type 1 13982 */ 13983 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){ 13984 return event[12]; 13985 } 13986 13987 /** 13988 * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED 13989 * @param event packet 13990 * @return element_index 13991 * @note: btstack_type 1 13992 */ 13993 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){ 13994 return event[3]; 13995 } 13996 13997 /** 13998 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 13999 * @param event packet 14000 * @return dest 14001 * @note: btstack_type 2 14002 */ 14003 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){ 14004 return little_endian_read_16(event, 3); 14005 } 14006 /** 14007 * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 14008 * @param event packet 14009 * @return status 14010 * @note: btstack_type 1 14011 */ 14012 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){ 14013 return event[5]; 14014 } 14015 /** 14016 * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 14017 * @param event packet 14018 * @return transition_time_gdtt 14019 * @note: btstack_type 1 14020 */ 14021 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){ 14022 return event[6]; 14023 } 14024 14025 /** 14026 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON 14027 * @param event packet 14028 * @return dest 14029 * @note: btstack_type 2 14030 */ 14031 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){ 14032 return little_endian_read_16(event, 3); 14033 } 14034 /** 14035 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON 14036 * @param event packet 14037 * @return foundation_status 14038 * @note: btstack_type 1 14039 */ 14040 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){ 14041 return event[5]; 14042 } 14043 /** 14044 * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON 14045 * @param event packet 14046 * @return secure_network_beacon_state 14047 * @note: btstack_type 1 14048 */ 14049 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){ 14050 return event[6]; 14051 } 14052 14053 /** 14054 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 14055 * @param event packet 14056 * @return dest 14057 * @note: btstack_type 2 14058 */ 14059 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){ 14060 return little_endian_read_16(event, 3); 14061 } 14062 /** 14063 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 14064 * @param event packet 14065 * @return foundation_status 14066 * @note: btstack_type 1 14067 */ 14068 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){ 14069 return event[5]; 14070 } 14071 /** 14072 * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 14073 * @param event packet 14074 * @return default_ttl 14075 * @note: btstack_type 1 14076 */ 14077 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){ 14078 return event[6]; 14079 } 14080 14081 /** 14082 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 14083 * @param event packet 14084 * @return dest 14085 * @note: btstack_type 2 14086 */ 14087 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){ 14088 return little_endian_read_16(event, 3); 14089 } 14090 /** 14091 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 14092 * @param event packet 14093 * @return foundation_status 14094 * @note: btstack_type 1 14095 */ 14096 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){ 14097 return event[5]; 14098 } 14099 /** 14100 * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 14101 * @param event packet 14102 * @return gatt_proxy_state 14103 * @note: btstack_type 1 14104 */ 14105 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){ 14106 return event[6]; 14107 } 14108 14109 /** 14110 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY 14111 * @param event packet 14112 * @return dest 14113 * @note: btstack_type 2 14114 */ 14115 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){ 14116 return little_endian_read_16(event, 3); 14117 } 14118 /** 14119 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY 14120 * @param event packet 14121 * @return foundation_status 14122 * @note: btstack_type 1 14123 */ 14124 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){ 14125 return event[5]; 14126 } 14127 /** 14128 * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY 14129 * @param event packet 14130 * @return relay 14131 * @note: btstack_type 1 14132 */ 14133 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){ 14134 return event[6]; 14135 } 14136 /** 14137 * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY 14138 * @param event packet 14139 * @return retransmit_count 14140 * @note: btstack_type 1 14141 */ 14142 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){ 14143 return event[7]; 14144 } 14145 /** 14146 * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY 14147 * @param event packet 14148 * @return retransmit_interval_ms 14149 * @note: btstack_type 1 14150 */ 14151 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){ 14152 return event[8]; 14153 } 14154 14155 /** 14156 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14157 * @param event packet 14158 * @return dest 14159 * @note: btstack_type 2 14160 */ 14161 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){ 14162 return little_endian_read_16(event, 3); 14163 } 14164 /** 14165 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14166 * @param event packet 14167 * @return foundation_status 14168 * @note: btstack_type 1 14169 */ 14170 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){ 14171 return event[5]; 14172 } 14173 /** 14174 * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14175 * @param event packet 14176 * @return publish_address 14177 * @note: btstack_type 2 14178 */ 14179 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){ 14180 return little_endian_read_16(event, 6); 14181 } 14182 /** 14183 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14184 * @param event packet 14185 * @return appkey_index 14186 * @note: btstack_type 2 14187 */ 14188 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){ 14189 return little_endian_read_16(event, 8); 14190 } 14191 /** 14192 * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14193 * @param event packet 14194 * @return credential_flag 14195 * @note: btstack_type 1 14196 */ 14197 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){ 14198 return event[10]; 14199 } 14200 /** 14201 * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14202 * @param event packet 14203 * @return publish_ttl 14204 * @note: btstack_type 1 14205 */ 14206 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){ 14207 return event[11]; 14208 } 14209 /** 14210 * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14211 * @param event packet 14212 * @return publish_period 14213 * @note: btstack_type 1 14214 */ 14215 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){ 14216 return event[12]; 14217 } 14218 /** 14219 * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14220 * @param event packet 14221 * @return publish_retransmit_count 14222 * @note: btstack_type 1 14223 */ 14224 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){ 14225 return event[13]; 14226 } 14227 /** 14228 * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14229 * @param event packet 14230 * @return publish_retransmit_interval_steps 14231 * @note: btstack_type 1 14232 */ 14233 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){ 14234 return event[14]; 14235 } 14236 /** 14237 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 14238 * @param event packet 14239 * @return model_identifier 14240 * @note: btstack_type 4 14241 */ 14242 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){ 14243 return little_endian_read_32(event, 15); 14244 } 14245 14246 /** 14247 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14248 * @param event packet 14249 * @return dest 14250 * @note: btstack_type 2 14251 */ 14252 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){ 14253 return little_endian_read_16(event, 3); 14254 } 14255 /** 14256 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14257 * @param event packet 14258 * @return foundation_status 14259 * @note: btstack_type 1 14260 */ 14261 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){ 14262 return event[5]; 14263 } 14264 /** 14265 * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14266 * @param event packet 14267 * @return address 14268 * @note: btstack_type 2 14269 */ 14270 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){ 14271 return little_endian_read_16(event, 6); 14272 } 14273 /** 14274 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 14275 * @param event packet 14276 * @return model_identifier 14277 * @note: btstack_type 4 14278 */ 14279 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){ 14280 return little_endian_read_32(event, 8); 14281 } 14282 14283 /** 14284 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14285 * @param event packet 14286 * @return dest 14287 * @note: btstack_type 2 14288 */ 14289 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){ 14290 return little_endian_read_16(event, 3); 14291 } 14292 /** 14293 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14294 * @param event packet 14295 * @return foundation_status 14296 * @note: btstack_type 1 14297 */ 14298 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){ 14299 return event[5]; 14300 } 14301 /** 14302 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14303 * @param event packet 14304 * @return model_identifier 14305 * @note: btstack_type 4 14306 */ 14307 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){ 14308 return little_endian_read_32(event, 6); 14309 } 14310 /** 14311 * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14312 * @param event packet 14313 * @return num_subscription_addresses 14314 * @note: btstack_type 1 14315 */ 14316 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){ 14317 return event[10]; 14318 } 14319 /** 14320 * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14321 * @param event packet 14322 * @return subscription_address_pos 14323 * @note: btstack_type 1 14324 */ 14325 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){ 14326 return event[11]; 14327 } 14328 /** 14329 * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 14330 * @param event packet 14331 * @return subscription_address_item 14332 * @note: btstack_type 2 14333 */ 14334 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){ 14335 return little_endian_read_16(event, 12); 14336 } 14337 14338 /** 14339 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 14340 * @param event packet 14341 * @return dest 14342 * @note: btstack_type 2 14343 */ 14344 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){ 14345 return little_endian_read_16(event, 3); 14346 } 14347 /** 14348 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 14349 * @param event packet 14350 * @return foundation_status 14351 * @note: btstack_type 1 14352 */ 14353 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){ 14354 return event[5]; 14355 } 14356 14357 /** 14358 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14359 * @param event packet 14360 * @return dest 14361 * @note: btstack_type 2 14362 */ 14363 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){ 14364 return little_endian_read_16(event, 3); 14365 } 14366 /** 14367 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14368 * @param event packet 14369 * @return foundation_status 14370 * @note: btstack_type 1 14371 */ 14372 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){ 14373 return event[5]; 14374 } 14375 /** 14376 * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14377 * @param event packet 14378 * @return num_netkey_indexes 14379 * @note: btstack_type 1 14380 */ 14381 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){ 14382 return event[6]; 14383 } 14384 /** 14385 * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14386 * @param event packet 14387 * @return netkey_index_pos 14388 * @note: btstack_type 1 14389 */ 14390 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){ 14391 return event[7]; 14392 } 14393 /** 14394 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 14395 * @param event packet 14396 * @return netkey_index_item 14397 * @note: btstack_type 2 14398 */ 14399 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 14400 return little_endian_read_16(event, 8); 14401 } 14402 14403 /** 14404 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14405 * @param event packet 14406 * @return dest 14407 * @note: btstack_type 2 14408 */ 14409 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){ 14410 return little_endian_read_16(event, 3); 14411 } 14412 /** 14413 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14414 * @param event packet 14415 * @return foundation_status 14416 * @note: btstack_type 1 14417 */ 14418 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){ 14419 return event[5]; 14420 } 14421 /** 14422 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14423 * @param event packet 14424 * @return netkey_index_item 14425 * @note: btstack_type 2 14426 */ 14427 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){ 14428 return little_endian_read_16(event, 6); 14429 } 14430 /** 14431 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 14432 * @param event packet 14433 * @return appkey_index_item 14434 * @note: btstack_type 2 14435 */ 14436 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){ 14437 return little_endian_read_16(event, 8); 14438 } 14439 14440 /** 14441 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14442 * @param event packet 14443 * @return dest 14444 * @note: btstack_type 2 14445 */ 14446 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){ 14447 return little_endian_read_16(event, 3); 14448 } 14449 /** 14450 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14451 * @param event packet 14452 * @return foundation_status 14453 * @note: btstack_type 1 14454 */ 14455 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){ 14456 return event[5]; 14457 } 14458 /** 14459 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14460 * @param event packet 14461 * @return netkey_index 14462 * @note: btstack_type 2 14463 */ 14464 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){ 14465 return little_endian_read_16(event, 6); 14466 } 14467 /** 14468 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14469 * @param event packet 14470 * @return num_appkey_indexes 14471 * @note: btstack_type 1 14472 */ 14473 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){ 14474 return event[8]; 14475 } 14476 /** 14477 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14478 * @param event packet 14479 * @return appkey_index_pos 14480 * @note: btstack_type 1 14481 */ 14482 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){ 14483 return event[9]; 14484 } 14485 /** 14486 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14487 * @param event packet 14488 * @return netkey_index_item 14489 * @note: btstack_type 2 14490 */ 14491 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 14492 return little_endian_read_16(event, 10); 14493 } 14494 /** 14495 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 14496 * @param event packet 14497 * @return appkey_index_item 14498 * @note: btstack_type 2 14499 */ 14500 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){ 14501 return little_endian_read_16(event, 12); 14502 } 14503 14504 /** 14505 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14506 * @param event packet 14507 * @return dest 14508 * @note: btstack_type 2 14509 */ 14510 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){ 14511 return little_endian_read_16(event, 3); 14512 } 14513 /** 14514 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14515 * @param event packet 14516 * @return foundation_status 14517 * @note: btstack_type 1 14518 */ 14519 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){ 14520 return event[5]; 14521 } 14522 /** 14523 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14524 * @param event packet 14525 * @return netkey_index_item 14526 * @note: btstack_type 2 14527 */ 14528 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){ 14529 return little_endian_read_16(event, 6); 14530 } 14531 /** 14532 * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 14533 * @param event packet 14534 * @return identity_status 14535 * @note: btstack_type 1 14536 */ 14537 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){ 14538 return event[8]; 14539 } 14540 14541 /** 14542 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14543 * @param event packet 14544 * @return dest 14545 * @note: btstack_type 2 14546 */ 14547 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){ 14548 return little_endian_read_16(event, 3); 14549 } 14550 /** 14551 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14552 * @param event packet 14553 * @return foundation_status 14554 * @note: btstack_type 1 14555 */ 14556 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){ 14557 return event[5]; 14558 } 14559 /** 14560 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14561 * @param event packet 14562 * @return appkey_index 14563 * @note: btstack_type 2 14564 */ 14565 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){ 14566 return little_endian_read_16(event, 6); 14567 } 14568 /** 14569 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 14570 * @param event packet 14571 * @return model_identifier 14572 * @note: btstack_type 4 14573 */ 14574 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){ 14575 return little_endian_read_32(event, 8); 14576 } 14577 14578 /** 14579 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14580 * @param event packet 14581 * @return dest 14582 * @note: btstack_type 2 14583 */ 14584 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){ 14585 return little_endian_read_16(event, 3); 14586 } 14587 /** 14588 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14589 * @param event packet 14590 * @return foundation_status 14591 * @note: btstack_type 1 14592 */ 14593 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){ 14594 return event[5]; 14595 } 14596 /** 14597 * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14598 * @param event packet 14599 * @return model_id 14600 * @note: btstack_type 4 14601 */ 14602 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){ 14603 return little_endian_read_32(event, 6); 14604 } 14605 /** 14606 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14607 * @param event packet 14608 * @return num_appkey_indexes 14609 * @note: btstack_type 1 14610 */ 14611 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){ 14612 return event[10]; 14613 } 14614 /** 14615 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14616 * @param event packet 14617 * @return appkey_index_pos 14618 * @note: btstack_type 1 14619 */ 14620 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){ 14621 return event[11]; 14622 } 14623 /** 14624 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 14625 * @param event packet 14626 * @return appkey_index_item 14627 * @note: btstack_type 2 14628 */ 14629 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){ 14630 return little_endian_read_16(event, 12); 14631 } 14632 14633 /** 14634 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 14635 * @param event packet 14636 * @return dest 14637 * @note: btstack_type 2 14638 */ 14639 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){ 14640 return little_endian_read_16(event, 3); 14641 } 14642 /** 14643 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 14644 * @param event packet 14645 * @return foundation_status 14646 * @note: btstack_type 1 14647 */ 14648 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){ 14649 return event[5]; 14650 } 14651 14652 /** 14653 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND 14654 * @param event packet 14655 * @return dest 14656 * @note: btstack_type 2 14657 */ 14658 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){ 14659 return little_endian_read_16(event, 3); 14660 } 14661 /** 14662 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND 14663 * @param event packet 14664 * @return foundation_status 14665 * @note: btstack_type 1 14666 */ 14667 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){ 14668 return event[5]; 14669 } 14670 /** 14671 * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND 14672 * @param event packet 14673 * @return friend_state 14674 * @note: btstack_type 1 14675 */ 14676 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){ 14677 return event[6]; 14678 } 14679 14680 /** 14681 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14682 * @param event packet 14683 * @return dest 14684 * @note: btstack_type 2 14685 */ 14686 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){ 14687 return little_endian_read_16(event, 3); 14688 } 14689 /** 14690 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14691 * @param event packet 14692 * @return foundation_status 14693 * @note: btstack_type 1 14694 */ 14695 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){ 14696 return event[5]; 14697 } 14698 /** 14699 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14700 * @param event packet 14701 * @return netkey_index 14702 * @note: btstack_type 2 14703 */ 14704 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){ 14705 return little_endian_read_16(event, 6); 14706 } 14707 /** 14708 * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 14709 * @param event packet 14710 * @return phase 14711 * @note: btstack_type 1 14712 */ 14713 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){ 14714 return event[8]; 14715 } 14716 14717 /** 14718 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14719 * @param event packet 14720 * @return dest 14721 * @note: btstack_type 2 14722 */ 14723 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){ 14724 return little_endian_read_16(event, 3); 14725 } 14726 /** 14727 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14728 * @param event packet 14729 * @return foundation_status 14730 * @note: btstack_type 1 14731 */ 14732 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){ 14733 return event[5]; 14734 } 14735 /** 14736 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14737 * @param event packet 14738 * @return heartbeat_destination 14739 * @note: btstack_type 2 14740 */ 14741 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){ 14742 return little_endian_read_16(event, 6); 14743 } 14744 /** 14745 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14746 * @param event packet 14747 * @return count_S 14748 * @note: btstack_type 2 14749 */ 14750 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){ 14751 return little_endian_read_16(event, 8); 14752 } 14753 /** 14754 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14755 * @param event packet 14756 * @return period_S 14757 * @note: btstack_type 2 14758 */ 14759 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){ 14760 return little_endian_read_16(event, 10); 14761 } 14762 /** 14763 * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14764 * @param event packet 14765 * @return ttl 14766 * @note: btstack_type 1 14767 */ 14768 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){ 14769 return event[12]; 14770 } 14771 /** 14772 * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14773 * @param event packet 14774 * @return features 14775 * @note: btstack_type 2 14776 */ 14777 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){ 14778 return little_endian_read_16(event, 13); 14779 } 14780 /** 14781 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 14782 * @param event packet 14783 * @return netkey_index 14784 * @note: btstack_type 2 14785 */ 14786 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){ 14787 return little_endian_read_16(event, 15); 14788 } 14789 14790 /** 14791 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14792 * @param event packet 14793 * @return dest 14794 * @note: btstack_type 2 14795 */ 14796 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){ 14797 return little_endian_read_16(event, 3); 14798 } 14799 /** 14800 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14801 * @param event packet 14802 * @return foundation_status 14803 * @note: btstack_type 1 14804 */ 14805 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){ 14806 return event[5]; 14807 } 14808 /** 14809 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14810 * @param event packet 14811 * @return heartbeat_destination 14812 * @note: btstack_type 2 14813 */ 14814 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){ 14815 return little_endian_read_16(event, 6); 14816 } 14817 /** 14818 * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14819 * @param event packet 14820 * @return heartbeat_source 14821 * @note: btstack_type 2 14822 */ 14823 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){ 14824 return little_endian_read_16(event, 8); 14825 } 14826 /** 14827 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14828 * @param event packet 14829 * @return count_S 14830 * @note: btstack_type 2 14831 */ 14832 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){ 14833 return little_endian_read_16(event, 10); 14834 } 14835 /** 14836 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14837 * @param event packet 14838 * @return period_S 14839 * @note: btstack_type 2 14840 */ 14841 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){ 14842 return little_endian_read_16(event, 12); 14843 } 14844 /** 14845 * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14846 * @param event packet 14847 * @return min_hops 14848 * @note: btstack_type 1 14849 */ 14850 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){ 14851 return event[14]; 14852 } 14853 /** 14854 * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 14855 * @param event packet 14856 * @return max_hops 14857 * @note: btstack_type 1 14858 */ 14859 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){ 14860 return event[15]; 14861 } 14862 14863 /** 14864 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14865 * @param event packet 14866 * @return dest 14867 * @note: btstack_type 2 14868 */ 14869 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){ 14870 return little_endian_read_16(event, 3); 14871 } 14872 /** 14873 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14874 * @param event packet 14875 * @return foundation_status 14876 * @note: btstack_type 1 14877 */ 14878 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){ 14879 return event[5]; 14880 } 14881 /** 14882 * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14883 * @param event packet 14884 * @return lpn_address 14885 * @note: btstack_type 2 14886 */ 14887 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){ 14888 return little_endian_read_16(event, 6); 14889 } 14890 /** 14891 * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 14892 * @param event packet 14893 * @return poll_timeout 14894 * @note: btstack_type 3 14895 */ 14896 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){ 14897 return little_endian_read_24(event, 8); 14898 } 14899 14900 /** 14901 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14902 * @param event packet 14903 * @return dest 14904 * @note: btstack_type 2 14905 */ 14906 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){ 14907 return little_endian_read_16(event, 3); 14908 } 14909 /** 14910 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14911 * @param event packet 14912 * @return foundation_status 14913 * @note: btstack_type 1 14914 */ 14915 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){ 14916 return event[5]; 14917 } 14918 /** 14919 * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14920 * @param event packet 14921 * @return transmit_count 14922 * @note: btstack_type 1 14923 */ 14924 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){ 14925 return event[6]; 14926 } 14927 /** 14928 * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 14929 * @param event packet 14930 * @return transmit_interval_steps_ms 14931 * @note: btstack_type 2 14932 */ 14933 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){ 14934 return little_endian_read_16(event, 7); 14935 } 14936 14937 14938 14939 /* API_END */ 14940 14941 #if defined __cplusplus 14942 } 14943 #endif 14944 14945 #endif // BTSTACK_EVENT_H 14946