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 typedef uint8_t* btstack_event_iterator_t; 72 73 /*** 74 * @brief Get subevent code for a2dp event 75 * @param event packet 76 * @return subevent_code 77 */ 78 static inline uint8_t hci_event_a2dp_meta_get_subevent_code(const uint8_t * event){ 79 return event[2]; 80 } 81 /*** 82 * @brief Get subevent code for ancs event 83 * @param event packet 84 * @return subevent_code 85 */ 86 static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){ 87 return event[2]; 88 } 89 /*** 90 * @brief Get subevent code for avdtp event 91 * @param event packet 92 * @return subevent_code 93 */ 94 static inline uint8_t hci_event_avdtp_meta_get_subevent_code(const uint8_t * event){ 95 return event[2]; 96 } 97 /*** 98 * @brief Get subevent code for avrcp event 99 * @param event packet 100 * @return subevent_code 101 */ 102 static inline uint8_t hci_event_avrcp_meta_get_subevent_code(const uint8_t * event){ 103 return event[2]; 104 } 105 /*** 106 * @brief Get subevent code for gap event 107 * @param event packet 108 * @return subevent_code 109 */ 110 static inline uint8_t hci_event_gap_meta_get_subevent_code(const uint8_t * event){ 111 return event[2]; 112 } 113 /*** 114 * @brief Get subevent code for gattservice event 115 * @param event packet 116 * @return subevent_code 117 */ 118 static inline uint8_t hci_event_gattservice_meta_get_subevent_code(const uint8_t * event){ 119 return event[2]; 120 } 121 /*** 122 * @brief Get subevent code for goep event 123 * @param event packet 124 * @return subevent_code 125 */ 126 static inline uint8_t hci_event_goep_meta_get_subevent_code(const uint8_t * event){ 127 return event[2]; 128 } 129 /*** 130 * @brief Get subevent code for hfp event 131 * @param event packet 132 * @return subevent_code 133 */ 134 static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event){ 135 return event[2]; 136 } 137 /*** 138 * @brief Get subevent code for hid event 139 * @param event packet 140 * @return subevent_code 141 */ 142 static inline uint8_t hci_event_hid_meta_get_subevent_code(const uint8_t * event){ 143 return event[2]; 144 } 145 /*** 146 * @brief Get subevent code for hids event 147 * @param event packet 148 * @return subevent_code 149 */ 150 static inline uint8_t hci_event_hids_meta_get_subevent_code(const uint8_t * event){ 151 return event[2]; 152 } 153 /*** 154 * @brief Get subevent code for hsp event 155 * @param event packet 156 * @return subevent_code 157 */ 158 static inline uint8_t hci_event_hsp_meta_get_subevent_code(const uint8_t * event){ 159 return event[2]; 160 } 161 /*** 162 * @brief Get subevent code for le event 163 * @param event packet 164 * @return subevent_code 165 */ 166 static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){ 167 return event[2]; 168 } 169 /*** 170 * @brief Get subevent code for leaudio event 171 * @param event packet 172 * @return subevent_code 173 */ 174 static inline uint8_t hci_event_leaudio_meta_get_subevent_code(const uint8_t * event){ 175 return event[2]; 176 } 177 /*** 178 * @brief Get subevent code for map event 179 * @param event packet 180 * @return subevent_code 181 */ 182 static inline uint8_t hci_event_map_meta_get_subevent_code(const uint8_t * event){ 183 return event[2]; 184 } 185 /*** 186 * @brief Get subevent code for mesh event 187 * @param event packet 188 * @return subevent_code 189 */ 190 static inline uint8_t hci_event_mesh_meta_get_subevent_code(const uint8_t * event){ 191 return event[2]; 192 } 193 /*** 194 * @brief Get subevent code for pbap event 195 * @param event packet 196 * @return subevent_code 197 */ 198 static inline uint8_t hci_event_pbap_meta_get_subevent_code(const uint8_t * event){ 199 return event[2]; 200 } 201 /*** 202 * @brief Get subevent code for opp event 203 * @param event packet 204 * @return subevent_code 205 */ 206 static inline uint8_t hci_event_opp_meta_get_subevent_code(const uint8_t * event){ 207 return event[2]; 208 } 209 /** 210 * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE 211 * @param event packet 212 * @return status 213 * @note: btstack_type 1 214 */ 215 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){ 216 return event[2]; 217 } 218 219 /** 220 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT 221 * @param event packet 222 * @return num_responses 223 * @note: btstack_type 1 224 */ 225 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){ 226 return event[2]; 227 } 228 /** 229 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT 230 * @param event packet 231 * @param Pointer to storage for bd_addr 232 * @note: btstack_type B 233 */ 234 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 235 reverse_bytes(&event[3], bd_addr, 6); 236 } 237 /** 238 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT 239 * @param event packet 240 * @return page_scan_repetition_mode 241 * @note: btstack_type 1 242 */ 243 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 244 return event[9]; 245 } 246 /** 247 * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT 248 * @param event packet 249 * @return reserved1 250 * @note: btstack_type 1 251 */ 252 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){ 253 return event[10]; 254 } 255 /** 256 * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT 257 * @param event packet 258 * @return reserved2 259 * @note: btstack_type 1 260 */ 261 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){ 262 return event[11]; 263 } 264 /** 265 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT 266 * @param event packet 267 * @return class_of_device 268 * @note: btstack_type 3 269 */ 270 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){ 271 return little_endian_read_24(event, 12); 272 } 273 /** 274 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT 275 * @param event packet 276 * @return clock_offset 277 * @note: btstack_type 2 278 */ 279 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){ 280 return little_endian_read_16(event, 15); 281 } 282 283 /** 284 * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE 285 * @param event packet 286 * @return status 287 * @note: btstack_type 1 288 */ 289 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){ 290 return event[2]; 291 } 292 /** 293 * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE 294 * @param event packet 295 * @return connection_handle 296 * @note: btstack_type 2 297 */ 298 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){ 299 return little_endian_read_16(event, 3); 300 } 301 /** 302 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE 303 * @param event packet 304 * @param Pointer to storage for bd_addr 305 * @note: btstack_type B 306 */ 307 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 308 reverse_bytes(&event[5], bd_addr, 6); 309 } 310 /** 311 * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE 312 * @param event packet 313 * @return link_type 314 * @note: btstack_type 1 315 */ 316 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){ 317 return event[11]; 318 } 319 /** 320 * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE 321 * @param event packet 322 * @return encryption_enabled 323 * @note: btstack_type 1 324 */ 325 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){ 326 return event[12]; 327 } 328 329 /** 330 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST 331 * @param event packet 332 * @param Pointer to storage for bd_addr 333 * @note: btstack_type B 334 */ 335 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 336 reverse_bytes(&event[2], bd_addr, 6); 337 } 338 /** 339 * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST 340 * @param event packet 341 * @return class_of_device 342 * @note: btstack_type 3 343 */ 344 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){ 345 return little_endian_read_24(event, 8); 346 } 347 /** 348 * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST 349 * @param event packet 350 * @return link_type 351 * @note: btstack_type 1 352 */ 353 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){ 354 return event[11]; 355 } 356 357 /** 358 * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE 359 * @param event packet 360 * @return status 361 * @note: btstack_type 1 362 */ 363 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){ 364 return event[2]; 365 } 366 /** 367 * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE 368 * @param event packet 369 * @return connection_handle 370 * @note: btstack_type 2 371 */ 372 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){ 373 return little_endian_read_16(event, 3); 374 } 375 /** 376 * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE 377 * @param event packet 378 * @return reason 379 * @note: btstack_type 1 380 */ 381 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){ 382 return event[5]; 383 } 384 385 /** 386 * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE 387 * @param event packet 388 * @return status 389 * @note: btstack_type 1 390 */ 391 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){ 392 return event[2]; 393 } 394 /** 395 * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE 396 * @param event packet 397 * @return connection_handle 398 * @note: btstack_type 2 399 */ 400 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){ 401 return little_endian_read_16(event, 3); 402 } 403 404 /** 405 * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 406 * @param event packet 407 * @return status 408 * @note: btstack_type 1 409 */ 410 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){ 411 return event[2]; 412 } 413 /** 414 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 415 * @param event packet 416 * @param Pointer to storage for bd_addr 417 * @note: btstack_type B 418 */ 419 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 420 reverse_bytes(&event[3], bd_addr, 6); 421 } 422 /** 423 * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 424 * @param event packet 425 * @return remote_name 426 * @note: btstack_type N 427 */ 428 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){ 429 return (const char *) &event[9]; 430 } 431 432 /** 433 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE 434 * @param event packet 435 * @return status 436 * @note: btstack_type 1 437 */ 438 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){ 439 return event[2]; 440 } 441 /** 442 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE 443 * @param event packet 444 * @return connection_handle 445 * @note: btstack_type 2 446 */ 447 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){ 448 return little_endian_read_16(event, 3); 449 } 450 /** 451 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE 452 * @param event packet 453 * @return encryption_enabled 454 * @note: btstack_type 1 455 */ 456 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){ 457 return event[5]; 458 } 459 460 /** 461 * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 462 * @param event packet 463 * @return status 464 * @note: btstack_type 1 465 */ 466 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){ 467 return event[2]; 468 } 469 /** 470 * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 471 * @param event packet 472 * @return connection_handle 473 * @note: btstack_type 2 474 */ 475 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){ 476 return little_endian_read_16(event, 3); 477 } 478 479 /** 480 * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 481 * @param event packet 482 * @return status 483 * @note: btstack_type 1 484 */ 485 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){ 486 return event[2]; 487 } 488 /** 489 * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 490 * @param event packet 491 * @return connection_handle 492 * @note: btstack_type 2 493 */ 494 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){ 495 return little_endian_read_16(event, 3); 496 } 497 /** 498 * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 499 * @param event packet 500 * @return key_flag 501 * @note: btstack_type 1 502 */ 503 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){ 504 return event[5]; 505 } 506 507 /** 508 * @brief Get field status from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 509 * @param event packet 510 * @return status 511 * @note: btstack_type 1 512 */ 513 static inline uint8_t hci_event_read_remote_version_information_complete_get_status(const uint8_t * event){ 514 return event[2]; 515 } 516 /** 517 * @brief Get field connection_handle from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 518 * @param event packet 519 * @return connection_handle 520 * @note: btstack_type 2 521 */ 522 static inline uint16_t hci_event_read_remote_version_information_complete_get_connection_handle(const uint8_t * event){ 523 return little_endian_read_16(event, 3); 524 } 525 /** 526 * @brief Get field version from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 527 * @param event packet 528 * @return version 529 * @note: btstack_type 1 530 */ 531 static inline uint8_t hci_event_read_remote_version_information_complete_get_version(const uint8_t * event){ 532 return event[5]; 533 } 534 /** 535 * @brief Get field manufacturer_name from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 536 * @param event packet 537 * @return manufacturer_name 538 * @note: btstack_type 2 539 */ 540 static inline uint16_t hci_event_read_remote_version_information_complete_get_manufacturer_name(const uint8_t * event){ 541 return little_endian_read_16(event, 6); 542 } 543 /** 544 * @brief Get field subversion from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 545 * @param event packet 546 * @return subversion 547 * @note: btstack_type 2 548 */ 549 static inline uint16_t hci_event_read_remote_version_information_complete_get_subversion(const uint8_t * event){ 550 return little_endian_read_16(event, 8); 551 } 552 553 /** 554 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE 555 * @param event packet 556 * @return num_hci_command_packets 557 * @note: btstack_type 1 558 */ 559 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){ 560 return event[2]; 561 } 562 /** 563 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE 564 * @param event packet 565 * @return command_opcode 566 * @note: btstack_type 2 567 */ 568 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){ 569 return little_endian_read_16(event, 3); 570 } 571 /** 572 * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE 573 * @param event packet 574 * @return return_parameters 575 * @note: btstack_type R 576 */ 577 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){ 578 return &event[5]; 579 } 580 581 /** 582 * @brief Get field status from event HCI_EVENT_COMMAND_STATUS 583 * @param event packet 584 * @return status 585 * @note: btstack_type 1 586 */ 587 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){ 588 return event[2]; 589 } 590 /** 591 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS 592 * @param event packet 593 * @return num_hci_command_packets 594 * @note: btstack_type 1 595 */ 596 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){ 597 return event[3]; 598 } 599 /** 600 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS 601 * @param event packet 602 * @return command_opcode 603 * @note: btstack_type 2 604 */ 605 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){ 606 return little_endian_read_16(event, 4); 607 } 608 609 /** 610 * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR 611 * @param event packet 612 * @return hardware_code 613 * @note: btstack_type 1 614 */ 615 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){ 616 return event[2]; 617 } 618 619 /** 620 * @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED 621 * @param event packet 622 * @return handle 623 * @note: btstack_type H 624 */ 625 static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){ 626 return little_endian_read_16(event, 2); 627 } 628 629 /** 630 * @brief Get field status from event HCI_EVENT_ROLE_CHANGE 631 * @param event packet 632 * @return status 633 * @note: btstack_type 1 634 */ 635 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){ 636 return event[2]; 637 } 638 /** 639 * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE 640 * @param event packet 641 * @param Pointer to storage for bd_addr 642 * @note: btstack_type B 643 */ 644 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 645 reverse_bytes(&event[3], bd_addr, 6); 646 } 647 /** 648 * @brief Get field role from event HCI_EVENT_ROLE_CHANGE 649 * @param event packet 650 * @return role 651 * @note: btstack_type 1 652 */ 653 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){ 654 return event[9]; 655 } 656 657 /** 658 * @brief Get field status from event HCI_EVENT_MODE_CHANGE 659 * @param event packet 660 * @return status 661 * @note: btstack_type 1 662 */ 663 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){ 664 return event[2]; 665 } 666 /** 667 * @brief Get field handle from event HCI_EVENT_MODE_CHANGE 668 * @param event packet 669 * @return handle 670 * @note: btstack_type H 671 */ 672 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){ 673 return little_endian_read_16(event, 3); 674 } 675 /** 676 * @brief Get field mode from event HCI_EVENT_MODE_CHANGE 677 * @param event packet 678 * @return mode 679 * @note: btstack_type 1 680 */ 681 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){ 682 return event[5]; 683 } 684 /** 685 * @brief Get field interval from event HCI_EVENT_MODE_CHANGE 686 * @param event packet 687 * @return interval 688 * @note: btstack_type 2 689 */ 690 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){ 691 return little_endian_read_16(event, 6); 692 } 693 694 /** 695 * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_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_pin_code_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 bd_addr from event HCI_EVENT_LINK_KEY_REQUEST 706 * @param event packet 707 * @param Pointer to storage for bd_addr 708 * @note: btstack_type B 709 */ 710 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 711 reverse_bytes(&event[2], bd_addr, 6); 712 } 713 714 /** 715 * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW 716 * @param event packet 717 * @return link_type 718 * @note: btstack_type 1 719 */ 720 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){ 721 return event[2]; 722 } 723 724 /** 725 * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED 726 * @param event packet 727 * @return handle 728 * @note: btstack_type H 729 */ 730 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){ 731 return little_endian_read_16(event, 2); 732 } 733 /** 734 * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED 735 * @param event packet 736 * @return lmp_max_slots 737 * @note: btstack_type 1 738 */ 739 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){ 740 return event[4]; 741 } 742 743 /** 744 * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 745 * @param event packet 746 * @return status 747 * @note: btstack_type 1 748 */ 749 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){ 750 return event[2]; 751 } 752 /** 753 * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 754 * @param event packet 755 * @return handle 756 * @note: btstack_type H 757 */ 758 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){ 759 return little_endian_read_16(event, 3); 760 } 761 /** 762 * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 763 * @param event packet 764 * @return clock_offset 765 * @note: btstack_type 2 766 */ 767 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){ 768 return little_endian_read_16(event, 5); 769 } 770 771 /** 772 * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 773 * @param event packet 774 * @return status 775 * @note: btstack_type 1 776 */ 777 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){ 778 return event[2]; 779 } 780 /** 781 * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 782 * @param event packet 783 * @return handle 784 * @note: btstack_type H 785 */ 786 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){ 787 return little_endian_read_16(event, 3); 788 } 789 /** 790 * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 791 * @param event packet 792 * @return packet_types 793 * @note: btstack_type 2 794 */ 795 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){ 796 return little_endian_read_16(event, 5); 797 } 798 799 /** 800 * @brief Get field handle from event HCI_EVENT_QOS_VIOLATION 801 * @param event packet 802 * @return handle 803 * @note: btstack_type H 804 */ 805 static inline hci_con_handle_t hci_event_qos_violation_get_handle(const uint8_t * event){ 806 return little_endian_read_16(event, 2); 807 } 808 809 /** 810 * @brief Get field handle from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE 811 * @param event packet 812 * @return handle 813 * @note: btstack_type H 814 */ 815 static inline hci_con_handle_t hci_event_page_scan_repetition_mode_change_get_handle(const uint8_t * event){ 816 return little_endian_read_16(event, 2); 817 } 818 /** 819 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE 820 * @param event packet 821 * @return page_scan_repetition_mode 822 * @note: btstack_type 1 823 */ 824 static inline uint8_t hci_event_page_scan_repetition_mode_change_get_page_scan_repetition_mode(const uint8_t * event){ 825 return event[4]; 826 } 827 828 /** 829 * @brief Get field status from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 830 * @param event packet 831 * @return status 832 * @note: btstack_type 1 833 */ 834 static inline uint8_t hci_event_flow_specification_complete_get_status(const uint8_t * event){ 835 return event[2]; 836 } 837 /** 838 * @brief Get field handle from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 839 * @param event packet 840 * @return handle 841 * @note: btstack_type H 842 */ 843 static inline hci_con_handle_t hci_event_flow_specification_complete_get_handle(const uint8_t * event){ 844 return little_endian_read_16(event, 3); 845 } 846 /** 847 * @brief Get field unused from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 848 * @param event packet 849 * @return unused 850 * @note: btstack_type 1 851 */ 852 static inline uint8_t hci_event_flow_specification_complete_get_unused(const uint8_t * event){ 853 return event[5]; 854 } 855 /** 856 * @brief Get field flow_direction from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 857 * @param event packet 858 * @return flow_direction 859 * @note: btstack_type 1 860 */ 861 static inline uint8_t hci_event_flow_specification_complete_get_flow_direction(const uint8_t * event){ 862 return event[6]; 863 } 864 /** 865 * @brief Get field service_type from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 866 * @param event packet 867 * @return service_type 868 * @note: btstack_type 1 869 */ 870 static inline uint8_t hci_event_flow_specification_complete_get_service_type(const uint8_t * event){ 871 return event[7]; 872 } 873 /** 874 * @brief Get field token_rate from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 875 * @param event packet 876 * @return token_rate 877 * @note: btstack_type 4 878 */ 879 static inline uint32_t hci_event_flow_specification_complete_get_token_rate(const uint8_t * event){ 880 return little_endian_read_32(event, 8); 881 } 882 /** 883 * @brief Get field token_bucket_size from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 884 * @param event packet 885 * @return token_bucket_size 886 * @note: btstack_type 4 887 */ 888 static inline uint32_t hci_event_flow_specification_complete_get_token_bucket_size(const uint8_t * event){ 889 return little_endian_read_32(event, 12); 890 } 891 /** 892 * @brief Get field peak_bandwidth from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 893 * @param event packet 894 * @return peak_bandwidth 895 * @note: btstack_type 4 896 */ 897 static inline uint32_t hci_event_flow_specification_complete_get_peak_bandwidth(const uint8_t * event){ 898 return little_endian_read_32(event, 16); 899 } 900 /** 901 * @brief Get field access_latency from event HCI_EVENT_FLOW_SPECIFICATION_COMPLETE 902 * @param event packet 903 * @return access_latency 904 * @note: btstack_type 4 905 */ 906 static inline uint32_t hci_event_flow_specification_complete_get_access_latency(const uint8_t * event){ 907 return little_endian_read_32(event, 20); 908 } 909 910 /** 911 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 912 * @param event packet 913 * @return num_responses 914 * @note: btstack_type 1 915 */ 916 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){ 917 return event[2]; 918 } 919 /** 920 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 921 * @param event packet 922 * @param Pointer to storage for bd_addr 923 * @note: btstack_type B 924 */ 925 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 926 reverse_bytes(&event[3], bd_addr, 6); 927 } 928 /** 929 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 930 * @param event packet 931 * @return page_scan_repetition_mode 932 * @note: btstack_type 1 933 */ 934 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){ 935 return event[9]; 936 } 937 /** 938 * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 939 * @param event packet 940 * @return reserved 941 * @note: btstack_type 1 942 */ 943 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){ 944 return event[10]; 945 } 946 /** 947 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 948 * @param event packet 949 * @return class_of_device 950 * @note: btstack_type 3 951 */ 952 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){ 953 return little_endian_read_24(event, 11); 954 } 955 /** 956 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 957 * @param event packet 958 * @return clock_offset 959 * @note: btstack_type 2 960 */ 961 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){ 962 return little_endian_read_16(event, 14); 963 } 964 /** 965 * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 966 * @param event packet 967 * @return rssi 968 * @note: btstack_type 1 969 */ 970 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){ 971 return event[16]; 972 } 973 974 /** 975 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 976 * @param event packet 977 * @return status 978 * @note: btstack_type 1 979 */ 980 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){ 981 return event[2]; 982 } 983 /** 984 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 985 * @param event packet 986 * @return handle 987 * @note: btstack_type H 988 */ 989 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){ 990 return little_endian_read_16(event, 3); 991 } 992 /** 993 * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 994 * @param event packet 995 * @param Pointer to storage for bd_addr 996 * @note: btstack_type B 997 */ 998 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 999 reverse_bytes(&event[5], bd_addr, 6); 1000 } 1001 /** 1002 * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1003 * @param event packet 1004 * @return link_type 1005 * @note: btstack_type 1 1006 */ 1007 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){ 1008 return event[11]; 1009 } 1010 /** 1011 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1012 * @param event packet 1013 * @return transmission_interval 1014 * @note: btstack_type 1 1015 */ 1016 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){ 1017 return event[12]; 1018 } 1019 /** 1020 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1021 * @param event packet 1022 * @return retransmission_interval 1023 * @note: btstack_type 1 1024 */ 1025 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){ 1026 return event[13]; 1027 } 1028 /** 1029 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1030 * @param event packet 1031 * @return rx_packet_length 1032 * @note: btstack_type 2 1033 */ 1034 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){ 1035 return little_endian_read_16(event, 14); 1036 } 1037 /** 1038 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1039 * @param event packet 1040 * @return tx_packet_length 1041 * @note: btstack_type 2 1042 */ 1043 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){ 1044 return little_endian_read_16(event, 16); 1045 } 1046 /** 1047 * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 1048 * @param event packet 1049 * @return air_mode 1050 * @note: btstack_type 1 1051 */ 1052 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){ 1053 return event[18]; 1054 } 1055 1056 /** 1057 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1058 * @param event packet 1059 * @return status 1060 * @note: btstack_type 1 1061 */ 1062 static inline uint8_t hci_event_synchronous_connection_changed_get_status(const uint8_t * event){ 1063 return event[2]; 1064 } 1065 /** 1066 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1067 * @param event packet 1068 * @return handle 1069 * @note: btstack_type H 1070 */ 1071 static inline hci_con_handle_t hci_event_synchronous_connection_changed_get_handle(const uint8_t * event){ 1072 return little_endian_read_16(event, 3); 1073 } 1074 /** 1075 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1076 * @param event packet 1077 * @return transmission_interval 1078 * @note: btstack_type 1 1079 */ 1080 static inline uint8_t hci_event_synchronous_connection_changed_get_transmission_interval(const uint8_t * event){ 1081 return event[5]; 1082 } 1083 /** 1084 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1085 * @param event packet 1086 * @return retransmission_interval 1087 * @note: btstack_type 1 1088 */ 1089 static inline uint8_t hci_event_synchronous_connection_changed_get_retransmission_interval(const uint8_t * event){ 1090 return event[6]; 1091 } 1092 /** 1093 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1094 * @param event packet 1095 * @return rx_packet_length 1096 * @note: btstack_type 2 1097 */ 1098 static inline uint16_t hci_event_synchronous_connection_changed_get_rx_packet_length(const uint8_t * event){ 1099 return little_endian_read_16(event, 7); 1100 } 1101 /** 1102 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_CHANGED 1103 * @param event packet 1104 * @return tx_packet_length 1105 * @note: btstack_type 2 1106 */ 1107 static inline uint16_t hci_event_synchronous_connection_changed_get_tx_packet_length(const uint8_t * event){ 1108 return little_endian_read_16(event, 9); 1109 } 1110 1111 /** 1112 * @brief Get field status from event HCI_EVENT_SNIFF_SUBRATING 1113 * @param event packet 1114 * @return status 1115 * @note: btstack_type 1 1116 */ 1117 static inline uint8_t hci_event_sniff_subrating_get_status(const uint8_t * event){ 1118 return event[2]; 1119 } 1120 /** 1121 * @brief Get field handle from event HCI_EVENT_SNIFF_SUBRATING 1122 * @param event packet 1123 * @return handle 1124 * @note: btstack_type H 1125 */ 1126 static inline hci_con_handle_t hci_event_sniff_subrating_get_handle(const uint8_t * event){ 1127 return little_endian_read_16(event, 3); 1128 } 1129 /** 1130 * @brief Get field max_tx_latency from event HCI_EVENT_SNIFF_SUBRATING 1131 * @param event packet 1132 * @return max_tx_latency 1133 * @note: btstack_type 2 1134 */ 1135 static inline uint16_t hci_event_sniff_subrating_get_max_tx_latency(const uint8_t * event){ 1136 return little_endian_read_16(event, 5); 1137 } 1138 /** 1139 * @brief Get field max_rx_latency from event HCI_EVENT_SNIFF_SUBRATING 1140 * @param event packet 1141 * @return max_rx_latency 1142 * @note: btstack_type 2 1143 */ 1144 static inline uint16_t hci_event_sniff_subrating_get_max_rx_latency(const uint8_t * event){ 1145 return little_endian_read_16(event, 7); 1146 } 1147 /** 1148 * @brief Get field min_remote_timeout from event HCI_EVENT_SNIFF_SUBRATING 1149 * @param event packet 1150 * @return min_remote_timeout 1151 * @note: btstack_type 2 1152 */ 1153 static inline uint16_t hci_event_sniff_subrating_get_min_remote_timeout(const uint8_t * event){ 1154 return little_endian_read_16(event, 9); 1155 } 1156 /** 1157 * @brief Get field min_local_timeout from event HCI_EVENT_SNIFF_SUBRATING 1158 * @param event packet 1159 * @return min_local_timeout 1160 * @note: btstack_type 2 1161 */ 1162 static inline uint16_t hci_event_sniff_subrating_get_min_local_timeout(const uint8_t * event){ 1163 return little_endian_read_16(event, 11); 1164 } 1165 1166 /** 1167 * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1168 * @param event packet 1169 * @return num_responses 1170 * @note: btstack_type 1 1171 */ 1172 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){ 1173 return event[2]; 1174 } 1175 /** 1176 * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1177 * @param event packet 1178 * @param Pointer to storage for bd_addr 1179 * @note: btstack_type B 1180 */ 1181 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1182 reverse_bytes(&event[3], bd_addr, 6); 1183 } 1184 /** 1185 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1186 * @param event packet 1187 * @return page_scan_repetition_mode 1188 * @note: btstack_type 1 1189 */ 1190 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){ 1191 return event[9]; 1192 } 1193 /** 1194 * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1195 * @param event packet 1196 * @return reserved 1197 * @note: btstack_type 1 1198 */ 1199 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){ 1200 return event[10]; 1201 } 1202 /** 1203 * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1204 * @param event packet 1205 * @return class_of_device 1206 * @note: btstack_type 3 1207 */ 1208 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){ 1209 return little_endian_read_24(event, 11); 1210 } 1211 /** 1212 * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1213 * @param event packet 1214 * @return clock_offset 1215 * @note: btstack_type 2 1216 */ 1217 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){ 1218 return little_endian_read_16(event, 14); 1219 } 1220 /** 1221 * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 1222 * @param event packet 1223 * @return rssi 1224 * @note: btstack_type 1 1225 */ 1226 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){ 1227 return event[16]; 1228 } 1229 1230 /** 1231 * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 1232 * @param event packet 1233 * @return status 1234 * @note: btstack_type 1 1235 */ 1236 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){ 1237 return event[2]; 1238 } 1239 /** 1240 * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 1241 * @param event packet 1242 * @return handle 1243 * @note: btstack_type H 1244 */ 1245 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){ 1246 return little_endian_read_16(event, 3); 1247 } 1248 1249 /** 1250 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST 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_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1256 reverse_bytes(&event[2], bd_addr, 6); 1257 } 1258 1259 /** 1260 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1261 * @param event packet 1262 * @param Pointer to storage for bd_addr 1263 * @note: btstack_type B 1264 */ 1265 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1266 reverse_bytes(&event[2], bd_addr, 6); 1267 } 1268 /** 1269 * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1270 * @param event packet 1271 * @return io_capability 1272 * @note: btstack_type 1 1273 */ 1274 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){ 1275 return event[8]; 1276 } 1277 /** 1278 * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1279 * @param event packet 1280 * @return oob_data_present 1281 * @note: btstack_type 1 1282 */ 1283 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){ 1284 return event[9]; 1285 } 1286 /** 1287 * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1288 * @param event packet 1289 * @return authentication_requirements 1290 * @note: btstack_type 1 1291 */ 1292 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){ 1293 return event[10]; 1294 } 1295 1296 /** 1297 * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1298 * @param event packet 1299 * @param Pointer to storage for bd_addr 1300 * @note: btstack_type B 1301 */ 1302 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1303 reverse_bytes(&event[2], bd_addr, 6); 1304 } 1305 /** 1306 * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1307 * @param event packet 1308 * @return numeric_value 1309 * @note: btstack_type 4 1310 */ 1311 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){ 1312 return little_endian_read_32(event, 8); 1313 } 1314 1315 /** 1316 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_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_user_passkey_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 bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST 1327 * @param event packet 1328 * @param Pointer to storage for bd_addr 1329 * @note: btstack_type B 1330 */ 1331 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1332 reverse_bytes(&event[2], bd_addr, 6); 1333 } 1334 1335 /** 1336 * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1337 * @param event packet 1338 * @return status 1339 * @note: btstack_type 1 1340 */ 1341 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){ 1342 return event[2]; 1343 } 1344 /** 1345 * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1346 * @param event packet 1347 * @param Pointer to storage for bd_addr 1348 * @note: btstack_type B 1349 */ 1350 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1351 reverse_bytes(&event[3], bd_addr, 6); 1352 } 1353 1354 /** 1355 * @brief Get field handle from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 1356 * @param event packet 1357 * @return handle 1358 * @note: btstack_type H 1359 */ 1360 static inline hci_con_handle_t hci_event_link_supervision_timeout_changed_get_handle(const uint8_t * event){ 1361 return little_endian_read_16(event, 2); 1362 } 1363 /** 1364 * @brief Get field link_supervision_timeout from event HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 1365 * @param event packet 1366 * @return link_supervision_timeout 1367 * @note: btstack_type 2 1368 */ 1369 static inline uint16_t hci_event_link_supervision_timeout_changed_get_link_supervision_timeout(const uint8_t * event){ 1370 return little_endian_read_16(event, 4); 1371 } 1372 1373 /** 1374 * @brief Get field handle from event HCI_EVENT_ENHANCED_FLUSH_COMPLETE 1375 * @param event packet 1376 * @return handle 1377 * @note: btstack_type H 1378 */ 1379 static inline hci_con_handle_t hci_event_enhanced_flush_complete_get_handle(const uint8_t * event){ 1380 return little_endian_read_16(event, 2); 1381 } 1382 1383 /** 1384 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1385 * @param event packet 1386 * @param Pointer to storage for bd_addr 1387 * @note: btstack_type B 1388 */ 1389 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1390 reverse_bytes(&event[2], bd_addr, 6); 1391 } 1392 /** 1393 * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1394 * @param event packet 1395 * @return numeric_value 1396 * @note: btstack_type 4 1397 */ 1398 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){ 1399 return little_endian_read_32(event, 8); 1400 } 1401 1402 /** 1403 * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION 1404 * @param event packet 1405 * @param Pointer to storage for bd_addr 1406 * @note: btstack_type B 1407 */ 1408 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1409 reverse_bytes(&event[2], bd_addr, 6); 1410 } 1411 /** 1412 * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION 1413 * @param event packet 1414 * @return notification_type 1415 * @note: btstack_type 1 1416 */ 1417 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){ 1418 return event[8]; 1419 } 1420 1421 /** 1422 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1423 * @param event packet 1424 * @return status 1425 * @note: btstack_type 1 1426 */ 1427 static inline uint8_t hci_event_encryption_change_v2_get_status(const uint8_t * event){ 1428 return event[2]; 1429 } 1430 /** 1431 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1432 * @param event packet 1433 * @return connection_handle 1434 * @note: btstack_type 2 1435 */ 1436 static inline uint16_t hci_event_encryption_change_v2_get_connection_handle(const uint8_t * event){ 1437 return little_endian_read_16(event, 3); 1438 } 1439 /** 1440 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1441 * @param event packet 1442 * @return encryption_enabled 1443 * @note: btstack_type 1 1444 */ 1445 static inline uint8_t hci_event_encryption_change_v2_get_encryption_enabled(const uint8_t * event){ 1446 return event[5]; 1447 } 1448 /** 1449 * @brief Get field encryption_key_size from event HCI_EVENT_ENCRYPTION_CHANGE_V2 1450 * @param event packet 1451 * @return encryption_key_size 1452 * @note: btstack_type 1 1453 */ 1454 static inline uint8_t hci_event_encryption_change_v2_get_encryption_key_size(const uint8_t * event){ 1455 return event[6]; 1456 } 1457 1458 /** 1459 * @brief Get field state from event BTSTACK_EVENT_STATE 1460 * @param event packet 1461 * @return state 1462 * @note: btstack_type 1 1463 */ 1464 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){ 1465 return event[2]; 1466 } 1467 1468 /** 1469 * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1470 * @param event packet 1471 * @return number_connections 1472 * @note: btstack_type 1 1473 */ 1474 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){ 1475 return event[2]; 1476 } 1477 1478 1479 /** 1480 * @brief Get field discoverable from event BTSTACK_EVENT_SCAN_MODE_CHANGED 1481 * @param event packet 1482 * @return discoverable 1483 * @note: btstack_type 1 1484 */ 1485 static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){ 1486 return event[2]; 1487 } 1488 /** 1489 * @brief Get field connectable from event BTSTACK_EVENT_SCAN_MODE_CHANGED 1490 * @param event packet 1491 * @return connectable 1492 * @note: btstack_type 1 1493 */ 1494 static inline uint8_t btstack_event_scan_mode_changed_get_connectable(const uint8_t * event){ 1495 return event[3]; 1496 } 1497 1498 /** 1499 * @brief Get field major from event DAEMON_EVENT_VERSION 1500 * @param event packet 1501 * @return major 1502 * @note: btstack_type 1 1503 */ 1504 static inline uint8_t daemon_event_version_get_major(const uint8_t * event){ 1505 return event[2]; 1506 } 1507 /** 1508 * @brief Get field minor from event DAEMON_EVENT_VERSION 1509 * @param event packet 1510 * @return minor 1511 * @note: btstack_type 1 1512 */ 1513 static inline uint8_t daemon_event_version_get_minor(const uint8_t * event){ 1514 return event[3]; 1515 } 1516 /** 1517 * @brief Get field revision from event DAEMON_EVENT_VERSION 1518 * @param event packet 1519 * @return revision 1520 * @note: btstack_type 2 1521 */ 1522 static inline uint16_t daemon_event_version_get_revision(const uint8_t * event){ 1523 return little_endian_read_16(event, 4); 1524 } 1525 1526 /** 1527 * @brief Get field system_bluetooth_enabled from event DAEMON_EVENT_SYSTEM_BLUETOOTH_ENABLED 1528 * @param event packet 1529 * @return system_bluetooth_enabled 1530 * @note: btstack_type 1 1531 */ 1532 static inline uint8_t daemon_event_system_bluetooth_enabled_get_system_bluetooth_enabled(const uint8_t * event){ 1533 return event[2]; 1534 } 1535 1536 /** 1537 * @brief Get field status from event DAEMON_EVENT_REMOTE_NAME_CACHED 1538 * @param event packet 1539 * @return status 1540 * @note: btstack_type 1 1541 */ 1542 static inline uint8_t daemon_event_remote_name_cached_get_status(const uint8_t * event){ 1543 return event[2]; 1544 } 1545 /** 1546 * @brief Get field address from event DAEMON_EVENT_REMOTE_NAME_CACHED 1547 * @param event packet 1548 * @param Pointer to storage for address 1549 * @note: btstack_type B 1550 */ 1551 static inline void daemon_event_remote_name_cached_get_address(const uint8_t * event, bd_addr_t address){ 1552 reverse_bytes(&event[3], address, 6); 1553 } 1554 /** 1555 * @brief Get field name from event DAEMON_EVENT_REMOTE_NAME_CACHED 1556 * @param event packet 1557 * @return name 1558 * @note: btstack_type T 1559 */ 1560 static inline const char * daemon_event_remote_name_cached_get_name(const uint8_t * event){ 1561 return (const char *) &event[9]; 1562 } 1563 1564 /** 1565 * @brief Get field status from event DAEMON_EVENT_L2CAP_SERVICE_REGISTERED 1566 * @param event packet 1567 * @return status 1568 * @note: btstack_type 1 1569 */ 1570 static inline uint8_t daemon_event_l2cap_service_registered_get_status(const uint8_t * event){ 1571 return event[2]; 1572 } 1573 /** 1574 * @brief Get field psm from event DAEMON_EVENT_L2CAP_SERVICE_REGISTERED 1575 * @param event packet 1576 * @return psm 1577 * @note: btstack_type 2 1578 */ 1579 static inline uint16_t daemon_event_l2cap_service_registered_get_psm(const uint8_t * event){ 1580 return little_endian_read_16(event, 3); 1581 } 1582 1583 /** 1584 * @brief Get field status from event DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED 1585 * @param event packet 1586 * @return status 1587 * @note: btstack_type 1 1588 */ 1589 static inline uint8_t daemon_event_rfcomm_service_registered_get_status(const uint8_t * event){ 1590 return event[2]; 1591 } 1592 /** 1593 * @brief Get field channel_id from event DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED 1594 * @param event packet 1595 * @return channel_id 1596 * @note: btstack_type 1 1597 */ 1598 static inline uint8_t daemon_event_rfcomm_service_registered_get_channel_id(const uint8_t * event){ 1599 return event[3]; 1600 } 1601 1602 /** 1603 * @brief Get field status from event DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL 1604 * @param event packet 1605 * @return status 1606 * @note: btstack_type 1 1607 */ 1608 static inline uint8_t daemon_event_rfcomm_persistent_channel_get_status(const uint8_t * event){ 1609 return event[2]; 1610 } 1611 /** 1612 * @brief Get field server_channel_id from event DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL 1613 * @param event packet 1614 * @return server_channel_id 1615 * @note: btstack_type 1 1616 */ 1617 static inline uint8_t daemon_event_rfcomm_persistent_channel_get_server_channel_id(const uint8_t * event){ 1618 return event[3]; 1619 } 1620 1621 /** 1622 * @brief Get field status from event DAEMON_EVENT_SDP_SERVICE_REGISTERED 1623 * @param event packet 1624 * @return status 1625 * @note: btstack_type 1 1626 */ 1627 static inline uint8_t daemon_event_sdp_service_registered_get_status(const uint8_t * event){ 1628 return event[2]; 1629 } 1630 /** 1631 * @brief Get field service_record_handle from event DAEMON_EVENT_SDP_SERVICE_REGISTERED 1632 * @param event packet 1633 * @return service_record_handle 1634 * @note: btstack_type 4 1635 */ 1636 static inline uint32_t daemon_event_sdp_service_registered_get_service_record_handle(const uint8_t * event){ 1637 return little_endian_read_32(event, 3); 1638 } 1639 1640 /** 1641 * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE 1642 * @param event packet 1643 * @return active 1644 * @note: btstack_type 1 1645 */ 1646 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){ 1647 return event[2]; 1648 } 1649 1650 /** 1651 * @brief Get field vendor_id from event HCI_EVENT_TRANSPORT_USB_INFO 1652 * @param event packet 1653 * @return vendor_id 1654 * @note: btstack_type 2 1655 */ 1656 static inline uint16_t hci_event_transport_usb_info_get_vendor_id(const uint8_t * event){ 1657 return little_endian_read_16(event, 2); 1658 } 1659 /** 1660 * @brief Get field product_id from event HCI_EVENT_TRANSPORT_USB_INFO 1661 * @param event packet 1662 * @return product_id 1663 * @note: btstack_type 2 1664 */ 1665 static inline uint16_t hci_event_transport_usb_info_get_product_id(const uint8_t * event){ 1666 return little_endian_read_16(event, 4); 1667 } 1668 /** 1669 * @brief Get field path_len from event HCI_EVENT_TRANSPORT_USB_INFO 1670 * @param event packet 1671 * @return path_len 1672 * @note: btstack_type J 1673 */ 1674 static inline uint8_t hci_event_transport_usb_info_get_path_len(const uint8_t * event){ 1675 return event[6]; 1676 } 1677 /** 1678 * @brief Get field path from event HCI_EVENT_TRANSPORT_USB_INFO 1679 * @param event packet 1680 * @return path 1681 * @note: btstack_type V 1682 */ 1683 static inline const uint8_t * hci_event_transport_usb_info_get_path(const uint8_t * event){ 1684 return &event[7]; 1685 } 1686 1687 /** 1688 * @brief Get field big_handle from event HCI_EVENT_BIS_CAN_SEND_NOW 1689 * @param event packet 1690 * @return big_handle 1691 * @note: btstack_type 1 1692 */ 1693 static inline uint8_t hci_event_bis_can_send_now_get_big_handle(const uint8_t * event){ 1694 return event[2]; 1695 } 1696 /** 1697 * @brief Get field bis_index from event HCI_EVENT_BIS_CAN_SEND_NOW 1698 * @param event packet 1699 * @return bis_index 1700 * @note: btstack_type 1 1701 */ 1702 static inline uint8_t hci_event_bis_can_send_now_get_bis_index(const uint8_t * event){ 1703 return event[3]; 1704 } 1705 /** 1706 * @brief Get field con_handle from event HCI_EVENT_BIS_CAN_SEND_NOW 1707 * @param event packet 1708 * @return con_handle 1709 * @note: btstack_type H 1710 */ 1711 static inline hci_con_handle_t hci_event_bis_can_send_now_get_con_handle(const uint8_t * event){ 1712 return little_endian_read_16(event, 4); 1713 } 1714 1715 /** 1716 * @brief Get field cis_con_handle from event HCI_EVENT_CIS_CAN_SEND_NOW 1717 * @param event packet 1718 * @return cis_con_handle 1719 * @note: btstack_type H 1720 */ 1721 static inline hci_con_handle_t hci_event_cis_can_send_now_get_cis_con_handle(const uint8_t * event){ 1722 return little_endian_read_16(event, 2); 1723 } 1724 1725 1726 /** 1727 * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED 1728 * @param event packet 1729 * @return status 1730 * @note: btstack_type 1 1731 */ 1732 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){ 1733 return event[2]; 1734 } 1735 /** 1736 * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED 1737 * @param event packet 1738 * @param Pointer to storage for address 1739 * @note: btstack_type B 1740 */ 1741 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1742 reverse_bytes(&event[3], address, 6); 1743 } 1744 /** 1745 * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED 1746 * @param event packet 1747 * @return handle 1748 * @note: btstack_type H 1749 */ 1750 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){ 1751 return little_endian_read_16(event, 9); 1752 } 1753 /** 1754 * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED 1755 * @param event packet 1756 * @return psm 1757 * @note: btstack_type 2 1758 */ 1759 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){ 1760 return little_endian_read_16(event, 11); 1761 } 1762 /** 1763 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED 1764 * @param event packet 1765 * @return local_cid 1766 * @note: btstack_type 2 1767 */ 1768 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){ 1769 return little_endian_read_16(event, 13); 1770 } 1771 /** 1772 * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED 1773 * @param event packet 1774 * @return remote_cid 1775 * @note: btstack_type 2 1776 */ 1777 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){ 1778 return little_endian_read_16(event, 15); 1779 } 1780 /** 1781 * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1782 * @param event packet 1783 * @return local_mtu 1784 * @note: btstack_type 2 1785 */ 1786 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){ 1787 return little_endian_read_16(event, 17); 1788 } 1789 /** 1790 * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1791 * @param event packet 1792 * @return remote_mtu 1793 * @note: btstack_type 2 1794 */ 1795 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){ 1796 return little_endian_read_16(event, 19); 1797 } 1798 /** 1799 * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED 1800 * @param event packet 1801 * @return flush_timeout 1802 * @note: btstack_type 2 1803 */ 1804 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){ 1805 return little_endian_read_16(event, 21); 1806 } 1807 /** 1808 * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED 1809 * @param event packet 1810 * @return incoming 1811 * @note: btstack_type 1 1812 */ 1813 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){ 1814 return event[23]; 1815 } 1816 /** 1817 * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED 1818 * @param event packet 1819 * @return mode 1820 * @note: btstack_type 1 1821 */ 1822 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){ 1823 return event[24]; 1824 } 1825 /** 1826 * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED 1827 * @param event packet 1828 * @return fcs 1829 * @note: btstack_type 1 1830 */ 1831 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){ 1832 return event[25]; 1833 } 1834 1835 /** 1836 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED 1837 * @param event packet 1838 * @return local_cid 1839 * @note: btstack_type 2 1840 */ 1841 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){ 1842 return little_endian_read_16(event, 2); 1843 } 1844 1845 /** 1846 * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION 1847 * @param event packet 1848 * @param Pointer to storage for address 1849 * @note: btstack_type B 1850 */ 1851 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1852 reverse_bytes(&event[2], address, 6); 1853 } 1854 /** 1855 * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION 1856 * @param event packet 1857 * @return handle 1858 * @note: btstack_type H 1859 */ 1860 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){ 1861 return little_endian_read_16(event, 8); 1862 } 1863 /** 1864 * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION 1865 * @param event packet 1866 * @return psm 1867 * @note: btstack_type 2 1868 */ 1869 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){ 1870 return little_endian_read_16(event, 10); 1871 } 1872 /** 1873 * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1874 * @param event packet 1875 * @return local_cid 1876 * @note: btstack_type 2 1877 */ 1878 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){ 1879 return little_endian_read_16(event, 12); 1880 } 1881 /** 1882 * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1883 * @param event packet 1884 * @return remote_cid 1885 * @note: btstack_type 2 1886 */ 1887 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){ 1888 return little_endian_read_16(event, 14); 1889 } 1890 1891 /** 1892 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1893 * @param event packet 1894 * @return handle 1895 * @note: btstack_type H 1896 */ 1897 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){ 1898 return little_endian_read_16(event, 2); 1899 } 1900 /** 1901 * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1902 * @param event packet 1903 * @return interval_min 1904 * @note: btstack_type 2 1905 */ 1906 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){ 1907 return little_endian_read_16(event, 4); 1908 } 1909 /** 1910 * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1911 * @param event packet 1912 * @return interval_max 1913 * @note: btstack_type 2 1914 */ 1915 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){ 1916 return little_endian_read_16(event, 6); 1917 } 1918 /** 1919 * @brief Get field latency from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1920 * @param event packet 1921 * @return latency 1922 * @note: btstack_type 2 1923 */ 1924 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latency(const uint8_t * event){ 1925 return little_endian_read_16(event, 8); 1926 } 1927 /** 1928 * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1929 * @param event packet 1930 * @return timeout_multiplier 1931 * @note: btstack_type 2 1932 */ 1933 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){ 1934 return little_endian_read_16(event, 10); 1935 } 1936 1937 /** 1938 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1939 * @param event packet 1940 * @return handle 1941 * @note: btstack_type H 1942 */ 1943 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){ 1944 return little_endian_read_16(event, 2); 1945 } 1946 /** 1947 * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1948 * @param event packet 1949 * @return result 1950 * @note: btstack_type 2 1951 */ 1952 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){ 1953 return little_endian_read_16(event, 4); 1954 } 1955 1956 /** 1957 * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE 1958 * @param event packet 1959 * @return con_handle 1960 * @note: btstack_type H 1961 */ 1962 static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){ 1963 return little_endian_read_16(event, 2); 1964 } 1965 /** 1966 * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE 1967 * @param event packet 1968 * @return extended_feature_mask 1969 * @note: btstack_type 2 1970 */ 1971 static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){ 1972 return little_endian_read_16(event, 4); 1973 } 1974 /** 1975 * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE 1976 * @param event packet 1977 * @return fixed_channels_supported 1978 * @note: btstack_type 2 1979 */ 1980 static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){ 1981 return little_endian_read_16(event, 6); 1982 } 1983 1984 /** 1985 * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW 1986 * @param event packet 1987 * @return local_cid 1988 * @note: btstack_type 2 1989 */ 1990 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){ 1991 return little_endian_read_16(event, 2); 1992 } 1993 1994 /** 1995 * @brief Get field local_cid from event L2CAP_EVENT_PACKET_SENT 1996 * @param event packet 1997 * @return local_cid 1998 * @note: btstack_type 2 1999 */ 2000 static inline uint16_t l2cap_event_packet_sent_get_local_cid(const uint8_t * event){ 2001 return little_endian_read_16(event, 2); 2002 } 2003 2004 /** 2005 * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED 2006 * @param event packet 2007 * @return local_cid 2008 * @note: btstack_type 2 2009 */ 2010 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 2011 return little_endian_read_16(event, 2); 2012 } 2013 2014 /** 2015 * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2016 * @param event packet 2017 * @return address_type 2018 * @note: btstack_type 1 2019 */ 2020 static inline uint8_t l2cap_event_cbm_incoming_connection_get_address_type(const uint8_t * event){ 2021 return event[2]; 2022 } 2023 /** 2024 * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2025 * @param event packet 2026 * @param Pointer to storage for address 2027 * @note: btstack_type B 2028 */ 2029 static inline void l2cap_event_cbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 2030 reverse_bytes(&event[3], address, 6); 2031 } 2032 /** 2033 * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2034 * @param event packet 2035 * @return handle 2036 * @note: btstack_type H 2037 */ 2038 static inline hci_con_handle_t l2cap_event_cbm_incoming_connection_get_handle(const uint8_t * event){ 2039 return little_endian_read_16(event, 9); 2040 } 2041 /** 2042 * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2043 * @param event packet 2044 * @return psm 2045 * @note: btstack_type 2 2046 */ 2047 static inline uint16_t l2cap_event_cbm_incoming_connection_get_psm(const uint8_t * event){ 2048 return little_endian_read_16(event, 11); 2049 } 2050 /** 2051 * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2052 * @param event packet 2053 * @return local_cid 2054 * @note: btstack_type 2 2055 */ 2056 static inline uint16_t l2cap_event_cbm_incoming_connection_get_local_cid(const uint8_t * event){ 2057 return little_endian_read_16(event, 13); 2058 } 2059 /** 2060 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2061 * @param event packet 2062 * @return remote_cid 2063 * @note: btstack_type 2 2064 */ 2065 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_cid(const uint8_t * event){ 2066 return little_endian_read_16(event, 15); 2067 } 2068 /** 2069 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION 2070 * @param event packet 2071 * @return remote_mtu 2072 * @note: btstack_type 2 2073 */ 2074 static inline uint16_t l2cap_event_cbm_incoming_connection_get_remote_mtu(const uint8_t * event){ 2075 return little_endian_read_16(event, 17); 2076 } 2077 2078 /** 2079 * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2080 * @param event packet 2081 * @return status 2082 * @note: btstack_type 1 2083 */ 2084 static inline uint8_t l2cap_event_cbm_channel_opened_get_status(const uint8_t * event){ 2085 return event[2]; 2086 } 2087 /** 2088 * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2089 * @param event packet 2090 * @return address_type 2091 * @note: btstack_type 1 2092 */ 2093 static inline uint8_t l2cap_event_cbm_channel_opened_get_address_type(const uint8_t * event){ 2094 return event[3]; 2095 } 2096 /** 2097 * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2098 * @param event packet 2099 * @param Pointer to storage for address 2100 * @note: btstack_type B 2101 */ 2102 static inline void l2cap_event_cbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 2103 reverse_bytes(&event[4], address, 6); 2104 } 2105 /** 2106 * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2107 * @param event packet 2108 * @return handle 2109 * @note: btstack_type H 2110 */ 2111 static inline hci_con_handle_t l2cap_event_cbm_channel_opened_get_handle(const uint8_t * event){ 2112 return little_endian_read_16(event, 10); 2113 } 2114 /** 2115 * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2116 * @param event packet 2117 * @return incoming 2118 * @note: btstack_type 1 2119 */ 2120 static inline uint8_t l2cap_event_cbm_channel_opened_get_incoming(const uint8_t * event){ 2121 return event[12]; 2122 } 2123 /** 2124 * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2125 * @param event packet 2126 * @return psm 2127 * @note: btstack_type 2 2128 */ 2129 static inline uint16_t l2cap_event_cbm_channel_opened_get_psm(const uint8_t * event){ 2130 return little_endian_read_16(event, 13); 2131 } 2132 /** 2133 * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2134 * @param event packet 2135 * @return local_cid 2136 * @note: btstack_type 2 2137 */ 2138 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_cid(const uint8_t * event){ 2139 return little_endian_read_16(event, 15); 2140 } 2141 /** 2142 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2143 * @param event packet 2144 * @return remote_cid 2145 * @note: btstack_type 2 2146 */ 2147 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_cid(const uint8_t * event){ 2148 return little_endian_read_16(event, 17); 2149 } 2150 /** 2151 * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2152 * @param event packet 2153 * @return local_mtu 2154 * @note: btstack_type 2 2155 */ 2156 static inline uint16_t l2cap_event_cbm_channel_opened_get_local_mtu(const uint8_t * event){ 2157 return little_endian_read_16(event, 19); 2158 } 2159 /** 2160 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED 2161 * @param event packet 2162 * @return remote_mtu 2163 * @note: btstack_type 2 2164 */ 2165 static inline uint16_t l2cap_event_cbm_channel_opened_get_remote_mtu(const uint8_t * event){ 2166 return little_endian_read_16(event, 21); 2167 } 2168 2169 2170 /** 2171 * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2172 * @param event packet 2173 * @return address_type 2174 * @note: btstack_type 1 2175 */ 2176 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_address_type(const uint8_t * event){ 2177 return event[2]; 2178 } 2179 /** 2180 * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2181 * @param event packet 2182 * @param Pointer to storage for address 2183 * @note: btstack_type B 2184 */ 2185 static inline void l2cap_event_ecbm_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 2186 reverse_bytes(&event[3], address, 6); 2187 } 2188 /** 2189 * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2190 * @param event packet 2191 * @return handle 2192 * @note: btstack_type H 2193 */ 2194 static inline hci_con_handle_t l2cap_event_ecbm_incoming_connection_get_handle(const uint8_t * event){ 2195 return little_endian_read_16(event, 9); 2196 } 2197 /** 2198 * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2199 * @param event packet 2200 * @return psm 2201 * @note: btstack_type 2 2202 */ 2203 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_psm(const uint8_t * event){ 2204 return little_endian_read_16(event, 11); 2205 } 2206 /** 2207 * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2208 * @param event packet 2209 * @return num_channels 2210 * @note: btstack_type 1 2211 */ 2212 static inline uint8_t l2cap_event_ecbm_incoming_connection_get_num_channels(const uint8_t * event){ 2213 return event[13]; 2214 } 2215 /** 2216 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION 2217 * @param event packet 2218 * @return local_cid 2219 * @note: btstack_type 2 2220 */ 2221 static inline uint16_t l2cap_event_ecbm_incoming_connection_get_local_cid(const uint8_t * event){ 2222 return little_endian_read_16(event, 14); 2223 } 2224 2225 /** 2226 * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2227 * @param event packet 2228 * @return status 2229 * @note: btstack_type 1 2230 */ 2231 static inline uint8_t l2cap_event_ecbm_channel_opened_get_status(const uint8_t * event){ 2232 return event[2]; 2233 } 2234 /** 2235 * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2236 * @param event packet 2237 * @return address_type 2238 * @note: btstack_type 1 2239 */ 2240 static inline uint8_t l2cap_event_ecbm_channel_opened_get_address_type(const uint8_t * event){ 2241 return event[3]; 2242 } 2243 /** 2244 * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2245 * @param event packet 2246 * @param Pointer to storage for address 2247 * @note: btstack_type B 2248 */ 2249 static inline void l2cap_event_ecbm_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 2250 reverse_bytes(&event[4], address, 6); 2251 } 2252 /** 2253 * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2254 * @param event packet 2255 * @return handle 2256 * @note: btstack_type H 2257 */ 2258 static inline hci_con_handle_t l2cap_event_ecbm_channel_opened_get_handle(const uint8_t * event){ 2259 return little_endian_read_16(event, 10); 2260 } 2261 /** 2262 * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2263 * @param event packet 2264 * @return incoming 2265 * @note: btstack_type 1 2266 */ 2267 static inline uint8_t l2cap_event_ecbm_channel_opened_get_incoming(const uint8_t * event){ 2268 return event[12]; 2269 } 2270 /** 2271 * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2272 * @param event packet 2273 * @return psm 2274 * @note: btstack_type 2 2275 */ 2276 static inline uint16_t l2cap_event_ecbm_channel_opened_get_psm(const uint8_t * event){ 2277 return little_endian_read_16(event, 13); 2278 } 2279 /** 2280 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2281 * @param event packet 2282 * @return local_cid 2283 * @note: btstack_type 2 2284 */ 2285 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_cid(const uint8_t * event){ 2286 return little_endian_read_16(event, 15); 2287 } 2288 /** 2289 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2290 * @param event packet 2291 * @return remote_cid 2292 * @note: btstack_type 2 2293 */ 2294 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_cid(const uint8_t * event){ 2295 return little_endian_read_16(event, 17); 2296 } 2297 /** 2298 * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2299 * @param event packet 2300 * @return local_mtu 2301 * @note: btstack_type 2 2302 */ 2303 static inline uint16_t l2cap_event_ecbm_channel_opened_get_local_mtu(const uint8_t * event){ 2304 return little_endian_read_16(event, 19); 2305 } 2306 /** 2307 * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED 2308 * @param event packet 2309 * @return remote_mtu 2310 * @note: btstack_type 2 2311 */ 2312 static inline uint16_t l2cap_event_ecbm_channel_opened_get_remote_mtu(const uint8_t * event){ 2313 return little_endian_read_16(event, 21); 2314 } 2315 2316 /** 2317 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED 2318 * @param event packet 2319 * @return remote_cid 2320 * @note: btstack_type 2 2321 */ 2322 static inline uint16_t l2cap_event_ecbm_reconfigured_get_remote_cid(const uint8_t * event){ 2323 return little_endian_read_16(event, 2); 2324 } 2325 /** 2326 * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED 2327 * @param event packet 2328 * @return mtu 2329 * @note: btstack_type 2 2330 */ 2331 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mtu(const uint8_t * event){ 2332 return little_endian_read_16(event, 4); 2333 } 2334 /** 2335 * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED 2336 * @param event packet 2337 * @return mps 2338 * @note: btstack_type 2 2339 */ 2340 static inline uint16_t l2cap_event_ecbm_reconfigured_get_mps(const uint8_t * event){ 2341 return little_endian_read_16(event, 6); 2342 } 2343 2344 /** 2345 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 2346 * @param event packet 2347 * @return local_cid 2348 * @note: btstack_type 2 2349 */ 2350 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_local_cid(const uint8_t * event){ 2351 return little_endian_read_16(event, 2); 2352 } 2353 /** 2354 * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 2355 * @param event packet 2356 * @return reconfigure_result 2357 * @note: btstack_type 2 2358 */ 2359 static inline uint16_t l2cap_event_ecbm_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){ 2360 return little_endian_read_16(event, 4); 2361 } 2362 2363 /** 2364 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED 2365 * @param event packet 2366 * @return status 2367 * @note: btstack_type 1 2368 */ 2369 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){ 2370 return event[2]; 2371 } 2372 /** 2373 * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED 2374 * @param event packet 2375 * @param Pointer to storage for bd_addr 2376 * @note: btstack_type B 2377 */ 2378 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 2379 reverse_bytes(&event[3], bd_addr, 6); 2380 } 2381 /** 2382 * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED 2383 * @param event packet 2384 * @return con_handle 2385 * @note: btstack_type 2 2386 */ 2387 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){ 2388 return little_endian_read_16(event, 9); 2389 } 2390 /** 2391 * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED 2392 * @param event packet 2393 * @return server_channel 2394 * @note: btstack_type 1 2395 */ 2396 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){ 2397 return event[11]; 2398 } 2399 /** 2400 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED 2401 * @param event packet 2402 * @return rfcomm_cid 2403 * @note: btstack_type 2 2404 */ 2405 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){ 2406 return little_endian_read_16(event, 12); 2407 } 2408 /** 2409 * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED 2410 * @param event packet 2411 * @return max_frame_size 2412 * @note: btstack_type 2 2413 */ 2414 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){ 2415 return little_endian_read_16(event, 14); 2416 } 2417 /** 2418 * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED 2419 * @param event packet 2420 * @return incoming 2421 * @note: btstack_type 1 2422 */ 2423 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){ 2424 return event[16]; 2425 } 2426 2427 /** 2428 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED 2429 * @param event packet 2430 * @return rfcomm_cid 2431 * @note: btstack_type 2 2432 */ 2433 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){ 2434 return little_endian_read_16(event, 2); 2435 } 2436 2437 /** 2438 * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION 2439 * @param event packet 2440 * @param Pointer to storage for bd_addr 2441 * @note: btstack_type B 2442 */ 2443 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 2444 reverse_bytes(&event[2], bd_addr, 6); 2445 } 2446 /** 2447 * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION 2448 * @param event packet 2449 * @return server_channel 2450 * @note: btstack_type 1 2451 */ 2452 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){ 2453 return event[8]; 2454 } 2455 /** 2456 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION 2457 * @param event packet 2458 * @return rfcomm_cid 2459 * @note: btstack_type 2 2460 */ 2461 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){ 2462 return little_endian_read_16(event, 9); 2463 } 2464 /** 2465 * @brief Get field con_handle from event RFCOMM_EVENT_INCOMING_CONNECTION 2466 * @param event packet 2467 * @return con_handle 2468 * @note: btstack_type H 2469 */ 2470 static inline hci_con_handle_t rfcomm_event_incoming_connection_get_con_handle(const uint8_t * event){ 2471 return little_endian_read_16(event, 11); 2472 } 2473 2474 /** 2475 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS 2476 * @param event packet 2477 * @return rfcomm_cid 2478 * @note: btstack_type 2 2479 */ 2480 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){ 2481 return little_endian_read_16(event, 2); 2482 } 2483 /** 2484 * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS 2485 * @param event packet 2486 * @return line_status 2487 * @note: btstack_type 1 2488 */ 2489 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){ 2490 return event[4]; 2491 } 2492 2493 /** 2494 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 2495 * @param event packet 2496 * @return rfcomm_cid 2497 * @note: btstack_type 2 2498 */ 2499 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){ 2500 return little_endian_read_16(event, 2); 2501 } 2502 /** 2503 * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 2504 * @param event packet 2505 * @return modem_status 2506 * @note: btstack_type 1 2507 */ 2508 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){ 2509 return event[4]; 2510 } 2511 2512 /** 2513 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW 2514 * @param event packet 2515 * @return rfcomm_cid 2516 * @note: btstack_type 2 2517 */ 2518 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){ 2519 return little_endian_read_16(event, 2); 2520 } 2521 2522 /** 2523 * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE 2524 * @param event packet 2525 * @return status 2526 * @note: btstack_type 1 2527 */ 2528 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){ 2529 return event[2]; 2530 } 2531 2532 /** 2533 * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE 2534 * @param event packet 2535 * @return rfcomm_channel 2536 * @note: btstack_type 1 2537 */ 2538 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){ 2539 return event[2]; 2540 } 2541 /** 2542 * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE 2543 * @param event packet 2544 * @return name 2545 * @note: btstack_type T 2546 */ 2547 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){ 2548 return (const char *) &event[3]; 2549 } 2550 2551 /** 2552 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2553 * @param event packet 2554 * @return record_id 2555 * @note: btstack_type 2 2556 */ 2557 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){ 2558 return little_endian_read_16(event, 2); 2559 } 2560 /** 2561 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2562 * @param event packet 2563 * @return attribute_id 2564 * @note: btstack_type 2 2565 */ 2566 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){ 2567 return little_endian_read_16(event, 4); 2568 } 2569 /** 2570 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2571 * @param event packet 2572 * @return attribute_length 2573 * @note: btstack_type 2 2574 */ 2575 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){ 2576 return little_endian_read_16(event, 6); 2577 } 2578 /** 2579 * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2580 * @param event packet 2581 * @return data_offset 2582 * @note: btstack_type 2 2583 */ 2584 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){ 2585 return little_endian_read_16(event, 8); 2586 } 2587 /** 2588 * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 2589 * @param event packet 2590 * @return data 2591 * @note: btstack_type 1 2592 */ 2593 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){ 2594 return event[10]; 2595 } 2596 2597 /** 2598 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2599 * @param event packet 2600 * @return record_id 2601 * @note: btstack_type 2 2602 */ 2603 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){ 2604 return little_endian_read_16(event, 2); 2605 } 2606 /** 2607 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2608 * @param event packet 2609 * @return attribute_id 2610 * @note: btstack_type 2 2611 */ 2612 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){ 2613 return little_endian_read_16(event, 4); 2614 } 2615 /** 2616 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2617 * @param event packet 2618 * @return attribute_length 2619 * @note: btstack_type L 2620 */ 2621 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){ 2622 return little_endian_read_16(event, 6); 2623 } 2624 /** 2625 * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 2626 * @param event packet 2627 * @return attribute_value 2628 * @note: btstack_type V 2629 */ 2630 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){ 2631 return &event[8]; 2632 } 2633 2634 /** 2635 * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2636 * @param event packet 2637 * @return total_count 2638 * @note: btstack_type 2 2639 */ 2640 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){ 2641 return little_endian_read_16(event, 2); 2642 } 2643 /** 2644 * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2645 * @param event packet 2646 * @return record_index 2647 * @note: btstack_type 2 2648 */ 2649 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){ 2650 return little_endian_read_16(event, 4); 2651 } 2652 /** 2653 * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 2654 * @param event packet 2655 * @return record_handle 2656 * @note: btstack_type 4 2657 */ 2658 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){ 2659 return little_endian_read_32(event, 6); 2660 } 2661 2662 #ifdef ENABLE_BLE 2663 /** 2664 * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE 2665 * @param event packet 2666 * @return handle 2667 * @note: btstack_type H 2668 */ 2669 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){ 2670 return little_endian_read_16(event, 2); 2671 } 2672 /** 2673 * @brief Get field service_id from event GATT_EVENT_QUERY_COMPLETE 2674 * @param event packet 2675 * @return service_id 2676 * @note: btstack_type 2 2677 */ 2678 static inline uint16_t gatt_event_query_complete_get_service_id(const uint8_t * event){ 2679 return little_endian_read_16(event, 4); 2680 } 2681 /** 2682 * @brief Get field connection_id from event GATT_EVENT_QUERY_COMPLETE 2683 * @param event packet 2684 * @return connection_id 2685 * @note: btstack_type 2 2686 */ 2687 static inline uint16_t gatt_event_query_complete_get_connection_id(const uint8_t * event){ 2688 return little_endian_read_16(event, 6); 2689 } 2690 /** 2691 * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE 2692 * @param event packet 2693 * @return att_status 2694 * @note: btstack_type 1 2695 */ 2696 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){ 2697 return event[8]; 2698 } 2699 #endif 2700 2701 #ifdef ENABLE_BLE 2702 /** 2703 * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT 2704 * @param event packet 2705 * @return handle 2706 * @note: btstack_type H 2707 */ 2708 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){ 2709 return little_endian_read_16(event, 2); 2710 } 2711 /** 2712 * @brief Get field service_id from event GATT_EVENT_SERVICE_QUERY_RESULT 2713 * @param event packet 2714 * @return service_id 2715 * @note: btstack_type 2 2716 */ 2717 static inline uint16_t gatt_event_service_query_result_get_service_id(const uint8_t * event){ 2718 return little_endian_read_16(event, 4); 2719 } 2720 /** 2721 * @brief Get field connection_id from event GATT_EVENT_SERVICE_QUERY_RESULT 2722 * @param event packet 2723 * @return connection_id 2724 * @note: btstack_type 2 2725 */ 2726 static inline uint16_t gatt_event_service_query_result_get_connection_id(const uint8_t * event){ 2727 return little_endian_read_16(event, 6); 2728 } 2729 /** 2730 * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT 2731 * @param event packet 2732 * @param Pointer to storage for service 2733 * @note: btstack_type X 2734 */ 2735 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2736 gatt_client_deserialize_service(event, 8, service); 2737 } 2738 #endif 2739 2740 #ifdef ENABLE_BLE 2741 /** 2742 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2743 * @param event packet 2744 * @return handle 2745 * @note: btstack_type H 2746 */ 2747 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){ 2748 return little_endian_read_16(event, 2); 2749 } 2750 /** 2751 * @brief Get field service_id from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2752 * @param event packet 2753 * @return service_id 2754 * @note: btstack_type 2 2755 */ 2756 static inline uint16_t gatt_event_characteristic_query_result_get_service_id(const uint8_t * event){ 2757 return little_endian_read_16(event, 4); 2758 } 2759 /** 2760 * @brief Get field connection_id from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2761 * @param event packet 2762 * @return connection_id 2763 * @note: btstack_type 2 2764 */ 2765 static inline uint16_t gatt_event_characteristic_query_result_get_connection_id(const uint8_t * event){ 2766 return little_endian_read_16(event, 6); 2767 } 2768 /** 2769 * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 2770 * @param event packet 2771 * @param Pointer to storage for characteristic 2772 * @note: btstack_type Y 2773 */ 2774 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){ 2775 gatt_client_deserialize_characteristic(event, 8, characteristic); 2776 } 2777 #endif 2778 2779 #ifdef ENABLE_BLE 2780 /** 2781 * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2782 * @param event packet 2783 * @return handle 2784 * @note: btstack_type H 2785 */ 2786 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){ 2787 return little_endian_read_16(event, 2); 2788 } 2789 /** 2790 * @brief Get field service_id from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2791 * @param event packet 2792 * @return service_id 2793 * @note: btstack_type 2 2794 */ 2795 static inline uint16_t gatt_event_included_service_query_result_get_service_id(const uint8_t * event){ 2796 return little_endian_read_16(event, 4); 2797 } 2798 /** 2799 * @brief Get field connection_id from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2800 * @param event packet 2801 * @return connection_id 2802 * @note: btstack_type 2 2803 */ 2804 static inline uint16_t gatt_event_included_service_query_result_get_connection_id(const uint8_t * event){ 2805 return little_endian_read_16(event, 6); 2806 } 2807 /** 2808 * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2809 * @param event packet 2810 * @return include_handle 2811 * @note: btstack_type 2 2812 */ 2813 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){ 2814 return little_endian_read_16(event, 8); 2815 } 2816 /** 2817 * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 2818 * @param event packet 2819 * @param Pointer to storage for service 2820 * @note: btstack_type X 2821 */ 2822 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2823 gatt_client_deserialize_service(event, 10, service); 2824 } 2825 #endif 2826 2827 #ifdef ENABLE_BLE 2828 /** 2829 * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2830 * @param event packet 2831 * @return handle 2832 * @note: btstack_type H 2833 */ 2834 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){ 2835 return little_endian_read_16(event, 2); 2836 } 2837 /** 2838 * @brief Get field service_id from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2839 * @param event packet 2840 * @return service_id 2841 * @note: btstack_type 2 2842 */ 2843 static inline uint16_t gatt_event_all_characteristic_descriptors_query_result_get_service_id(const uint8_t * event){ 2844 return little_endian_read_16(event, 4); 2845 } 2846 /** 2847 * @brief Get field connection_id from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2848 * @param event packet 2849 * @return connection_id 2850 * @note: btstack_type 2 2851 */ 2852 static inline uint16_t gatt_event_all_characteristic_descriptors_query_result_get_connection_id(const uint8_t * event){ 2853 return little_endian_read_16(event, 6); 2854 } 2855 /** 2856 * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2857 * @param event packet 2858 * @param Pointer to storage for characteristic_descriptor 2859 * @note: btstack_type Z 2860 */ 2861 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){ 2862 gatt_client_deserialize_characteristic_descriptor(event, 8, characteristic_descriptor); 2863 } 2864 #endif 2865 2866 #ifdef ENABLE_BLE 2867 /** 2868 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2869 * @param event packet 2870 * @return handle 2871 * @note: btstack_type H 2872 */ 2873 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){ 2874 return little_endian_read_16(event, 2); 2875 } 2876 /** 2877 * @brief Get field service_id from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2878 * @param event packet 2879 * @return service_id 2880 * @note: btstack_type 2 2881 */ 2882 static inline uint16_t gatt_event_characteristic_value_query_result_get_service_id(const uint8_t * event){ 2883 return little_endian_read_16(event, 4); 2884 } 2885 /** 2886 * @brief Get field connection_id from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2887 * @param event packet 2888 * @return connection_id 2889 * @note: btstack_type 2 2890 */ 2891 static inline uint16_t gatt_event_characteristic_value_query_result_get_connection_id(const uint8_t * event){ 2892 return little_endian_read_16(event, 6); 2893 } 2894 /** 2895 * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2896 * @param event packet 2897 * @return value_handle 2898 * @note: btstack_type 2 2899 */ 2900 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2901 return little_endian_read_16(event, 8); 2902 } 2903 /** 2904 * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2905 * @param event packet 2906 * @return value_length 2907 * @note: btstack_type L 2908 */ 2909 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2910 return little_endian_read_16(event, 10); 2911 } 2912 /** 2913 * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2914 * @param event packet 2915 * @return value 2916 * @note: btstack_type V 2917 */ 2918 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){ 2919 return &event[12]; 2920 } 2921 #endif 2922 2923 #ifdef ENABLE_BLE 2924 /** 2925 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2926 * @param event packet 2927 * @return handle 2928 * @note: btstack_type H 2929 */ 2930 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){ 2931 return little_endian_read_16(event, 2); 2932 } 2933 /** 2934 * @brief Get field service_id from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2935 * @param event packet 2936 * @return service_id 2937 * @note: btstack_type 2 2938 */ 2939 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_service_id(const uint8_t * event){ 2940 return little_endian_read_16(event, 4); 2941 } 2942 /** 2943 * @brief Get field connection_id from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2944 * @param event packet 2945 * @return connection_id 2946 * @note: btstack_type 2 2947 */ 2948 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_connection_id(const uint8_t * event){ 2949 return little_endian_read_16(event, 6); 2950 } 2951 /** 2952 * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2953 * @param event packet 2954 * @return value_handle 2955 * @note: btstack_type 2 2956 */ 2957 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2958 return little_endian_read_16(event, 8); 2959 } 2960 /** 2961 * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2962 * @param event packet 2963 * @return value_offset 2964 * @note: btstack_type 2 2965 */ 2966 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){ 2967 return little_endian_read_16(event, 10); 2968 } 2969 /** 2970 * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2971 * @param event packet 2972 * @return value_length 2973 * @note: btstack_type L 2974 */ 2975 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2976 return little_endian_read_16(event, 12); 2977 } 2978 /** 2979 * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2980 * @param event packet 2981 * @return value 2982 * @note: btstack_type V 2983 */ 2984 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){ 2985 return &event[14]; 2986 } 2987 #endif 2988 2989 #ifdef ENABLE_BLE 2990 /** 2991 * @brief Get field handle from event GATT_EVENT_NOTIFICATION 2992 * @param event packet 2993 * @return handle 2994 * @note: btstack_type H 2995 */ 2996 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){ 2997 return little_endian_read_16(event, 2); 2998 } 2999 /** 3000 * @brief Get field service_id from event GATT_EVENT_NOTIFICATION 3001 * @param event packet 3002 * @return service_id 3003 * @note: btstack_type 2 3004 */ 3005 static inline uint16_t gatt_event_notification_get_service_id(const uint8_t * event){ 3006 return little_endian_read_16(event, 4); 3007 } 3008 /** 3009 * @brief Get field connection_id from event GATT_EVENT_NOTIFICATION 3010 * @param event packet 3011 * @return connection_id 3012 * @note: btstack_type 2 3013 */ 3014 static inline uint16_t gatt_event_notification_get_connection_id(const uint8_t * event){ 3015 return little_endian_read_16(event, 6); 3016 } 3017 /** 3018 * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION 3019 * @param event packet 3020 * @return value_handle 3021 * @note: btstack_type 2 3022 */ 3023 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){ 3024 return little_endian_read_16(event, 8); 3025 } 3026 /** 3027 * @brief Get field value_length from event GATT_EVENT_NOTIFICATION 3028 * @param event packet 3029 * @return value_length 3030 * @note: btstack_type L 3031 */ 3032 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){ 3033 return little_endian_read_16(event, 10); 3034 } 3035 /** 3036 * @brief Get field value from event GATT_EVENT_NOTIFICATION 3037 * @param event packet 3038 * @return value 3039 * @note: btstack_type V 3040 */ 3041 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){ 3042 return &event[12]; 3043 } 3044 #endif 3045 3046 #ifdef ENABLE_BLE 3047 /** 3048 * @brief Get field handle from event GATT_EVENT_INDICATION 3049 * @param event packet 3050 * @return handle 3051 * @note: btstack_type H 3052 */ 3053 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){ 3054 return little_endian_read_16(event, 2); 3055 } 3056 /** 3057 * @brief Get field service_id from event GATT_EVENT_INDICATION 3058 * @param event packet 3059 * @return service_id 3060 * @note: btstack_type 2 3061 */ 3062 static inline uint16_t gatt_event_indication_get_service_id(const uint8_t * event){ 3063 return little_endian_read_16(event, 4); 3064 } 3065 /** 3066 * @brief Get field connection_id from event GATT_EVENT_INDICATION 3067 * @param event packet 3068 * @return connection_id 3069 * @note: btstack_type 2 3070 */ 3071 static inline uint16_t gatt_event_indication_get_connection_id(const uint8_t * event){ 3072 return little_endian_read_16(event, 6); 3073 } 3074 /** 3075 * @brief Get field value_handle from event GATT_EVENT_INDICATION 3076 * @param event packet 3077 * @return value_handle 3078 * @note: btstack_type 2 3079 */ 3080 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){ 3081 return little_endian_read_16(event, 8); 3082 } 3083 /** 3084 * @brief Get field value_length from event GATT_EVENT_INDICATION 3085 * @param event packet 3086 * @return value_length 3087 * @note: btstack_type L 3088 */ 3089 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){ 3090 return little_endian_read_16(event, 10); 3091 } 3092 /** 3093 * @brief Get field value from event GATT_EVENT_INDICATION 3094 * @param event packet 3095 * @return value 3096 * @note: btstack_type V 3097 */ 3098 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){ 3099 return &event[12]; 3100 } 3101 #endif 3102 3103 #ifdef ENABLE_BLE 3104 /** 3105 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3106 * @param event packet 3107 * @return handle 3108 * @note: btstack_type H 3109 */ 3110 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 3111 return little_endian_read_16(event, 2); 3112 } 3113 /** 3114 * @brief Get field service_id from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3115 * @param event packet 3116 * @return service_id 3117 * @note: btstack_type 2 3118 */ 3119 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_service_id(const uint8_t * event){ 3120 return little_endian_read_16(event, 4); 3121 } 3122 /** 3123 * @brief Get field connection_id from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3124 * @param event packet 3125 * @return connection_id 3126 * @note: btstack_type 2 3127 */ 3128 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_connection_id(const uint8_t * event){ 3129 return little_endian_read_16(event, 6); 3130 } 3131 /** 3132 * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3133 * @param event packet 3134 * @return descriptor_handle 3135 * @note: btstack_type 2 3136 */ 3137 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){ 3138 return little_endian_read_16(event, 8); 3139 } 3140 /** 3141 * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3142 * @param event packet 3143 * @return descriptor_length 3144 * @note: btstack_type L 3145 */ 3146 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 3147 return little_endian_read_16(event, 10); 3148 } 3149 /** 3150 * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3151 * @param event packet 3152 * @return descriptor 3153 * @note: btstack_type V 3154 */ 3155 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 3156 return &event[12]; 3157 } 3158 #endif 3159 3160 #ifdef ENABLE_BLE 3161 /** 3162 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3163 * @param event packet 3164 * @return handle 3165 * @note: btstack_type H 3166 */ 3167 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 3168 return little_endian_read_16(event, 2); 3169 } 3170 /** 3171 * @brief Get field service_id from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3172 * @param event packet 3173 * @return service_id 3174 * @note: btstack_type 2 3175 */ 3176 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_service_id(const uint8_t * event){ 3177 return little_endian_read_16(event, 4); 3178 } 3179 /** 3180 * @brief Get field connection_id from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3181 * @param event packet 3182 * @return connection_id 3183 * @note: btstack_type 2 3184 */ 3185 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_connection_id(const uint8_t * event){ 3186 return little_endian_read_16(event, 6); 3187 } 3188 /** 3189 * @brief Get field descriptor_handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3190 * @param event packet 3191 * @return descriptor_handle 3192 * @note: btstack_type 2 3193 */ 3194 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){ 3195 return little_endian_read_16(event, 8); 3196 } 3197 /** 3198 * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3199 * @param event packet 3200 * @return descriptor_offset 3201 * @note: btstack_type 2 3202 */ 3203 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){ 3204 return little_endian_read_16(event, 10); 3205 } 3206 /** 3207 * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3208 * @param event packet 3209 * @return descriptor_length 3210 * @note: btstack_type L 3211 */ 3212 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 3213 return little_endian_read_16(event, 12); 3214 } 3215 /** 3216 * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 3217 * @param event packet 3218 * @return descriptor 3219 * @note: btstack_type V 3220 */ 3221 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 3222 return &event[14]; 3223 } 3224 #endif 3225 3226 #ifdef ENABLE_BLE 3227 /** 3228 * @brief Get field handle from event GATT_EVENT_MTU 3229 * @param event packet 3230 * @return handle 3231 * @note: btstack_type H 3232 */ 3233 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){ 3234 return little_endian_read_16(event, 2); 3235 } 3236 /** 3237 * @brief Get field MTU from event GATT_EVENT_MTU 3238 * @param event packet 3239 * @return MTU 3240 * @note: btstack_type 2 3241 */ 3242 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){ 3243 return little_endian_read_16(event, 4); 3244 } 3245 #endif 3246 3247 #ifdef ENABLE_BLE 3248 /** 3249 * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 3250 * @param event packet 3251 * @return handle 3252 * @note: btstack_type H 3253 */ 3254 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){ 3255 return little_endian_read_16(event, 2); 3256 } 3257 #endif 3258 3259 #ifdef ENABLE_BLE 3260 /** 3261 * @brief Get field status from event GATT_EVENT_CONNECTED 3262 * @param event packet 3263 * @return status 3264 * @note: btstack_type 1 3265 */ 3266 static inline uint8_t gatt_event_connected_get_status(const uint8_t * event){ 3267 return event[2]; 3268 } 3269 /** 3270 * @brief Get field address_type from event GATT_EVENT_CONNECTED 3271 * @param event packet 3272 * @return address_type 3273 * @note: btstack_type 1 3274 */ 3275 static inline uint8_t gatt_event_connected_get_address_type(const uint8_t * event){ 3276 return event[3]; 3277 } 3278 /** 3279 * @brief Get field address from event GATT_EVENT_CONNECTED 3280 * @param event packet 3281 * @param Pointer to storage for address 3282 * @note: btstack_type B 3283 */ 3284 static inline void gatt_event_connected_get_address(const uint8_t * event, bd_addr_t address){ 3285 reverse_bytes(&event[4], address, 6); 3286 } 3287 /** 3288 * @brief Get field handle from event GATT_EVENT_CONNECTED 3289 * @param event packet 3290 * @return handle 3291 * @note: btstack_type H 3292 */ 3293 static inline hci_con_handle_t gatt_event_connected_get_handle(const uint8_t * event){ 3294 return little_endian_read_16(event, 10); 3295 } 3296 #endif 3297 3298 #ifdef ENABLE_BLE 3299 /** 3300 * @brief Get field handle from event GATT_EVENT_DISCONNECTED 3301 * @param event packet 3302 * @return handle 3303 * @note: btstack_type H 3304 */ 3305 static inline hci_con_handle_t gatt_event_disconnected_get_handle(const uint8_t * event){ 3306 return little_endian_read_16(event, 2); 3307 } 3308 #endif 3309 3310 #ifdef ENABLE_BLE 3311 /** 3312 * @brief Get field handle from event GATT_EVENT_SERVICE_CHANGED 3313 * @param event packet 3314 * @return handle 3315 * @note: btstack_type H 3316 */ 3317 static inline hci_con_handle_t gatt_event_service_changed_get_handle(const uint8_t * event){ 3318 return little_endian_read_16(event, 2); 3319 } 3320 /** 3321 * @brief Get field attribute_handle_start from event GATT_EVENT_SERVICE_CHANGED 3322 * @param event packet 3323 * @return attribute_handle_start 3324 * @note: btstack_type 2 3325 */ 3326 static inline uint16_t gatt_event_service_changed_get_attribute_handle_start(const uint8_t * event){ 3327 return little_endian_read_16(event, 4); 3328 } 3329 /** 3330 * @brief Get field attribute_handle_end from event GATT_EVENT_SERVICE_CHANGED 3331 * @param event packet 3332 * @return attribute_handle_end 3333 * @note: btstack_type 2 3334 */ 3335 static inline uint16_t gatt_event_service_changed_get_attribute_handle_end(const uint8_t * event){ 3336 return little_endian_read_16(event, 6); 3337 } 3338 #endif 3339 3340 /** 3341 * @brief Get field address_type from event ATT_EVENT_CONNECTED 3342 * @param event packet 3343 * @return address_type 3344 * @note: btstack_type 1 3345 */ 3346 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){ 3347 return event[2]; 3348 } 3349 /** 3350 * @brief Get field address from event ATT_EVENT_CONNECTED 3351 * @param event packet 3352 * @param Pointer to storage for address 3353 * @note: btstack_type B 3354 */ 3355 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){ 3356 reverse_bytes(&event[3], address, 6); 3357 } 3358 /** 3359 * @brief Get field handle from event ATT_EVENT_CONNECTED 3360 * @param event packet 3361 * @return handle 3362 * @note: btstack_type H 3363 */ 3364 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){ 3365 return little_endian_read_16(event, 9); 3366 } 3367 3368 /** 3369 * @brief Get field handle from event ATT_EVENT_DISCONNECTED 3370 * @param event packet 3371 * @return handle 3372 * @note: btstack_type H 3373 */ 3374 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){ 3375 return little_endian_read_16(event, 2); 3376 } 3377 3378 /** 3379 * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 3380 * @param event packet 3381 * @return handle 3382 * @note: btstack_type H 3383 */ 3384 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){ 3385 return little_endian_read_16(event, 2); 3386 } 3387 /** 3388 * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 3389 * @param event packet 3390 * @return MTU 3391 * @note: btstack_type 2 3392 */ 3393 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){ 3394 return little_endian_read_16(event, 4); 3395 } 3396 3397 /** 3398 * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 3399 * @param event packet 3400 * @return status 3401 * @note: btstack_type 1 3402 */ 3403 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){ 3404 return event[2]; 3405 } 3406 /** 3407 * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 3408 * @param event packet 3409 * @return conn_handle 3410 * @note: btstack_type H 3411 */ 3412 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){ 3413 return little_endian_read_16(event, 3); 3414 } 3415 /** 3416 * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 3417 * @param event packet 3418 * @return attribute_handle 3419 * @note: btstack_type 2 3420 */ 3421 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){ 3422 return little_endian_read_16(event, 5); 3423 } 3424 3425 3426 /** 3427 * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED 3428 * @param event packet 3429 * @return status 3430 * @note: btstack_type 1 3431 */ 3432 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){ 3433 return event[2]; 3434 } 3435 /** 3436 * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED 3437 * @param event packet 3438 * @return service_uuid 3439 * @note: btstack_type 2 3440 */ 3441 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){ 3442 return little_endian_read_16(event, 3); 3443 } 3444 3445 /** 3446 * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED 3447 * @param event packet 3448 * @return status 3449 * @note: btstack_type 1 3450 */ 3451 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){ 3452 return event[2]; 3453 } 3454 /** 3455 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED 3456 * @param event packet 3457 * @return bnep_cid 3458 * @note: btstack_type 2 3459 */ 3460 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){ 3461 return little_endian_read_16(event, 3); 3462 } 3463 /** 3464 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED 3465 * @param event packet 3466 * @return source_uuid 3467 * @note: btstack_type 2 3468 */ 3469 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){ 3470 return little_endian_read_16(event, 5); 3471 } 3472 /** 3473 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED 3474 * @param event packet 3475 * @return destination_uuid 3476 * @note: btstack_type 2 3477 */ 3478 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){ 3479 return little_endian_read_16(event, 7); 3480 } 3481 /** 3482 * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED 3483 * @param event packet 3484 * @return mtu 3485 * @note: btstack_type 2 3486 */ 3487 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){ 3488 return little_endian_read_16(event, 9); 3489 } 3490 /** 3491 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED 3492 * @param event packet 3493 * @param Pointer to storage for remote_address 3494 * @note: btstack_type B 3495 */ 3496 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3497 reverse_bytes(&event[11], remote_address, 6); 3498 } 3499 /** 3500 * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED 3501 * @param event packet 3502 * @return con_handle 3503 * @note: btstack_type H 3504 */ 3505 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){ 3506 return little_endian_read_16(event, 17); 3507 } 3508 3509 /** 3510 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED 3511 * @param event packet 3512 * @return bnep_cid 3513 * @note: btstack_type 2 3514 */ 3515 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){ 3516 return little_endian_read_16(event, 2); 3517 } 3518 /** 3519 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED 3520 * @param event packet 3521 * @return source_uuid 3522 * @note: btstack_type 2 3523 */ 3524 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){ 3525 return little_endian_read_16(event, 4); 3526 } 3527 /** 3528 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED 3529 * @param event packet 3530 * @return destination_uuid 3531 * @note: btstack_type 2 3532 */ 3533 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){ 3534 return little_endian_read_16(event, 6); 3535 } 3536 /** 3537 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED 3538 * @param event packet 3539 * @param Pointer to storage for remote_address 3540 * @note: btstack_type B 3541 */ 3542 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3543 reverse_bytes(&event[8], remote_address, 6); 3544 } 3545 3546 /** 3547 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT 3548 * @param event packet 3549 * @return bnep_cid 3550 * @note: btstack_type 2 3551 */ 3552 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){ 3553 return little_endian_read_16(event, 2); 3554 } 3555 /** 3556 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 3557 * @param event packet 3558 * @return source_uuid 3559 * @note: btstack_type 2 3560 */ 3561 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){ 3562 return little_endian_read_16(event, 4); 3563 } 3564 /** 3565 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 3566 * @param event packet 3567 * @return destination_uuid 3568 * @note: btstack_type 2 3569 */ 3570 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){ 3571 return little_endian_read_16(event, 6); 3572 } 3573 /** 3574 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT 3575 * @param event packet 3576 * @param Pointer to storage for remote_address 3577 * @note: btstack_type B 3578 */ 3579 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3580 reverse_bytes(&event[8], remote_address, 6); 3581 } 3582 /** 3583 * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT 3584 * @param event packet 3585 * @return channel_state 3586 * @note: btstack_type 1 3587 */ 3588 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){ 3589 return event[14]; 3590 } 3591 3592 /** 3593 * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW 3594 * @param event packet 3595 * @return bnep_cid 3596 * @note: btstack_type 2 3597 */ 3598 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){ 3599 return little_endian_read_16(event, 2); 3600 } 3601 /** 3602 * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW 3603 * @param event packet 3604 * @return source_uuid 3605 * @note: btstack_type 2 3606 */ 3607 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){ 3608 return little_endian_read_16(event, 4); 3609 } 3610 /** 3611 * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW 3612 * @param event packet 3613 * @return destination_uuid 3614 * @note: btstack_type 2 3615 */ 3616 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){ 3617 return little_endian_read_16(event, 6); 3618 } 3619 /** 3620 * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW 3621 * @param event packet 3622 * @param Pointer to storage for remote_address 3623 * @note: btstack_type B 3624 */ 3625 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 3626 reverse_bytes(&event[8], remote_address, 6); 3627 } 3628 3629 #ifdef ENABLE_BLE 3630 /** 3631 * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST 3632 * @param event packet 3633 * @return handle 3634 * @note: btstack_type H 3635 */ 3636 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){ 3637 return little_endian_read_16(event, 2); 3638 } 3639 /** 3640 * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST 3641 * @param event packet 3642 * @return addr_type 3643 * @note: btstack_type 1 3644 */ 3645 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){ 3646 return event[4]; 3647 } 3648 /** 3649 * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST 3650 * @param event packet 3651 * @param Pointer to storage for address 3652 * @note: btstack_type B 3653 */ 3654 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){ 3655 reverse_bytes(&event[5], address, 6); 3656 } 3657 /** 3658 * @brief Get field secure_connection from event SM_EVENT_JUST_WORKS_REQUEST 3659 * @param event packet 3660 * @return secure_connection 3661 * @note: btstack_type 1 3662 */ 3663 static inline uint8_t sm_event_just_works_request_get_secure_connection(const uint8_t * event){ 3664 return event[11]; 3665 } 3666 #endif 3667 3668 #ifdef ENABLE_BLE 3669 /** 3670 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3671 * @param event packet 3672 * @return handle 3673 * @note: btstack_type H 3674 */ 3675 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){ 3676 return little_endian_read_16(event, 2); 3677 } 3678 /** 3679 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3680 * @param event packet 3681 * @return addr_type 3682 * @note: btstack_type 1 3683 */ 3684 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){ 3685 return event[4]; 3686 } 3687 /** 3688 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3689 * @param event packet 3690 * @param Pointer to storage for address 3691 * @note: btstack_type B 3692 */ 3693 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){ 3694 reverse_bytes(&event[5], address, 6); 3695 } 3696 /** 3697 * @brief Get field secure_connection from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3698 * @param event packet 3699 * @return secure_connection 3700 * @note: btstack_type 1 3701 */ 3702 static inline uint8_t sm_event_passkey_display_number_get_secure_connection(const uint8_t * event){ 3703 return event[11]; 3704 } 3705 /** 3706 * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 3707 * @param event packet 3708 * @return passkey 3709 * @note: btstack_type 4 3710 */ 3711 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){ 3712 return little_endian_read_32(event, 12); 3713 } 3714 #endif 3715 3716 #ifdef ENABLE_BLE 3717 /** 3718 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3719 * @param event packet 3720 * @return handle 3721 * @note: btstack_type H 3722 */ 3723 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){ 3724 return little_endian_read_16(event, 2); 3725 } 3726 /** 3727 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3728 * @param event packet 3729 * @return addr_type 3730 * @note: btstack_type 1 3731 */ 3732 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){ 3733 return event[4]; 3734 } 3735 /** 3736 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 3737 * @param event packet 3738 * @param Pointer to storage for address 3739 * @note: btstack_type B 3740 */ 3741 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){ 3742 reverse_bytes(&event[5], address, 6); 3743 } 3744 #endif 3745 3746 #ifdef ENABLE_BLE 3747 /** 3748 * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER 3749 * @param event packet 3750 * @return handle 3751 * @note: btstack_type H 3752 */ 3753 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){ 3754 return little_endian_read_16(event, 2); 3755 } 3756 /** 3757 * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER 3758 * @param event packet 3759 * @return addr_type 3760 * @note: btstack_type 1 3761 */ 3762 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){ 3763 return event[4]; 3764 } 3765 /** 3766 * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER 3767 * @param event packet 3768 * @param Pointer to storage for address 3769 * @note: btstack_type B 3770 */ 3771 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){ 3772 reverse_bytes(&event[5], address, 6); 3773 } 3774 /** 3775 * @brief Get field secure_connection from event SM_EVENT_PASSKEY_INPUT_NUMBER 3776 * @param event packet 3777 * @return secure_connection 3778 * @note: btstack_type 1 3779 */ 3780 static inline uint8_t sm_event_passkey_input_number_get_secure_connection(const uint8_t * event){ 3781 return event[11]; 3782 } 3783 #endif 3784 3785 #ifdef ENABLE_BLE 3786 /** 3787 * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3788 * @param event packet 3789 * @return handle 3790 * @note: btstack_type H 3791 */ 3792 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){ 3793 return little_endian_read_16(event, 2); 3794 } 3795 /** 3796 * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3797 * @param event packet 3798 * @return addr_type 3799 * @note: btstack_type 1 3800 */ 3801 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){ 3802 return event[4]; 3803 } 3804 /** 3805 * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3806 * @param event packet 3807 * @param Pointer to storage for address 3808 * @note: btstack_type B 3809 */ 3810 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){ 3811 reverse_bytes(&event[5], address, 6); 3812 } 3813 /** 3814 * @brief Get field secure_connection from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3815 * @param event packet 3816 * @return secure_connection 3817 * @note: btstack_type 1 3818 */ 3819 static inline uint8_t sm_event_numeric_comparison_request_get_secure_connection(const uint8_t * event){ 3820 return event[11]; 3821 } 3822 /** 3823 * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 3824 * @param event packet 3825 * @return passkey 3826 * @note: btstack_type 4 3827 */ 3828 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){ 3829 return little_endian_read_32(event, 12); 3830 } 3831 #endif 3832 3833 #ifdef ENABLE_BLE 3834 /** 3835 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3836 * @param event packet 3837 * @return handle 3838 * @note: btstack_type H 3839 */ 3840 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){ 3841 return little_endian_read_16(event, 2); 3842 } 3843 /** 3844 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3845 * @param event packet 3846 * @return addr_type 3847 * @note: btstack_type 1 3848 */ 3849 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){ 3850 return event[4]; 3851 } 3852 /** 3853 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED 3854 * @param event packet 3855 * @param Pointer to storage for address 3856 * @note: btstack_type B 3857 */ 3858 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){ 3859 reverse_bytes(&event[5], address, 6); 3860 } 3861 #endif 3862 3863 #ifdef ENABLE_BLE 3864 /** 3865 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3866 * @param event packet 3867 * @return handle 3868 * @note: btstack_type H 3869 */ 3870 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){ 3871 return little_endian_read_16(event, 2); 3872 } 3873 /** 3874 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3875 * @param event packet 3876 * @return addr_type 3877 * @note: btstack_type 1 3878 */ 3879 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){ 3880 return event[4]; 3881 } 3882 /** 3883 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED 3884 * @param event packet 3885 * @param Pointer to storage for address 3886 * @note: btstack_type B 3887 */ 3888 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){ 3889 reverse_bytes(&event[5], address, 6); 3890 } 3891 #endif 3892 3893 #ifdef ENABLE_BLE 3894 /** 3895 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3896 * @param event packet 3897 * @return handle 3898 * @note: btstack_type H 3899 */ 3900 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){ 3901 return little_endian_read_16(event, 2); 3902 } 3903 /** 3904 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3905 * @param event packet 3906 * @return addr_type 3907 * @note: btstack_type 1 3908 */ 3909 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){ 3910 return event[4]; 3911 } 3912 /** 3913 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3914 * @param event packet 3915 * @param Pointer to storage for address 3916 * @note: btstack_type B 3917 */ 3918 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){ 3919 reverse_bytes(&event[5], address, 6); 3920 } 3921 /** 3922 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3923 * @param event packet 3924 * @return identity_addr_type 3925 * @note: btstack_type 1 3926 */ 3927 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){ 3928 return event[11]; 3929 } 3930 /** 3931 * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3932 * @param event packet 3933 * @param Pointer to storage for identity_address 3934 * @note: btstack_type B 3935 */ 3936 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 3937 reverse_bytes(&event[12], identity_address, 6); 3938 } 3939 /** 3940 * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 3941 * @param event packet 3942 * @return index 3943 * @note: btstack_type 2 3944 */ 3945 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){ 3946 return little_endian_read_16(event, 18); 3947 } 3948 #endif 3949 3950 #ifdef ENABLE_BLE 3951 /** 3952 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST 3953 * @param event packet 3954 * @return handle 3955 * @note: btstack_type H 3956 */ 3957 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){ 3958 return little_endian_read_16(event, 2); 3959 } 3960 /** 3961 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST 3962 * @param event packet 3963 * @return addr_type 3964 * @note: btstack_type 1 3965 */ 3966 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){ 3967 return event[4]; 3968 } 3969 /** 3970 * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST 3971 * @param event packet 3972 * @param Pointer to storage for address 3973 * @note: btstack_type B 3974 */ 3975 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){ 3976 reverse_bytes(&event[5], address, 6); 3977 } 3978 #endif 3979 3980 #ifdef ENABLE_BLE 3981 /** 3982 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT 3983 * @param event packet 3984 * @return handle 3985 * @note: btstack_type H 3986 */ 3987 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){ 3988 return little_endian_read_16(event, 2); 3989 } 3990 /** 3991 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT 3992 * @param event packet 3993 * @return addr_type 3994 * @note: btstack_type 1 3995 */ 3996 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){ 3997 return event[4]; 3998 } 3999 /** 4000 * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT 4001 * @param event packet 4002 * @param Pointer to storage for address 4003 * @note: btstack_type B 4004 */ 4005 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){ 4006 reverse_bytes(&event[5], address, 6); 4007 } 4008 /** 4009 * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT 4010 * @param event packet 4011 * @return authorization_result 4012 * @note: btstack_type 1 4013 */ 4014 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){ 4015 return event[11]; 4016 } 4017 #endif 4018 4019 #ifdef ENABLE_BLE 4020 /** 4021 * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION 4022 * @param event packet 4023 * @return handle 4024 * @note: btstack_type H 4025 */ 4026 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){ 4027 return little_endian_read_16(event, 2); 4028 } 4029 /** 4030 * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION 4031 * @param event packet 4032 * @return action 4033 * @note: btstack_type 1 4034 */ 4035 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){ 4036 return event[4]; 4037 } 4038 #endif 4039 4040 #ifdef ENABLE_BLE 4041 /** 4042 * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED 4043 * @param event packet 4044 * @return handle 4045 * @note: btstack_type H 4046 */ 4047 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){ 4048 return little_endian_read_16(event, 2); 4049 } 4050 /** 4051 * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED 4052 * @param event packet 4053 * @return addr_type 4054 * @note: btstack_type 1 4055 */ 4056 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){ 4057 return event[4]; 4058 } 4059 /** 4060 * @brief Get field address from event SM_EVENT_IDENTITY_CREATED 4061 * @param event packet 4062 * @param Pointer to storage for address 4063 * @note: btstack_type B 4064 */ 4065 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){ 4066 reverse_bytes(&event[5], address, 6); 4067 } 4068 /** 4069 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED 4070 * @param event packet 4071 * @return identity_addr_type 4072 * @note: btstack_type 1 4073 */ 4074 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){ 4075 return event[11]; 4076 } 4077 /** 4078 * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED 4079 * @param event packet 4080 * @param Pointer to storage for identity_address 4081 * @note: btstack_type B 4082 */ 4083 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 4084 reverse_bytes(&event[12], identity_address, 6); 4085 } 4086 /** 4087 * @brief Get field index from event SM_EVENT_IDENTITY_CREATED 4088 * @param event packet 4089 * @return index 4090 * @note: btstack_type 2 4091 */ 4092 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){ 4093 return little_endian_read_16(event, 18); 4094 } 4095 #endif 4096 4097 #ifdef ENABLE_BLE 4098 /** 4099 * @brief Get field handle from event SM_EVENT_PAIRING_STARTED 4100 * @param event packet 4101 * @return handle 4102 * @note: btstack_type H 4103 */ 4104 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){ 4105 return little_endian_read_16(event, 2); 4106 } 4107 /** 4108 * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED 4109 * @param event packet 4110 * @return addr_type 4111 * @note: btstack_type 1 4112 */ 4113 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){ 4114 return event[4]; 4115 } 4116 /** 4117 * @brief Get field address from event SM_EVENT_PAIRING_STARTED 4118 * @param event packet 4119 * @param Pointer to storage for address 4120 * @note: btstack_type B 4121 */ 4122 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){ 4123 reverse_bytes(&event[5], address, 6); 4124 } 4125 #endif 4126 4127 #ifdef ENABLE_BLE 4128 /** 4129 * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE 4130 * @param event packet 4131 * @return handle 4132 * @note: btstack_type H 4133 */ 4134 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){ 4135 return little_endian_read_16(event, 2); 4136 } 4137 /** 4138 * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE 4139 * @param event packet 4140 * @return addr_type 4141 * @note: btstack_type 1 4142 */ 4143 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){ 4144 return event[4]; 4145 } 4146 /** 4147 * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE 4148 * @param event packet 4149 * @param Pointer to storage for address 4150 * @note: btstack_type B 4151 */ 4152 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){ 4153 reverse_bytes(&event[5], address, 6); 4154 } 4155 /** 4156 * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE 4157 * @param event packet 4158 * @return status 4159 * @note: btstack_type 1 4160 */ 4161 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){ 4162 return event[11]; 4163 } 4164 /** 4165 * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE 4166 * @param event packet 4167 * @return reason 4168 * @note: btstack_type 1 4169 */ 4170 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){ 4171 return event[12]; 4172 } 4173 #endif 4174 4175 #ifdef ENABLE_BLE 4176 /** 4177 * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED 4178 * @param event packet 4179 * @return handle 4180 * @note: btstack_type H 4181 */ 4182 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){ 4183 return little_endian_read_16(event, 2); 4184 } 4185 /** 4186 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED 4187 * @param event packet 4188 * @return addr_type 4189 * @note: btstack_type 1 4190 */ 4191 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){ 4192 return event[4]; 4193 } 4194 /** 4195 * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED 4196 * @param event packet 4197 * @param Pointer to storage for address 4198 * @note: btstack_type B 4199 */ 4200 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){ 4201 reverse_bytes(&event[5], address, 6); 4202 } 4203 #endif 4204 4205 #ifdef ENABLE_BLE 4206 /** 4207 * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE 4208 * @param event packet 4209 * @return handle 4210 * @note: btstack_type H 4211 */ 4212 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){ 4213 return little_endian_read_16(event, 2); 4214 } 4215 /** 4216 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE 4217 * @param event packet 4218 * @return addr_type 4219 * @note: btstack_type 1 4220 */ 4221 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){ 4222 return event[4]; 4223 } 4224 /** 4225 * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE 4226 * @param event packet 4227 * @param Pointer to storage for address 4228 * @note: btstack_type B 4229 */ 4230 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){ 4231 reverse_bytes(&event[5], address, 6); 4232 } 4233 /** 4234 * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE 4235 * @param event packet 4236 * @return status 4237 * @note: btstack_type 1 4238 */ 4239 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){ 4240 return event[11]; 4241 } 4242 #endif 4243 4244 /** 4245 * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL 4246 * @param event packet 4247 * @return handle 4248 * @note: btstack_type H 4249 */ 4250 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){ 4251 return little_endian_read_16(event, 2); 4252 } 4253 /** 4254 * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL 4255 * @param event packet 4256 * @return security_level 4257 * @note: btstack_type 1 4258 */ 4259 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){ 4260 return event[4]; 4261 } 4262 4263 /** 4264 * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 4265 * @param event packet 4266 * @return status 4267 * @note: btstack_type 1 4268 */ 4269 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){ 4270 return event[2]; 4271 } 4272 /** 4273 * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 4274 * @param event packet 4275 * @param Pointer to storage for address 4276 * @note: btstack_type B 4277 */ 4278 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){ 4279 reverse_bytes(&event[3], address, 6); 4280 } 4281 4282 /** 4283 * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT 4284 * @param event packet 4285 * @return advertising_event_type 4286 * @note: btstack_type 1 4287 */ 4288 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){ 4289 return event[2]; 4290 } 4291 /** 4292 * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT 4293 * @param event packet 4294 * @return address_type 4295 * @note: btstack_type 1 4296 */ 4297 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){ 4298 return event[3]; 4299 } 4300 /** 4301 * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT 4302 * @param event packet 4303 * @param Pointer to storage for address 4304 * @note: btstack_type B 4305 */ 4306 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 4307 reverse_bytes(&event[4], address, 6); 4308 } 4309 /** 4310 * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT 4311 * @param event packet 4312 * @return rssi 4313 * @note: btstack_type 1 4314 */ 4315 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){ 4316 return event[10]; 4317 } 4318 /** 4319 * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT 4320 * @param event packet 4321 * @return data_length 4322 * @note: btstack_type J 4323 */ 4324 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){ 4325 return event[11]; 4326 } 4327 /** 4328 * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT 4329 * @param event packet 4330 * @return data 4331 * @note: btstack_type V 4332 */ 4333 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){ 4334 return &event[12]; 4335 } 4336 4337 /** 4338 * @brief Get field advertising_event_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4339 * @param event packet 4340 * @return advertising_event_type 4341 * @note: btstack_type 2 4342 */ 4343 static inline uint16_t gap_event_extended_advertising_report_get_advertising_event_type(const uint8_t * event){ 4344 return little_endian_read_16(event, 2); 4345 } 4346 /** 4347 * @brief Get field address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4348 * @param event packet 4349 * @return address_type 4350 * @note: btstack_type 1 4351 */ 4352 static inline uint8_t gap_event_extended_advertising_report_get_address_type(const uint8_t * event){ 4353 return event[4]; 4354 } 4355 /** 4356 * @brief Get field address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4357 * @param event packet 4358 * @param Pointer to storage for address 4359 * @note: btstack_type B 4360 */ 4361 static inline void gap_event_extended_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 4362 reverse_bytes(&event[5], address, 6); 4363 } 4364 /** 4365 * @brief Get field primary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4366 * @param event packet 4367 * @return primary_phy 4368 * @note: btstack_type 1 4369 */ 4370 static inline uint8_t gap_event_extended_advertising_report_get_primary_phy(const uint8_t * event){ 4371 return event[11]; 4372 } 4373 /** 4374 * @brief Get field secondary_phy from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4375 * @param event packet 4376 * @return secondary_phy 4377 * @note: btstack_type 1 4378 */ 4379 static inline uint8_t gap_event_extended_advertising_report_get_secondary_phy(const uint8_t * event){ 4380 return event[12]; 4381 } 4382 /** 4383 * @brief Get field advertising_sid from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4384 * @param event packet 4385 * @return advertising_sid 4386 * @note: btstack_type 1 4387 */ 4388 static inline uint8_t gap_event_extended_advertising_report_get_advertising_sid(const uint8_t * event){ 4389 return event[13]; 4390 } 4391 /** 4392 * @brief Get field tx_power from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4393 * @param event packet 4394 * @return tx_power 4395 * @note: btstack_type 1 4396 */ 4397 static inline uint8_t gap_event_extended_advertising_report_get_tx_power(const uint8_t * event){ 4398 return event[14]; 4399 } 4400 /** 4401 * @brief Get field rssi from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4402 * @param event packet 4403 * @return rssi 4404 * @note: btstack_type 1 4405 */ 4406 static inline uint8_t gap_event_extended_advertising_report_get_rssi(const uint8_t * event){ 4407 return event[15]; 4408 } 4409 /** 4410 * @brief Get field periodic_advertising_interval from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4411 * @param event packet 4412 * @return periodic_advertising_interval 4413 * @note: btstack_type 2 4414 */ 4415 static inline uint16_t gap_event_extended_advertising_report_get_periodic_advertising_interval(const uint8_t * event){ 4416 return little_endian_read_16(event, 16); 4417 } 4418 /** 4419 * @brief Get field direct_address_type from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4420 * @param event packet 4421 * @return direct_address_type 4422 * @note: btstack_type 1 4423 */ 4424 static inline uint8_t gap_event_extended_advertising_report_get_direct_address_type(const uint8_t * event){ 4425 return event[18]; 4426 } 4427 /** 4428 * @brief Get field direct_address from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4429 * @param event packet 4430 * @param Pointer to storage for direct_address 4431 * @note: btstack_type B 4432 */ 4433 static inline void gap_event_extended_advertising_report_get_direct_address(const uint8_t * event, bd_addr_t direct_address){ 4434 reverse_bytes(&event[19], direct_address, 6); 4435 } 4436 /** 4437 * @brief Get field data_length from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4438 * @param event packet 4439 * @return data_length 4440 * @note: btstack_type J 4441 */ 4442 static inline uint8_t gap_event_extended_advertising_report_get_data_length(const uint8_t * event){ 4443 return event[25]; 4444 } 4445 /** 4446 * @brief Get field data from event GAP_EVENT_EXTENDED_ADVERTISING_REPORT 4447 * @param event packet 4448 * @return data 4449 * @note: btstack_type V 4450 */ 4451 static inline const uint8_t * gap_event_extended_advertising_report_get_data(const uint8_t * event){ 4452 return &event[26]; 4453 } 4454 4455 /** 4456 * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT 4457 * @param event packet 4458 * @param Pointer to storage for bd_addr 4459 * @note: btstack_type B 4460 */ 4461 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4462 reverse_bytes(&event[2], bd_addr, 6); 4463 } 4464 /** 4465 * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT 4466 * @param event packet 4467 * @return page_scan_repetition_mode 4468 * @note: btstack_type 1 4469 */ 4470 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 4471 return event[8]; 4472 } 4473 /** 4474 * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT 4475 * @param event packet 4476 * @return class_of_device 4477 * @note: btstack_type 3 4478 */ 4479 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){ 4480 return little_endian_read_24(event, 9); 4481 } 4482 /** 4483 * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT 4484 * @param event packet 4485 * @return clock_offset 4486 * @note: btstack_type 2 4487 */ 4488 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){ 4489 return little_endian_read_16(event, 12); 4490 } 4491 /** 4492 * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT 4493 * @param event packet 4494 * @return rssi_available 4495 * @note: btstack_type 1 4496 */ 4497 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){ 4498 return event[14]; 4499 } 4500 /** 4501 * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT 4502 * @param event packet 4503 * @return rssi 4504 * @note: btstack_type 1 4505 */ 4506 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){ 4507 return event[15]; 4508 } 4509 /** 4510 * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT 4511 * @param event packet 4512 * @return device_id_available 4513 * @note: btstack_type 1 4514 */ 4515 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){ 4516 return event[16]; 4517 } 4518 /** 4519 * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT 4520 * @param event packet 4521 * @return device_id_vendor_id_source 4522 * @note: btstack_type 2 4523 */ 4524 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){ 4525 return little_endian_read_16(event, 17); 4526 } 4527 /** 4528 * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT 4529 * @param event packet 4530 * @return device_id_vendor_id 4531 * @note: btstack_type 2 4532 */ 4533 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){ 4534 return little_endian_read_16(event, 19); 4535 } 4536 /** 4537 * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT 4538 * @param event packet 4539 * @return device_id_product_id 4540 * @note: btstack_type 2 4541 */ 4542 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){ 4543 return little_endian_read_16(event, 21); 4544 } 4545 /** 4546 * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT 4547 * @param event packet 4548 * @return device_id_version 4549 * @note: btstack_type 2 4550 */ 4551 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){ 4552 return little_endian_read_16(event, 23); 4553 } 4554 /** 4555 * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT 4556 * @param event packet 4557 * @return name_available 4558 * @note: btstack_type 1 4559 */ 4560 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){ 4561 return event[25]; 4562 } 4563 /** 4564 * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT 4565 * @param event packet 4566 * @return name_len 4567 * @note: btstack_type J 4568 */ 4569 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){ 4570 return event[26]; 4571 } 4572 /** 4573 * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT 4574 * @param event packet 4575 * @return name 4576 * @note: btstack_type V 4577 */ 4578 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){ 4579 return &event[27]; 4580 } 4581 4582 /** 4583 * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE 4584 * @param event packet 4585 * @return status 4586 * @note: btstack_type 1 4587 */ 4588 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){ 4589 return event[2]; 4590 } 4591 4592 /** 4593 * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT 4594 * @param event packet 4595 * @return con_handle 4596 * @note: btstack_type H 4597 */ 4598 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){ 4599 return little_endian_read_16(event, 2); 4600 } 4601 /** 4602 * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT 4603 * @param event packet 4604 * @return rssi 4605 * @note: btstack_type 1 4606 */ 4607 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){ 4608 return event[4]; 4609 } 4610 4611 /** 4612 * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA 4613 * @param event packet 4614 * @return oob_data_present 4615 * @note: btstack_type 1 4616 */ 4617 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){ 4618 return event[2]; 4619 } 4620 /** 4621 * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA 4622 * @param event packet 4623 * @param Pointer to storage for c_192 4624 * @note: btstack_type K 4625 */ 4626 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){ 4627 reverse_bytes(&event[3], c_192, 16); 4628 } 4629 /** 4630 * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA 4631 * @param event packet 4632 * @param Pointer to storage for r_192 4633 * @note: btstack_type K 4634 */ 4635 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){ 4636 reverse_bytes(&event[19], r_192, 16); 4637 } 4638 /** 4639 * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA 4640 * @param event packet 4641 * @param Pointer to storage for c_256 4642 * @note: btstack_type K 4643 */ 4644 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){ 4645 reverse_bytes(&event[35], c_256, 16); 4646 } 4647 /** 4648 * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA 4649 * @param event packet 4650 * @param Pointer to storage for r_256 4651 * @note: btstack_type K 4652 */ 4653 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){ 4654 reverse_bytes(&event[51], r_256, 16); 4655 } 4656 4657 /** 4658 * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED 4659 * @param event packet 4660 * @return con_handle 4661 * @note: btstack_type H 4662 */ 4663 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){ 4664 return little_endian_read_16(event, 2); 4665 } 4666 /** 4667 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED 4668 * @param event packet 4669 * @param Pointer to storage for bd_addr 4670 * @note: btstack_type B 4671 */ 4672 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4673 reverse_bytes(&event[4], bd_addr, 6); 4674 } 4675 /** 4676 * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED 4677 * @param event packet 4678 * @return ssp 4679 * @note: btstack_type 1 4680 */ 4681 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){ 4682 return event[10]; 4683 } 4684 /** 4685 * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED 4686 * @param event packet 4687 * @return initiator 4688 * @note: btstack_type 1 4689 */ 4690 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){ 4691 return event[11]; 4692 } 4693 4694 /** 4695 * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE 4696 * @param event packet 4697 * @return con_handle 4698 * @note: btstack_type H 4699 */ 4700 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){ 4701 return little_endian_read_16(event, 2); 4702 } 4703 /** 4704 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE 4705 * @param event packet 4706 * @param Pointer to storage for bd_addr 4707 * @note: btstack_type B 4708 */ 4709 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4710 reverse_bytes(&event[4], bd_addr, 6); 4711 } 4712 /** 4713 * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE 4714 * @param event packet 4715 * @return status 4716 * @note: btstack_type 1 4717 */ 4718 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){ 4719 return event[10]; 4720 } 4721 4722 /** 4723 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4724 * @param event packet 4725 * @return status 4726 * @note: btstack_type 1 4727 */ 4728 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){ 4729 return event[3]; 4730 } 4731 /** 4732 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4733 * @param event packet 4734 * @return connection_handle 4735 * @note: btstack_type H 4736 */ 4737 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){ 4738 return little_endian_read_16(event, 4); 4739 } 4740 /** 4741 * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4742 * @param event packet 4743 * @return role 4744 * @note: btstack_type 1 4745 */ 4746 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){ 4747 return event[6]; 4748 } 4749 /** 4750 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4751 * @param event packet 4752 * @return peer_address_type 4753 * @note: btstack_type 1 4754 */ 4755 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){ 4756 return event[7]; 4757 } 4758 /** 4759 * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4760 * @param event packet 4761 * @param Pointer to storage for peer_address 4762 * @note: btstack_type B 4763 */ 4764 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){ 4765 reverse_bytes(&event[8], peer_address, 6); 4766 } 4767 /** 4768 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4769 * @param event packet 4770 * @return conn_interval 4771 * @note: btstack_type 2 4772 */ 4773 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){ 4774 return little_endian_read_16(event, 14); 4775 } 4776 /** 4777 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4778 * @param event packet 4779 * @return conn_latency 4780 * @note: btstack_type 2 4781 */ 4782 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){ 4783 return little_endian_read_16(event, 16); 4784 } 4785 /** 4786 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4787 * @param event packet 4788 * @return supervision_timeout 4789 * @note: btstack_type 2 4790 */ 4791 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){ 4792 return little_endian_read_16(event, 18); 4793 } 4794 /** 4795 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 4796 * @param event packet 4797 * @return master_clock_accuracy 4798 * @note: btstack_type 1 4799 */ 4800 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 4801 return event[20]; 4802 } 4803 4804 /** 4805 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4806 * @param event packet 4807 * @return status 4808 * @note: btstack_type 1 4809 */ 4810 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){ 4811 return event[3]; 4812 } 4813 /** 4814 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4815 * @param event packet 4816 * @return connection_handle 4817 * @note: btstack_type H 4818 */ 4819 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){ 4820 return little_endian_read_16(event, 4); 4821 } 4822 /** 4823 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4824 * @param event packet 4825 * @return conn_interval 4826 * @note: btstack_type 2 4827 */ 4828 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){ 4829 return little_endian_read_16(event, 6); 4830 } 4831 /** 4832 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4833 * @param event packet 4834 * @return conn_latency 4835 * @note: btstack_type 2 4836 */ 4837 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){ 4838 return little_endian_read_16(event, 8); 4839 } 4840 /** 4841 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 4842 * @param event packet 4843 * @return supervision_timeout 4844 * @note: btstack_type 2 4845 */ 4846 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){ 4847 return little_endian_read_16(event, 10); 4848 } 4849 4850 /** 4851 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 4852 * @param event packet 4853 * @return connection_handle 4854 * @note: btstack_type H 4855 */ 4856 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){ 4857 return little_endian_read_16(event, 3); 4858 } 4859 /** 4860 * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 4861 * @param event packet 4862 * @return le_features 4863 * @note: btstack_type D 4864 */ 4865 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){ 4866 return (const uint8_t *) &event[5]; 4867 } 4868 4869 /** 4870 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4871 * @param event packet 4872 * @return connection_handle 4873 * @note: btstack_type H 4874 */ 4875 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){ 4876 return little_endian_read_16(event, 3); 4877 } 4878 /** 4879 * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4880 * @param event packet 4881 * @return random_number 4882 * @note: btstack_type D 4883 */ 4884 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){ 4885 return (const uint8_t *) &event[5]; 4886 } 4887 /** 4888 * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 4889 * @param event packet 4890 * @return encryption_diversifier 4891 * @note: btstack_type 2 4892 */ 4893 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){ 4894 return little_endian_read_16(event, 13); 4895 } 4896 4897 /** 4898 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4899 * @param event packet 4900 * @return connection_handle 4901 * @note: btstack_type H 4902 */ 4903 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){ 4904 return little_endian_read_16(event, 3); 4905 } 4906 /** 4907 * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4908 * @param event packet 4909 * @return interval_min 4910 * @note: btstack_type 2 4911 */ 4912 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){ 4913 return little_endian_read_16(event, 5); 4914 } 4915 /** 4916 * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4917 * @param event packet 4918 * @return interval_max 4919 * @note: btstack_type 2 4920 */ 4921 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){ 4922 return little_endian_read_16(event, 7); 4923 } 4924 /** 4925 * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4926 * @param event packet 4927 * @return latency 4928 * @note: btstack_type 2 4929 */ 4930 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){ 4931 return little_endian_read_16(event, 9); 4932 } 4933 /** 4934 * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 4935 * @param event packet 4936 * @return timeout 4937 * @note: btstack_type 2 4938 */ 4939 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){ 4940 return little_endian_read_16(event, 11); 4941 } 4942 4943 /** 4944 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4945 * @param event packet 4946 * @return connection_handle 4947 * @note: btstack_type H 4948 */ 4949 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){ 4950 return little_endian_read_16(event, 3); 4951 } 4952 /** 4953 * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4954 * @param event packet 4955 * @return max_tx_octets 4956 * @note: btstack_type 2 4957 */ 4958 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){ 4959 return little_endian_read_16(event, 5); 4960 } 4961 /** 4962 * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4963 * @param event packet 4964 * @return max_tx_time 4965 * @note: btstack_type 2 4966 */ 4967 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){ 4968 return little_endian_read_16(event, 7); 4969 } 4970 /** 4971 * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4972 * @param event packet 4973 * @return max_rx_octets 4974 * @note: btstack_type 2 4975 */ 4976 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){ 4977 return little_endian_read_16(event, 9); 4978 } 4979 /** 4980 * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 4981 * @param event packet 4982 * @return max_rx_time 4983 * @note: btstack_type 2 4984 */ 4985 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){ 4986 return little_endian_read_16(event, 11); 4987 } 4988 4989 /** 4990 * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 4991 * @param event packet 4992 * @return status 4993 * @note: btstack_type 1 4994 */ 4995 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){ 4996 return event[3]; 4997 } 4998 /** 4999 * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 5000 * @param event packet 5001 * @param Pointer to storage for dhkey_x 5002 * @note: btstack_type Q 5003 */ 5004 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){ 5005 reverse_bytes(&event[4], dhkey_x, 32); 5006 } 5007 /** 5008 * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 5009 * @param event packet 5010 * @param Pointer to storage for dhkey_y 5011 * @note: btstack_type Q 5012 */ 5013 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){ 5014 reverse_bytes(&event[36], dhkey_y, 32); 5015 } 5016 5017 /** 5018 * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 5019 * @param event packet 5020 * @return status 5021 * @note: btstack_type 1 5022 */ 5023 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){ 5024 return event[3]; 5025 } 5026 /** 5027 * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 5028 * @param event packet 5029 * @param Pointer to storage for dhkey 5030 * @note: btstack_type Q 5031 */ 5032 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){ 5033 reverse_bytes(&event[4], dhkey, 32); 5034 } 5035 5036 /** 5037 * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5038 * @param event packet 5039 * @return status 5040 * @note: btstack_type 1 5041 */ 5042 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_status(const uint8_t * event){ 5043 return event[3]; 5044 } 5045 /** 5046 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5047 * @param event packet 5048 * @return connection_handle 5049 * @note: btstack_type H 5050 */ 5051 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_v1_get_connection_handle(const uint8_t * event){ 5052 return little_endian_read_16(event, 4); 5053 } 5054 /** 5055 * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5056 * @param event packet 5057 * @return role 5058 * @note: btstack_type 1 5059 */ 5060 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_role(const uint8_t * event){ 5061 return event[6]; 5062 } 5063 /** 5064 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5065 * @param event packet 5066 * @return peer_address_type 5067 * @note: btstack_type 1 5068 */ 5069 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_peer_address_type(const uint8_t * event){ 5070 return event[7]; 5071 } 5072 /** 5073 * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5074 * @param event packet 5075 * @param Pointer to storage for peer_addresss 5076 * @note: btstack_type B 5077 */ 5078 static inline void hci_subevent_le_enhanced_connection_complete_v1_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){ 5079 reverse_bytes(&event[8], peer_addresss, 6); 5080 } 5081 /** 5082 * @brief Get field local_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5083 * @param event packet 5084 * @param Pointer to storage for local_resolvable_private_address 5085 * @note: btstack_type B 5086 */ 5087 static inline void hci_subevent_le_enhanced_connection_complete_v1_get_local_resolvable_private_address(const uint8_t * event, bd_addr_t local_resolvable_private_address){ 5088 reverse_bytes(&event[14], local_resolvable_private_address, 6); 5089 } 5090 /** 5091 * @brief Get field peer_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5092 * @param event packet 5093 * @param Pointer to storage for peer_resolvable_private_address 5094 * @note: btstack_type B 5095 */ 5096 static inline void hci_subevent_le_enhanced_connection_complete_v1_get_peer_resolvable_private_address(const uint8_t * event, bd_addr_t peer_resolvable_private_address){ 5097 reverse_bytes(&event[20], peer_resolvable_private_address, 6); 5098 } 5099 /** 5100 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5101 * @param event packet 5102 * @return conn_interval 5103 * @note: btstack_type 2 5104 */ 5105 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v1_get_conn_interval(const uint8_t * event){ 5106 return little_endian_read_16(event, 26); 5107 } 5108 /** 5109 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5110 * @param event packet 5111 * @return conn_latency 5112 * @note: btstack_type 2 5113 */ 5114 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v1_get_conn_latency(const uint8_t * event){ 5115 return little_endian_read_16(event, 28); 5116 } 5117 /** 5118 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5119 * @param event packet 5120 * @return supervision_timeout 5121 * @note: btstack_type 2 5122 */ 5123 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v1_get_supervision_timeout(const uint8_t * event){ 5124 return little_endian_read_16(event, 30); 5125 } 5126 /** 5127 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V1 5128 * @param event packet 5129 * @return master_clock_accuracy 5130 * @note: btstack_type 1 5131 */ 5132 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v1_get_master_clock_accuracy(const uint8_t * event){ 5133 return event[32]; 5134 } 5135 5136 /** 5137 * @brief Get field status from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 5138 * @param event packet 5139 * @return status 5140 * @note: btstack_type 1 5141 */ 5142 static inline uint8_t hci_subevent_le_phy_update_complete_get_status(const uint8_t * event){ 5143 return event[3]; 5144 } 5145 /** 5146 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 5147 * @param event packet 5148 * @return connection_handle 5149 * @note: btstack_type H 5150 */ 5151 static inline hci_con_handle_t hci_subevent_le_phy_update_complete_get_connection_handle(const uint8_t * event){ 5152 return little_endian_read_16(event, 4); 5153 } 5154 /** 5155 * @brief Get field tx_phy from event HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE 5156 * @param event packet 5157 * @return tx_phy 5158 * @note: btstack_type 1 5159 */ 5160 static inline uint8_t hci_subevent_le_phy_update_complete_get_tx_phy(const uint8_t * event){ 5161 return event[6]; 5162 } 5163 5164 /** 5165 * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5166 * @param event packet 5167 * @return status 5168 * @note: btstack_type 1 5169 */ 5170 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_status(const uint8_t * event){ 5171 return event[3]; 5172 } 5173 /** 5174 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5175 * @param event packet 5176 * @return sync_handle 5177 * @note: btstack_type H 5178 */ 5179 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_establishment_get_sync_handle(const uint8_t * event){ 5180 return little_endian_read_16(event, 4); 5181 } 5182 /** 5183 * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5184 * @param event packet 5185 * @return advertising_sid 5186 * @note: btstack_type 1 5187 */ 5188 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertising_sid(const uint8_t * event){ 5189 return event[6]; 5190 } 5191 /** 5192 * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5193 * @param event packet 5194 * @return advertiser_address_type 5195 * @note: btstack_type 1 5196 */ 5197 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address_type(const uint8_t * event){ 5198 return event[7]; 5199 } 5200 /** 5201 * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5202 * @param event packet 5203 * @param Pointer to storage for advertiser_address 5204 * @note: btstack_type B 5205 */ 5206 static inline void hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){ 5207 reverse_bytes(&event[8], advertiser_address, 6); 5208 } 5209 /** 5210 * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5211 * @param event packet 5212 * @return advertiser_phy 5213 * @note: btstack_type 1 5214 */ 5215 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_phy(const uint8_t * event){ 5216 return event[14]; 5217 } 5218 /** 5219 * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5220 * @param event packet 5221 * @return periodic_advertising_interval 5222 * @note: btstack_type 2 5223 */ 5224 static inline uint16_t hci_subevent_le_periodic_advertising_sync_establishment_get_periodic_advertising_interval(const uint8_t * event){ 5225 return little_endian_read_16(event, 15); 5226 } 5227 /** 5228 * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_ESTABLISHMENT 5229 * @param event packet 5230 * @return advertiser_clock_accuracy 5231 * @note: btstack_type 1 5232 */ 5233 static inline uint8_t hci_subevent_le_periodic_advertising_sync_establishment_get_advertiser_clock_accuracy(const uint8_t * event){ 5234 return event[17]; 5235 } 5236 5237 /** 5238 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5239 * @param event packet 5240 * @return sync_handle 5241 * @note: btstack_type H 5242 */ 5243 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_report_get_sync_handle(const uint8_t * event){ 5244 return little_endian_read_16(event, 3); 5245 } 5246 /** 5247 * @brief Get field tx_power from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5248 * @param event packet 5249 * @return tx_power 5250 * @note: btstack_type 1 5251 */ 5252 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_tx_power(const uint8_t * event){ 5253 return event[5]; 5254 } 5255 /** 5256 * @brief Get field rssi from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5257 * @param event packet 5258 * @return rssi 5259 * @note: btstack_type 1 5260 */ 5261 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_rssi(const uint8_t * event){ 5262 return event[6]; 5263 } 5264 /** 5265 * @brief Get field cte_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5266 * @param event packet 5267 * @return cte_type 5268 * @note: btstack_type 1 5269 */ 5270 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_cte_type(const uint8_t * event){ 5271 return event[7]; 5272 } 5273 /** 5274 * @brief Get field data_status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5275 * @param event packet 5276 * @return data_status 5277 * @note: btstack_type 1 5278 */ 5279 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_status(const uint8_t * event){ 5280 return event[8]; 5281 } 5282 /** 5283 * @brief Get field data_length from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5284 * @param event packet 5285 * @return data_length 5286 * @note: btstack_type J 5287 */ 5288 static inline uint8_t hci_subevent_le_periodic_advertising_report_get_data_length(const uint8_t * event){ 5289 return event[9]; 5290 } 5291 /** 5292 * @brief Get field data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_REPORT 5293 * @param event packet 5294 * @return data 5295 * @note: btstack_type V 5296 */ 5297 static inline const uint8_t * hci_subevent_le_periodic_advertising_report_get_data(const uint8_t * event){ 5298 return &event[10]; 5299 } 5300 5301 /** 5302 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_LOST 5303 * @param event packet 5304 * @return sync_handle 5305 * @note: btstack_type H 5306 */ 5307 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_lost_get_sync_handle(const uint8_t * event){ 5308 return little_endian_read_16(event, 3); 5309 } 5310 5311 5312 /** 5313 * @brief Get field status from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 5314 * @param event packet 5315 * @return status 5316 * @note: btstack_type 1 5317 */ 5318 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_status(const uint8_t * event){ 5319 return event[3]; 5320 } 5321 /** 5322 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 5323 * @param event packet 5324 * @return advertising_handle 5325 * @note: btstack_type 1 5326 */ 5327 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_advertising_handle(const uint8_t * event){ 5328 return event[4]; 5329 } 5330 /** 5331 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 5332 * @param event packet 5333 * @return connection_handle 5334 * @note: btstack_type H 5335 */ 5336 static inline hci_con_handle_t hci_subevent_le_advertising_set_terminated_get_connection_handle(const uint8_t * event){ 5337 return little_endian_read_16(event, 5); 5338 } 5339 /** 5340 * @brief Get field num_completed_exteneded_advertising_events from event HCI_SUBEVENT_LE_ADVERTISING_SET_TERMINATED 5341 * @param event packet 5342 * @return num_completed_exteneded_advertising_events 5343 * @note: btstack_type 1 5344 */ 5345 static inline uint8_t hci_subevent_le_advertising_set_terminated_get_num_completed_exteneded_advertising_events(const uint8_t * event){ 5346 return event[7]; 5347 } 5348 5349 /** 5350 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 5351 * @param event packet 5352 * @return advertising_handle 5353 * @note: btstack_type 1 5354 */ 5355 static inline uint8_t hci_subevent_le_scan_request_received_get_advertising_handle(const uint8_t * event){ 5356 return event[3]; 5357 } 5358 /** 5359 * @brief Get field scanner_address_type from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 5360 * @param event packet 5361 * @return scanner_address_type 5362 * @note: btstack_type 1 5363 */ 5364 static inline uint8_t hci_subevent_le_scan_request_received_get_scanner_address_type(const uint8_t * event){ 5365 return event[4]; 5366 } 5367 /** 5368 * @brief Get field scanner_address from event HCI_SUBEVENT_LE_SCAN_REQUEST_RECEIVED 5369 * @param event packet 5370 * @param Pointer to storage for scanner_address 5371 * @note: btstack_type B 5372 */ 5373 static inline void hci_subevent_le_scan_request_received_get_scanner_address(const uint8_t * event, bd_addr_t scanner_address){ 5374 reverse_bytes(&event[5], scanner_address, 6); 5375 } 5376 5377 /** 5378 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM 5379 * @param event packet 5380 * @return connection_handle 5381 * @note: btstack_type H 5382 */ 5383 static inline hci_con_handle_t hci_subevent_le_channel_selection_algorithm_get_connection_handle(const uint8_t * event){ 5384 return little_endian_read_16(event, 3); 5385 } 5386 /** 5387 * @brief Get field channel_selection_algorithm from event HCI_SUBEVENT_LE_CHANNEL_SELECTION_ALGORITHM 5388 * @param event packet 5389 * @return channel_selection_algorithm 5390 * @note: btstack_type 1 5391 */ 5392 static inline uint8_t hci_subevent_le_channel_selection_algorithm_get_channel_selection_algorithm(const uint8_t * event){ 5393 return event[5]; 5394 } 5395 5396 /** 5397 * @brief Get field status from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED 5398 * @param event packet 5399 * @return status 5400 * @note: btstack_type 1 5401 */ 5402 static inline uint8_t hci_subevent_le_le_cte_request_failed_get_status(const uint8_t * event){ 5403 return event[3]; 5404 } 5405 /** 5406 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LE_CTE_REQUEST_FAILED 5407 * @param event packet 5408 * @return connection_handle 5409 * @note: btstack_type H 5410 */ 5411 static inline hci_con_handle_t hci_subevent_le_le_cte_request_failed_get_connection_handle(const uint8_t * event){ 5412 return little_endian_read_16(event, 4); 5413 } 5414 5415 /** 5416 * @brief Get field status from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5417 * @param event packet 5418 * @return status 5419 * @note: btstack_type 1 5420 */ 5421 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_status(const uint8_t * event){ 5422 return event[3]; 5423 } 5424 /** 5425 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5426 * @param event packet 5427 * @return connection_handle 5428 * @note: btstack_type H 5429 */ 5430 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_connection_handle(const uint8_t * event){ 5431 return little_endian_read_16(event, 4); 5432 } 5433 /** 5434 * @brief Get field service_data from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5435 * @param event packet 5436 * @return service_data 5437 * @note: btstack_type 2 5438 */ 5439 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_service_data(const uint8_t * event){ 5440 return little_endian_read_16(event, 6); 5441 } 5442 /** 5443 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5444 * @param event packet 5445 * @return sync_handle 5446 * @note: btstack_type H 5447 */ 5448 static inline hci_con_handle_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_sync_handle(const uint8_t * event){ 5449 return little_endian_read_16(event, 8); 5450 } 5451 /** 5452 * @brief Get field advertising_sid from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5453 * @param event packet 5454 * @return advertising_sid 5455 * @note: btstack_type 1 5456 */ 5457 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertising_sid(const uint8_t * event){ 5458 return event[10]; 5459 } 5460 /** 5461 * @brief Get field advertiser_address_type from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5462 * @param event packet 5463 * @return advertiser_address_type 5464 * @note: btstack_type 1 5465 */ 5466 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address_type(const uint8_t * event){ 5467 return event[11]; 5468 } 5469 /** 5470 * @brief Get field advertiser_address from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5471 * @param event packet 5472 * @param Pointer to storage for advertiser_address 5473 * @note: btstack_type B 5474 */ 5475 static inline void hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_address(const uint8_t * event, bd_addr_t advertiser_address){ 5476 reverse_bytes(&event[12], advertiser_address, 6); 5477 } 5478 /** 5479 * @brief Get field advertiser_phy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5480 * @param event packet 5481 * @return advertiser_phy 5482 * @note: btstack_type 1 5483 */ 5484 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_phy(const uint8_t * event){ 5485 return event[18]; 5486 } 5487 /** 5488 * @brief Get field periodic_advertising_interval from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5489 * @param event packet 5490 * @return periodic_advertising_interval 5491 * @note: btstack_type 2 5492 */ 5493 static inline uint16_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_periodic_advertising_interval(const uint8_t * event){ 5494 return little_endian_read_16(event, 19); 5495 } 5496 /** 5497 * @brief Get field advertiser_clock_accuracy from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_SYNC_TRANSFER_RECEIVED 5498 * @param event packet 5499 * @return advertiser_clock_accuracy 5500 * @note: btstack_type 1 5501 */ 5502 static inline uint8_t hci_subevent_le_periodic_advertising_sync_transfer_received_get_advertiser_clock_accuracy(const uint8_t * event){ 5503 return event[21]; 5504 } 5505 5506 /** 5507 * @brief Get field status from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5508 * @param event packet 5509 * @return status 5510 * @note: btstack_type 1 5511 */ 5512 static inline uint8_t hci_subevent_le_cis_established_get_status(const uint8_t * event){ 5513 return event[3]; 5514 } 5515 /** 5516 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5517 * @param event packet 5518 * @return connection_handle 5519 * @note: btstack_type H 5520 */ 5521 static inline hci_con_handle_t hci_subevent_le_cis_established_get_connection_handle(const uint8_t * event){ 5522 return little_endian_read_16(event, 4); 5523 } 5524 /** 5525 * @brief Get field cig_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5526 * @param event packet 5527 * @return cig_sync_delay 5528 * @note: btstack_type 3 5529 */ 5530 static inline uint32_t hci_subevent_le_cis_established_get_cig_sync_delay(const uint8_t * event){ 5531 return little_endian_read_24(event, 6); 5532 } 5533 /** 5534 * @brief Get field cis_sync_delay from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5535 * @param event packet 5536 * @return cis_sync_delay 5537 * @note: btstack_type 3 5538 */ 5539 static inline uint32_t hci_subevent_le_cis_established_get_cis_sync_delay(const uint8_t * event){ 5540 return little_endian_read_24(event, 9); 5541 } 5542 /** 5543 * @brief Get field transport_latency_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5544 * @param event packet 5545 * @return transport_latency_c_to_p 5546 * @note: btstack_type 3 5547 */ 5548 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_c_to_p(const uint8_t * event){ 5549 return little_endian_read_24(event, 12); 5550 } 5551 /** 5552 * @brief Get field transport_latency_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5553 * @param event packet 5554 * @return transport_latency_p_to_c 5555 * @note: btstack_type 3 5556 */ 5557 static inline uint32_t hci_subevent_le_cis_established_get_transport_latency_p_to_c(const uint8_t * event){ 5558 return little_endian_read_24(event, 15); 5559 } 5560 /** 5561 * @brief Get field phy_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5562 * @param event packet 5563 * @return phy_c_to_p 5564 * @note: btstack_type 1 5565 */ 5566 static inline uint8_t hci_subevent_le_cis_established_get_phy_c_to_p(const uint8_t * event){ 5567 return event[18]; 5568 } 5569 /** 5570 * @brief Get field phy_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5571 * @param event packet 5572 * @return phy_p_to_c 5573 * @note: btstack_type 1 5574 */ 5575 static inline uint8_t hci_subevent_le_cis_established_get_phy_p_to_c(const uint8_t * event){ 5576 return event[19]; 5577 } 5578 /** 5579 * @brief Get field nse from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5580 * @param event packet 5581 * @return nse 5582 * @note: btstack_type 1 5583 */ 5584 static inline uint8_t hci_subevent_le_cis_established_get_nse(const uint8_t * event){ 5585 return event[20]; 5586 } 5587 /** 5588 * @brief Get field bn_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5589 * @param event packet 5590 * @return bn_c_to_p 5591 * @note: btstack_type 1 5592 */ 5593 static inline uint8_t hci_subevent_le_cis_established_get_bn_c_to_p(const uint8_t * event){ 5594 return event[21]; 5595 } 5596 /** 5597 * @brief Get field bn_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5598 * @param event packet 5599 * @return bn_p_to_c 5600 * @note: btstack_type 1 5601 */ 5602 static inline uint8_t hci_subevent_le_cis_established_get_bn_p_to_c(const uint8_t * event){ 5603 return event[22]; 5604 } 5605 /** 5606 * @brief Get field ft_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5607 * @param event packet 5608 * @return ft_c_to_p 5609 * @note: btstack_type 1 5610 */ 5611 static inline uint8_t hci_subevent_le_cis_established_get_ft_c_to_p(const uint8_t * event){ 5612 return event[23]; 5613 } 5614 /** 5615 * @brief Get field ft_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5616 * @param event packet 5617 * @return ft_p_to_c 5618 * @note: btstack_type 1 5619 */ 5620 static inline uint8_t hci_subevent_le_cis_established_get_ft_p_to_c(const uint8_t * event){ 5621 return event[24]; 5622 } 5623 /** 5624 * @brief Get field max_pdu_c_to_p from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5625 * @param event packet 5626 * @return max_pdu_c_to_p 5627 * @note: btstack_type 2 5628 */ 5629 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_c_to_p(const uint8_t * event){ 5630 return little_endian_read_16(event, 25); 5631 } 5632 /** 5633 * @brief Get field max_pdu_p_to_c from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5634 * @param event packet 5635 * @return max_pdu_p_to_c 5636 * @note: btstack_type 2 5637 */ 5638 static inline uint16_t hci_subevent_le_cis_established_get_max_pdu_p_to_c(const uint8_t * event){ 5639 return little_endian_read_16(event, 27); 5640 } 5641 /** 5642 * @brief Get field iso_interval from event HCI_SUBEVENT_LE_CIS_ESTABLISHED 5643 * @param event packet 5644 * @return iso_interval 5645 * @note: btstack_type 2 5646 */ 5647 static inline uint16_t hci_subevent_le_cis_established_get_iso_interval(const uint8_t * event){ 5648 return little_endian_read_16(event, 29); 5649 } 5650 5651 /** 5652 * @brief Get field acl_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST 5653 * @param event packet 5654 * @return acl_connection_handle 5655 * @note: btstack_type H 5656 */ 5657 static inline hci_con_handle_t hci_subevent_le_cis_request_get_acl_connection_handle(const uint8_t * event){ 5658 return little_endian_read_16(event, 3); 5659 } 5660 /** 5661 * @brief Get field cis_connection_handle from event HCI_SUBEVENT_LE_CIS_REQUEST 5662 * @param event packet 5663 * @return cis_connection_handle 5664 * @note: btstack_type H 5665 */ 5666 static inline hci_con_handle_t hci_subevent_le_cis_request_get_cis_connection_handle(const uint8_t * event){ 5667 return little_endian_read_16(event, 5); 5668 } 5669 /** 5670 * @brief Get field cig_id from event HCI_SUBEVENT_LE_CIS_REQUEST 5671 * @param event packet 5672 * @return cig_id 5673 * @note: btstack_type 1 5674 */ 5675 static inline uint8_t hci_subevent_le_cis_request_get_cig_id(const uint8_t * event){ 5676 return event[7]; 5677 } 5678 /** 5679 * @brief Get field cis_id from event HCI_SUBEVENT_LE_CIS_REQUEST 5680 * @param event packet 5681 * @return cis_id 5682 * @note: btstack_type 1 5683 */ 5684 static inline uint8_t hci_subevent_le_cis_request_get_cis_id(const uint8_t * event){ 5685 return event[8]; 5686 } 5687 5688 /** 5689 * @brief Get field big_handle from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE 5690 * @param event packet 5691 * @return big_handle 5692 * @note: btstack_type 1 5693 */ 5694 static inline uint8_t hci_subevent_le_terminate_big_complete_get_big_handle(const uint8_t * event){ 5695 return event[3]; 5696 } 5697 /** 5698 * @brief Get field reason from event HCI_SUBEVENT_LE_TERMINATE_BIG_COMPLETE 5699 * @param event packet 5700 * @return reason 5701 * @note: btstack_type 1 5702 */ 5703 static inline uint8_t hci_subevent_le_terminate_big_complete_get_reason(const uint8_t * event){ 5704 return event[4]; 5705 } 5706 5707 /** 5708 * @brief Get field big_handle from event HCI_SUBEVENT_LE_BIG_SYNC_LOST 5709 * @param event packet 5710 * @return big_handle 5711 * @note: btstack_type 1 5712 */ 5713 static inline uint8_t hci_subevent_le_big_sync_lost_get_big_handle(const uint8_t * event){ 5714 return event[3]; 5715 } 5716 /** 5717 * @brief Get field reason from event HCI_SUBEVENT_LE_BIG_SYNC_LOST 5718 * @param event packet 5719 * @return reason 5720 * @note: btstack_type 1 5721 */ 5722 static inline uint8_t hci_subevent_le_big_sync_lost_get_reason(const uint8_t * event){ 5723 return event[4]; 5724 } 5725 5726 /** 5727 * @brief Get field status from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5728 * @param event packet 5729 * @return status 5730 * @note: btstack_type 1 5731 */ 5732 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_status(const uint8_t * event){ 5733 return event[3]; 5734 } 5735 /** 5736 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5737 * @param event packet 5738 * @return connection_handle 5739 * @note: btstack_type H 5740 */ 5741 static inline hci_con_handle_t hci_subevent_le_request_peer_sca_complete_get_connection_handle(const uint8_t * event){ 5742 return little_endian_read_16(event, 4); 5743 } 5744 /** 5745 * @brief Get field peer_clock_accuracy from event HCI_SUBEVENT_LE_REQUEST_PEER_SCA_COMPLETE 5746 * @param event packet 5747 * @return peer_clock_accuracy 5748 * @note: btstack_type 1 5749 */ 5750 static inline uint8_t hci_subevent_le_request_peer_sca_complete_get_peer_clock_accuracy(const uint8_t * event){ 5751 return event[6]; 5752 } 5753 5754 /** 5755 * @brief Get field status from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5756 * @param event packet 5757 * @return status 5758 * @note: btstack_type 1 5759 */ 5760 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_status(const uint8_t * event){ 5761 return event[3]; 5762 } 5763 /** 5764 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5765 * @param event packet 5766 * @return connection_handle 5767 * @note: btstack_type H 5768 */ 5769 static inline hci_con_handle_t hci_subevent_le_transmit_power_reporting_get_connection_handle(const uint8_t * event){ 5770 return little_endian_read_16(event, 4); 5771 } 5772 /** 5773 * @brief Get field reason from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5774 * @param event packet 5775 * @return reason 5776 * @note: btstack_type 1 5777 */ 5778 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_reason(const uint8_t * event){ 5779 return event[6]; 5780 } 5781 /** 5782 * @brief Get field phy from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5783 * @param event packet 5784 * @return phy 5785 * @note: btstack_type 1 5786 */ 5787 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_phy(const uint8_t * event){ 5788 return event[7]; 5789 } 5790 /** 5791 * @brief Get field tx_power_level from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5792 * @param event packet 5793 * @return tx_power_level 5794 * @note: btstack_type 1 5795 */ 5796 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level(const uint8_t * event){ 5797 return event[8]; 5798 } 5799 /** 5800 * @brief Get field tx_power_level_flag from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5801 * @param event packet 5802 * @return tx_power_level_flag 5803 * @note: btstack_type 1 5804 */ 5805 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_tx_power_level_flag(const uint8_t * event){ 5806 return event[9]; 5807 } 5808 /** 5809 * @brief Get field delta from event HCI_SUBEVENT_LE_TRANSMIT_POWER_REPORTING 5810 * @param event packet 5811 * @return delta 5812 * @note: btstack_type 1 5813 */ 5814 static inline uint8_t hci_subevent_le_transmit_power_reporting_get_delta(const uint8_t * event){ 5815 return event[10]; 5816 } 5817 5818 /** 5819 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5820 * @param event packet 5821 * @return sync_handle 5822 * @note: btstack_type H 5823 */ 5824 static inline hci_con_handle_t hci_subevent_le_biginfo_advertising_report_get_sync_handle(const uint8_t * event){ 5825 return little_endian_read_16(event, 3); 5826 } 5827 /** 5828 * @brief Get field num_bis from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5829 * @param event packet 5830 * @return num_bis 5831 * @note: btstack_type 1 5832 */ 5833 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_num_bis(const uint8_t * event){ 5834 return event[5]; 5835 } 5836 /** 5837 * @brief Get field nse from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5838 * @param event packet 5839 * @return nse 5840 * @note: btstack_type 1 5841 */ 5842 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_nse(const uint8_t * event){ 5843 return event[6]; 5844 } 5845 /** 5846 * @brief Get field iso_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5847 * @param event packet 5848 * @return iso_interval 5849 * @note: btstack_type 2 5850 */ 5851 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_iso_interval(const uint8_t * event){ 5852 return little_endian_read_16(event, 7); 5853 } 5854 /** 5855 * @brief Get field bn from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5856 * @param event packet 5857 * @return bn 5858 * @note: btstack_type 1 5859 */ 5860 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_bn(const uint8_t * event){ 5861 return event[9]; 5862 } 5863 /** 5864 * @brief Get field pto from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5865 * @param event packet 5866 * @return pto 5867 * @note: btstack_type 1 5868 */ 5869 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_pto(const uint8_t * event){ 5870 return event[10]; 5871 } 5872 /** 5873 * @brief Get field irc from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5874 * @param event packet 5875 * @return irc 5876 * @note: btstack_type 1 5877 */ 5878 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_irc(const uint8_t * event){ 5879 return event[11]; 5880 } 5881 /** 5882 * @brief Get field max_pdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5883 * @param event packet 5884 * @return max_pdu 5885 * @note: btstack_type 2 5886 */ 5887 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_pdu(const uint8_t * event){ 5888 return little_endian_read_16(event, 12); 5889 } 5890 /** 5891 * @brief Get field sdu_interval from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5892 * @param event packet 5893 * @return sdu_interval 5894 * @note: btstack_type 3 5895 */ 5896 static inline uint32_t hci_subevent_le_biginfo_advertising_report_get_sdu_interval(const uint8_t * event){ 5897 return little_endian_read_24(event, 14); 5898 } 5899 /** 5900 * @brief Get field max_sdu from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5901 * @param event packet 5902 * @return max_sdu 5903 * @note: btstack_type 2 5904 */ 5905 static inline uint16_t hci_subevent_le_biginfo_advertising_report_get_max_sdu(const uint8_t * event){ 5906 return little_endian_read_16(event, 17); 5907 } 5908 /** 5909 * @brief Get field phy from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5910 * @param event packet 5911 * @return phy 5912 * @note: btstack_type 1 5913 */ 5914 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_phy(const uint8_t * event){ 5915 return event[19]; 5916 } 5917 /** 5918 * @brief Get field framing from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5919 * @param event packet 5920 * @return framing 5921 * @note: btstack_type 1 5922 */ 5923 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_framing(const uint8_t * event){ 5924 return event[20]; 5925 } 5926 /** 5927 * @brief Get field encryption from event HCI_SUBEVENT_LE_BIGINFO_ADVERTISING_REPORT 5928 * @param event packet 5929 * @return encryption 5930 * @note: btstack_type 1 5931 */ 5932 static inline uint8_t hci_subevent_le_biginfo_advertising_report_get_encryption(const uint8_t * event){ 5933 return event[21]; 5934 } 5935 5936 /** 5937 * @brief Get field status from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5938 * @param event packet 5939 * @return status 5940 * @note: btstack_type 1 5941 */ 5942 static inline uint8_t hci_subevent_le_subrate_change_get_status(const uint8_t * event){ 5943 return event[3]; 5944 } 5945 /** 5946 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5947 * @param event packet 5948 * @return connection_handle 5949 * @note: btstack_type H 5950 */ 5951 static inline hci_con_handle_t hci_subevent_le_subrate_change_get_connection_handle(const uint8_t * event){ 5952 return little_endian_read_16(event, 4); 5953 } 5954 /** 5955 * @brief Get field subrate_factor from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5956 * @param event packet 5957 * @return subrate_factor 5958 * @note: btstack_type 2 5959 */ 5960 static inline uint16_t hci_subevent_le_subrate_change_get_subrate_factor(const uint8_t * event){ 5961 return little_endian_read_16(event, 6); 5962 } 5963 /** 5964 * @brief Get field peripheral_latency from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5965 * @param event packet 5966 * @return peripheral_latency 5967 * @note: btstack_type 2 5968 */ 5969 static inline uint16_t hci_subevent_le_subrate_change_get_peripheral_latency(const uint8_t * event){ 5970 return little_endian_read_16(event, 8); 5971 } 5972 /** 5973 * @brief Get field continuation_number from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5974 * @param event packet 5975 * @return continuation_number 5976 * @note: btstack_type 2 5977 */ 5978 static inline uint16_t hci_subevent_le_subrate_change_get_continuation_number(const uint8_t * event){ 5979 return little_endian_read_16(event, 10); 5980 } 5981 /** 5982 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_SUBRATE_CHANGE 5983 * @param event packet 5984 * @return supervision_timeout 5985 * @note: btstack_type 2 5986 */ 5987 static inline uint16_t hci_subevent_le_subrate_change_get_supervision_timeout(const uint8_t * event){ 5988 return little_endian_read_16(event, 12); 5989 } 5990 5991 /** 5992 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_DATA_REQUEST 5993 * @param event packet 5994 * @return advertising_handle 5995 * @note: btstack_type 1 5996 */ 5997 static inline uint8_t hci_subevent_le_periodic_advertising_data_request_get_advertising_handle(const uint8_t * event){ 5998 return event[3]; 5999 } 6000 /** 6001 * @brief Get field subevent_start from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_DATA_REQUEST 6002 * @param event packet 6003 * @return subevent_start 6004 * @note: btstack_type 1 6005 */ 6006 static inline uint8_t hci_subevent_le_periodic_advertising_data_request_get_subevent_start(const uint8_t * event){ 6007 return event[4]; 6008 } 6009 /** 6010 * @brief Get field subevent_data_count from event HCI_SUBEVENT_LE_PERIODIC_ADVERTISING_DATA_REQUEST 6011 * @param event packet 6012 * @return subevent_data_count 6013 * @note: btstack_type 1 6014 */ 6015 static inline uint8_t hci_subevent_le_periodic_advertising_data_request_get_subevent_data_count(const uint8_t * event){ 6016 return event[5]; 6017 } 6018 6019 /** 6020 * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6021 * @param event packet 6022 * @return status 6023 * @note: btstack_type 1 6024 */ 6025 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_status(const uint8_t * event){ 6026 return event[3]; 6027 } 6028 /** 6029 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6030 * @param event packet 6031 * @return connection_handle 6032 * @note: btstack_type H 6033 */ 6034 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_v2_get_connection_handle(const uint8_t * event){ 6035 return little_endian_read_16(event, 4); 6036 } 6037 /** 6038 * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6039 * @param event packet 6040 * @return role 6041 * @note: btstack_type 1 6042 */ 6043 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_role(const uint8_t * event){ 6044 return event[6]; 6045 } 6046 /** 6047 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6048 * @param event packet 6049 * @return peer_address_type 6050 * @note: btstack_type 1 6051 */ 6052 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_peer_address_type(const uint8_t * event){ 6053 return event[7]; 6054 } 6055 /** 6056 * @brief Get field peer_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6057 * @param event packet 6058 * @param Pointer to storage for peer_addresss 6059 * @note: btstack_type B 6060 */ 6061 static inline void hci_subevent_le_enhanced_connection_complete_v2_get_peer_addresss(const uint8_t * event, bd_addr_t peer_addresss){ 6062 reverse_bytes(&event[8], peer_addresss, 6); 6063 } 6064 /** 6065 * @brief Get field local_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6066 * @param event packet 6067 * @param Pointer to storage for local_resolvable_private_address 6068 * @note: btstack_type B 6069 */ 6070 static inline void hci_subevent_le_enhanced_connection_complete_v2_get_local_resolvable_private_address(const uint8_t * event, bd_addr_t local_resolvable_private_address){ 6071 reverse_bytes(&event[14], local_resolvable_private_address, 6); 6072 } 6073 /** 6074 * @brief Get field peer_resolvable_private_address from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6075 * @param event packet 6076 * @param Pointer to storage for peer_resolvable_private_address 6077 * @note: btstack_type B 6078 */ 6079 static inline void hci_subevent_le_enhanced_connection_complete_v2_get_peer_resolvable_private_address(const uint8_t * event, bd_addr_t peer_resolvable_private_address){ 6080 reverse_bytes(&event[20], peer_resolvable_private_address, 6); 6081 } 6082 /** 6083 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6084 * @param event packet 6085 * @return conn_interval 6086 * @note: btstack_type 2 6087 */ 6088 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v2_get_conn_interval(const uint8_t * event){ 6089 return little_endian_read_16(event, 26); 6090 } 6091 /** 6092 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6093 * @param event packet 6094 * @return conn_latency 6095 * @note: btstack_type 2 6096 */ 6097 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v2_get_conn_latency(const uint8_t * event){ 6098 return little_endian_read_16(event, 28); 6099 } 6100 /** 6101 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6102 * @param event packet 6103 * @return supervision_timeout 6104 * @note: btstack_type 2 6105 */ 6106 static inline uint16_t hci_subevent_le_enhanced_connection_complete_v2_get_supervision_timeout(const uint8_t * event){ 6107 return little_endian_read_16(event, 30); 6108 } 6109 /** 6110 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6111 * @param event packet 6112 * @return master_clock_accuracy 6113 * @note: btstack_type 1 6114 */ 6115 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_master_clock_accuracy(const uint8_t * event){ 6116 return event[32]; 6117 } 6118 /** 6119 * @brief Get field advertising_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6120 * @param event packet 6121 * @return advertising_handle 6122 * @note: btstack_type 1 6123 */ 6124 static inline uint8_t hci_subevent_le_enhanced_connection_complete_v2_get_advertising_handle(const uint8_t * event){ 6125 return event[33]; 6126 } 6127 /** 6128 * @brief Get field sync_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE_V2 6129 * @param event packet 6130 * @return sync_handle 6131 * @note: btstack_type H 6132 */ 6133 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_v2_get_sync_handle(const uint8_t * event){ 6134 return little_endian_read_16(event, 34); 6135 } 6136 6137 /** 6138 * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 6139 * @param event packet 6140 * @return advertisement_handle 6141 * @note: btstack_type 1 6142 */ 6143 static inline uint8_t gap_subevent_advertising_set_installed_get_advertisement_handle(const uint8_t * event){ 6144 return event[3]; 6145 } 6146 /** 6147 * @brief Get field status from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 6148 * @param event packet 6149 * @return status 6150 * @note: btstack_type 1 6151 */ 6152 static inline uint8_t gap_subevent_advertising_set_installed_get_status(const uint8_t * event){ 6153 return event[4]; 6154 } 6155 /** 6156 * @brief Get field selected_tx_power from event GAP_SUBEVENT_ADVERTISING_SET_INSTALLED 6157 * @param event packet 6158 * @return selected_tx_power 6159 * @note: btstack_type 1 6160 */ 6161 static inline uint8_t gap_subevent_advertising_set_installed_get_selected_tx_power(const uint8_t * event){ 6162 return event[5]; 6163 } 6164 6165 /** 6166 * @brief Get field advertisement_handle from event GAP_SUBEVENT_ADVERTISING_SET_REMOVED 6167 * @param event packet 6168 * @return advertisement_handle 6169 * @note: btstack_type 1 6170 */ 6171 static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_handle(const uint8_t * event){ 6172 return event[3]; 6173 } 6174 6175 /** 6176 * @brief Get field status from event GAP_SUBEVENT_BIG_CREATED 6177 * @param event packet 6178 * @return status 6179 * @note: btstack_type 1 6180 */ 6181 static inline uint8_t gap_subevent_big_created_get_status(const uint8_t * event){ 6182 return event[3]; 6183 } 6184 /** 6185 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_CREATED 6186 * @param event packet 6187 * @return big_handle 6188 * @note: btstack_type 1 6189 */ 6190 static inline uint8_t gap_subevent_big_created_get_big_handle(const uint8_t * event){ 6191 return event[4]; 6192 } 6193 /** 6194 * @brief Get field num_bis from event GAP_SUBEVENT_BIG_CREATED 6195 * @param event packet 6196 * @return num_bis 6197 * @note: btstack_type 1 6198 */ 6199 static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event){ 6200 return event[5]; 6201 } 6202 /** 6203 * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_CREATED 6204 * @param event packet 6205 * @param index 6206 * @return bis_con_handles 6207 * @note: btstack_type C 6208 */ 6209 static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){ 6210 return little_endian_read_16(event, 6 + (2 * (int) index)); 6211 } 6212 6213 /** 6214 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_TERMINATED 6215 * @param event packet 6216 * @return big_handle 6217 * @note: btstack_type 1 6218 */ 6219 static inline uint8_t gap_subevent_big_terminated_get_big_handle(const uint8_t * event){ 6220 return event[3]; 6221 } 6222 6223 /** 6224 * @brief Get field status from event GAP_SUBEVENT_BIG_SYNC_CREATED 6225 * @param event packet 6226 * @return status 6227 * @note: btstack_type 1 6228 */ 6229 static inline uint8_t gap_subevent_big_sync_created_get_status(const uint8_t * event){ 6230 return event[3]; 6231 } 6232 /** 6233 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_CREATED 6234 * @param event packet 6235 * @return big_handle 6236 * @note: btstack_type 1 6237 */ 6238 static inline uint8_t gap_subevent_big_sync_created_get_big_handle(const uint8_t * event){ 6239 return event[4]; 6240 } 6241 /** 6242 * @brief Get field num_bis from event GAP_SUBEVENT_BIG_SYNC_CREATED 6243 * @param event packet 6244 * @return num_bis 6245 * @note: btstack_type 1 6246 */ 6247 static inline uint8_t gap_subevent_big_sync_created_get_num_bis(const uint8_t * event){ 6248 return event[5]; 6249 } 6250 /** 6251 * @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_SYNC_CREATED 6252 * @param event packet 6253 * @param index 6254 * @return bis_con_handles 6255 * @note: btstack_type C 6256 */ 6257 static inline uint16_t gap_subevent_big_sync_created_get_bis_con_handles(const uint8_t * event, uint8_t index){ 6258 return little_endian_read_16(event, 6 + (2 * (int) index)); 6259 } 6260 6261 /** 6262 * @brief Get field big_handle from event GAP_SUBEVENT_BIG_SYNC_STOPPED 6263 * @param event packet 6264 * @return big_handle 6265 * @note: btstack_type 1 6266 */ 6267 static inline uint8_t gap_subevent_big_sync_stopped_get_big_handle(const uint8_t * event){ 6268 return event[3]; 6269 } 6270 6271 /** 6272 * @brief Get field status from event GAP_SUBEVENT_CIG_CREATED 6273 * @param event packet 6274 * @return status 6275 * @note: btstack_type 1 6276 */ 6277 static inline uint8_t gap_subevent_cig_created_get_status(const uint8_t * event){ 6278 return event[3]; 6279 } 6280 /** 6281 * @brief Get field cig_id from event GAP_SUBEVENT_CIG_CREATED 6282 * @param event packet 6283 * @return cig_id 6284 * @note: btstack_type 1 6285 */ 6286 static inline uint8_t gap_subevent_cig_created_get_cig_id(const uint8_t * event){ 6287 return event[4]; 6288 } 6289 /** 6290 * @brief Get field num_cis from event GAP_SUBEVENT_CIG_CREATED 6291 * @param event packet 6292 * @return num_cis 6293 * @note: btstack_type 1 6294 */ 6295 static inline uint8_t gap_subevent_cig_created_get_num_cis(const uint8_t * event){ 6296 return event[5]; 6297 } 6298 /** 6299 * @brief Get element of array field cis_con_handles from event GAP_SUBEVENT_CIG_CREATED 6300 * @param event packet 6301 * @param index 6302 * @return cis_con_handles 6303 * @note: btstack_type C 6304 */ 6305 static inline uint16_t gap_subevent_cig_created_get_cis_con_handles(const uint8_t * event, uint8_t index){ 6306 return little_endian_read_16(event, 6 + (2 * (int) index)); 6307 } 6308 6309 /** 6310 * @brief Get field status from event GAP_SUBEVENT_CIS_CREATED 6311 * @param event packet 6312 * @return status 6313 * @note: btstack_type 1 6314 */ 6315 static inline uint8_t gap_subevent_cis_created_get_status(const uint8_t * event){ 6316 return event[3]; 6317 } 6318 /** 6319 * @brief Get field cig_id from event GAP_SUBEVENT_CIS_CREATED 6320 * @param event packet 6321 * @return cig_id 6322 * @note: btstack_type 1 6323 */ 6324 static inline uint8_t gap_subevent_cis_created_get_cig_id(const uint8_t * event){ 6325 return event[4]; 6326 } 6327 /** 6328 * @brief Get field cis_id from event GAP_SUBEVENT_CIS_CREATED 6329 * @param event packet 6330 * @return cis_id 6331 * @note: btstack_type 1 6332 */ 6333 static inline uint8_t gap_subevent_cis_created_get_cis_id(const uint8_t * event){ 6334 return event[5]; 6335 } 6336 /** 6337 * @brief Get field cis_con_handle from event GAP_SUBEVENT_CIS_CREATED 6338 * @param event packet 6339 * @return cis_con_handle 6340 * @note: btstack_type H 6341 */ 6342 static inline hci_con_handle_t gap_subevent_cis_created_get_cis_con_handle(const uint8_t * event){ 6343 return little_endian_read_16(event, 6); 6344 } 6345 /** 6346 * @brief Get field acl_con_handle from event GAP_SUBEVENT_CIS_CREATED 6347 * @param event packet 6348 * @return acl_con_handle 6349 * @note: btstack_type H 6350 */ 6351 static inline hci_con_handle_t gap_subevent_cis_created_get_acl_con_handle(const uint8_t * event){ 6352 return little_endian_read_16(event, 8); 6353 } 6354 /** 6355 * @brief Get field iso_interval_1250us from event GAP_SUBEVENT_CIS_CREATED 6356 * @param event packet 6357 * @return iso_interval_1250us 6358 * @note: btstack_type 2 6359 */ 6360 static inline uint16_t gap_subevent_cis_created_get_iso_interval_1250us(const uint8_t * event){ 6361 return little_endian_read_16(event, 10); 6362 } 6363 /** 6364 * @brief Get field number_of_subevents from event GAP_SUBEVENT_CIS_CREATED 6365 * @param event packet 6366 * @return number_of_subevents 6367 * @note: btstack_type 1 6368 */ 6369 static inline uint8_t gap_subevent_cis_created_get_number_of_subevents(const uint8_t * event){ 6370 return event[12]; 6371 } 6372 /** 6373 * @brief Get field burst_number_c_to_p from event GAP_SUBEVENT_CIS_CREATED 6374 * @param event packet 6375 * @return burst_number_c_to_p 6376 * @note: btstack_type 1 6377 */ 6378 static inline uint8_t gap_subevent_cis_created_get_burst_number_c_to_p(const uint8_t * event){ 6379 return event[13]; 6380 } 6381 /** 6382 * @brief Get field burst_number_p_to_c from event GAP_SUBEVENT_CIS_CREATED 6383 * @param event packet 6384 * @return burst_number_p_to_c 6385 * @note: btstack_type 1 6386 */ 6387 static inline uint8_t gap_subevent_cis_created_get_burst_number_p_to_c(const uint8_t * event){ 6388 return event[14]; 6389 } 6390 /** 6391 * @brief Get field flush_timeout_c_to_p from event GAP_SUBEVENT_CIS_CREATED 6392 * @param event packet 6393 * @return flush_timeout_c_to_p 6394 * @note: btstack_type 1 6395 */ 6396 static inline uint8_t gap_subevent_cis_created_get_flush_timeout_c_to_p(const uint8_t * event){ 6397 return event[15]; 6398 } 6399 /** 6400 * @brief Get field flush_timeout_p_to_c from event GAP_SUBEVENT_CIS_CREATED 6401 * @param event packet 6402 * @return flush_timeout_p_to_c 6403 * @note: btstack_type 1 6404 */ 6405 static inline uint8_t gap_subevent_cis_created_get_flush_timeout_p_to_c(const uint8_t * event){ 6406 return event[16]; 6407 } 6408 6409 /** 6410 * @brief Get field status from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6411 * @param event packet 6412 * @return status 6413 * @note: btstack_type 1 6414 */ 6415 static inline uint8_t gap_subevent_le_connection_complete_get_status(const uint8_t * event){ 6416 return event[3]; 6417 } 6418 /** 6419 * @brief Get field connection_handle from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6420 * @param event packet 6421 * @return connection_handle 6422 * @note: btstack_type H 6423 */ 6424 static inline hci_con_handle_t gap_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){ 6425 return little_endian_read_16(event, 4); 6426 } 6427 /** 6428 * @brief Get field role from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6429 * @param event packet 6430 * @return role 6431 * @note: btstack_type 1 6432 */ 6433 static inline uint8_t gap_subevent_le_connection_complete_get_role(const uint8_t * event){ 6434 return event[6]; 6435 } 6436 /** 6437 * @brief Get field peer_address_type from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6438 * @param event packet 6439 * @return peer_address_type 6440 * @note: btstack_type 1 6441 */ 6442 static inline uint8_t gap_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){ 6443 return event[7]; 6444 } 6445 /** 6446 * @brief Get field peer_address from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6447 * @param event packet 6448 * @param Pointer to storage for peer_address 6449 * @note: btstack_type B 6450 */ 6451 static inline void gap_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){ 6452 reverse_bytes(&event[8], peer_address, 6); 6453 } 6454 /** 6455 * @brief Get field local_resolvable_private_address from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6456 * @param event packet 6457 * @param Pointer to storage for local_resolvable_private_address 6458 * @note: btstack_type B 6459 */ 6460 static inline void gap_subevent_le_connection_complete_get_local_resolvable_private_address(const uint8_t * event, bd_addr_t local_resolvable_private_address){ 6461 reverse_bytes(&event[14], local_resolvable_private_address, 6); 6462 } 6463 /** 6464 * @brief Get field peer_resolvable_private_address from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6465 * @param event packet 6466 * @param Pointer to storage for peer_resolvable_private_address 6467 * @note: btstack_type B 6468 */ 6469 static inline void gap_subevent_le_connection_complete_get_peer_resolvable_private_address(const uint8_t * event, bd_addr_t peer_resolvable_private_address){ 6470 reverse_bytes(&event[20], peer_resolvable_private_address, 6); 6471 } 6472 /** 6473 * @brief Get field conn_interval from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6474 * @param event packet 6475 * @return conn_interval 6476 * @note: btstack_type 2 6477 */ 6478 static inline uint16_t gap_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){ 6479 return little_endian_read_16(event, 26); 6480 } 6481 /** 6482 * @brief Get field conn_latency from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6483 * @param event packet 6484 * @return conn_latency 6485 * @note: btstack_type 2 6486 */ 6487 static inline uint16_t gap_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){ 6488 return little_endian_read_16(event, 28); 6489 } 6490 /** 6491 * @brief Get field supervision_timeout from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6492 * @param event packet 6493 * @return supervision_timeout 6494 * @note: btstack_type 2 6495 */ 6496 static inline uint16_t gap_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){ 6497 return little_endian_read_16(event, 30); 6498 } 6499 /** 6500 * @brief Get field master_clock_accuracy from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6501 * @param event packet 6502 * @return master_clock_accuracy 6503 * @note: btstack_type 1 6504 */ 6505 static inline uint8_t gap_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 6506 return event[32]; 6507 } 6508 /** 6509 * @brief Get field advertising_handle from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6510 * @param event packet 6511 * @return advertising_handle 6512 * @note: btstack_type 1 6513 */ 6514 static inline uint8_t gap_subevent_le_connection_complete_get_advertising_handle(const uint8_t * event){ 6515 return event[33]; 6516 } 6517 /** 6518 * @brief Get field sync_handle from event GAP_SUBEVENT_LE_CONNECTION_COMPLETE 6519 * @param event packet 6520 * @return sync_handle 6521 * @note: btstack_type H 6522 */ 6523 static inline hci_con_handle_t gap_subevent_le_connection_complete_get_sync_handle(const uint8_t * event){ 6524 return little_endian_read_16(event, 34); 6525 } 6526 6527 /** 6528 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 6529 * @param event packet 6530 * @return acl_handle 6531 * @note: btstack_type H 6532 */ 6533 static inline hci_con_handle_t hsp_subevent_rfcomm_connection_complete_get_acl_handle(const uint8_t * event){ 6534 return little_endian_read_16(event, 3); 6535 } 6536 /** 6537 * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 6538 * @param event packet 6539 * @return status 6540 * @note: btstack_type 1 6541 */ 6542 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){ 6543 return event[5]; 6544 } 6545 /** 6546 * @brief Get field bd_addr from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 6547 * @param event packet 6548 * @param Pointer to storage for bd_addr 6549 * @note: btstack_type B 6550 */ 6551 static inline void hsp_subevent_rfcomm_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6552 reverse_bytes(&event[6], bd_addr, 6); 6553 } 6554 6555 /** 6556 * @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE 6557 * @param event packet 6558 * @return acl_handle 6559 * @note: btstack_type H 6560 */ 6561 static inline hci_con_handle_t hsp_subevent_rfcomm_disconnection_complete_get_acl_handle(const uint8_t * event){ 6562 return little_endian_read_16(event, 3); 6563 } 6564 6565 /** 6566 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 6567 * @param event packet 6568 * @return acl_handle 6569 * @note: btstack_type H 6570 */ 6571 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_acl_handle(const uint8_t * event){ 6572 return little_endian_read_16(event, 3); 6573 } 6574 /** 6575 * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 6576 * @param event packet 6577 * @return status 6578 * @note: btstack_type 1 6579 */ 6580 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){ 6581 return event[5]; 6582 } 6583 /** 6584 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 6585 * @param event packet 6586 * @return sco_handle 6587 * @note: btstack_type H 6588 */ 6589 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_sco_handle(const uint8_t * event){ 6590 return little_endian_read_16(event, 6); 6591 } 6592 6593 /** 6594 * @brief Get field acl_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 6595 * @param event packet 6596 * @return acl_handle 6597 * @note: btstack_type H 6598 */ 6599 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_acl_handle(const uint8_t * event){ 6600 return little_endian_read_16(event, 3); 6601 } 6602 /** 6603 * @brief Get field sco_handle from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 6604 * @param event packet 6605 * @return sco_handle 6606 * @note: btstack_type H 6607 */ 6608 static inline hci_con_handle_t hsp_subevent_audio_disconnection_complete_get_sco_handle(const uint8_t * event){ 6609 return little_endian_read_16(event, 5); 6610 } 6611 6612 /** 6613 * @brief Get field acl_handle from event HSP_SUBEVENT_RING 6614 * @param event packet 6615 * @return acl_handle 6616 * @note: btstack_type H 6617 */ 6618 static inline hci_con_handle_t hsp_subevent_ring_get_acl_handle(const uint8_t * event){ 6619 return little_endian_read_16(event, 3); 6620 } 6621 6622 /** 6623 * @brief Get field acl_handle from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 6624 * @param event packet 6625 * @return acl_handle 6626 * @note: btstack_type H 6627 */ 6628 static inline hci_con_handle_t hsp_subevent_microphone_gain_changed_get_acl_handle(const uint8_t * event){ 6629 return little_endian_read_16(event, 3); 6630 } 6631 /** 6632 * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 6633 * @param event packet 6634 * @return gain 6635 * @note: btstack_type 1 6636 */ 6637 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){ 6638 return event[5]; 6639 } 6640 6641 /** 6642 * @brief Get field acl_handle from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 6643 * @param event packet 6644 * @return acl_handle 6645 * @note: btstack_type H 6646 */ 6647 static inline hci_con_handle_t hsp_subevent_speaker_gain_changed_get_acl_handle(const uint8_t * event){ 6648 return little_endian_read_16(event, 3); 6649 } 6650 /** 6651 * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 6652 * @param event packet 6653 * @return gain 6654 * @note: btstack_type 1 6655 */ 6656 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){ 6657 return event[5]; 6658 } 6659 6660 /** 6661 * @brief Get field acl_handle from event HSP_SUBEVENT_HS_COMMAND 6662 * @param event packet 6663 * @return acl_handle 6664 * @note: btstack_type H 6665 */ 6666 static inline hci_con_handle_t hsp_subevent_hs_command_get_acl_handle(const uint8_t * event){ 6667 return little_endian_read_16(event, 3); 6668 } 6669 /** 6670 * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND 6671 * @param event packet 6672 * @return value_length 6673 * @note: btstack_type J 6674 */ 6675 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){ 6676 return event[5]; 6677 } 6678 /** 6679 * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND 6680 * @param event packet 6681 * @return value 6682 * @note: btstack_type V 6683 */ 6684 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){ 6685 return &event[6]; 6686 } 6687 6688 /** 6689 * @brief Get field acl_handle from event HSP_SUBEVENT_AG_INDICATION 6690 * @param event packet 6691 * @return acl_handle 6692 * @note: btstack_type H 6693 */ 6694 static inline hci_con_handle_t hsp_subevent_ag_indication_get_acl_handle(const uint8_t * event){ 6695 return little_endian_read_16(event, 3); 6696 } 6697 /** 6698 * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION 6699 * @param event packet 6700 * @return value_length 6701 * @note: btstack_type J 6702 */ 6703 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){ 6704 return event[5]; 6705 } 6706 /** 6707 * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION 6708 * @param event packet 6709 * @return value 6710 * @note: btstack_type V 6711 */ 6712 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){ 6713 return &event[6]; 6714 } 6715 6716 /** 6717 * @brief Get field acl_handle from event HSP_SUBEVENT_BUTTON_PRESSED 6718 * @param event packet 6719 * @return acl_handle 6720 * @note: btstack_type H 6721 */ 6722 static inline hci_con_handle_t hsp_subevent_button_pressed_get_acl_handle(const uint8_t * event){ 6723 return little_endian_read_16(event, 3); 6724 } 6725 6726 /** 6727 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 6728 * @param event packet 6729 * @return acl_handle 6730 * @note: btstack_type H 6731 */ 6732 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){ 6733 return little_endian_read_16(event, 3); 6734 } 6735 /** 6736 * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 6737 * @param event packet 6738 * @return status 6739 * @note: btstack_type 1 6740 */ 6741 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){ 6742 return event[5]; 6743 } 6744 /** 6745 * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 6746 * @param event packet 6747 * @param Pointer to storage for bd_addr 6748 * @note: btstack_type B 6749 */ 6750 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6751 reverse_bytes(&event[6], bd_addr, 6); 6752 } 6753 6754 /** 6755 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 6756 * @param event packet 6757 * @return acl_handle 6758 * @note: btstack_type H 6759 */ 6760 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){ 6761 return little_endian_read_16(event, 3); 6762 } 6763 6764 /** 6765 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6766 * @param event packet 6767 * @return acl_handle 6768 * @note: btstack_type H 6769 */ 6770 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){ 6771 return little_endian_read_16(event, 3); 6772 } 6773 /** 6774 * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6775 * @param event packet 6776 * @return status 6777 * @note: btstack_type 1 6778 */ 6779 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){ 6780 return event[5]; 6781 } 6782 /** 6783 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6784 * @param event packet 6785 * @return sco_handle 6786 * @note: btstack_type H 6787 */ 6788 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){ 6789 return little_endian_read_16(event, 6); 6790 } 6791 /** 6792 * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6793 * @param event packet 6794 * @param Pointer to storage for bd_addr 6795 * @note: btstack_type B 6796 */ 6797 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6798 reverse_bytes(&event[8], bd_addr, 6); 6799 } 6800 /** 6801 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6802 * @param event packet 6803 * @return negotiated_codec 6804 * @note: btstack_type 1 6805 */ 6806 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){ 6807 return event[14]; 6808 } 6809 /** 6810 * @brief Get field sco_packet_types from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6811 * @param event packet 6812 * @return sco_packet_types 6813 * @note: btstack_type 2 6814 */ 6815 static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){ 6816 return little_endian_read_16(event, 15); 6817 } 6818 /** 6819 * @brief Get field rx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6820 * @param event packet 6821 * @return rx_packet_length 6822 * @note: btstack_type 2 6823 */ 6824 static inline uint16_t hfp_subevent_audio_connection_established_get_rx_packet_length(const uint8_t * event){ 6825 return little_endian_read_16(event, 17); 6826 } 6827 /** 6828 * @brief Get field tx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 6829 * @param event packet 6830 * @return tx_packet_length 6831 * @note: btstack_type 2 6832 */ 6833 static inline uint16_t hfp_subevent_audio_connection_established_get_tx_packet_length(const uint8_t * event){ 6834 return little_endian_read_16(event, 19); 6835 } 6836 6837 /** 6838 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6839 * @param event packet 6840 * @return acl_handle 6841 * @note: btstack_type H 6842 */ 6843 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){ 6844 return little_endian_read_16(event, 3); 6845 } 6846 /** 6847 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 6848 * @param event packet 6849 * @return sco_handle 6850 * @note: btstack_type H 6851 */ 6852 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){ 6853 return little_endian_read_16(event, 5); 6854 } 6855 6856 /** 6857 * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE 6858 * @param event packet 6859 * @return acl_handle 6860 * @note: btstack_type H 6861 */ 6862 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){ 6863 return little_endian_read_16(event, 3); 6864 } 6865 /** 6866 * @brief Get field status from event HFP_SUBEVENT_COMPLETE 6867 * @param event packet 6868 * @return status 6869 * @note: btstack_type 1 6870 */ 6871 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){ 6872 return event[5]; 6873 } 6874 6875 /** 6876 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6877 * @param event packet 6878 * @return acl_handle 6879 * @note: btstack_type H 6880 */ 6881 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){ 6882 return little_endian_read_16(event, 3); 6883 } 6884 /** 6885 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6886 * @param event packet 6887 * @return indicator_index 6888 * @note: btstack_type 1 6889 */ 6890 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){ 6891 return event[5]; 6892 } 6893 /** 6894 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6895 * @param event packet 6896 * @return indicator_min_range 6897 * @note: btstack_type 1 6898 */ 6899 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){ 6900 return event[6]; 6901 } 6902 /** 6903 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6904 * @param event packet 6905 * @return indicator_max_range 6906 * @note: btstack_type 1 6907 */ 6908 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){ 6909 return event[7]; 6910 } 6911 /** 6912 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 6913 * @param event packet 6914 * @return indicator_name 6915 * @note: btstack_type T 6916 */ 6917 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){ 6918 return (const char *) &event[8]; 6919 } 6920 6921 /** 6922 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6923 * @param event packet 6924 * @return acl_handle 6925 * @note: btstack_type H 6926 */ 6927 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){ 6928 return little_endian_read_16(event, 3); 6929 } 6930 /** 6931 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6932 * @param event packet 6933 * @return indicator_index 6934 * @note: btstack_type 1 6935 */ 6936 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){ 6937 return event[5]; 6938 } 6939 /** 6940 * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6941 * @param event packet 6942 * @return indicator_status 6943 * @note: btstack_type 1 6944 */ 6945 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){ 6946 return event[6]; 6947 } 6948 /** 6949 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6950 * @param event packet 6951 * @return indicator_min_range 6952 * @note: btstack_type 1 6953 */ 6954 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){ 6955 return event[7]; 6956 } 6957 /** 6958 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6959 * @param event packet 6960 * @return indicator_max_range 6961 * @note: btstack_type 1 6962 */ 6963 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){ 6964 return event[8]; 6965 } 6966 /** 6967 * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6968 * @param event packet 6969 * @return indicator_mandatory 6970 * @note: btstack_type 1 6971 */ 6972 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){ 6973 return event[9]; 6974 } 6975 /** 6976 * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6977 * @param event packet 6978 * @return indicator_enabled 6979 * @note: btstack_type 1 6980 */ 6981 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){ 6982 return event[10]; 6983 } 6984 /** 6985 * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6986 * @param event packet 6987 * @return indicator_status_changed 6988 * @note: btstack_type 1 6989 */ 6990 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){ 6991 return event[11]; 6992 } 6993 /** 6994 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 6995 * @param event packet 6996 * @return indicator_name 6997 * @note: btstack_type T 6998 */ 6999 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){ 7000 return (const char *) &event[12]; 7001 } 7002 7003 /** 7004 * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 7005 * @param event packet 7006 * @return acl_handle 7007 * @note: btstack_type H 7008 */ 7009 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){ 7010 return little_endian_read_16(event, 3); 7011 } 7012 /** 7013 * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 7014 * @param event packet 7015 * @return network_operator_mode 7016 * @note: btstack_type 1 7017 */ 7018 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){ 7019 return event[5]; 7020 } 7021 /** 7022 * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 7023 * @param event packet 7024 * @return network_operator_format 7025 * @note: btstack_type 1 7026 */ 7027 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){ 7028 return event[6]; 7029 } 7030 /** 7031 * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 7032 * @param event packet 7033 * @return network_operator_name 7034 * @note: btstack_type T 7035 */ 7036 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){ 7037 return (const char *) &event[7]; 7038 } 7039 7040 /** 7041 * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 7042 * @param event packet 7043 * @return acl_handle 7044 * @note: btstack_type H 7045 */ 7046 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){ 7047 return little_endian_read_16(event, 3); 7048 } 7049 /** 7050 * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 7051 * @param event packet 7052 * @return error 7053 * @note: btstack_type 1 7054 */ 7055 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){ 7056 return event[5]; 7057 } 7058 7059 /** 7060 * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING 7061 * @param event packet 7062 * @return acl_handle 7063 * @note: btstack_type H 7064 */ 7065 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){ 7066 return little_endian_read_16(event, 3); 7067 } 7068 7069 /** 7070 * @brief Get field acl_handle from event HFP_SUBEVENT_RING 7071 * @param event packet 7072 * @return acl_handle 7073 * @note: btstack_type H 7074 */ 7075 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){ 7076 return little_endian_read_16(event, 3); 7077 } 7078 7079 /** 7080 * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING 7081 * @param event packet 7082 * @return acl_handle 7083 * @note: btstack_type H 7084 */ 7085 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){ 7086 return little_endian_read_16(event, 3); 7087 } 7088 7089 /** 7090 * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 7091 * @param event packet 7092 * @return acl_handle 7093 * @note: btstack_type H 7094 */ 7095 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){ 7096 return little_endian_read_16(event, 3); 7097 } 7098 /** 7099 * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 7100 * @param event packet 7101 * @return number 7102 * @note: btstack_type T 7103 */ 7104 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){ 7105 return (const char *) &event[5]; 7106 } 7107 7108 /** 7109 * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG 7110 * @param event packet 7111 * @return acl_handle 7112 * @note: btstack_type H 7113 */ 7114 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){ 7115 return little_endian_read_16(event, 3); 7116 } 7117 7118 /** 7119 * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 7120 * @param event packet 7121 * @return acl_handle 7122 * @note: btstack_type H 7123 */ 7124 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){ 7125 return little_endian_read_16(event, 3); 7126 } 7127 /** 7128 * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 7129 * @param event packet 7130 * @return number 7131 * @note: btstack_type T 7132 */ 7133 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){ 7134 return (const char *) &event[5]; 7135 } 7136 7137 /** 7138 * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 7139 * @param event packet 7140 * @return acl_handle 7141 * @note: btstack_type H 7142 */ 7143 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){ 7144 return little_endian_read_16(event, 3); 7145 } 7146 /** 7147 * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 7148 * @param event packet 7149 * @return dtmf 7150 * @note: btstack_type T 7151 */ 7152 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){ 7153 return (const char *) &event[5]; 7154 } 7155 7156 /** 7157 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED 7158 * @param event packet 7159 * @return acl_handle 7160 * @note: btstack_type H 7161 */ 7162 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){ 7163 return little_endian_read_16(event, 3); 7164 } 7165 7166 /** 7167 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED 7168 * @param event packet 7169 * @return acl_handle 7170 * @note: btstack_type H 7171 */ 7172 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){ 7173 return little_endian_read_16(event, 3); 7174 } 7175 7176 /** 7177 * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL 7178 * @param event packet 7179 * @return acl_handle 7180 * @note: btstack_type H 7181 */ 7182 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){ 7183 return little_endian_read_16(event, 3); 7184 } 7185 7186 /** 7187 * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME 7188 * @param event packet 7189 * @return acl_handle 7190 * @note: btstack_type H 7191 */ 7192 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){ 7193 return little_endian_read_16(event, 3); 7194 } 7195 /** 7196 * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME 7197 * @param event packet 7198 * @return gain 7199 * @note: btstack_type 1 7200 */ 7201 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){ 7202 return event[5]; 7203 } 7204 7205 /** 7206 * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME 7207 * @param event packet 7208 * @return acl_handle 7209 * @note: btstack_type H 7210 */ 7211 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){ 7212 return little_endian_read_16(event, 3); 7213 } 7214 /** 7215 * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME 7216 * @param event packet 7217 * @return gain 7218 * @note: btstack_type 1 7219 */ 7220 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){ 7221 return event[5]; 7222 } 7223 7224 /** 7225 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 7226 * @param event packet 7227 * @return acl_handle 7228 * @note: btstack_type H 7229 */ 7230 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){ 7231 return little_endian_read_16(event, 3); 7232 } 7233 /** 7234 * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 7235 * @param event packet 7236 * @return type 7237 * @note: btstack_type 1 7238 */ 7239 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){ 7240 return event[5]; 7241 } 7242 /** 7243 * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 7244 * @param event packet 7245 * @return number_length 7246 * @note: btstack_type J 7247 */ 7248 static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){ 7249 return event[6]; 7250 } 7251 /** 7252 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 7253 * @param event packet 7254 * @return number 7255 * @note: btstack_type V 7256 */ 7257 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){ 7258 return &event[7]; 7259 } 7260 /** 7261 * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 7262 * @param event packet 7263 * @return alpha_length 7264 * @note: btstack_type J 7265 */ 7266 static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){ 7267 return event[7u + event[6]]; 7268 } 7269 /** 7270 * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 7271 * @param event packet 7272 * @return alpha 7273 * @note: btstack_type V 7274 */ 7275 static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){ 7276 return &event[7u + event[6] + 1u]; 7277 } 7278 7279 /** 7280 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 7281 * @param event packet 7282 * @return acl_handle 7283 * @note: btstack_type H 7284 */ 7285 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){ 7286 return little_endian_read_16(event, 3); 7287 } 7288 /** 7289 * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 7290 * @param event packet 7291 * @return type 7292 * @note: btstack_type 1 7293 */ 7294 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){ 7295 return event[5]; 7296 } 7297 /** 7298 * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 7299 * @param event packet 7300 * @return number_length 7301 * @note: btstack_type J 7302 */ 7303 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){ 7304 return event[6]; 7305 } 7306 /** 7307 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 7308 * @param event packet 7309 * @return number 7310 * @note: btstack_type V 7311 */ 7312 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){ 7313 return &event[7]; 7314 } 7315 /** 7316 * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 7317 * @param event packet 7318 * @return alpha_length 7319 * @note: btstack_type J 7320 */ 7321 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){ 7322 return event[7u + event[6]]; 7323 } 7324 /** 7325 * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 7326 * @param event packet 7327 * @return alpha 7328 * @note: btstack_type V 7329 */ 7330 static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){ 7331 return &event[7u + event[6] + 1u]; 7332 } 7333 7334 /** 7335 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7336 * @param event packet 7337 * @return acl_handle 7338 * @note: btstack_type H 7339 */ 7340 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){ 7341 return little_endian_read_16(event, 3); 7342 } 7343 /** 7344 * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7345 * @param event packet 7346 * @return clcc_idx 7347 * @note: btstack_type 1 7348 */ 7349 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){ 7350 return event[5]; 7351 } 7352 /** 7353 * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7354 * @param event packet 7355 * @return clcc_dir 7356 * @note: btstack_type 1 7357 */ 7358 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){ 7359 return event[6]; 7360 } 7361 /** 7362 * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7363 * @param event packet 7364 * @return clcc_status 7365 * @note: btstack_type 1 7366 */ 7367 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){ 7368 return event[7]; 7369 } 7370 /** 7371 * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7372 * @param event packet 7373 * @return clcc_mode 7374 * @note: btstack_type 1 7375 */ 7376 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){ 7377 return event[8]; 7378 } 7379 /** 7380 * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7381 * @param event packet 7382 * @return clcc_mpty 7383 * @note: btstack_type 1 7384 */ 7385 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){ 7386 return event[9]; 7387 } 7388 /** 7389 * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7390 * @param event packet 7391 * @return bnip_type 7392 * @note: btstack_type 1 7393 */ 7394 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){ 7395 return event[10]; 7396 } 7397 /** 7398 * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 7399 * @param event packet 7400 * @return bnip_number 7401 * @note: btstack_type T 7402 */ 7403 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){ 7404 return (const char *) &event[11]; 7405 } 7406 7407 /** 7408 * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 7409 * @param event packet 7410 * @return acl_handle 7411 * @note: btstack_type H 7412 */ 7413 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){ 7414 return little_endian_read_16(event, 3); 7415 } 7416 /** 7417 * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 7418 * @param event packet 7419 * @return status 7420 * @note: btstack_type 1 7421 */ 7422 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){ 7423 return event[5]; 7424 } 7425 /** 7426 * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 7427 * @param event packet 7428 * @return bnip_type 7429 * @note: btstack_type 1 7430 */ 7431 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){ 7432 return event[6]; 7433 } 7434 /** 7435 * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 7436 * @param event packet 7437 * @return bnip_number 7438 * @note: btstack_type T 7439 */ 7440 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){ 7441 return (const char *) &event[7]; 7442 } 7443 7444 /** 7445 * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 7446 * @param event packet 7447 * @return acl_handle 7448 * @note: btstack_type H 7449 */ 7450 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){ 7451 return little_endian_read_16(event, 3); 7452 } 7453 /** 7454 * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 7455 * @param event packet 7456 * @return value 7457 * @note: btstack_type T 7458 */ 7459 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){ 7460 return (const char *) &event[5]; 7461 } 7462 7463 /** 7464 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT 7465 * @param event packet 7466 * @return acl_handle 7467 * @note: btstack_type H 7468 */ 7469 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){ 7470 return little_endian_read_16(event, 3); 7471 } 7472 /** 7473 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT 7474 * @param event packet 7475 * @return command 7476 * @note: btstack_type T 7477 */ 7478 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){ 7479 return (const char *) &event[5]; 7480 } 7481 7482 /** 7483 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 7484 * @param event packet 7485 * @return acl_handle 7486 * @note: btstack_type H 7487 */ 7488 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){ 7489 return little_endian_read_16(event, 3); 7490 } 7491 /** 7492 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 7493 * @param event packet 7494 * @return command 7495 * @note: btstack_type T 7496 */ 7497 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){ 7498 return (const char *) &event[5]; 7499 } 7500 7501 /** 7502 * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE 7503 * @param event packet 7504 * @return acl_handle 7505 * @note: btstack_type H 7506 */ 7507 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){ 7508 return little_endian_read_16(event, 3); 7509 } 7510 /** 7511 * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE 7512 * @param event packet 7513 * @return status 7514 * @note: btstack_type 1 7515 */ 7516 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){ 7517 return event[5]; 7518 } 7519 7520 /** 7521 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 7522 * @param event packet 7523 * @return acl_handle 7524 * @note: btstack_type H 7525 */ 7526 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){ 7527 return little_endian_read_16(event, 3); 7528 } 7529 /** 7530 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 7531 * @param event packet 7532 * @return status 7533 * @note: btstack_type 1 7534 */ 7535 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){ 7536 return event[5]; 7537 } 7538 /** 7539 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 7540 * @param event packet 7541 * @return enhanced 7542 * @note: btstack_type 1 7543 */ 7544 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){ 7545 return event[6]; 7546 } 7547 7548 /** 7549 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 7550 * @param event packet 7551 * @return acl_handle 7552 * @note: btstack_type H 7553 */ 7554 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){ 7555 return little_endian_read_16(event, 3); 7556 } 7557 /** 7558 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 7559 * @param event packet 7560 * @return status 7561 * @note: btstack_type 1 7562 */ 7563 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){ 7564 return event[5]; 7565 } 7566 7567 /** 7568 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 7569 * @param event packet 7570 * @return acl_handle 7571 * @note: btstack_type H 7572 */ 7573 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){ 7574 return little_endian_read_16(event, 3); 7575 } 7576 /** 7577 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 7578 * @param event packet 7579 * @return status 7580 * @note: btstack_type 1 7581 */ 7582 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){ 7583 return event[5]; 7584 } 7585 7586 /** 7587 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 7588 * @param event packet 7589 * @return acl_handle 7590 * @note: btstack_type H 7591 */ 7592 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){ 7593 return little_endian_read_16(event, 3); 7594 } 7595 /** 7596 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 7597 * @param event packet 7598 * @return status 7599 * @note: btstack_type 1 7600 */ 7601 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){ 7602 return event[5]; 7603 } 7604 7605 /** 7606 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 7607 * @param event packet 7608 * @return acl_handle 7609 * @note: btstack_type H 7610 */ 7611 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){ 7612 return little_endian_read_16(event, 3); 7613 } 7614 /** 7615 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 7616 * @param event packet 7617 * @return status 7618 * @note: btstack_type 1 7619 */ 7620 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){ 7621 return event[5]; 7622 } 7623 7624 /** 7625 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 7626 * @param event packet 7627 * @return acl_handle 7628 * @note: btstack_type H 7629 */ 7630 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){ 7631 return little_endian_read_16(event, 3); 7632 } 7633 /** 7634 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 7635 * @param event packet 7636 * @return status 7637 * @note: btstack_type 1 7638 */ 7639 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){ 7640 return event[5]; 7641 } 7642 7643 /** 7644 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 7645 * @param event packet 7646 * @return acl_handle 7647 * @note: btstack_type H 7648 */ 7649 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){ 7650 return little_endian_read_16(event, 3); 7651 } 7652 /** 7653 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 7654 * @param event packet 7655 * @return status 7656 * @note: btstack_type 1 7657 */ 7658 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){ 7659 return event[5]; 7660 } 7661 7662 /** 7663 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 7664 * @param event packet 7665 * @return acl_handle 7666 * @note: btstack_type H 7667 */ 7668 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){ 7669 return little_endian_read_16(event, 3); 7670 } 7671 /** 7672 * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 7673 * @param event packet 7674 * @return text_id 7675 * @note: btstack_type 2 7676 */ 7677 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){ 7678 return little_endian_read_16(event, 5); 7679 } 7680 /** 7681 * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 7682 * @param event packet 7683 * @return text_type 7684 * @note: btstack_type 1 7685 */ 7686 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){ 7687 return event[7]; 7688 } 7689 /** 7690 * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 7691 * @param event packet 7692 * @return text_operation 7693 * @note: btstack_type 1 7694 */ 7695 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){ 7696 return event[8]; 7697 } 7698 /** 7699 * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 7700 * @param event packet 7701 * @return text_length 7702 * @note: btstack_type L 7703 */ 7704 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){ 7705 return little_endian_read_16(event, 9); 7706 } 7707 /** 7708 * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 7709 * @param event packet 7710 * @return text 7711 * @note: btstack_type V 7712 */ 7713 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){ 7714 return &event[11]; 7715 } 7716 7717 /** 7718 * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 7719 * @param event packet 7720 * @return acl_handle 7721 * @note: btstack_type H 7722 */ 7723 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){ 7724 return little_endian_read_16(event, 3); 7725 } 7726 /** 7727 * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 7728 * @param event packet 7729 * @return status 7730 * @note: btstack_type 1 7731 */ 7732 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){ 7733 return event[5]; 7734 } 7735 7736 /** 7737 * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR 7738 * @param event packet 7739 * @return acl_handle 7740 * @note: btstack_type H 7741 */ 7742 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){ 7743 return little_endian_read_16(event, 3); 7744 } 7745 /** 7746 * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR 7747 * @param event packet 7748 * @return uuid 7749 * @note: btstack_type 2 7750 */ 7751 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){ 7752 return little_endian_read_16(event, 5); 7753 } 7754 /** 7755 * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR 7756 * @param event packet 7757 * @return value 7758 * @note: btstack_type 1 7759 */ 7760 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){ 7761 return event[7]; 7762 } 7763 7764 /** 7765 * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7766 * @param event packet 7767 * @return acl_handle 7768 * @note: btstack_type H 7769 */ 7770 static inline hci_con_handle_t hfp_subevent_custom_at_command_get_acl_handle(const uint8_t * event){ 7771 return little_endian_read_16(event, 3); 7772 } 7773 /** 7774 * @brief Get field command_id from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7775 * @param event packet 7776 * @return command_id 7777 * @note: btstack_type 2 7778 */ 7779 static inline uint16_t hfp_subevent_custom_at_command_get_command_id(const uint8_t * event){ 7780 return little_endian_read_16(event, 5); 7781 } 7782 /** 7783 * @brief Get field command_string from event HFP_SUBEVENT_CUSTOM_AT_COMMAND 7784 * @param event packet 7785 * @return command_string 7786 * @note: btstack_type T 7787 */ 7788 static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){ 7789 return (const char *) &event[7]; 7790 } 7791 7792 /** 7793 * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT 7794 * @param event packet 7795 * @return acl_handle 7796 * @note: btstack_type H 7797 */ 7798 static inline hci_con_handle_t hfp_subevent_custom_at_message_sent_get_acl_handle(const uint8_t * event){ 7799 return little_endian_read_16(event, 3); 7800 } 7801 /** 7802 * @brief Get field status from event HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT 7803 * @param event packet 7804 * @return status 7805 * @note: btstack_type 1 7806 */ 7807 static inline uint8_t hfp_subevent_custom_at_message_sent_get_status(const uint8_t * event){ 7808 return event[5]; 7809 } 7810 7811 /** 7812 * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_EXTENSION_SUPPORTED 7813 * @param event packet 7814 * @return acl_handle 7815 * @note: btstack_type H 7816 */ 7817 static inline hci_con_handle_t hfp_subevent_apple_extension_supported_get_acl_handle(const uint8_t * event){ 7818 return little_endian_read_16(event, 3); 7819 } 7820 /** 7821 * @brief Get field supported from event HFP_SUBEVENT_APPLE_EXTENSION_SUPPORTED 7822 * @param event packet 7823 * @return supported 7824 * @note: btstack_type 1 7825 */ 7826 static inline uint8_t hfp_subevent_apple_extension_supported_get_supported(const uint8_t * event){ 7827 return event[5]; 7828 } 7829 7830 /** 7831 * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION 7832 * @param event packet 7833 * @return acl_handle 7834 * @note: btstack_type H 7835 */ 7836 static inline hci_con_handle_t hfp_subevent_apple_accessory_information_get_acl_handle(const uint8_t * event){ 7837 return little_endian_read_16(event, 3); 7838 } 7839 /** 7840 * @brief Get field vendor_id from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION 7841 * @param event packet 7842 * @return vendor_id 7843 * @note: btstack_type 2 7844 */ 7845 static inline uint16_t hfp_subevent_apple_accessory_information_get_vendor_id(const uint8_t * event){ 7846 return little_endian_read_16(event, 5); 7847 } 7848 /** 7849 * @brief Get field product_id from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION 7850 * @param event packet 7851 * @return product_id 7852 * @note: btstack_type 2 7853 */ 7854 static inline uint16_t hfp_subevent_apple_accessory_information_get_product_id(const uint8_t * event){ 7855 return little_endian_read_16(event, 7); 7856 } 7857 /** 7858 * @brief Get field features from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION 7859 * @param event packet 7860 * @return features 7861 * @note: btstack_type 1 7862 */ 7863 static inline uint8_t hfp_subevent_apple_accessory_information_get_features(const uint8_t * event){ 7864 return event[9]; 7865 } 7866 /** 7867 * @brief Get field version_len from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION 7868 * @param event packet 7869 * @return version_len 7870 * @note: btstack_type J 7871 */ 7872 static inline uint8_t hfp_subevent_apple_accessory_information_get_version_len(const uint8_t * event){ 7873 return event[10]; 7874 } 7875 /** 7876 * @brief Get field version from event HFP_SUBEVENT_APPLE_ACCESSORY_INFORMATION 7877 * @param event packet 7878 * @return version 7879 * @note: btstack_type V 7880 */ 7881 static inline const uint8_t * hfp_subevent_apple_accessory_information_get_version(const uint8_t * event){ 7882 return &event[11]; 7883 } 7884 7885 /** 7886 * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_BATTERY_LEVEL 7887 * @param event packet 7888 * @return acl_handle 7889 * @note: btstack_type H 7890 */ 7891 static inline hci_con_handle_t hfp_subevent_apple_battery_level_get_acl_handle(const uint8_t * event){ 7892 return little_endian_read_16(event, 3); 7893 } 7894 /** 7895 * @brief Get field battery_level from event HFP_SUBEVENT_APPLE_BATTERY_LEVEL 7896 * @param event packet 7897 * @return battery_level 7898 * @note: btstack_type 1 7899 */ 7900 static inline uint8_t hfp_subevent_apple_battery_level_get_battery_level(const uint8_t * event){ 7901 return event[5]; 7902 } 7903 7904 /** 7905 * @brief Get field acl_handle from event HFP_SUBEVENT_APPLE_DOCKED_STATE 7906 * @param event packet 7907 * @return acl_handle 7908 * @note: btstack_type H 7909 */ 7910 static inline hci_con_handle_t hfp_subevent_apple_docked_state_get_acl_handle(const uint8_t * event){ 7911 return little_endian_read_16(event, 3); 7912 } 7913 /** 7914 * @brief Get field docket from event HFP_SUBEVENT_APPLE_DOCKED_STATE 7915 * @param event packet 7916 * @return docket 7917 * @note: btstack_type 1 7918 */ 7919 static inline uint8_t hfp_subevent_apple_docked_state_get_docket(const uint8_t * event){ 7920 return event[5]; 7921 } 7922 7923 #ifdef ENABLE_BLE 7924 /** 7925 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED 7926 * @param event packet 7927 * @return handle 7928 * @note: btstack_type H 7929 */ 7930 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){ 7931 return little_endian_read_16(event, 3); 7932 } 7933 #endif 7934 7935 #ifdef ENABLE_BLE 7936 /** 7937 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7938 * @param event packet 7939 * @return handle 7940 * @note: btstack_type H 7941 */ 7942 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){ 7943 return little_endian_read_16(event, 3); 7944 } 7945 /** 7946 * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7947 * @param event packet 7948 * @return attribute_id 7949 * @note: btstack_type 2 7950 */ 7951 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){ 7952 return little_endian_read_16(event, 5); 7953 } 7954 /** 7955 * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 7956 * @param event packet 7957 * @return text 7958 * @note: btstack_type T 7959 */ 7960 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){ 7961 return (const char *) &event[7]; 7962 } 7963 #endif 7964 7965 #ifdef ENABLE_BLE 7966 /** 7967 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED 7968 * @param event packet 7969 * @return handle 7970 * @note: btstack_type H 7971 */ 7972 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){ 7973 return little_endian_read_16(event, 3); 7974 } 7975 #endif 7976 7977 /** 7978 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7979 * @param event packet 7980 * @return avdtp_cid 7981 * @note: btstack_type 2 7982 */ 7983 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){ 7984 return little_endian_read_16(event, 3); 7985 } 7986 /** 7987 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7988 * @param event packet 7989 * @return local_seid 7990 * @note: btstack_type 1 7991 */ 7992 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){ 7993 return event[5]; 7994 } 7995 /** 7996 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 7997 * @param event packet 7998 * @return is_initiator 7999 * @note: btstack_type 1 8000 */ 8001 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){ 8002 return event[6]; 8003 } 8004 /** 8005 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 8006 * @param event packet 8007 * @return signal_identifier 8008 * @note: btstack_type 1 8009 */ 8010 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){ 8011 return event[7]; 8012 } 8013 8014 /** 8015 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT 8016 * @param event packet 8017 * @return avdtp_cid 8018 * @note: btstack_type 2 8019 */ 8020 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){ 8021 return little_endian_read_16(event, 3); 8022 } 8023 /** 8024 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT 8025 * @param event packet 8026 * @return local_seid 8027 * @note: btstack_type 1 8028 */ 8029 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){ 8030 return event[5]; 8031 } 8032 /** 8033 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT 8034 * @param event packet 8035 * @return is_initiator 8036 * @note: btstack_type 1 8037 */ 8038 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){ 8039 return event[6]; 8040 } 8041 /** 8042 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT 8043 * @param event packet 8044 * @return signal_identifier 8045 * @note: btstack_type 1 8046 */ 8047 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){ 8048 return event[7]; 8049 } 8050 8051 /** 8052 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 8053 * @param event packet 8054 * @return avdtp_cid 8055 * @note: btstack_type 2 8056 */ 8057 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){ 8058 return little_endian_read_16(event, 3); 8059 } 8060 /** 8061 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 8062 * @param event packet 8063 * @return local_seid 8064 * @note: btstack_type 1 8065 */ 8066 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){ 8067 return event[5]; 8068 } 8069 /** 8070 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 8071 * @param event packet 8072 * @return is_initiator 8073 * @note: btstack_type 1 8074 */ 8075 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){ 8076 return event[6]; 8077 } 8078 /** 8079 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 8080 * @param event packet 8081 * @return signal_identifier 8082 * @note: btstack_type 1 8083 */ 8084 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){ 8085 return event[7]; 8086 } 8087 8088 /** 8089 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 8090 * @param event packet 8091 * @return avdtp_cid 8092 * @note: btstack_type 2 8093 */ 8094 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){ 8095 return little_endian_read_16(event, 3); 8096 } 8097 /** 8098 * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 8099 * @param event packet 8100 * @param Pointer to storage for bd_addr 8101 * @note: btstack_type B 8102 */ 8103 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8104 reverse_bytes(&event[5], bd_addr, 6); 8105 } 8106 /** 8107 * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 8108 * @param event packet 8109 * @return con_handle 8110 * @note: btstack_type 2 8111 */ 8112 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 8113 return little_endian_read_16(event, 11); 8114 } 8115 /** 8116 * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 8117 * @param event packet 8118 * @return status 8119 * @note: btstack_type 1 8120 */ 8121 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 8122 return event[13]; 8123 } 8124 8125 /** 8126 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 8127 * @param event packet 8128 * @return avdtp_cid 8129 * @note: btstack_type 2 8130 */ 8131 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){ 8132 return little_endian_read_16(event, 3); 8133 } 8134 8135 /** 8136 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 8137 * @param event packet 8138 * @return avdtp_cid 8139 * @note: btstack_type 2 8140 */ 8141 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){ 8142 return little_endian_read_16(event, 3); 8143 } 8144 /** 8145 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 8146 * @param event packet 8147 * @return remote_seid 8148 * @note: btstack_type 1 8149 */ 8150 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){ 8151 return event[5]; 8152 } 8153 /** 8154 * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 8155 * @param event packet 8156 * @return in_use 8157 * @note: btstack_type 1 8158 */ 8159 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){ 8160 return event[6]; 8161 } 8162 /** 8163 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 8164 * @param event packet 8165 * @return media_type 8166 * @note: btstack_type 1 8167 */ 8168 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){ 8169 return event[7]; 8170 } 8171 /** 8172 * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 8173 * @param event packet 8174 * @return sep_type 8175 * @note: btstack_type 1 8176 */ 8177 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){ 8178 return event[8]; 8179 } 8180 8181 /** 8182 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8183 * @param event packet 8184 * @return avdtp_cid 8185 * @note: btstack_type 2 8186 */ 8187 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){ 8188 return little_endian_read_16(event, 3); 8189 } 8190 /** 8191 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8192 * @param event packet 8193 * @return remote_seid 8194 * @note: btstack_type 1 8195 */ 8196 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 8197 return event[5]; 8198 } 8199 /** 8200 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8201 * @param event packet 8202 * @return media_type 8203 * @note: btstack_type 1 8204 */ 8205 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 8206 return event[6]; 8207 } 8208 /** 8209 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8210 * @param event packet 8211 * @return sampling_frequency_bitmap 8212 * @note: btstack_type 1 8213 */ 8214 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 8215 return event[7]; 8216 } 8217 /** 8218 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8219 * @param event packet 8220 * @return channel_mode_bitmap 8221 * @note: btstack_type 1 8222 */ 8223 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 8224 return event[8]; 8225 } 8226 /** 8227 * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8228 * @param event packet 8229 * @return block_length_bitmap 8230 * @note: btstack_type 1 8231 */ 8232 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 8233 return event[9]; 8234 } 8235 /** 8236 * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8237 * @param event packet 8238 * @return subbands_bitmap 8239 * @note: btstack_type 1 8240 */ 8241 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 8242 return event[10]; 8243 } 8244 /** 8245 * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8246 * @param event packet 8247 * @return allocation_method_bitmap 8248 * @note: btstack_type 1 8249 */ 8250 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 8251 return event[11]; 8252 } 8253 /** 8254 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8255 * @param event packet 8256 * @return min_bitpool_value 8257 * @note: btstack_type 1 8258 */ 8259 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 8260 return event[12]; 8261 } 8262 /** 8263 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 8264 * @param event packet 8265 * @return max_bitpool_value 8266 * @note: btstack_type 1 8267 */ 8268 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 8269 return event[13]; 8270 } 8271 8272 /** 8273 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8274 * @param event packet 8275 * @return avdtp_cid 8276 * @note: btstack_type 2 8277 */ 8278 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){ 8279 return little_endian_read_16(event, 3); 8280 } 8281 /** 8282 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8283 * @param event packet 8284 * @return remote_seid 8285 * @note: btstack_type 1 8286 */ 8287 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 8288 return event[5]; 8289 } 8290 /** 8291 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8292 * @param event packet 8293 * @return media_type 8294 * @note: btstack_type 1 8295 */ 8296 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 8297 return event[6]; 8298 } 8299 /** 8300 * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8301 * @param event packet 8302 * @return layer_bitmap 8303 * @note: btstack_type 1 8304 */ 8305 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 8306 return event[7]; 8307 } 8308 /** 8309 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8310 * @param event packet 8311 * @return crc 8312 * @note: btstack_type 1 8313 */ 8314 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 8315 return event[8]; 8316 } 8317 /** 8318 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8319 * @param event packet 8320 * @return channel_mode_bitmap 8321 * @note: btstack_type 1 8322 */ 8323 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 8324 return event[9]; 8325 } 8326 /** 8327 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8328 * @param event packet 8329 * @return media_payload_format 8330 * @note: btstack_type 1 8331 */ 8332 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 8333 return event[10]; 8334 } 8335 /** 8336 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8337 * @param event packet 8338 * @return sampling_frequency_bitmap 8339 * @note: btstack_type 1 8340 */ 8341 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 8342 return event[11]; 8343 } 8344 /** 8345 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8346 * @param event packet 8347 * @return vbr 8348 * @note: btstack_type 1 8349 */ 8350 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 8351 return event[12]; 8352 } 8353 /** 8354 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 8355 * @param event packet 8356 * @return bit_rate_index_bitmap 8357 * @note: btstack_type 2 8358 */ 8359 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 8360 return little_endian_read_16(event, 13); 8361 } 8362 8363 /** 8364 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8365 * @param event packet 8366 * @return avdtp_cid 8367 * @note: btstack_type 2 8368 */ 8369 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){ 8370 return little_endian_read_16(event, 3); 8371 } 8372 /** 8373 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8374 * @param event packet 8375 * @return remote_seid 8376 * @note: btstack_type 1 8377 */ 8378 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 8379 return event[5]; 8380 } 8381 /** 8382 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8383 * @param event packet 8384 * @return media_type 8385 * @note: btstack_type 1 8386 */ 8387 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 8388 return event[6]; 8389 } 8390 /** 8391 * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8392 * @param event packet 8393 * @return object_type_bitmap 8394 * @note: btstack_type 1 8395 */ 8396 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 8397 return event[7]; 8398 } 8399 /** 8400 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8401 * @param event packet 8402 * @return sampling_frequency_bitmap 8403 * @note: btstack_type 2 8404 */ 8405 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 8406 return little_endian_read_16(event, 8); 8407 } 8408 /** 8409 * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8410 * @param event packet 8411 * @return channels_bitmap 8412 * @note: btstack_type 1 8413 */ 8414 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 8415 return event[10]; 8416 } 8417 /** 8418 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8419 * @param event packet 8420 * @return bit_rate 8421 * @note: btstack_type 3 8422 */ 8423 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 8424 return little_endian_read_24(event, 11); 8425 } 8426 /** 8427 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 8428 * @param event packet 8429 * @return vbr 8430 * @note: btstack_type 1 8431 */ 8432 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 8433 return event[14]; 8434 } 8435 8436 /** 8437 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8438 * @param event packet 8439 * @return avdtp_cid 8440 * @note: btstack_type 2 8441 */ 8442 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){ 8443 return little_endian_read_16(event, 3); 8444 } 8445 /** 8446 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8447 * @param event packet 8448 * @return remote_seid 8449 * @note: btstack_type 1 8450 */ 8451 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 8452 return event[5]; 8453 } 8454 /** 8455 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8456 * @param event packet 8457 * @return media_type 8458 * @note: btstack_type 1 8459 */ 8460 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 8461 return event[6]; 8462 } 8463 /** 8464 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8465 * @param event packet 8466 * @return version 8467 * @note: btstack_type 1 8468 */ 8469 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 8470 return event[7]; 8471 } 8472 /** 8473 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8474 * @param event packet 8475 * @return channel_mode_bitmap 8476 * @note: btstack_type 1 8477 */ 8478 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 8479 return event[8]; 8480 } 8481 /** 8482 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8483 * @param event packet 8484 * @return sampling_frequency_bitmap 8485 * @note: btstack_type 1 8486 */ 8487 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 8488 return event[9]; 8489 } 8490 /** 8491 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8492 * @param event packet 8493 * @return vbr 8494 * @note: btstack_type 1 8495 */ 8496 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 8497 return event[10]; 8498 } 8499 /** 8500 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8501 * @param event packet 8502 * @return bit_rate_index_bitmap 8503 * @note: btstack_type 3 8504 */ 8505 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 8506 return little_endian_read_24(event, 11); 8507 } 8508 /** 8509 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 8510 * @param event packet 8511 * @return maximum_sul 8512 * @note: btstack_type 2 8513 */ 8514 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 8515 return little_endian_read_16(event, 14); 8516 } 8517 8518 /** 8519 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 8520 * @param event packet 8521 * @return avdtp_cid 8522 * @note: btstack_type 2 8523 */ 8524 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){ 8525 return little_endian_read_16(event, 3); 8526 } 8527 /** 8528 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 8529 * @param event packet 8530 * @return remote_seid 8531 * @note: btstack_type 1 8532 */ 8533 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 8534 return event[5]; 8535 } 8536 /** 8537 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 8538 * @param event packet 8539 * @return media_type 8540 * @note: btstack_type 1 8541 */ 8542 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 8543 return event[6]; 8544 } 8545 /** 8546 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 8547 * @param event packet 8548 * @return media_codec_type 8549 * @note: btstack_type 2 8550 */ 8551 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 8552 return little_endian_read_16(event, 7); 8553 } 8554 /** 8555 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 8556 * @param event packet 8557 * @return media_codec_information_len 8558 * @note: btstack_type L 8559 */ 8560 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 8561 return little_endian_read_16(event, 9); 8562 } 8563 /** 8564 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 8565 * @param event packet 8566 * @return media_codec_information 8567 * @note: btstack_type V 8568 */ 8569 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 8570 return &event[11]; 8571 } 8572 8573 /** 8574 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 8575 * @param event packet 8576 * @return avdtp_cid 8577 * @note: btstack_type 2 8578 */ 8579 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){ 8580 return little_endian_read_16(event, 3); 8581 } 8582 /** 8583 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 8584 * @param event packet 8585 * @return remote_seid 8586 * @note: btstack_type 1 8587 */ 8588 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){ 8589 return event[5]; 8590 } 8591 8592 /** 8593 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 8594 * @param event packet 8595 * @return avdtp_cid 8596 * @note: btstack_type 2 8597 */ 8598 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){ 8599 return little_endian_read_16(event, 3); 8600 } 8601 /** 8602 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 8603 * @param event packet 8604 * @return remote_seid 8605 * @note: btstack_type 1 8606 */ 8607 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){ 8608 return event[5]; 8609 } 8610 8611 /** 8612 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 8613 * @param event packet 8614 * @return avdtp_cid 8615 * @note: btstack_type 2 8616 */ 8617 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){ 8618 return little_endian_read_16(event, 3); 8619 } 8620 /** 8621 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 8622 * @param event packet 8623 * @return remote_seid 8624 * @note: btstack_type 1 8625 */ 8626 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){ 8627 return event[5]; 8628 } 8629 /** 8630 * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 8631 * @param event packet 8632 * @return recovery_type 8633 * @note: btstack_type 1 8634 */ 8635 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){ 8636 return event[6]; 8637 } 8638 /** 8639 * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 8640 * @param event packet 8641 * @return maximum_recovery_window_size 8642 * @note: btstack_type 1 8643 */ 8644 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){ 8645 return event[7]; 8646 } 8647 /** 8648 * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 8649 * @param event packet 8650 * @return maximum_number_media_packets 8651 * @note: btstack_type 1 8652 */ 8653 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){ 8654 return event[8]; 8655 } 8656 8657 /** 8658 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 8659 * @param event packet 8660 * @return avdtp_cid 8661 * @note: btstack_type 2 8662 */ 8663 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){ 8664 return little_endian_read_16(event, 3); 8665 } 8666 /** 8667 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 8668 * @param event packet 8669 * @return remote_seid 8670 * @note: btstack_type 1 8671 */ 8672 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){ 8673 return event[5]; 8674 } 8675 /** 8676 * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 8677 * @param event packet 8678 * @return cp_type 8679 * @note: btstack_type 2 8680 */ 8681 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){ 8682 return little_endian_read_16(event, 6); 8683 } 8684 /** 8685 * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 8686 * @param event packet 8687 * @return cp_type_value_len 8688 * @note: btstack_type L 8689 */ 8690 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){ 8691 return little_endian_read_16(event, 8); 8692 } 8693 /** 8694 * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 8695 * @param event packet 8696 * @return cp_type_value 8697 * @note: btstack_type V 8698 */ 8699 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){ 8700 return &event[10]; 8701 } 8702 8703 /** 8704 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8705 * @param event packet 8706 * @return avdtp_cid 8707 * @note: btstack_type 2 8708 */ 8709 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){ 8710 return little_endian_read_16(event, 3); 8711 } 8712 /** 8713 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8714 * @param event packet 8715 * @return remote_seid 8716 * @note: btstack_type 1 8717 */ 8718 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){ 8719 return event[5]; 8720 } 8721 /** 8722 * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8723 * @param event packet 8724 * @return fragmentation 8725 * @note: btstack_type 1 8726 */ 8727 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){ 8728 return event[6]; 8729 } 8730 /** 8731 * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8732 * @param event packet 8733 * @return transport_identifiers_num 8734 * @note: btstack_type 1 8735 */ 8736 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){ 8737 return event[7]; 8738 } 8739 /** 8740 * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8741 * @param event packet 8742 * @return transport_session_identifier_1 8743 * @note: btstack_type 1 8744 */ 8745 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){ 8746 return event[8]; 8747 } 8748 /** 8749 * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8750 * @param event packet 8751 * @return transport_session_identifier_2 8752 * @note: btstack_type 1 8753 */ 8754 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){ 8755 return event[9]; 8756 } 8757 /** 8758 * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8759 * @param event packet 8760 * @return transport_session_identifier_3 8761 * @note: btstack_type 1 8762 */ 8763 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){ 8764 return event[10]; 8765 } 8766 /** 8767 * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8768 * @param event packet 8769 * @return tcid_1 8770 * @note: btstack_type 1 8771 */ 8772 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){ 8773 return event[11]; 8774 } 8775 /** 8776 * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8777 * @param event packet 8778 * @return tcid_2 8779 * @note: btstack_type 1 8780 */ 8781 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){ 8782 return event[12]; 8783 } 8784 /** 8785 * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 8786 * @param event packet 8787 * @return tcid_3 8788 * @note: btstack_type 1 8789 */ 8790 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){ 8791 return event[13]; 8792 } 8793 8794 /** 8795 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 8796 * @param event packet 8797 * @return avdtp_cid 8798 * @note: btstack_type 2 8799 */ 8800 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){ 8801 return little_endian_read_16(event, 3); 8802 } 8803 /** 8804 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 8805 * @param event packet 8806 * @return remote_seid 8807 * @note: btstack_type 1 8808 */ 8809 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 8810 return event[5]; 8811 } 8812 8813 /** 8814 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 8815 * @param event packet 8816 * @return avdtp_cid 8817 * @note: btstack_type 2 8818 */ 8819 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){ 8820 return little_endian_read_16(event, 3); 8821 } 8822 /** 8823 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 8824 * @param event packet 8825 * @return remote_seid 8826 * @note: btstack_type 1 8827 */ 8828 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){ 8829 return event[5]; 8830 } 8831 /** 8832 * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 8833 * @param event packet 8834 * @return back_ch 8835 * @note: btstack_type 1 8836 */ 8837 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){ 8838 return event[6]; 8839 } 8840 /** 8841 * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 8842 * @param event packet 8843 * @return media 8844 * @note: btstack_type 1 8845 */ 8846 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){ 8847 return event[7]; 8848 } 8849 /** 8850 * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 8851 * @param event packet 8852 * @return recovery 8853 * @note: btstack_type 1 8854 */ 8855 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){ 8856 return event[8]; 8857 } 8858 8859 /** 8860 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 8861 * @param event packet 8862 * @return avdtp_cid 8863 * @note: btstack_type 2 8864 */ 8865 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){ 8866 return little_endian_read_16(event, 3); 8867 } 8868 /** 8869 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 8870 * @param event packet 8871 * @return remote_seid 8872 * @note: btstack_type 1 8873 */ 8874 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 8875 return event[5]; 8876 } 8877 8878 /** 8879 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8880 * @param event packet 8881 * @return avdtp_cid 8882 * @note: btstack_type 2 8883 */ 8884 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){ 8885 return little_endian_read_16(event, 3); 8886 } 8887 /** 8888 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8889 * @param event packet 8890 * @return local_seid 8891 * @note: btstack_type 1 8892 */ 8893 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 8894 return event[5]; 8895 } 8896 /** 8897 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8898 * @param event packet 8899 * @return remote_seid 8900 * @note: btstack_type 1 8901 */ 8902 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 8903 return event[6]; 8904 } 8905 /** 8906 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8907 * @param event packet 8908 * @return reconfigure 8909 * @note: btstack_type 1 8910 */ 8911 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 8912 return event[7]; 8913 } 8914 /** 8915 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8916 * @param event packet 8917 * @return media_type 8918 * @note: btstack_type 1 8919 */ 8920 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 8921 return event[8]; 8922 } 8923 /** 8924 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8925 * @param event packet 8926 * @return sampling_frequency 8927 * @note: btstack_type 2 8928 */ 8929 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 8930 return little_endian_read_16(event, 9); 8931 } 8932 /** 8933 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8934 * @param event packet 8935 * @return channel_mode 8936 * @note: btstack_type 1 8937 */ 8938 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 8939 return event[11]; 8940 } 8941 /** 8942 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8943 * @param event packet 8944 * @return num_channels 8945 * @note: btstack_type 1 8946 */ 8947 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 8948 return event[12]; 8949 } 8950 /** 8951 * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8952 * @param event packet 8953 * @return block_length 8954 * @note: btstack_type 1 8955 */ 8956 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 8957 return event[13]; 8958 } 8959 /** 8960 * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8961 * @param event packet 8962 * @return subbands 8963 * @note: btstack_type 1 8964 */ 8965 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 8966 return event[14]; 8967 } 8968 /** 8969 * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8970 * @param event packet 8971 * @return allocation_method 8972 * @note: btstack_type 1 8973 */ 8974 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 8975 return event[15]; 8976 } 8977 /** 8978 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8979 * @param event packet 8980 * @return min_bitpool_value 8981 * @note: btstack_type 1 8982 */ 8983 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 8984 return event[16]; 8985 } 8986 /** 8987 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 8988 * @param event packet 8989 * @return max_bitpool_value 8990 * @note: btstack_type 1 8991 */ 8992 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 8993 return event[17]; 8994 } 8995 8996 /** 8997 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 8998 * @param event packet 8999 * @return avdtp_cid 9000 * @note: btstack_type 2 9001 */ 9002 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){ 9003 return little_endian_read_16(event, 3); 9004 } 9005 /** 9006 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9007 * @param event packet 9008 * @return local_seid 9009 * @note: btstack_type 1 9010 */ 9011 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 9012 return event[5]; 9013 } 9014 /** 9015 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9016 * @param event packet 9017 * @return remote_seid 9018 * @note: btstack_type 1 9019 */ 9020 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 9021 return event[6]; 9022 } 9023 /** 9024 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9025 * @param event packet 9026 * @return reconfigure 9027 * @note: btstack_type 1 9028 */ 9029 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 9030 return event[7]; 9031 } 9032 /** 9033 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9034 * @param event packet 9035 * @return media_type 9036 * @note: btstack_type 1 9037 */ 9038 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 9039 return event[8]; 9040 } 9041 /** 9042 * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9043 * @param event packet 9044 * @return layer 9045 * @note: btstack_type 1 9046 */ 9047 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 9048 return event[9]; 9049 } 9050 /** 9051 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9052 * @param event packet 9053 * @return crc 9054 * @note: btstack_type 1 9055 */ 9056 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 9057 return event[10]; 9058 } 9059 /** 9060 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9061 * @param event packet 9062 * @return channel_mode 9063 * @note: btstack_type 1 9064 */ 9065 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 9066 return event[11]; 9067 } 9068 /** 9069 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9070 * @param event packet 9071 * @return num_channels 9072 * @note: btstack_type 1 9073 */ 9074 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 9075 return event[12]; 9076 } 9077 /** 9078 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9079 * @param event packet 9080 * @return media_payload_format 9081 * @note: btstack_type 1 9082 */ 9083 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 9084 return event[13]; 9085 } 9086 /** 9087 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9088 * @param event packet 9089 * @return sampling_frequency 9090 * @note: btstack_type 2 9091 */ 9092 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 9093 return little_endian_read_16(event, 14); 9094 } 9095 /** 9096 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9097 * @param event packet 9098 * @return vbr 9099 * @note: btstack_type 1 9100 */ 9101 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 9102 return event[16]; 9103 } 9104 /** 9105 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9106 * @param event packet 9107 * @return bit_rate_index 9108 * @note: btstack_type 1 9109 */ 9110 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 9111 return event[17]; 9112 } 9113 9114 /** 9115 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9116 * @param event packet 9117 * @return avdtp_cid 9118 * @note: btstack_type 2 9119 */ 9120 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){ 9121 return little_endian_read_16(event, 3); 9122 } 9123 /** 9124 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9125 * @param event packet 9126 * @return local_seid 9127 * @note: btstack_type 1 9128 */ 9129 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 9130 return event[5]; 9131 } 9132 /** 9133 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9134 * @param event packet 9135 * @return remote_seid 9136 * @note: btstack_type 1 9137 */ 9138 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 9139 return event[6]; 9140 } 9141 /** 9142 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9143 * @param event packet 9144 * @return reconfigure 9145 * @note: btstack_type 1 9146 */ 9147 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 9148 return event[7]; 9149 } 9150 /** 9151 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9152 * @param event packet 9153 * @return media_type 9154 * @note: btstack_type 1 9155 */ 9156 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 9157 return event[8]; 9158 } 9159 /** 9160 * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9161 * @param event packet 9162 * @return object_type 9163 * @note: btstack_type 1 9164 */ 9165 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 9166 return event[9]; 9167 } 9168 /** 9169 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9170 * @param event packet 9171 * @return sampling_frequency 9172 * @note: btstack_type 3 9173 */ 9174 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 9175 return little_endian_read_24(event, 10); 9176 } 9177 /** 9178 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9179 * @param event packet 9180 * @return num_channels 9181 * @note: btstack_type 1 9182 */ 9183 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 9184 return event[13]; 9185 } 9186 /** 9187 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9188 * @param event packet 9189 * @return bit_rate 9190 * @note: btstack_type 3 9191 */ 9192 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 9193 return little_endian_read_24(event, 14); 9194 } 9195 /** 9196 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9197 * @param event packet 9198 * @return vbr 9199 * @note: btstack_type 1 9200 */ 9201 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 9202 return event[17]; 9203 } 9204 9205 /** 9206 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9207 * @param event packet 9208 * @return avdtp_cid 9209 * @note: btstack_type 2 9210 */ 9211 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){ 9212 return little_endian_read_16(event, 3); 9213 } 9214 /** 9215 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9216 * @param event packet 9217 * @return local_seid 9218 * @note: btstack_type 1 9219 */ 9220 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 9221 return event[5]; 9222 } 9223 /** 9224 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9225 * @param event packet 9226 * @return remote_seid 9227 * @note: btstack_type 1 9228 */ 9229 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 9230 return event[6]; 9231 } 9232 /** 9233 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9234 * @param event packet 9235 * @return reconfigure 9236 * @note: btstack_type 1 9237 */ 9238 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 9239 return event[7]; 9240 } 9241 /** 9242 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9243 * @param event packet 9244 * @return media_type 9245 * @note: btstack_type 1 9246 */ 9247 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 9248 return event[8]; 9249 } 9250 /** 9251 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9252 * @param event packet 9253 * @return version 9254 * @note: btstack_type 1 9255 */ 9256 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 9257 return event[9]; 9258 } 9259 /** 9260 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9261 * @param event packet 9262 * @return channel_mode 9263 * @note: btstack_type 1 9264 */ 9265 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 9266 return event[10]; 9267 } 9268 /** 9269 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9270 * @param event packet 9271 * @return num_channels 9272 * @note: btstack_type 1 9273 */ 9274 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 9275 return event[11]; 9276 } 9277 /** 9278 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9279 * @param event packet 9280 * @return sampling_frequency 9281 * @note: btstack_type 2 9282 */ 9283 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 9284 return little_endian_read_16(event, 12); 9285 } 9286 /** 9287 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9288 * @param event packet 9289 * @return vbr 9290 * @note: btstack_type 1 9291 */ 9292 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 9293 return event[14]; 9294 } 9295 /** 9296 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9297 * @param event packet 9298 * @return bit_rate_index 9299 * @note: btstack_type 1 9300 */ 9301 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 9302 return event[15]; 9303 } 9304 /** 9305 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9306 * @param event packet 9307 * @return maximum_sul 9308 * @note: btstack_type 2 9309 */ 9310 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 9311 return little_endian_read_16(event, 16); 9312 } 9313 9314 /** 9315 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9316 * @param event packet 9317 * @return avdtp_cid 9318 * @note: btstack_type 2 9319 */ 9320 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){ 9321 return little_endian_read_16(event, 3); 9322 } 9323 /** 9324 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9325 * @param event packet 9326 * @return local_seid 9327 * @note: btstack_type 1 9328 */ 9329 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 9330 return event[5]; 9331 } 9332 /** 9333 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9334 * @param event packet 9335 * @return remote_seid 9336 * @note: btstack_type 1 9337 */ 9338 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 9339 return event[6]; 9340 } 9341 /** 9342 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9343 * @param event packet 9344 * @return reconfigure 9345 * @note: btstack_type 1 9346 */ 9347 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 9348 return event[7]; 9349 } 9350 /** 9351 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9352 * @param event packet 9353 * @return media_type 9354 * @note: btstack_type 1 9355 */ 9356 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 9357 return event[8]; 9358 } 9359 /** 9360 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9361 * @param event packet 9362 * @return media_codec_type 9363 * @note: btstack_type 2 9364 */ 9365 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 9366 return little_endian_read_16(event, 9); 9367 } 9368 /** 9369 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9370 * @param event packet 9371 * @return media_codec_information_len 9372 * @note: btstack_type L 9373 */ 9374 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 9375 return little_endian_read_16(event, 11); 9376 } 9377 /** 9378 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9379 * @param event packet 9380 * @return media_codec_information 9381 * @note: btstack_type V 9382 */ 9383 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 9384 return &event[13]; 9385 } 9386 9387 /** 9388 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 9389 * @param event packet 9390 * @return avdtp_cid 9391 * @note: btstack_type 2 9392 */ 9393 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){ 9394 return little_endian_read_16(event, 3); 9395 } 9396 /** 9397 * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 9398 * @param event packet 9399 * @param Pointer to storage for bd_addr 9400 * @note: btstack_type B 9401 */ 9402 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9403 reverse_bytes(&event[5], bd_addr, 6); 9404 } 9405 /** 9406 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 9407 * @param event packet 9408 * @return local_seid 9409 * @note: btstack_type 1 9410 */ 9411 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){ 9412 return event[11]; 9413 } 9414 /** 9415 * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 9416 * @param event packet 9417 * @return remote_seid 9418 * @note: btstack_type 1 9419 */ 9420 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){ 9421 return event[12]; 9422 } 9423 /** 9424 * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 9425 * @param event packet 9426 * @return status 9427 * @note: btstack_type 1 9428 */ 9429 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){ 9430 return event[13]; 9431 } 9432 9433 /** 9434 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 9435 * @param event packet 9436 * @return avdtp_cid 9437 * @note: btstack_type 2 9438 */ 9439 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){ 9440 return little_endian_read_16(event, 3); 9441 } 9442 /** 9443 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 9444 * @param event packet 9445 * @return local_seid 9446 * @note: btstack_type 1 9447 */ 9448 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){ 9449 return event[5]; 9450 } 9451 9452 /** 9453 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 9454 * @param event packet 9455 * @return avdtp_cid 9456 * @note: btstack_type 2 9457 */ 9458 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){ 9459 return little_endian_read_16(event, 3); 9460 } 9461 /** 9462 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 9463 * @param event packet 9464 * @return local_seid 9465 * @note: btstack_type 1 9466 */ 9467 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 9468 return event[5]; 9469 } 9470 /** 9471 * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 9472 * @param event packet 9473 * @return sequence_number 9474 * @note: btstack_type 2 9475 */ 9476 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){ 9477 return little_endian_read_16(event, 6); 9478 } 9479 9480 /** 9481 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE 9482 * @param event packet 9483 * @return avdtp_cid 9484 * @note: btstack_type 2 9485 */ 9486 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){ 9487 return little_endian_read_16(event, 3); 9488 } 9489 9490 /** 9491 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 9492 * @param event packet 9493 * @return avdtp_cid 9494 * @note: btstack_type 2 9495 */ 9496 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){ 9497 return little_endian_read_16(event, 3); 9498 } 9499 /** 9500 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 9501 * @param event packet 9502 * @return local_seid 9503 * @note: btstack_type 1 9504 */ 9505 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 9506 return event[5]; 9507 } 9508 /** 9509 * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 9510 * @param event packet 9511 * @return delay_100us 9512 * @note: btstack_type 2 9513 */ 9514 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 9515 return little_endian_read_16(event, 6); 9516 } 9517 9518 /** 9519 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 9520 * @param event packet 9521 * @return a2dp_cid 9522 * @note: btstack_type 2 9523 */ 9524 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){ 9525 return little_endian_read_16(event, 3); 9526 } 9527 /** 9528 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 9529 * @param event packet 9530 * @return local_seid 9531 * @note: btstack_type 1 9532 */ 9533 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 9534 return event[5]; 9535 } 9536 9537 /** 9538 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9539 * @param event packet 9540 * @return a2dp_cid 9541 * @note: btstack_type 2 9542 */ 9543 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){ 9544 return little_endian_read_16(event, 3); 9545 } 9546 /** 9547 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9548 * @param event packet 9549 * @return local_seid 9550 * @note: btstack_type 1 9551 */ 9552 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 9553 return event[5]; 9554 } 9555 /** 9556 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9557 * @param event packet 9558 * @return remote_seid 9559 * @note: btstack_type 1 9560 */ 9561 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 9562 return event[6]; 9563 } 9564 /** 9565 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9566 * @param event packet 9567 * @return reconfigure 9568 * @note: btstack_type 1 9569 */ 9570 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 9571 return event[7]; 9572 } 9573 /** 9574 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9575 * @param event packet 9576 * @return media_type 9577 * @note: btstack_type 1 9578 */ 9579 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 9580 return event[8]; 9581 } 9582 /** 9583 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9584 * @param event packet 9585 * @return sampling_frequency 9586 * @note: btstack_type 2 9587 */ 9588 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 9589 return little_endian_read_16(event, 9); 9590 } 9591 /** 9592 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9593 * @param event packet 9594 * @return channel_mode 9595 * @note: btstack_type 1 9596 */ 9597 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 9598 return event[11]; 9599 } 9600 /** 9601 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9602 * @param event packet 9603 * @return num_channels 9604 * @note: btstack_type 1 9605 */ 9606 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 9607 return event[12]; 9608 } 9609 /** 9610 * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9611 * @param event packet 9612 * @return block_length 9613 * @note: btstack_type 1 9614 */ 9615 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 9616 return event[13]; 9617 } 9618 /** 9619 * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9620 * @param event packet 9621 * @return subbands 9622 * @note: btstack_type 1 9623 */ 9624 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 9625 return event[14]; 9626 } 9627 /** 9628 * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9629 * @param event packet 9630 * @return allocation_method 9631 * @note: btstack_type 1 9632 */ 9633 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 9634 return event[15]; 9635 } 9636 /** 9637 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9638 * @param event packet 9639 * @return min_bitpool_value 9640 * @note: btstack_type 1 9641 */ 9642 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 9643 return event[16]; 9644 } 9645 /** 9646 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 9647 * @param event packet 9648 * @return max_bitpool_value 9649 * @note: btstack_type 1 9650 */ 9651 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 9652 return event[17]; 9653 } 9654 9655 /** 9656 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9657 * @param event packet 9658 * @return a2dp_cid 9659 * @note: btstack_type 2 9660 */ 9661 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){ 9662 return little_endian_read_16(event, 3); 9663 } 9664 /** 9665 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9666 * @param event packet 9667 * @return local_seid 9668 * @note: btstack_type 1 9669 */ 9670 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 9671 return event[5]; 9672 } 9673 /** 9674 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9675 * @param event packet 9676 * @return remote_seid 9677 * @note: btstack_type 1 9678 */ 9679 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 9680 return event[6]; 9681 } 9682 /** 9683 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9684 * @param event packet 9685 * @return reconfigure 9686 * @note: btstack_type 1 9687 */ 9688 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 9689 return event[7]; 9690 } 9691 /** 9692 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9693 * @param event packet 9694 * @return media_type 9695 * @note: btstack_type 1 9696 */ 9697 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 9698 return event[8]; 9699 } 9700 /** 9701 * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9702 * @param event packet 9703 * @return layer 9704 * @note: btstack_type 1 9705 */ 9706 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 9707 return event[9]; 9708 } 9709 /** 9710 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9711 * @param event packet 9712 * @return crc 9713 * @note: btstack_type 1 9714 */ 9715 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 9716 return event[10]; 9717 } 9718 /** 9719 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9720 * @param event packet 9721 * @return channel_mode 9722 * @note: btstack_type 1 9723 */ 9724 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 9725 return event[11]; 9726 } 9727 /** 9728 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9729 * @param event packet 9730 * @return num_channels 9731 * @note: btstack_type 1 9732 */ 9733 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 9734 return event[12]; 9735 } 9736 /** 9737 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9738 * @param event packet 9739 * @return media_payload_format 9740 * @note: btstack_type 1 9741 */ 9742 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 9743 return event[13]; 9744 } 9745 /** 9746 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9747 * @param event packet 9748 * @return sampling_frequency 9749 * @note: btstack_type 2 9750 */ 9751 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 9752 return little_endian_read_16(event, 14); 9753 } 9754 /** 9755 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9756 * @param event packet 9757 * @return vbr 9758 * @note: btstack_type 1 9759 */ 9760 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 9761 return event[16]; 9762 } 9763 /** 9764 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 9765 * @param event packet 9766 * @return bit_rate_index 9767 * @note: btstack_type 1 9768 */ 9769 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 9770 return event[17]; 9771 } 9772 9773 /** 9774 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9775 * @param event packet 9776 * @return a2dp_cid 9777 * @note: btstack_type 2 9778 */ 9779 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){ 9780 return little_endian_read_16(event, 3); 9781 } 9782 /** 9783 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9784 * @param event packet 9785 * @return local_seid 9786 * @note: btstack_type 1 9787 */ 9788 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 9789 return event[5]; 9790 } 9791 /** 9792 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9793 * @param event packet 9794 * @return remote_seid 9795 * @note: btstack_type 1 9796 */ 9797 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 9798 return event[6]; 9799 } 9800 /** 9801 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9802 * @param event packet 9803 * @return reconfigure 9804 * @note: btstack_type 1 9805 */ 9806 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 9807 return event[7]; 9808 } 9809 /** 9810 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9811 * @param event packet 9812 * @return media_type 9813 * @note: btstack_type 1 9814 */ 9815 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 9816 return event[8]; 9817 } 9818 /** 9819 * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9820 * @param event packet 9821 * @return object_type 9822 * @note: btstack_type 1 9823 */ 9824 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 9825 return event[9]; 9826 } 9827 /** 9828 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9829 * @param event packet 9830 * @return sampling_frequency 9831 * @note: btstack_type 3 9832 */ 9833 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 9834 return little_endian_read_24(event, 10); 9835 } 9836 /** 9837 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9838 * @param event packet 9839 * @return num_channels 9840 * @note: btstack_type 1 9841 */ 9842 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 9843 return event[13]; 9844 } 9845 /** 9846 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9847 * @param event packet 9848 * @return bit_rate 9849 * @note: btstack_type 3 9850 */ 9851 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 9852 return little_endian_read_24(event, 14); 9853 } 9854 /** 9855 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 9856 * @param event packet 9857 * @return vbr 9858 * @note: btstack_type 1 9859 */ 9860 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 9861 return event[17]; 9862 } 9863 9864 /** 9865 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9866 * @param event packet 9867 * @return a2dp_cid 9868 * @note: btstack_type 2 9869 */ 9870 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){ 9871 return little_endian_read_16(event, 3); 9872 } 9873 /** 9874 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9875 * @param event packet 9876 * @return local_seid 9877 * @note: btstack_type 1 9878 */ 9879 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 9880 return event[5]; 9881 } 9882 /** 9883 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9884 * @param event packet 9885 * @return remote_seid 9886 * @note: btstack_type 1 9887 */ 9888 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 9889 return event[6]; 9890 } 9891 /** 9892 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9893 * @param event packet 9894 * @return reconfigure 9895 * @note: btstack_type 1 9896 */ 9897 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 9898 return event[7]; 9899 } 9900 /** 9901 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9902 * @param event packet 9903 * @return media_type 9904 * @note: btstack_type 1 9905 */ 9906 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 9907 return event[8]; 9908 } 9909 /** 9910 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9911 * @param event packet 9912 * @return version 9913 * @note: btstack_type 1 9914 */ 9915 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 9916 return event[9]; 9917 } 9918 /** 9919 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9920 * @param event packet 9921 * @return channel_mode 9922 * @note: btstack_type 1 9923 */ 9924 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 9925 return event[10]; 9926 } 9927 /** 9928 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9929 * @param event packet 9930 * @return num_channels 9931 * @note: btstack_type 1 9932 */ 9933 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 9934 return event[11]; 9935 } 9936 /** 9937 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9938 * @param event packet 9939 * @return sampling_frequency 9940 * @note: btstack_type 2 9941 */ 9942 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 9943 return little_endian_read_16(event, 12); 9944 } 9945 /** 9946 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9947 * @param event packet 9948 * @return vbr 9949 * @note: btstack_type 1 9950 */ 9951 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 9952 return event[14]; 9953 } 9954 /** 9955 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9956 * @param event packet 9957 * @return bit_rate_index 9958 * @note: btstack_type 1 9959 */ 9960 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 9961 return event[15]; 9962 } 9963 /** 9964 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 9965 * @param event packet 9966 * @return maximum_sul 9967 * @note: btstack_type 2 9968 */ 9969 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 9970 return little_endian_read_16(event, 16); 9971 } 9972 9973 /** 9974 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9975 * @param event packet 9976 * @return a2dp_cid 9977 * @note: btstack_type 2 9978 */ 9979 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){ 9980 return little_endian_read_16(event, 3); 9981 } 9982 /** 9983 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9984 * @param event packet 9985 * @return local_seid 9986 * @note: btstack_type 1 9987 */ 9988 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 9989 return event[5]; 9990 } 9991 /** 9992 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 9993 * @param event packet 9994 * @return remote_seid 9995 * @note: btstack_type 1 9996 */ 9997 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 9998 return event[6]; 9999 } 10000 /** 10001 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 10002 * @param event packet 10003 * @return reconfigure 10004 * @note: btstack_type 1 10005 */ 10006 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 10007 return event[7]; 10008 } 10009 /** 10010 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 10011 * @param event packet 10012 * @return media_type 10013 * @note: btstack_type 1 10014 */ 10015 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 10016 return event[8]; 10017 } 10018 /** 10019 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 10020 * @param event packet 10021 * @return media_codec_type 10022 * @note: btstack_type 2 10023 */ 10024 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 10025 return little_endian_read_16(event, 9); 10026 } 10027 /** 10028 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 10029 * @param event packet 10030 * @return media_codec_information_len 10031 * @note: btstack_type L 10032 */ 10033 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 10034 return little_endian_read_16(event, 11); 10035 } 10036 /** 10037 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 10038 * @param event packet 10039 * @return media_codec_information 10040 * @note: btstack_type V 10041 */ 10042 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 10043 return &event[13]; 10044 } 10045 10046 /** 10047 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 10048 * @param event packet 10049 * @return a2dp_cid 10050 * @note: btstack_type 2 10051 */ 10052 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){ 10053 return little_endian_read_16(event, 3); 10054 } 10055 /** 10056 * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED 10057 * @param event packet 10058 * @param Pointer to storage for bd_addr 10059 * @note: btstack_type B 10060 */ 10061 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10062 reverse_bytes(&event[5], bd_addr, 6); 10063 } 10064 /** 10065 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 10066 * @param event packet 10067 * @return local_seid 10068 * @note: btstack_type 1 10069 */ 10070 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){ 10071 return event[11]; 10072 } 10073 /** 10074 * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 10075 * @param event packet 10076 * @return remote_seid 10077 * @note: btstack_type 1 10078 */ 10079 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){ 10080 return event[12]; 10081 } 10082 /** 10083 * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED 10084 * @param event packet 10085 * @return status 10086 * @note: btstack_type 1 10087 */ 10088 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 10089 return event[13]; 10090 } 10091 10092 /** 10093 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 10094 * @param event packet 10095 * @return a2dp_cid 10096 * @note: btstack_type 2 10097 */ 10098 static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){ 10099 return little_endian_read_16(event, 3); 10100 } 10101 /** 10102 * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 10103 * @param event packet 10104 * @return local_seid 10105 * @note: btstack_type 1 10106 */ 10107 static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){ 10108 return event[5]; 10109 } 10110 10111 /** 10112 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 10113 * @param event packet 10114 * @return a2dp_cid 10115 * @note: btstack_type 2 10116 */ 10117 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 10118 return little_endian_read_16(event, 3); 10119 } 10120 /** 10121 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED 10122 * @param event packet 10123 * @return local_seid 10124 * @note: btstack_type 1 10125 */ 10126 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){ 10127 return event[5]; 10128 } 10129 10130 /** 10131 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED 10132 * @param event packet 10133 * @return a2dp_cid 10134 * @note: btstack_type 2 10135 */ 10136 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){ 10137 return little_endian_read_16(event, 3); 10138 } 10139 /** 10140 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED 10141 * @param event packet 10142 * @return local_seid 10143 * @note: btstack_type 1 10144 */ 10145 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){ 10146 return event[5]; 10147 } 10148 10149 /** 10150 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED 10151 * @param event packet 10152 * @return a2dp_cid 10153 * @note: btstack_type 2 10154 */ 10155 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){ 10156 return little_endian_read_16(event, 3); 10157 } 10158 /** 10159 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED 10160 * @param event packet 10161 * @return local_seid 10162 * @note: btstack_type 1 10163 */ 10164 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){ 10165 return event[5]; 10166 } 10167 10168 /** 10169 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED 10170 * @param event packet 10171 * @return a2dp_cid 10172 * @note: btstack_type 2 10173 */ 10174 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){ 10175 return little_endian_read_16(event, 3); 10176 } 10177 /** 10178 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED 10179 * @param event packet 10180 * @return local_seid 10181 * @note: btstack_type 1 10182 */ 10183 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){ 10184 return event[5]; 10185 } 10186 10187 /** 10188 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 10189 * @param event packet 10190 * @return a2dp_cid 10191 * @note: btstack_type 2 10192 */ 10193 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){ 10194 return little_endian_read_16(event, 3); 10195 } 10196 /** 10197 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 10198 * @param event packet 10199 * @return local_seid 10200 * @note: btstack_type 1 10201 */ 10202 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){ 10203 return event[5]; 10204 } 10205 /** 10206 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED 10207 * @param event packet 10208 * @return signal_identifier 10209 * @note: btstack_type 1 10210 */ 10211 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){ 10212 return event[6]; 10213 } 10214 10215 /** 10216 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED 10217 * @param event packet 10218 * @return a2dp_cid 10219 * @note: btstack_type 2 10220 */ 10221 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){ 10222 return little_endian_read_16(event, 3); 10223 } 10224 /** 10225 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED 10226 * @param event packet 10227 * @return local_seid 10228 * @note: btstack_type 1 10229 */ 10230 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){ 10231 return event[5]; 10232 } 10233 /** 10234 * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED 10235 * @param event packet 10236 * @return is_initiator 10237 * @note: btstack_type 1 10238 */ 10239 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){ 10240 return event[6]; 10241 } 10242 /** 10243 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED 10244 * @param event packet 10245 * @return signal_identifier 10246 * @note: btstack_type 1 10247 */ 10248 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){ 10249 return event[7]; 10250 } 10251 10252 /** 10253 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 10254 * @param event packet 10255 * @return a2dp_cid 10256 * @note: btstack_type 2 10257 */ 10258 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){ 10259 return little_endian_read_16(event, 3); 10260 } 10261 /** 10262 * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 10263 * @param event packet 10264 * @param Pointer to storage for bd_addr 10265 * @note: btstack_type B 10266 */ 10267 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10268 reverse_bytes(&event[5], bd_addr, 6); 10269 } 10270 /** 10271 * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 10272 * @param event packet 10273 * @return con_handle 10274 * @note: btstack_type 2 10275 */ 10276 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 10277 return little_endian_read_16(event, 11); 10278 } 10279 /** 10280 * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 10281 * @param event packet 10282 * @return status 10283 * @note: btstack_type 1 10284 */ 10285 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 10286 return event[13]; 10287 } 10288 10289 /** 10290 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 10291 * @param event packet 10292 * @return a2dp_cid 10293 * @note: btstack_type 2 10294 */ 10295 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){ 10296 return little_endian_read_16(event, 3); 10297 } 10298 10299 /** 10300 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 10301 * @param event packet 10302 * @return a2dp_cid 10303 * @note: btstack_type 2 10304 */ 10305 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){ 10306 return little_endian_read_16(event, 3); 10307 } 10308 /** 10309 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 10310 * @param event packet 10311 * @return local_seid 10312 * @note: btstack_type 1 10313 */ 10314 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){ 10315 return event[5]; 10316 } 10317 /** 10318 * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED 10319 * @param event packet 10320 * @return status 10321 * @note: btstack_type 1 10322 */ 10323 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){ 10324 return event[6]; 10325 } 10326 10327 /** 10328 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10329 * @param event packet 10330 * @return a2dp_cid 10331 * @note: btstack_type 2 10332 */ 10333 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){ 10334 return little_endian_read_16(event, 3); 10335 } 10336 /** 10337 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10338 * @param event packet 10339 * @return remote_seid 10340 * @note: btstack_type 1 10341 */ 10342 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 10343 return event[5]; 10344 } 10345 /** 10346 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10347 * @param event packet 10348 * @return media_type 10349 * @note: btstack_type 1 10350 */ 10351 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 10352 return event[6]; 10353 } 10354 /** 10355 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10356 * @param event packet 10357 * @return sampling_frequency_bitmap 10358 * @note: btstack_type 1 10359 */ 10360 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 10361 return event[7]; 10362 } 10363 /** 10364 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10365 * @param event packet 10366 * @return channel_mode_bitmap 10367 * @note: btstack_type 1 10368 */ 10369 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 10370 return event[8]; 10371 } 10372 /** 10373 * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10374 * @param event packet 10375 * @return block_length_bitmap 10376 * @note: btstack_type 1 10377 */ 10378 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 10379 return event[9]; 10380 } 10381 /** 10382 * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10383 * @param event packet 10384 * @return subbands_bitmap 10385 * @note: btstack_type 1 10386 */ 10387 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 10388 return event[10]; 10389 } 10390 /** 10391 * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10392 * @param event packet 10393 * @return allocation_method_bitmap 10394 * @note: btstack_type 1 10395 */ 10396 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 10397 return event[11]; 10398 } 10399 /** 10400 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10401 * @param event packet 10402 * @return min_bitpool_value 10403 * @note: btstack_type 1 10404 */ 10405 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 10406 return event[12]; 10407 } 10408 /** 10409 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 10410 * @param event packet 10411 * @return max_bitpool_value 10412 * @note: btstack_type 1 10413 */ 10414 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 10415 return event[13]; 10416 } 10417 10418 /** 10419 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10420 * @param event packet 10421 * @return a2dp_cid 10422 * @note: btstack_type 2 10423 */ 10424 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){ 10425 return little_endian_read_16(event, 3); 10426 } 10427 /** 10428 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10429 * @param event packet 10430 * @return remote_seid 10431 * @note: btstack_type 1 10432 */ 10433 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 10434 return event[5]; 10435 } 10436 /** 10437 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10438 * @param event packet 10439 * @return media_type 10440 * @note: btstack_type 1 10441 */ 10442 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 10443 return event[6]; 10444 } 10445 /** 10446 * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10447 * @param event packet 10448 * @return layer_bitmap 10449 * @note: btstack_type 1 10450 */ 10451 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 10452 return event[7]; 10453 } 10454 /** 10455 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10456 * @param event packet 10457 * @return crc 10458 * @note: btstack_type 1 10459 */ 10460 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 10461 return event[8]; 10462 } 10463 /** 10464 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10465 * @param event packet 10466 * @return channel_mode_bitmap 10467 * @note: btstack_type 1 10468 */ 10469 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 10470 return event[9]; 10471 } 10472 /** 10473 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10474 * @param event packet 10475 * @return media_payload_format 10476 * @note: btstack_type 1 10477 */ 10478 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 10479 return event[10]; 10480 } 10481 /** 10482 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10483 * @param event packet 10484 * @return sampling_frequency_bitmap 10485 * @note: btstack_type 1 10486 */ 10487 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 10488 return event[11]; 10489 } 10490 /** 10491 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10492 * @param event packet 10493 * @return vbr 10494 * @note: btstack_type 1 10495 */ 10496 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 10497 return event[12]; 10498 } 10499 /** 10500 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 10501 * @param event packet 10502 * @return bit_rate_index_bitmap 10503 * @note: btstack_type 2 10504 */ 10505 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 10506 return little_endian_read_16(event, 13); 10507 } 10508 10509 /** 10510 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10511 * @param event packet 10512 * @return a2dp_cid 10513 * @note: btstack_type 2 10514 */ 10515 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){ 10516 return little_endian_read_16(event, 3); 10517 } 10518 /** 10519 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10520 * @param event packet 10521 * @return remote_seid 10522 * @note: btstack_type 1 10523 */ 10524 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 10525 return event[5]; 10526 } 10527 /** 10528 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10529 * @param event packet 10530 * @return media_type 10531 * @note: btstack_type 1 10532 */ 10533 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 10534 return event[6]; 10535 } 10536 /** 10537 * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10538 * @param event packet 10539 * @return object_type_bitmap 10540 * @note: btstack_type 1 10541 */ 10542 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 10543 return event[7]; 10544 } 10545 /** 10546 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10547 * @param event packet 10548 * @return sampling_frequency_bitmap 10549 * @note: btstack_type 2 10550 */ 10551 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 10552 return little_endian_read_16(event, 8); 10553 } 10554 /** 10555 * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10556 * @param event packet 10557 * @return channels_bitmap 10558 * @note: btstack_type 1 10559 */ 10560 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 10561 return event[10]; 10562 } 10563 /** 10564 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10565 * @param event packet 10566 * @return bit_rate 10567 * @note: btstack_type 3 10568 */ 10569 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 10570 return little_endian_read_24(event, 11); 10571 } 10572 /** 10573 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 10574 * @param event packet 10575 * @return vbr 10576 * @note: btstack_type 1 10577 */ 10578 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 10579 return event[14]; 10580 } 10581 10582 /** 10583 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10584 * @param event packet 10585 * @return a2dp_cid 10586 * @note: btstack_type 2 10587 */ 10588 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){ 10589 return little_endian_read_16(event, 3); 10590 } 10591 /** 10592 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10593 * @param event packet 10594 * @return remote_seid 10595 * @note: btstack_type 1 10596 */ 10597 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 10598 return event[5]; 10599 } 10600 /** 10601 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10602 * @param event packet 10603 * @return media_type 10604 * @note: btstack_type 1 10605 */ 10606 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 10607 return event[6]; 10608 } 10609 /** 10610 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10611 * @param event packet 10612 * @return version 10613 * @note: btstack_type 1 10614 */ 10615 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 10616 return event[7]; 10617 } 10618 /** 10619 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10620 * @param event packet 10621 * @return channel_mode_bitmap 10622 * @note: btstack_type 1 10623 */ 10624 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 10625 return event[8]; 10626 } 10627 /** 10628 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10629 * @param event packet 10630 * @return sampling_frequency_bitmap 10631 * @note: btstack_type 1 10632 */ 10633 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 10634 return event[9]; 10635 } 10636 /** 10637 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10638 * @param event packet 10639 * @return vbr 10640 * @note: btstack_type 1 10641 */ 10642 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 10643 return event[10]; 10644 } 10645 /** 10646 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10647 * @param event packet 10648 * @return bit_rate_index_bitmap 10649 * @note: btstack_type 3 10650 */ 10651 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 10652 return little_endian_read_24(event, 11); 10653 } 10654 /** 10655 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 10656 * @param event packet 10657 * @return maximum_sul 10658 * @note: btstack_type 2 10659 */ 10660 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 10661 return little_endian_read_16(event, 14); 10662 } 10663 10664 /** 10665 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 10666 * @param event packet 10667 * @return a2dp_cid 10668 * @note: btstack_type 2 10669 */ 10670 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){ 10671 return little_endian_read_16(event, 3); 10672 } 10673 /** 10674 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 10675 * @param event packet 10676 * @return remote_seid 10677 * @note: btstack_type 1 10678 */ 10679 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 10680 return event[5]; 10681 } 10682 /** 10683 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 10684 * @param event packet 10685 * @return media_type 10686 * @note: btstack_type 1 10687 */ 10688 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 10689 return event[6]; 10690 } 10691 /** 10692 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 10693 * @param event packet 10694 * @return media_codec_type 10695 * @note: btstack_type 2 10696 */ 10697 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 10698 return little_endian_read_16(event, 7); 10699 } 10700 /** 10701 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 10702 * @param event packet 10703 * @return media_codec_information_len 10704 * @note: btstack_type L 10705 */ 10706 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 10707 return little_endian_read_16(event, 9); 10708 } 10709 /** 10710 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 10711 * @param event packet 10712 * @return media_codec_information 10713 * @note: btstack_type V 10714 */ 10715 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 10716 return &event[11]; 10717 } 10718 10719 /** 10720 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 10721 * @param event packet 10722 * @return a2dp_cid 10723 * @note: btstack_type 2 10724 */ 10725 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){ 10726 return little_endian_read_16(event, 3); 10727 } 10728 /** 10729 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 10730 * @param event packet 10731 * @return remote_seid 10732 * @note: btstack_type 1 10733 */ 10734 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 10735 return event[5]; 10736 } 10737 10738 /** 10739 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 10740 * @param event packet 10741 * @return a2dp_cid 10742 * @note: btstack_type 2 10743 */ 10744 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){ 10745 return little_endian_read_16(event, 3); 10746 } 10747 /** 10748 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 10749 * @param event packet 10750 * @return local_seid 10751 * @note: btstack_type 1 10752 */ 10753 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 10754 return event[5]; 10755 } 10756 /** 10757 * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 10758 * @param event packet 10759 * @return delay_100us 10760 * @note: btstack_type 2 10761 */ 10762 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 10763 return little_endian_read_16(event, 6); 10764 } 10765 10766 /** 10767 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 10768 * @param event packet 10769 * @return a2dp_cid 10770 * @note: btstack_type 2 10771 */ 10772 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){ 10773 return little_endian_read_16(event, 3); 10774 } 10775 /** 10776 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 10777 * @param event packet 10778 * @return remote_seid 10779 * @note: btstack_type 1 10780 */ 10781 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 10782 return event[5]; 10783 } 10784 10785 /** 10786 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE 10787 * @param event packet 10788 * @return a2dp_cid 10789 * @note: btstack_type 2 10790 */ 10791 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){ 10792 return little_endian_read_16(event, 3); 10793 } 10794 10795 /** 10796 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 10797 * @param event packet 10798 * @return avrcp_cid 10799 * @note: btstack_type 2 10800 */ 10801 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){ 10802 return little_endian_read_16(event, 3); 10803 } 10804 /** 10805 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 10806 * @param event packet 10807 * @return command_type 10808 * @note: btstack_type 1 10809 */ 10810 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){ 10811 return event[5]; 10812 } 10813 /** 10814 * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 10815 * @param event packet 10816 * @return play_status 10817 * @note: btstack_type 1 10818 */ 10819 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){ 10820 return event[6]; 10821 } 10822 10823 /** 10824 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 10825 * @param event packet 10826 * @return avrcp_cid 10827 * @note: btstack_type 2 10828 */ 10829 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){ 10830 return little_endian_read_16(event, 3); 10831 } 10832 /** 10833 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 10834 * @param event packet 10835 * @return command_type 10836 * @note: btstack_type 1 10837 */ 10838 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){ 10839 return event[5]; 10840 } 10841 10842 /** 10843 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 10844 * @param event packet 10845 * @return avrcp_cid 10846 * @note: btstack_type 2 10847 */ 10848 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){ 10849 return little_endian_read_16(event, 3); 10850 } 10851 /** 10852 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 10853 * @param event packet 10854 * @return command_type 10855 * @note: btstack_type 1 10856 */ 10857 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){ 10858 return event[5]; 10859 } 10860 10861 /** 10862 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 10863 * @param event packet 10864 * @return avrcp_cid 10865 * @note: btstack_type 2 10866 */ 10867 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){ 10868 return little_endian_read_16(event, 3); 10869 } 10870 /** 10871 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 10872 * @param event packet 10873 * @return command_type 10874 * @note: btstack_type 1 10875 */ 10876 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){ 10877 return event[5]; 10878 } 10879 10880 /** 10881 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 10882 * @param event packet 10883 * @return avrcp_cid 10884 * @note: btstack_type 2 10885 */ 10886 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 10887 return little_endian_read_16(event, 3); 10888 } 10889 /** 10890 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 10891 * @param event packet 10892 * @return command_type 10893 * @note: btstack_type 1 10894 */ 10895 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){ 10896 return event[5]; 10897 } 10898 /** 10899 * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 10900 * @param event packet 10901 * @return playback_position 10902 * @note: btstack_type 4 10903 */ 10904 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){ 10905 return little_endian_read_32(event, 6); 10906 } 10907 10908 /** 10909 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10910 * @param event packet 10911 * @return avrcp_cid 10912 * @note: btstack_type 2 10913 */ 10914 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){ 10915 return little_endian_read_16(event, 3); 10916 } 10917 /** 10918 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10919 * @param event packet 10920 * @return command_type 10921 * @note: btstack_type 1 10922 */ 10923 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){ 10924 return event[5]; 10925 } 10926 /** 10927 * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 10928 * @param event packet 10929 * @return battery_status 10930 * @note: btstack_type 1 10931 */ 10932 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){ 10933 return event[6]; 10934 } 10935 10936 /** 10937 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10938 * @param event packet 10939 * @return avrcp_cid 10940 * @note: btstack_type 2 10941 */ 10942 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){ 10943 return little_endian_read_16(event, 3); 10944 } 10945 /** 10946 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10947 * @param event packet 10948 * @return command_type 10949 * @note: btstack_type 1 10950 */ 10951 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){ 10952 return event[5]; 10953 } 10954 /** 10955 * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 10956 * @param event packet 10957 * @return system_status 10958 * @note: btstack_type 1 10959 */ 10960 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){ 10961 return event[6]; 10962 } 10963 10964 /** 10965 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10966 * @param event packet 10967 * @return avrcp_cid 10968 * @note: btstack_type 2 10969 */ 10970 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){ 10971 return little_endian_read_16(event, 3); 10972 } 10973 /** 10974 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 10975 * @param event packet 10976 * @return command_type 10977 * @note: btstack_type 1 10978 */ 10979 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){ 10980 return event[5]; 10981 } 10982 10983 /** 10984 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10985 * @param event packet 10986 * @return avrcp_cid 10987 * @note: btstack_type 2 10988 */ 10989 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){ 10990 return little_endian_read_16(event, 3); 10991 } 10992 /** 10993 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 10994 * @param event packet 10995 * @return command_type 10996 * @note: btstack_type 1 10997 */ 10998 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){ 10999 return event[5]; 11000 } 11001 11002 /** 11003 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 11004 * @param event packet 11005 * @return avrcp_cid 11006 * @note: btstack_type 2 11007 */ 11008 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){ 11009 return little_endian_read_16(event, 3); 11010 } 11011 /** 11012 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 11013 * @param event packet 11014 * @return command_type 11015 * @note: btstack_type 1 11016 */ 11017 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){ 11018 return event[5]; 11019 } 11020 /** 11021 * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 11022 * @param event packet 11023 * @return uid_counter 11024 * @note: btstack_type 2 11025 */ 11026 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){ 11027 return little_endian_read_16(event, 6); 11028 } 11029 11030 /** 11031 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 11032 * @param event packet 11033 * @return avrcp_cid 11034 * @note: btstack_type 2 11035 */ 11036 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){ 11037 return little_endian_read_16(event, 3); 11038 } 11039 /** 11040 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 11041 * @param event packet 11042 * @return command_type 11043 * @note: btstack_type 1 11044 */ 11045 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){ 11046 return event[5]; 11047 } 11048 /** 11049 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 11050 * @param event packet 11051 * @return absolute_volume 11052 * @note: btstack_type 1 11053 */ 11054 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){ 11055 return event[6]; 11056 } 11057 11058 /** 11059 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 11060 * @param event packet 11061 * @return avrcp_cid 11062 * @note: btstack_type 2 11063 */ 11064 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){ 11065 return little_endian_read_16(event, 3); 11066 } 11067 /** 11068 * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 11069 * @param event packet 11070 * @return command_type 11071 * @note: btstack_type 1 11072 */ 11073 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){ 11074 return event[5]; 11075 } 11076 /** 11077 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 11078 * @param event packet 11079 * @return absolute_volume 11080 * @note: btstack_type 1 11081 */ 11082 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){ 11083 return event[6]; 11084 } 11085 11086 /** 11087 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_STATE 11088 * @param event packet 11089 * @return avrcp_cid 11090 * @note: btstack_type 2 11091 */ 11092 static inline uint16_t avrcp_subevent_notification_state_get_avrcp_cid(const uint8_t * event){ 11093 return little_endian_read_16(event, 3); 11094 } 11095 /** 11096 * @brief Get field status from event AVRCP_SUBEVENT_NOTIFICATION_STATE 11097 * @param event packet 11098 * @return status 11099 * @note: btstack_type 1 11100 */ 11101 static inline uint8_t avrcp_subevent_notification_state_get_status(const uint8_t * event){ 11102 return event[5]; 11103 } 11104 /** 11105 * @brief Get field enabled from event AVRCP_SUBEVENT_NOTIFICATION_STATE 11106 * @param event packet 11107 * @return enabled 11108 * @note: btstack_type 1 11109 */ 11110 static inline uint8_t avrcp_subevent_notification_state_get_enabled(const uint8_t * event){ 11111 return event[6]; 11112 } 11113 /** 11114 * @brief Get field event_id from event AVRCP_SUBEVENT_NOTIFICATION_STATE 11115 * @param event packet 11116 * @return event_id 11117 * @note: btstack_type 1 11118 */ 11119 static inline uint8_t avrcp_subevent_notification_state_get_event_id(const uint8_t * event){ 11120 return event[7]; 11121 } 11122 11123 /** 11124 * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 11125 * @param event packet 11126 * @return status 11127 * @note: btstack_type 1 11128 */ 11129 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){ 11130 return event[3]; 11131 } 11132 /** 11133 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 11134 * @param event packet 11135 * @return avrcp_cid 11136 * @note: btstack_type 2 11137 */ 11138 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){ 11139 return little_endian_read_16(event, 4); 11140 } 11141 /** 11142 * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 11143 * @param event packet 11144 * @param Pointer to storage for bd_addr 11145 * @note: btstack_type B 11146 */ 11147 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11148 reverse_bytes(&event[6], bd_addr, 6); 11149 } 11150 /** 11151 * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 11152 * @param event packet 11153 * @return con_handle 11154 * @note: btstack_type 2 11155 */ 11156 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){ 11157 return little_endian_read_16(event, 12); 11158 } 11159 11160 /** 11161 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED 11162 * @param event packet 11163 * @return avrcp_cid 11164 * @note: btstack_type 2 11165 */ 11166 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){ 11167 return little_endian_read_16(event, 3); 11168 } 11169 11170 /** 11171 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 11172 * @param event packet 11173 * @return avrcp_cid 11174 * @note: btstack_type 2 11175 */ 11176 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){ 11177 return little_endian_read_16(event, 3); 11178 } 11179 /** 11180 * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 11181 * @param event packet 11182 * @return command_type 11183 * @note: btstack_type 1 11184 */ 11185 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){ 11186 return event[5]; 11187 } 11188 /** 11189 * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 11190 * @param event packet 11191 * @return repeat_mode 11192 * @note: btstack_type 1 11193 */ 11194 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){ 11195 return event[6]; 11196 } 11197 /** 11198 * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 11199 * @param event packet 11200 * @return shuffle_mode 11201 * @note: btstack_type 1 11202 */ 11203 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){ 11204 return event[7]; 11205 } 11206 11207 /** 11208 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS 11209 * @param event packet 11210 * @return avrcp_cid 11211 * @note: btstack_type 2 11212 */ 11213 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){ 11214 return little_endian_read_16(event, 3); 11215 } 11216 /** 11217 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS 11218 * @param event packet 11219 * @return command_type 11220 * @note: btstack_type 1 11221 */ 11222 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){ 11223 return event[5]; 11224 } 11225 /** 11226 * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS 11227 * @param event packet 11228 * @return song_length 11229 * @note: btstack_type 4 11230 */ 11231 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){ 11232 return little_endian_read_32(event, 6); 11233 } 11234 /** 11235 * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS 11236 * @param event packet 11237 * @return song_position 11238 * @note: btstack_type 4 11239 */ 11240 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){ 11241 return little_endian_read_32(event, 10); 11242 } 11243 /** 11244 * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS 11245 * @param event packet 11246 * @return play_status 11247 * @note: btstack_type 1 11248 */ 11249 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){ 11250 return event[14]; 11251 } 11252 11253 /** 11254 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START 11255 * @param event packet 11256 * @return avrcp_cid 11257 * @note: btstack_type 2 11258 */ 11259 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){ 11260 return little_endian_read_16(event, 3); 11261 } 11262 /** 11263 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START 11264 * @param event packet 11265 * @return command_type 11266 * @note: btstack_type 1 11267 */ 11268 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){ 11269 return event[5]; 11270 } 11271 /** 11272 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START 11273 * @param event packet 11274 * @return operation_id 11275 * @note: btstack_type 1 11276 */ 11277 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){ 11278 return event[6]; 11279 } 11280 11281 /** 11282 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE 11283 * @param event packet 11284 * @return avrcp_cid 11285 * @note: btstack_type 2 11286 */ 11287 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){ 11288 return little_endian_read_16(event, 3); 11289 } 11290 /** 11291 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE 11292 * @param event packet 11293 * @return command_type 11294 * @note: btstack_type 1 11295 */ 11296 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){ 11297 return event[5]; 11298 } 11299 /** 11300 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE 11301 * @param event packet 11302 * @return operation_id 11303 * @note: btstack_type 1 11304 */ 11305 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){ 11306 return event[6]; 11307 } 11308 11309 /** 11310 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 11311 * @param event packet 11312 * @return avrcp_cid 11313 * @note: btstack_type 2 11314 */ 11315 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){ 11316 return little_endian_read_16(event, 3); 11317 } 11318 /** 11319 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 11320 * @param event packet 11321 * @return command_type 11322 * @note: btstack_type 1 11323 */ 11324 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){ 11325 return event[5]; 11326 } 11327 11328 /** 11329 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY 11330 * @param event packet 11331 * @return avrcp_cid 11332 * @note: btstack_type 2 11333 */ 11334 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){ 11335 return little_endian_read_16(event, 3); 11336 } 11337 11338 /** 11339 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION 11340 * @param event packet 11341 * @return avrcp_cid 11342 * @note: btstack_type 2 11343 */ 11344 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){ 11345 return little_endian_read_16(event, 3); 11346 } 11347 /** 11348 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION 11349 * @param event packet 11350 * @return operation_id 11351 * @note: btstack_type 1 11352 */ 11353 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){ 11354 return event[5]; 11355 } 11356 /** 11357 * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION 11358 * @param event packet 11359 * @return button_pressed 11360 * @note: btstack_type 1 11361 */ 11362 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){ 11363 return event[6]; 11364 } 11365 /** 11366 * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION 11367 * @param event packet 11368 * @return operands_length 11369 * @note: btstack_type 1 11370 */ 11371 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){ 11372 return event[7]; 11373 } 11374 /** 11375 * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION 11376 * @param event packet 11377 * @return operand 11378 * @note: btstack_type 1 11379 */ 11380 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){ 11381 return event[8]; 11382 } 11383 11384 /** 11385 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 11386 * @param event packet 11387 * @return avrcp_cid 11388 * @note: btstack_type 2 11389 */ 11390 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){ 11391 return little_endian_read_16(event, 3); 11392 } 11393 /** 11394 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 11395 * @param event packet 11396 * @return command_type 11397 * @note: btstack_type 1 11398 */ 11399 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){ 11400 return event[5]; 11401 } 11402 /** 11403 * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 11404 * @param event packet 11405 * @return track 11406 * @note: btstack_type 1 11407 */ 11408 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){ 11409 return event[6]; 11410 } 11411 11412 /** 11413 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 11414 * @param event packet 11415 * @return avrcp_cid 11416 * @note: btstack_type 2 11417 */ 11418 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){ 11419 return little_endian_read_16(event, 3); 11420 } 11421 /** 11422 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 11423 * @param event packet 11424 * @return command_type 11425 * @note: btstack_type 1 11426 */ 11427 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){ 11428 return event[5]; 11429 } 11430 /** 11431 * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 11432 * @param event packet 11433 * @return total_tracks 11434 * @note: btstack_type 1 11435 */ 11436 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){ 11437 return event[6]; 11438 } 11439 11440 /** 11441 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 11442 * @param event packet 11443 * @return avrcp_cid 11444 * @note: btstack_type 2 11445 */ 11446 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){ 11447 return little_endian_read_16(event, 3); 11448 } 11449 /** 11450 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 11451 * @param event packet 11452 * @return command_type 11453 * @note: btstack_type 1 11454 */ 11455 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){ 11456 return event[5]; 11457 } 11458 /** 11459 * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 11460 * @param event packet 11461 * @return song_length 11462 * @note: btstack_type 4 11463 */ 11464 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){ 11465 return little_endian_read_32(event, 6); 11466 } 11467 11468 /** 11469 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 11470 * @param event packet 11471 * @return avrcp_cid 11472 * @note: btstack_type 2 11473 */ 11474 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){ 11475 return little_endian_read_16(event, 3); 11476 } 11477 /** 11478 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 11479 * @param event packet 11480 * @return command_type 11481 * @note: btstack_type 1 11482 */ 11483 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){ 11484 return event[5]; 11485 } 11486 /** 11487 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 11488 * @param event packet 11489 * @return value_len 11490 * @note: btstack_type J 11491 */ 11492 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){ 11493 return event[6]; 11494 } 11495 /** 11496 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 11497 * @param event packet 11498 * @return value 11499 * @note: btstack_type V 11500 */ 11501 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){ 11502 return &event[7]; 11503 } 11504 11505 /** 11506 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 11507 * @param event packet 11508 * @return avrcp_cid 11509 * @note: btstack_type 2 11510 */ 11511 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){ 11512 return little_endian_read_16(event, 3); 11513 } 11514 /** 11515 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 11516 * @param event packet 11517 * @return command_type 11518 * @note: btstack_type 1 11519 */ 11520 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){ 11521 return event[5]; 11522 } 11523 /** 11524 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 11525 * @param event packet 11526 * @return value_len 11527 * @note: btstack_type J 11528 */ 11529 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){ 11530 return event[6]; 11531 } 11532 /** 11533 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 11534 * @param event packet 11535 * @return value 11536 * @note: btstack_type V 11537 */ 11538 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){ 11539 return &event[7]; 11540 } 11541 11542 /** 11543 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 11544 * @param event packet 11545 * @return avrcp_cid 11546 * @note: btstack_type 2 11547 */ 11548 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){ 11549 return little_endian_read_16(event, 3); 11550 } 11551 /** 11552 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 11553 * @param event packet 11554 * @return command_type 11555 * @note: btstack_type 1 11556 */ 11557 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){ 11558 return event[5]; 11559 } 11560 /** 11561 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 11562 * @param event packet 11563 * @return value_len 11564 * @note: btstack_type J 11565 */ 11566 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){ 11567 return event[6]; 11568 } 11569 /** 11570 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 11571 * @param event packet 11572 * @return value 11573 * @note: btstack_type V 11574 */ 11575 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){ 11576 return &event[7]; 11577 } 11578 11579 /** 11580 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 11581 * @param event packet 11582 * @return avrcp_cid 11583 * @note: btstack_type 2 11584 */ 11585 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){ 11586 return little_endian_read_16(event, 3); 11587 } 11588 /** 11589 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 11590 * @param event packet 11591 * @return command_type 11592 * @note: btstack_type 1 11593 */ 11594 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){ 11595 return event[5]; 11596 } 11597 /** 11598 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 11599 * @param event packet 11600 * @return value_len 11601 * @note: btstack_type J 11602 */ 11603 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){ 11604 return event[6]; 11605 } 11606 /** 11607 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 11608 * @param event packet 11609 * @return value 11610 * @note: btstack_type V 11611 */ 11612 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){ 11613 return &event[7]; 11614 } 11615 11616 /** 11617 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO 11618 * @param event packet 11619 * @return avrcp_cid 11620 * @note: btstack_type 2 11621 */ 11622 static inline uint16_t avrcp_subevent_now_playing_cover_art_info_get_avrcp_cid(const uint8_t * event){ 11623 return little_endian_read_16(event, 3); 11624 } 11625 /** 11626 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO 11627 * @param event packet 11628 * @return command_type 11629 * @note: btstack_type 1 11630 */ 11631 static inline uint8_t avrcp_subevent_now_playing_cover_art_info_get_command_type(const uint8_t * event){ 11632 return event[5]; 11633 } 11634 /** 11635 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO 11636 * @param event packet 11637 * @return value_len 11638 * @note: btstack_type J 11639 */ 11640 static inline uint8_t avrcp_subevent_now_playing_cover_art_info_get_value_len(const uint8_t * event){ 11641 return event[6]; 11642 } 11643 /** 11644 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_COVER_ART_INFO 11645 * @param event packet 11646 * @return value 11647 * @note: btstack_type V 11648 */ 11649 static inline const uint8_t * avrcp_subevent_now_playing_cover_art_info_get_value(const uint8_t * event){ 11650 return &event[7]; 11651 } 11652 11653 /** 11654 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 11655 * @param event packet 11656 * @return avrcp_cid 11657 * @note: btstack_type 2 11658 */ 11659 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){ 11660 return little_endian_read_16(event, 3); 11661 } 11662 /** 11663 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 11664 * @param event packet 11665 * @return command_type 11666 * @note: btstack_type 1 11667 */ 11668 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){ 11669 return event[5]; 11670 } 11671 /** 11672 * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 11673 * @param event packet 11674 * @return status 11675 * @note: btstack_type 1 11676 */ 11677 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){ 11678 return event[6]; 11679 } 11680 11681 /** 11682 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 11683 * @param event packet 11684 * @return avrcp_cid 11685 * @note: btstack_type 2 11686 */ 11687 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 11688 return little_endian_read_16(event, 3); 11689 } 11690 /** 11691 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 11692 * @param event packet 11693 * @return command_type 11694 * @note: btstack_type 1 11695 */ 11696 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){ 11697 return event[5]; 11698 } 11699 /** 11700 * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 11701 * @param event packet 11702 * @return playback_position_ms 11703 * @note: btstack_type 4 11704 */ 11705 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){ 11706 return little_endian_read_32(event, 6); 11707 } 11708 11709 /** 11710 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 11711 * @param event packet 11712 * @return avrcp_cid 11713 * @note: btstack_type 2 11714 */ 11715 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){ 11716 return little_endian_read_16(event, 3); 11717 } 11718 /** 11719 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 11720 * @param event packet 11721 * @return command_type 11722 * @note: btstack_type 1 11723 */ 11724 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){ 11725 return event[5]; 11726 } 11727 /** 11728 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 11729 * @param event packet 11730 * @return status 11731 * @note: btstack_type 1 11732 */ 11733 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){ 11734 return event[6]; 11735 } 11736 /** 11737 * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 11738 * @param event packet 11739 * @return event_id 11740 * @note: btstack_type 1 11741 */ 11742 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){ 11743 return event[7]; 11744 } 11745 11746 /** 11747 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 11748 * @param event packet 11749 * @return avrcp_cid 11750 * @note: btstack_type 2 11751 */ 11752 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){ 11753 return little_endian_read_16(event, 3); 11754 } 11755 /** 11756 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 11757 * @param event packet 11758 * @return command_type 11759 * @note: btstack_type 1 11760 */ 11761 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){ 11762 return event[5]; 11763 } 11764 /** 11765 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 11766 * @param event packet 11767 * @return status 11768 * @note: btstack_type 1 11769 */ 11770 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){ 11771 return event[6]; 11772 } 11773 11774 /** 11775 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 11776 * @param event packet 11777 * @return avrcp_cid 11778 * @note: btstack_type 2 11779 */ 11780 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){ 11781 return little_endian_read_16(event, 3); 11782 } 11783 /** 11784 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 11785 * @param event packet 11786 * @return command_type 11787 * @note: btstack_type 1 11788 */ 11789 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){ 11790 return event[5]; 11791 } 11792 /** 11793 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 11794 * @param event packet 11795 * @return status 11796 * @note: btstack_type 1 11797 */ 11798 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){ 11799 return event[6]; 11800 } 11801 /** 11802 * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 11803 * @param event packet 11804 * @return company_id 11805 * @note: btstack_type 3 11806 */ 11807 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){ 11808 return little_endian_read_24(event, 7); 11809 } 11810 11811 /** 11812 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 11813 * @param event packet 11814 * @return avrcp_cid 11815 * @note: btstack_type 2 11816 */ 11817 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){ 11818 return little_endian_read_16(event, 3); 11819 } 11820 /** 11821 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 11822 * @param event packet 11823 * @return command_type 11824 * @note: btstack_type 1 11825 */ 11826 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){ 11827 return event[5]; 11828 } 11829 /** 11830 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 11831 * @param event packet 11832 * @return status 11833 * @note: btstack_type 1 11834 */ 11835 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){ 11836 return event[6]; 11837 } 11838 11839 /** 11840 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 11841 * @param event packet 11842 * @return avrcp_cid 11843 * @note: btstack_type 2 11844 */ 11845 static inline uint16_t avrcp_subevent_custom_command_response_get_avrcp_cid(const uint8_t * event){ 11846 return little_endian_read_16(event, 3); 11847 } 11848 /** 11849 * @brief Get field command_type from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 11850 * @param event packet 11851 * @return command_type 11852 * @note: btstack_type 1 11853 */ 11854 static inline uint8_t avrcp_subevent_custom_command_response_get_command_type(const uint8_t * event){ 11855 return event[5]; 11856 } 11857 /** 11858 * @brief Get field pdu_id from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 11859 * @param event packet 11860 * @return pdu_id 11861 * @note: btstack_type 1 11862 */ 11863 static inline uint8_t avrcp_subevent_custom_command_response_get_pdu_id(const uint8_t * event){ 11864 return event[6]; 11865 } 11866 /** 11867 * @brief Get field params_len from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 11868 * @param event packet 11869 * @return params_len 11870 * @note: btstack_type L 11871 */ 11872 static inline uint16_t avrcp_subevent_custom_command_response_get_params_len(const uint8_t * event){ 11873 return little_endian_read_16(event, 7); 11874 } 11875 /** 11876 * @brief Get field params from event AVRCP_SUBEVENT_CUSTOM_COMMAND_RESPONSE 11877 * @param event packet 11878 * @return params 11879 * @note: btstack_type V 11880 */ 11881 static inline const uint8_t * avrcp_subevent_custom_command_response_get_params(const uint8_t * event){ 11882 return &event[9]; 11883 } 11884 11885 /** 11886 * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 11887 * @param event packet 11888 * @param Pointer to storage for bd_addr 11889 * @note: btstack_type B 11890 */ 11891 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11892 reverse_bytes(&event[3], bd_addr, 6); 11893 } 11894 /** 11895 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 11896 * @param event packet 11897 * @return browsing_cid 11898 * @note: btstack_type 2 11899 */ 11900 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){ 11901 return little_endian_read_16(event, 9); 11902 } 11903 11904 /** 11905 * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 11906 * @param event packet 11907 * @return status 11908 * @note: btstack_type 1 11909 */ 11910 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){ 11911 return event[3]; 11912 } 11913 /** 11914 * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 11915 * @param event packet 11916 * @param Pointer to storage for bd_addr 11917 * @note: btstack_type B 11918 */ 11919 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 11920 reverse_bytes(&event[4], bd_addr, 6); 11921 } 11922 /** 11923 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 11924 * @param event packet 11925 * @return browsing_cid 11926 * @note: btstack_type 2 11927 */ 11928 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){ 11929 return little_endian_read_16(event, 10); 11930 } 11931 11932 /** 11933 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 11934 * @param event packet 11935 * @return browsing_cid 11936 * @note: btstack_type 2 11937 */ 11938 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){ 11939 return little_endian_read_16(event, 3); 11940 } 11941 11942 /** 11943 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE 11944 * @param event packet 11945 * @return browsing_cid 11946 * @note: btstack_type 2 11947 */ 11948 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){ 11949 return little_endian_read_16(event, 3); 11950 } 11951 /** 11952 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE 11953 * @param event packet 11954 * @return uid_counter 11955 * @note: btstack_type 2 11956 */ 11957 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){ 11958 return little_endian_read_16(event, 5); 11959 } 11960 /** 11961 * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE 11962 * @param event packet 11963 * @return browsing_status 11964 * @note: btstack_type 1 11965 */ 11966 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){ 11967 return event[7]; 11968 } 11969 /** 11970 * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE 11971 * @param event packet 11972 * @return bluetooth_status 11973 * @note: btstack_type 1 11974 */ 11975 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){ 11976 return event[8]; 11977 } 11978 11979 /** 11980 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11981 * @param event packet 11982 * @return browsing_cid 11983 * @note: btstack_type 2 11984 */ 11985 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){ 11986 return little_endian_read_16(event, 3); 11987 } 11988 /** 11989 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11990 * @param event packet 11991 * @return scope 11992 * @note: btstack_type 1 11993 */ 11994 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){ 11995 return event[5]; 11996 } 11997 /** 11998 * @brief Get field start_item from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 11999 * @param event packet 12000 * @return start_item 12001 * @note: btstack_type 4 12002 */ 12003 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_start_item(const uint8_t * event){ 12004 return little_endian_read_32(event, 6); 12005 } 12006 /** 12007 * @brief Get field end_item from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 12008 * @param event packet 12009 * @return end_item 12010 * @note: btstack_type 4 12011 */ 12012 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_end_item(const uint8_t * event){ 12013 return little_endian_read_32(event, 10); 12014 } 12015 /** 12016 * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 12017 * @param event packet 12018 * @return attr_bitmap 12019 * @note: btstack_type 4 12020 */ 12021 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){ 12022 return little_endian_read_32(event, 14); 12023 } 12024 12025 /** 12026 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 12027 * @param event packet 12028 * @return browsing_cid 12029 * @note: btstack_type 2 12030 */ 12031 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){ 12032 return little_endian_read_16(event, 3); 12033 } 12034 /** 12035 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 12036 * @param event packet 12037 * @return scope 12038 * @note: btstack_type 1 12039 */ 12040 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){ 12041 return event[5]; 12042 } 12043 12044 /** 12045 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 12046 * @param event packet 12047 * @return browsing_cid 12048 * @note: btstack_type 2 12049 */ 12050 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){ 12051 return little_endian_read_16(event, 3); 12052 } 12053 /** 12054 * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 12055 * @param event packet 12056 * @return player_id 12057 * @note: btstack_type 2 12058 */ 12059 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){ 12060 return little_endian_read_16(event, 5); 12061 } 12062 12063 /** 12064 * @brief Get field status from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED 12065 * @param event packet 12066 * @return status 12067 * @note: btstack_type 1 12068 */ 12069 static inline uint8_t avrcp_subevent_cover_art_connection_established_get_status(const uint8_t * event){ 12070 return event[3]; 12071 } 12072 /** 12073 * @brief Get field bd_addr from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED 12074 * @param event packet 12075 * @param Pointer to storage for bd_addr 12076 * @note: btstack_type B 12077 */ 12078 static inline void avrcp_subevent_cover_art_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 12079 reverse_bytes(&event[4], bd_addr, 6); 12080 } 12081 /** 12082 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED 12083 * @param event packet 12084 * @return avrcp_cid 12085 * @note: btstack_type 2 12086 */ 12087 static inline uint16_t avrcp_subevent_cover_art_connection_established_get_avrcp_cid(const uint8_t * event){ 12088 return little_endian_read_16(event, 10); 12089 } 12090 /** 12091 * @brief Get field cover_art_cid from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_ESTABLISHED 12092 * @param event packet 12093 * @return cover_art_cid 12094 * @note: btstack_type 2 12095 */ 12096 static inline uint16_t avrcp_subevent_cover_art_connection_established_get_cover_art_cid(const uint8_t * event){ 12097 return little_endian_read_16(event, 12); 12098 } 12099 12100 /** 12101 * @brief Get field cover_art_cid from event AVRCP_SUBEVENT_COVER_ART_OPERATION_COMPLETE 12102 * @param event packet 12103 * @return cover_art_cid 12104 * @note: btstack_type 2 12105 */ 12106 static inline uint16_t avrcp_subevent_cover_art_operation_complete_get_cover_art_cid(const uint8_t * event){ 12107 return little_endian_read_16(event, 3); 12108 } 12109 /** 12110 * @brief Get field status from event AVRCP_SUBEVENT_COVER_ART_OPERATION_COMPLETE 12111 * @param event packet 12112 * @return status 12113 * @note: btstack_type 1 12114 */ 12115 static inline uint8_t avrcp_subevent_cover_art_operation_complete_get_status(const uint8_t * event){ 12116 return event[5]; 12117 } 12118 12119 /** 12120 * @brief Get field cover_art_cid from event AVRCP_SUBEVENT_COVER_ART_CONNECTION_RELEASED 12121 * @param event packet 12122 * @return cover_art_cid 12123 * @note: btstack_type 2 12124 */ 12125 static inline uint16_t avrcp_subevent_cover_art_connection_released_get_cover_art_cid(const uint8_t * event){ 12126 return little_endian_read_16(event, 3); 12127 } 12128 12129 /** 12130 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CHANGE_PATH 12131 * @param event packet 12132 * @return browsing_cid 12133 * @note: btstack_type 2 12134 */ 12135 static inline uint16_t avrcp_subevent_browsing_change_path_get_browsing_cid(const uint8_t * event){ 12136 return little_endian_read_16(event, 3); 12137 } 12138 /** 12139 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_CHANGE_PATH 12140 * @param event packet 12141 * @return uid_counter 12142 * @note: btstack_type 2 12143 */ 12144 static inline uint16_t avrcp_subevent_browsing_change_path_get_uid_counter(const uint8_t * event){ 12145 return little_endian_read_16(event, 5); 12146 } 12147 /** 12148 * @brief Get field direction from event AVRCP_SUBEVENT_BROWSING_CHANGE_PATH 12149 * @param event packet 12150 * @return direction 12151 * @note: btstack_type 1 12152 */ 12153 static inline uint8_t avrcp_subevent_browsing_change_path_get_direction(const uint8_t * event){ 12154 return event[7]; 12155 } 12156 /** 12157 * @brief Get field folder_id from event AVRCP_SUBEVENT_BROWSING_CHANGE_PATH 12158 * @param event packet 12159 * @return folder_id 12160 * @note: btstack_type D 12161 */ 12162 static inline const uint8_t * avrcp_subevent_browsing_change_path_get_folder_id(const uint8_t * event){ 12163 return (const uint8_t *) &event[8]; 12164 } 12165 12166 /** 12167 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_ITEM_ATTRIBUTES 12168 * @param event packet 12169 * @return browsing_cid 12170 * @note: btstack_type 2 12171 */ 12172 static inline uint16_t avrcp_subevent_browsing_get_item_attributes_get_browsing_cid(const uint8_t * event){ 12173 return little_endian_read_16(event, 3); 12174 } 12175 /** 12176 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_GET_ITEM_ATTRIBUTES 12177 * @param event packet 12178 * @return uid_counter 12179 * @note: btstack_type 2 12180 */ 12181 static inline uint16_t avrcp_subevent_browsing_get_item_attributes_get_uid_counter(const uint8_t * event){ 12182 return little_endian_read_16(event, 5); 12183 } 12184 /** 12185 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_ITEM_ATTRIBUTES 12186 * @param event packet 12187 * @return scope 12188 * @note: btstack_type 1 12189 */ 12190 static inline uint8_t avrcp_subevent_browsing_get_item_attributes_get_scope(const uint8_t * event){ 12191 return event[7]; 12192 } 12193 /** 12194 * @brief Get field item_id from event AVRCP_SUBEVENT_BROWSING_GET_ITEM_ATTRIBUTES 12195 * @param event packet 12196 * @return item_id 12197 * @note: btstack_type D 12198 */ 12199 static inline const uint8_t * avrcp_subevent_browsing_get_item_attributes_get_item_id(const uint8_t * event){ 12200 return (const uint8_t *) &event[8]; 12201 } 12202 /** 12203 * @brief Get field attributes_len from event AVRCP_SUBEVENT_BROWSING_GET_ITEM_ATTRIBUTES 12204 * @param event packet 12205 * @return attributes_len 12206 * @note: btstack_type J 12207 */ 12208 static inline uint8_t avrcp_subevent_browsing_get_item_attributes_get_attributes_len(const uint8_t * event){ 12209 return event[16]; 12210 } 12211 /** 12212 * @brief Get field attributes from event AVRCP_SUBEVENT_BROWSING_GET_ITEM_ATTRIBUTES 12213 * @param event packet 12214 * @return attributes 12215 * @note: btstack_type V 12216 */ 12217 static inline const uint8_t * avrcp_subevent_browsing_get_item_attributes_get_attributes(const uint8_t * event){ 12218 return &event[17]; 12219 } 12220 12221 /** 12222 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SEARCH 12223 * @param event packet 12224 * @return browsing_cid 12225 * @note: btstack_type 2 12226 */ 12227 static inline uint16_t avrcp_subevent_browsing_search_get_browsing_cid(const uint8_t * event){ 12228 return little_endian_read_16(event, 3); 12229 } 12230 /** 12231 * @brief Get field characterset from event AVRCP_SUBEVENT_BROWSING_SEARCH 12232 * @param event packet 12233 * @return characterset 12234 * @note: btstack_type 2 12235 */ 12236 static inline uint16_t avrcp_subevent_browsing_search_get_characterset(const uint8_t * event){ 12237 return little_endian_read_16(event, 5); 12238 } 12239 /** 12240 * @brief Get field value_length from event AVRCP_SUBEVENT_BROWSING_SEARCH 12241 * @param event packet 12242 * @return value_length 12243 * @note: btstack_type J 12244 */ 12245 static inline uint8_t avrcp_subevent_browsing_search_get_value_length(const uint8_t * event){ 12246 return event[7]; 12247 } 12248 /** 12249 * @brief Get field value from event AVRCP_SUBEVENT_BROWSING_SEARCH 12250 * @param event packet 12251 * @return value 12252 * @note: btstack_type V 12253 */ 12254 static inline const uint8_t * avrcp_subevent_browsing_search_get_value(const uint8_t * event){ 12255 return &event[8]; 12256 } 12257 12258 /** 12259 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_ITEM 12260 * @param event packet 12261 * @return avrcp_cid 12262 * @note: btstack_type 2 12263 */ 12264 static inline uint16_t avrcp_subevent_play_item_get_avrcp_cid(const uint8_t * event){ 12265 return little_endian_read_16(event, 3); 12266 } 12267 /** 12268 * @brief Get field uid_counter from event AVRCP_SUBEVENT_PLAY_ITEM 12269 * @param event packet 12270 * @return uid_counter 12271 * @note: btstack_type 2 12272 */ 12273 static inline uint16_t avrcp_subevent_play_item_get_uid_counter(const uint8_t * event){ 12274 return little_endian_read_16(event, 5); 12275 } 12276 /** 12277 * @brief Get field scope from event AVRCP_SUBEVENT_PLAY_ITEM 12278 * @param event packet 12279 * @return scope 12280 * @note: btstack_type 1 12281 */ 12282 static inline uint8_t avrcp_subevent_play_item_get_scope(const uint8_t * event){ 12283 return event[7]; 12284 } 12285 /** 12286 * @brief Get field item_id from event AVRCP_SUBEVENT_PLAY_ITEM 12287 * @param event packet 12288 * @return item_id 12289 * @note: btstack_type D 12290 */ 12291 static inline const uint8_t * avrcp_subevent_play_item_get_item_id(const uint8_t * event){ 12292 return (const uint8_t *) &event[8]; 12293 } 12294 12295 /** 12296 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING 12297 * @param event packet 12298 * @return avrcp_cid 12299 * @note: btstack_type 2 12300 */ 12301 static inline uint16_t avrcp_subevent_add_to_now_playing_get_avrcp_cid(const uint8_t * event){ 12302 return little_endian_read_16(event, 3); 12303 } 12304 /** 12305 * @brief Get field uid_counter from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING 12306 * @param event packet 12307 * @return uid_counter 12308 * @note: btstack_type 2 12309 */ 12310 static inline uint16_t avrcp_subevent_add_to_now_playing_get_uid_counter(const uint8_t * event){ 12311 return little_endian_read_16(event, 5); 12312 } 12313 /** 12314 * @brief Get field scope from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING 12315 * @param event packet 12316 * @return scope 12317 * @note: btstack_type 1 12318 */ 12319 static inline uint8_t avrcp_subevent_add_to_now_playing_get_scope(const uint8_t * event){ 12320 return event[7]; 12321 } 12322 /** 12323 * @brief Get field item_id from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING 12324 * @param event packet 12325 * @return item_id 12326 * @note: btstack_type D 12327 */ 12328 static inline const uint8_t * avrcp_subevent_add_to_now_playing_get_item_id(const uint8_t * event){ 12329 return (const uint8_t *) &event[8]; 12330 } 12331 12332 /** 12333 * @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION 12334 * @param event packet 12335 * @return goep_cid 12336 * @note: btstack_type 2 12337 */ 12338 static inline uint16_t goep_subevent_incoming_connection_get_goep_cid(const uint8_t * event){ 12339 return little_endian_read_16(event, 3); 12340 } 12341 /** 12342 * @brief Get field address from event GOEP_SUBEVENT_INCOMING_CONNECTION 12343 * @param event packet 12344 * @param Pointer to storage for address 12345 * @note: btstack_type B 12346 */ 12347 static inline void goep_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 12348 reverse_bytes(&event[5], address, 6); 12349 } 12350 /** 12351 * @brief Get field handle from event GOEP_SUBEVENT_INCOMING_CONNECTION 12352 * @param event packet 12353 * @return handle 12354 * @note: btstack_type H 12355 */ 12356 static inline hci_con_handle_t goep_subevent_incoming_connection_get_handle(const uint8_t * event){ 12357 return little_endian_read_16(event, 11); 12358 } 12359 12360 /** 12361 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED 12362 * @param event packet 12363 * @return goep_cid 12364 * @note: btstack_type 2 12365 */ 12366 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){ 12367 return little_endian_read_16(event, 3); 12368 } 12369 /** 12370 * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED 12371 * @param event packet 12372 * @return status 12373 * @note: btstack_type 1 12374 */ 12375 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){ 12376 return event[5]; 12377 } 12378 /** 12379 * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED 12380 * @param event packet 12381 * @param Pointer to storage for bd_addr 12382 * @note: btstack_type B 12383 */ 12384 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 12385 reverse_bytes(&event[6], bd_addr, 6); 12386 } 12387 /** 12388 * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED 12389 * @param event packet 12390 * @return con_handle 12391 * @note: btstack_type H 12392 */ 12393 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){ 12394 return little_endian_read_16(event, 12); 12395 } 12396 /** 12397 * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED 12398 * @param event packet 12399 * @return incoming 12400 * @note: btstack_type 1 12401 */ 12402 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){ 12403 return event[14]; 12404 } 12405 12406 /** 12407 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED 12408 * @param event packet 12409 * @return goep_cid 12410 * @note: btstack_type 2 12411 */ 12412 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 12413 return little_endian_read_16(event, 3); 12414 } 12415 12416 /** 12417 * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW 12418 * @param event packet 12419 * @return goep_cid 12420 * @note: btstack_type 2 12421 */ 12422 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){ 12423 return little_endian_read_16(event, 3); 12424 } 12425 12426 /** 12427 * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED 12428 * @param event packet 12429 * @return pbap_cid 12430 * @note: btstack_type 2 12431 */ 12432 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){ 12433 return little_endian_read_16(event, 3); 12434 } 12435 /** 12436 * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED 12437 * @param event packet 12438 * @return status 12439 * @note: btstack_type 1 12440 */ 12441 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){ 12442 return event[5]; 12443 } 12444 /** 12445 * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED 12446 * @param event packet 12447 * @param Pointer to storage for bd_addr 12448 * @note: btstack_type B 12449 */ 12450 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 12451 reverse_bytes(&event[6], bd_addr, 6); 12452 } 12453 /** 12454 * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED 12455 * @param event packet 12456 * @return con_handle 12457 * @note: btstack_type H 12458 */ 12459 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){ 12460 return little_endian_read_16(event, 12); 12461 } 12462 /** 12463 * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED 12464 * @param event packet 12465 * @return incoming 12466 * @note: btstack_type 1 12467 */ 12468 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){ 12469 return event[14]; 12470 } 12471 12472 /** 12473 * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED 12474 * @param event packet 12475 * @return goep_cid 12476 * @note: btstack_type 2 12477 */ 12478 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 12479 return little_endian_read_16(event, 3); 12480 } 12481 12482 /** 12483 * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED 12484 * @param event packet 12485 * @return goep_cid 12486 * @note: btstack_type 2 12487 */ 12488 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){ 12489 return little_endian_read_16(event, 3); 12490 } 12491 /** 12492 * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED 12493 * @param event packet 12494 * @return status 12495 * @note: btstack_type 1 12496 */ 12497 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){ 12498 return event[5]; 12499 } 12500 12501 /** 12502 * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE 12503 * @param event packet 12504 * @return goep_cid 12505 * @note: btstack_type 2 12506 */ 12507 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){ 12508 return little_endian_read_16(event, 3); 12509 } 12510 /** 12511 * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE 12512 * @param event packet 12513 * @return status 12514 * @note: btstack_type 1 12515 */ 12516 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){ 12517 return event[5]; 12518 } 12519 /** 12520 * @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE 12521 * @param event packet 12522 * @return phonebook_size 12523 * @note: btstack_type 2 12524 */ 12525 static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){ 12526 return little_endian_read_16(event, 6); 12527 } 12528 12529 /** 12530 * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 12531 * @param event packet 12532 * @return goep_cid 12533 * @note: btstack_type 2 12534 */ 12535 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){ 12536 return little_endian_read_16(event, 3); 12537 } 12538 /** 12539 * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 12540 * @param event packet 12541 * @return user_id_required 12542 * @note: btstack_type 1 12543 */ 12544 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){ 12545 return event[5]; 12546 } 12547 /** 12548 * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 12549 * @param event packet 12550 * @return full_access 12551 * @note: btstack_type 1 12552 */ 12553 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){ 12554 return event[6]; 12555 } 12556 12557 /** 12558 * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT 12559 * @param event packet 12560 * @return goep_cid 12561 * @note: btstack_type 2 12562 */ 12563 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){ 12564 return little_endian_read_16(event, 3); 12565 } 12566 /** 12567 * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT 12568 * @param event packet 12569 * @return name_len 12570 * @note: btstack_type J 12571 */ 12572 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){ 12573 return event[5]; 12574 } 12575 /** 12576 * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT 12577 * @param event packet 12578 * @return name 12579 * @note: btstack_type V 12580 */ 12581 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){ 12582 return &event[6]; 12583 } 12584 /** 12585 * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT 12586 * @param event packet 12587 * @return handle_len 12588 * @note: btstack_type J 12589 */ 12590 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){ 12591 return event[6u + event[5]]; 12592 } 12593 /** 12594 * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT 12595 * @param event packet 12596 * @return handle 12597 * @note: btstack_type V 12598 */ 12599 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){ 12600 return &event[6u + event[5] + 1u]; 12601 } 12602 12603 /** 12604 * @brief Get field goep_cid from event PBAP_SUBEVENT_RESET_MISSED_CALLS 12605 * @param event packet 12606 * @return goep_cid 12607 * @note: btstack_type 2 12608 */ 12609 static inline uint16_t pbap_subevent_reset_missed_calls_get_goep_cid(const uint8_t * event){ 12610 return little_endian_read_16(event, 3); 12611 } 12612 /** 12613 * @brief Get field phonebook from event PBAP_SUBEVENT_RESET_MISSED_CALLS 12614 * @param event packet 12615 * @return phonebook 12616 * @note: btstack_type 1 12617 */ 12618 static inline uint8_t pbap_subevent_reset_missed_calls_get_phonebook(const uint8_t * event){ 12619 return event[5]; 12620 } 12621 12622 /** 12623 * @brief Get field goep_cid from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 12624 * @param event packet 12625 * @return goep_cid 12626 * @note: btstack_type 2 12627 */ 12628 static inline uint16_t pbap_subevent_query_phonebook_size_get_goep_cid(const uint8_t * event){ 12629 return little_endian_read_16(event, 3); 12630 } 12631 /** 12632 * @brief Get field vcard_selector from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 12633 * @param event packet 12634 * @return vcard_selector 12635 * @note: btstack_type 4 12636 */ 12637 static inline uint32_t pbap_subevent_query_phonebook_size_get_vcard_selector(const uint8_t * event){ 12638 return little_endian_read_32(event, 5); 12639 } 12640 /** 12641 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 12642 * @param event packet 12643 * @return vcard_selector_operator 12644 * @note: btstack_type 1 12645 */ 12646 static inline uint8_t pbap_subevent_query_phonebook_size_get_vcard_selector_operator(const uint8_t * event){ 12647 return event[9]; 12648 } 12649 /** 12650 * @brief Get field phonebook from event PBAP_SUBEVENT_QUERY_PHONEBOOK_SIZE 12651 * @param event packet 12652 * @return phonebook 12653 * @note: btstack_type 1 12654 */ 12655 static inline uint8_t pbap_subevent_query_phonebook_size_get_phonebook(const uint8_t * event){ 12656 return event[10]; 12657 } 12658 12659 /** 12660 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_PHONEBOOK 12661 * @param event packet 12662 * @return goep_cid 12663 * @note: btstack_type 2 12664 */ 12665 static inline uint16_t pbap_subevent_pull_phonebook_get_goep_cid(const uint8_t * event){ 12666 return little_endian_read_16(event, 3); 12667 } 12668 /** 12669 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_PHONEBOOK 12670 * @param event packet 12671 * @return continuation 12672 * @note: btstack_type 4 12673 */ 12674 static inline uint32_t pbap_subevent_pull_phonebook_get_continuation(const uint8_t * event){ 12675 return little_endian_read_32(event, 5); 12676 } 12677 /** 12678 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 12679 * @param event packet 12680 * @return property_selector 12681 * @note: btstack_type 4 12682 */ 12683 static inline uint32_t pbap_subevent_pull_phonebook_get_property_selector(const uint8_t * event){ 12684 return little_endian_read_32(event, 9); 12685 } 12686 /** 12687 * @brief Get field format from event PBAP_SUBEVENT_PULL_PHONEBOOK 12688 * @param event packet 12689 * @return format 12690 * @note: btstack_type 1 12691 */ 12692 static inline uint8_t pbap_subevent_pull_phonebook_get_format(const uint8_t * event){ 12693 return event[13]; 12694 } 12695 /** 12696 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_PHONEBOOK 12697 * @param event packet 12698 * @return max_list_count 12699 * @note: btstack_type 2 12700 */ 12701 static inline uint16_t pbap_subevent_pull_phonebook_get_max_list_count(const uint8_t * event){ 12702 return little_endian_read_16(event, 14); 12703 } 12704 /** 12705 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_PHONEBOOK 12706 * @param event packet 12707 * @return list_start_offset 12708 * @note: btstack_type 2 12709 */ 12710 static inline uint16_t pbap_subevent_pull_phonebook_get_list_start_offset(const uint8_t * event){ 12711 return little_endian_read_16(event, 16); 12712 } 12713 /** 12714 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_PHONEBOOK 12715 * @param event packet 12716 * @return vcard_selector 12717 * @note: btstack_type 4 12718 */ 12719 static inline uint32_t pbap_subevent_pull_phonebook_get_vcard_selector(const uint8_t * event){ 12720 return little_endian_read_32(event, 18); 12721 } 12722 /** 12723 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_PHONEBOOK 12724 * @param event packet 12725 * @return vcard_selector_operator 12726 * @note: btstack_type 1 12727 */ 12728 static inline uint8_t pbap_subevent_pull_phonebook_get_vcard_selector_operator(const uint8_t * event){ 12729 return event[22]; 12730 } 12731 /** 12732 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_PHONEBOOK 12733 * @param event packet 12734 * @return phonebook 12735 * @note: btstack_type 1 12736 */ 12737 static inline uint8_t pbap_subevent_pull_phonebook_get_phonebook(const uint8_t * event){ 12738 return event[23]; 12739 } 12740 12741 /** 12742 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12743 * @param event packet 12744 * @return goep_cid 12745 * @note: btstack_type 2 12746 */ 12747 static inline uint16_t pbap_subevent_pull_vcard_listing_get_goep_cid(const uint8_t * event){ 12748 return little_endian_read_16(event, 3); 12749 } 12750 /** 12751 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12752 * @param event packet 12753 * @return continuation 12754 * @note: btstack_type 4 12755 */ 12756 static inline uint32_t pbap_subevent_pull_vcard_listing_get_continuation(const uint8_t * event){ 12757 return little_endian_read_32(event, 5); 12758 } 12759 /** 12760 * @brief Get field order from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12761 * @param event packet 12762 * @return order 12763 * @note: btstack_type 1 12764 */ 12765 static inline uint8_t pbap_subevent_pull_vcard_listing_get_order(const uint8_t * event){ 12766 return event[9]; 12767 } 12768 /** 12769 * @brief Get field max_list_count from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12770 * @param event packet 12771 * @return max_list_count 12772 * @note: btstack_type 2 12773 */ 12774 static inline uint16_t pbap_subevent_pull_vcard_listing_get_max_list_count(const uint8_t * event){ 12775 return little_endian_read_16(event, 10); 12776 } 12777 /** 12778 * @brief Get field list_start_offset from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12779 * @param event packet 12780 * @return list_start_offset 12781 * @note: btstack_type 2 12782 */ 12783 static inline uint16_t pbap_subevent_pull_vcard_listing_get_list_start_offset(const uint8_t * event){ 12784 return little_endian_read_16(event, 12); 12785 } 12786 /** 12787 * @brief Get field vcard_selector from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12788 * @param event packet 12789 * @return vcard_selector 12790 * @note: btstack_type 4 12791 */ 12792 static inline uint32_t pbap_subevent_pull_vcard_listing_get_vcard_selector(const uint8_t * event){ 12793 return little_endian_read_32(event, 14); 12794 } 12795 /** 12796 * @brief Get field vcard_selector_operator from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12797 * @param event packet 12798 * @return vcard_selector_operator 12799 * @note: btstack_type 1 12800 */ 12801 static inline uint8_t pbap_subevent_pull_vcard_listing_get_vcard_selector_operator(const uint8_t * event){ 12802 return event[18]; 12803 } 12804 /** 12805 * @brief Get field search_property from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12806 * @param event packet 12807 * @return search_property 12808 * @note: btstack_type 1 12809 */ 12810 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_property(const uint8_t * event){ 12811 return event[19]; 12812 } 12813 /** 12814 * @brief Get field search_value_len from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12815 * @param event packet 12816 * @return search_value_len 12817 * @note: btstack_type J 12818 */ 12819 static inline uint8_t pbap_subevent_pull_vcard_listing_get_search_value_len(const uint8_t * event){ 12820 return event[20]; 12821 } 12822 /** 12823 * @brief Get field search_value from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12824 * @param event packet 12825 * @return search_value 12826 * @note: btstack_type V 12827 */ 12828 static inline const uint8_t * pbap_subevent_pull_vcard_listing_get_search_value(const uint8_t * event){ 12829 return &event[21]; 12830 } 12831 /** 12832 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_LISTING 12833 * @param event packet 12834 * @return phonebook 12835 * @note: btstack_type 1 12836 */ 12837 static inline uint8_t pbap_subevent_pull_vcard_listing_get_phonebook(const uint8_t * event){ 12838 return event[21u + event[20]]; 12839 } 12840 12841 /** 12842 * @brief Get field goep_cid from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 12843 * @param event packet 12844 * @return goep_cid 12845 * @note: btstack_type 2 12846 */ 12847 static inline uint16_t pbap_subevent_pull_vcard_entry_get_goep_cid(const uint8_t * event){ 12848 return little_endian_read_16(event, 3); 12849 } 12850 /** 12851 * @brief Get field continuation from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 12852 * @param event packet 12853 * @return continuation 12854 * @note: btstack_type 4 12855 */ 12856 static inline uint32_t pbap_subevent_pull_vcard_entry_get_continuation(const uint8_t * event){ 12857 return little_endian_read_32(event, 5); 12858 } 12859 /** 12860 * @brief Get field property_selector from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 12861 * @param event packet 12862 * @return property_selector 12863 * @note: btstack_type 4 12864 */ 12865 static inline uint32_t pbap_subevent_pull_vcard_entry_get_property_selector(const uint8_t * event){ 12866 return little_endian_read_32(event, 9); 12867 } 12868 /** 12869 * @brief Get field format from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 12870 * @param event packet 12871 * @return format 12872 * @note: btstack_type 1 12873 */ 12874 static inline uint8_t pbap_subevent_pull_vcard_entry_get_format(const uint8_t * event){ 12875 return event[13]; 12876 } 12877 /** 12878 * @brief Get field phonebook from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 12879 * @param event packet 12880 * @return phonebook 12881 * @note: btstack_type 1 12882 */ 12883 static inline uint8_t pbap_subevent_pull_vcard_entry_get_phonebook(const uint8_t * event){ 12884 return event[14]; 12885 } 12886 /** 12887 * @brief Get field name from event PBAP_SUBEVENT_PULL_VCARD_ENTRY 12888 * @param event packet 12889 * @return name 12890 * @note: btstack_type T 12891 */ 12892 static inline const char * pbap_subevent_pull_vcard_entry_get_name(const uint8_t * event){ 12893 return (const char *) &event[15]; 12894 } 12895 12896 /** 12897 * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION 12898 * @param event packet 12899 * @return hid_cid 12900 * @note: btstack_type 2 12901 */ 12902 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){ 12903 return little_endian_read_16(event, 3); 12904 } 12905 /** 12906 * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION 12907 * @param event packet 12908 * @param Pointer to storage for address 12909 * @note: btstack_type B 12910 */ 12911 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 12912 reverse_bytes(&event[5], address, 6); 12913 } 12914 /** 12915 * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION 12916 * @param event packet 12917 * @return handle 12918 * @note: btstack_type H 12919 */ 12920 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){ 12921 return little_endian_read_16(event, 11); 12922 } 12923 12924 /** 12925 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED 12926 * @param event packet 12927 * @return hid_cid 12928 * @note: btstack_type 2 12929 */ 12930 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){ 12931 return little_endian_read_16(event, 3); 12932 } 12933 /** 12934 * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED 12935 * @param event packet 12936 * @return status 12937 * @note: btstack_type 1 12938 */ 12939 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){ 12940 return event[5]; 12941 } 12942 /** 12943 * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED 12944 * @param event packet 12945 * @param Pointer to storage for bd_addr 12946 * @note: btstack_type B 12947 */ 12948 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 12949 reverse_bytes(&event[6], bd_addr, 6); 12950 } 12951 /** 12952 * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED 12953 * @param event packet 12954 * @return con_handle 12955 * @note: btstack_type H 12956 */ 12957 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){ 12958 return little_endian_read_16(event, 12); 12959 } 12960 /** 12961 * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED 12962 * @param event packet 12963 * @return incoming 12964 * @note: btstack_type 1 12965 */ 12966 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){ 12967 return event[14]; 12968 } 12969 12970 /** 12971 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED 12972 * @param event packet 12973 * @return hid_cid 12974 * @note: btstack_type 2 12975 */ 12976 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){ 12977 return little_endian_read_16(event, 3); 12978 } 12979 12980 /** 12981 * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW 12982 * @param event packet 12983 * @return hid_cid 12984 * @note: btstack_type 2 12985 */ 12986 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){ 12987 return little_endian_read_16(event, 3); 12988 } 12989 12990 /** 12991 * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND 12992 * @param event packet 12993 * @return hid_cid 12994 * @note: btstack_type 2 12995 */ 12996 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){ 12997 return little_endian_read_16(event, 3); 12998 } 12999 13000 /** 13001 * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND 13002 * @param event packet 13003 * @return hid_cid 13004 * @note: btstack_type 2 13005 */ 13006 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){ 13007 return little_endian_read_16(event, 3); 13008 } 13009 13010 /** 13011 * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG 13012 * @param event packet 13013 * @return hid_cid 13014 * @note: btstack_type 2 13015 */ 13016 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){ 13017 return little_endian_read_16(event, 3); 13018 } 13019 13020 /** 13021 * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE 13022 * @param event packet 13023 * @return hid_cid 13024 * @note: btstack_type 2 13025 */ 13026 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){ 13027 return little_endian_read_16(event, 3); 13028 } 13029 /** 13030 * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE 13031 * @param event packet 13032 * @return handshake_status 13033 * @note: btstack_type 1 13034 */ 13035 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){ 13036 return event[5]; 13037 } 13038 /** 13039 * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE 13040 * @param event packet 13041 * @return report_len 13042 * @note: btstack_type L 13043 */ 13044 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){ 13045 return little_endian_read_16(event, 6); 13046 } 13047 /** 13048 * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE 13049 * @param event packet 13050 * @return report 13051 * @note: btstack_type V 13052 */ 13053 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){ 13054 return &event[8]; 13055 } 13056 13057 /** 13058 * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE 13059 * @param event packet 13060 * @return hid_cid 13061 * @note: btstack_type 2 13062 */ 13063 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){ 13064 return little_endian_read_16(event, 3); 13065 } 13066 /** 13067 * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE 13068 * @param event packet 13069 * @return handshake_status 13070 * @note: btstack_type 1 13071 */ 13072 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){ 13073 return event[5]; 13074 } 13075 13076 /** 13077 * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 13078 * @param event packet 13079 * @return hid_cid 13080 * @note: btstack_type 2 13081 */ 13082 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){ 13083 return little_endian_read_16(event, 3); 13084 } 13085 /** 13086 * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 13087 * @param event packet 13088 * @return handshake_status 13089 * @note: btstack_type 1 13090 */ 13091 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){ 13092 return event[5]; 13093 } 13094 /** 13095 * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 13096 * @param event packet 13097 * @return protocol_mode 13098 * @note: btstack_type 1 13099 */ 13100 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){ 13101 return event[6]; 13102 } 13103 13104 /** 13105 * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 13106 * @param event packet 13107 * @return hid_cid 13108 * @note: btstack_type 2 13109 */ 13110 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){ 13111 return little_endian_read_16(event, 3); 13112 } 13113 /** 13114 * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 13115 * @param event packet 13116 * @return handshake_status 13117 * @note: btstack_type 1 13118 */ 13119 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){ 13120 return event[5]; 13121 } 13122 /** 13123 * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 13124 * @param event packet 13125 * @return protocol_mode 13126 * @note: btstack_type 1 13127 */ 13128 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){ 13129 return event[6]; 13130 } 13131 13132 /** 13133 * @brief Get field hid_cid from event HID_SUBEVENT_REPORT 13134 * @param event packet 13135 * @return hid_cid 13136 * @note: btstack_type 2 13137 */ 13138 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){ 13139 return little_endian_read_16(event, 3); 13140 } 13141 /** 13142 * @brief Get field report_len from event HID_SUBEVENT_REPORT 13143 * @param event packet 13144 * @return report_len 13145 * @note: btstack_type L 13146 */ 13147 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){ 13148 return little_endian_read_16(event, 5); 13149 } 13150 /** 13151 * @brief Get field report from event HID_SUBEVENT_REPORT 13152 * @param event packet 13153 * @return report 13154 * @note: btstack_type V 13155 */ 13156 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){ 13157 return &event[7]; 13158 } 13159 13160 /** 13161 * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 13162 * @param event packet 13163 * @return hid_cid 13164 * @note: btstack_type 2 13165 */ 13166 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){ 13167 return little_endian_read_16(event, 3); 13168 } 13169 /** 13170 * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 13171 * @param event packet 13172 * @return status 13173 * @note: btstack_type 1 13174 */ 13175 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){ 13176 return event[5]; 13177 } 13178 13179 /** 13180 * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 13181 * @param event packet 13182 * @return hid_cid 13183 * @note: btstack_type 2 13184 */ 13185 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){ 13186 return little_endian_read_16(event, 3); 13187 } 13188 /** 13189 * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 13190 * @param event packet 13191 * @return host_max_latency 13192 * @note: btstack_type 2 13193 */ 13194 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){ 13195 return little_endian_read_16(event, 5); 13196 } 13197 /** 13198 * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 13199 * @param event packet 13200 * @return host_min_timeout 13201 * @note: btstack_type 2 13202 */ 13203 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){ 13204 return little_endian_read_16(event, 7); 13205 } 13206 13207 /** 13208 * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW 13209 * @param event packet 13210 * @return con_handle 13211 * @note: btstack_type 2 13212 */ 13213 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){ 13214 return little_endian_read_16(event, 3); 13215 } 13216 13217 /** 13218 * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE 13219 * @param event packet 13220 * @return con_handle 13221 * @note: btstack_type 2 13222 */ 13223 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){ 13224 return little_endian_read_16(event, 3); 13225 } 13226 /** 13227 * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE 13228 * @param event packet 13229 * @return protocol_mode 13230 * @note: btstack_type 1 13231 */ 13232 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){ 13233 return event[5]; 13234 } 13235 13236 /** 13237 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 13238 * @param event packet 13239 * @return con_handle 13240 * @note: btstack_type 2 13241 */ 13242 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){ 13243 return little_endian_read_16(event, 3); 13244 } 13245 /** 13246 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 13247 * @param event packet 13248 * @return enable 13249 * @note: btstack_type 1 13250 */ 13251 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){ 13252 return event[5]; 13253 } 13254 13255 /** 13256 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 13257 * @param event packet 13258 * @return con_handle 13259 * @note: btstack_type 2 13260 */ 13261 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){ 13262 return little_endian_read_16(event, 3); 13263 } 13264 /** 13265 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 13266 * @param event packet 13267 * @return enable 13268 * @note: btstack_type 1 13269 */ 13270 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){ 13271 return event[5]; 13272 } 13273 13274 /** 13275 * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 13276 * @param event packet 13277 * @return con_handle 13278 * @note: btstack_type 2 13279 */ 13280 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){ 13281 return little_endian_read_16(event, 3); 13282 } 13283 /** 13284 * @brief Get field report_id from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 13285 * @param event packet 13286 * @return report_id 13287 * @note: btstack_type 1 13288 */ 13289 static inline uint8_t hids_subevent_input_report_enable_get_report_id(const uint8_t * event){ 13290 return event[5]; 13291 } 13292 /** 13293 * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 13294 * @param event packet 13295 * @return enable 13296 * @note: btstack_type 1 13297 */ 13298 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){ 13299 return event[6]; 13300 } 13301 13302 /** 13303 * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 13304 * @param event packet 13305 * @return con_handle 13306 * @note: btstack_type 2 13307 */ 13308 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){ 13309 return little_endian_read_16(event, 3); 13310 } 13311 /** 13312 * @brief Get field report_id from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 13313 * @param event packet 13314 * @return report_id 13315 * @note: btstack_type 1 13316 */ 13317 static inline uint8_t hids_subevent_output_report_enable_get_report_id(const uint8_t * event){ 13318 return event[5]; 13319 } 13320 /** 13321 * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 13322 * @param event packet 13323 * @return enable 13324 * @note: btstack_type 1 13325 */ 13326 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){ 13327 return event[6]; 13328 } 13329 13330 /** 13331 * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 13332 * @param event packet 13333 * @return con_handle 13334 * @note: btstack_type 2 13335 */ 13336 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){ 13337 return little_endian_read_16(event, 3); 13338 } 13339 /** 13340 * @brief Get field report_id from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 13341 * @param event packet 13342 * @return report_id 13343 * @note: btstack_type 1 13344 */ 13345 static inline uint8_t hids_subevent_feature_report_enable_get_report_id(const uint8_t * event){ 13346 return event[5]; 13347 } 13348 /** 13349 * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 13350 * @param event packet 13351 * @return enable 13352 * @note: btstack_type 1 13353 */ 13354 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){ 13355 return event[6]; 13356 } 13357 13358 /** 13359 * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND 13360 * @param event packet 13361 * @return con_handle 13362 * @note: btstack_type 2 13363 */ 13364 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){ 13365 return little_endian_read_16(event, 3); 13366 } 13367 13368 /** 13369 * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND 13370 * @param event packet 13371 * @return con_handle 13372 * @note: btstack_type 2 13373 */ 13374 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){ 13375 return little_endian_read_16(event, 3); 13376 } 13377 13378 /** 13379 * @brief Get field con_handle from event HIDS_SUBEVENT_SET_REPORT 13380 * @param event packet 13381 * @return con_handle 13382 * @note: btstack_type 2 13383 */ 13384 static inline uint16_t hids_subevent_set_report_get_con_handle(const uint8_t * event){ 13385 return little_endian_read_16(event, 3); 13386 } 13387 /** 13388 * @brief Get field report_id from event HIDS_SUBEVENT_SET_REPORT 13389 * @param event packet 13390 * @return report_id 13391 * @note: btstack_type 1 13392 */ 13393 static inline uint8_t hids_subevent_set_report_get_report_id(const uint8_t * event){ 13394 return event[5]; 13395 } 13396 /** 13397 * @brief Get field report_type from event HIDS_SUBEVENT_SET_REPORT 13398 * @param event packet 13399 * @return report_type 13400 * @note: btstack_type 1 13401 */ 13402 static inline uint8_t hids_subevent_set_report_get_report_type(const uint8_t * event){ 13403 return event[6]; 13404 } 13405 /** 13406 * @brief Get field report_length from event HIDS_SUBEVENT_SET_REPORT 13407 * @param event packet 13408 * @return report_length 13409 * @note: btstack_type J 13410 */ 13411 static inline uint8_t hids_subevent_set_report_get_report_length(const uint8_t * event){ 13412 return event[7]; 13413 } 13414 /** 13415 * @brief Get field report_data from event HIDS_SUBEVENT_SET_REPORT 13416 * @param event packet 13417 * @return report_data 13418 * @note: btstack_type V 13419 */ 13420 static inline const uint8_t * hids_subevent_set_report_get_report_data(const uint8_t * event){ 13421 return &event[8]; 13422 } 13423 13424 /** 13425 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 13426 * @param event packet 13427 * @return con_handle 13428 * @note: btstack_type 2 13429 */ 13430 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){ 13431 return little_endian_read_16(event, 3); 13432 } 13433 /** 13434 * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 13435 * @param event packet 13436 * @return measurement_type 13437 * @note: btstack_type 1 13438 */ 13439 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){ 13440 return event[5]; 13441 } 13442 /** 13443 * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 13444 * @param event packet 13445 * @return is_enhanced 13446 * @note: btstack_type 1 13447 */ 13448 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){ 13449 return event[6]; 13450 } 13451 13452 /** 13453 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START 13454 * @param event packet 13455 * @return con_handle 13456 * @note: btstack_type 2 13457 */ 13458 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){ 13459 return little_endian_read_16(event, 3); 13460 } 13461 13462 /** 13463 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP 13464 * @param event packet 13465 * @return con_handle 13466 * @note: btstack_type 2 13467 */ 13468 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){ 13469 return little_endian_read_16(event, 3); 13470 } 13471 13472 /** 13473 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 13474 * @param event packet 13475 * @return hids_cid 13476 * @note: btstack_type 2 13477 */ 13478 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){ 13479 return little_endian_read_16(event, 3); 13480 } 13481 /** 13482 * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 13483 * @param event packet 13484 * @return status 13485 * @note: btstack_type 1 13486 */ 13487 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){ 13488 return event[5]; 13489 } 13490 /** 13491 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 13492 * @param event packet 13493 * @return num_instances 13494 * @note: btstack_type 1 13495 */ 13496 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){ 13497 return event[6]; 13498 } 13499 /** 13500 * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 13501 * @param event packet 13502 * @return poll_bitmap 13503 * @note: btstack_type 1 13504 */ 13505 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){ 13506 return event[7]; 13507 } 13508 13509 /** 13510 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 13511 * @param event packet 13512 * @return hids_cid 13513 * @note: btstack_type 2 13514 */ 13515 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){ 13516 return little_endian_read_16(event, 3); 13517 } 13518 /** 13519 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 13520 * @param event packet 13521 * @return service_index 13522 * @note: btstack_type 1 13523 */ 13524 static inline uint8_t gattservice_subevent_battery_service_level_get_service_index(const uint8_t * event){ 13525 return event[5]; 13526 } 13527 /** 13528 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 13529 * @param event packet 13530 * @return att_status 13531 * @note: btstack_type 1 13532 */ 13533 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){ 13534 return event[6]; 13535 } 13536 /** 13537 * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 13538 * @param event packet 13539 * @return level 13540 * @note: btstack_type 1 13541 */ 13542 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){ 13543 return event[7]; 13544 } 13545 13546 /** 13547 * @brief Get field service_id from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL_BROADCAST_START 13548 * @param event packet 13549 * @return service_id 13550 * @note: btstack_type 2 13551 */ 13552 static inline uint16_t gattservice_subevent_battery_service_level_broadcast_start_get_service_id(const uint8_t * event){ 13553 return little_endian_read_16(event, 3); 13554 } 13555 13556 /** 13557 * @brief Get field service_id from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL_BROADCAST_STOP 13558 * @param event packet 13559 * @return service_id 13560 * @note: btstack_type 2 13561 */ 13562 static inline uint16_t gattservice_subevent_battery_service_level_broadcast_stop_get_service_id(const uint8_t * event){ 13563 return little_endian_read_16(event, 3); 13564 } 13565 13566 /** 13567 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 13568 * @param event packet 13569 * @return con_handle 13570 * @note: btstack_type H 13571 */ 13572 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){ 13573 return little_endian_read_16(event, 3); 13574 } 13575 /** 13576 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 13577 * @param event packet 13578 * @return att_status 13579 * @note: btstack_type 1 13580 */ 13581 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){ 13582 return event[5]; 13583 } 13584 13585 /** 13586 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 13587 * @param event packet 13588 * @return con_handle 13589 * @note: btstack_type H 13590 */ 13591 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){ 13592 return little_endian_read_16(event, 3); 13593 } 13594 /** 13595 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 13596 * @param event packet 13597 * @return att_status 13598 * @note: btstack_type 1 13599 */ 13600 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){ 13601 return event[5]; 13602 } 13603 /** 13604 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 13605 * @param event packet 13606 * @return value 13607 * @note: btstack_type T 13608 */ 13609 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){ 13610 return (const char *) &event[6]; 13611 } 13612 13613 /** 13614 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 13615 * @param event packet 13616 * @return con_handle 13617 * @note: btstack_type H 13618 */ 13619 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){ 13620 return little_endian_read_16(event, 3); 13621 } 13622 /** 13623 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 13624 * @param event packet 13625 * @return att_status 13626 * @note: btstack_type 1 13627 */ 13628 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){ 13629 return event[5]; 13630 } 13631 /** 13632 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 13633 * @param event packet 13634 * @return value 13635 * @note: btstack_type T 13636 */ 13637 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){ 13638 return (const char *) &event[6]; 13639 } 13640 13641 /** 13642 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 13643 * @param event packet 13644 * @return con_handle 13645 * @note: btstack_type H 13646 */ 13647 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){ 13648 return little_endian_read_16(event, 3); 13649 } 13650 /** 13651 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 13652 * @param event packet 13653 * @return att_status 13654 * @note: btstack_type 1 13655 */ 13656 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){ 13657 return event[5]; 13658 } 13659 /** 13660 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 13661 * @param event packet 13662 * @return value 13663 * @note: btstack_type T 13664 */ 13665 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){ 13666 return (const char *) &event[6]; 13667 } 13668 13669 /** 13670 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 13671 * @param event packet 13672 * @return con_handle 13673 * @note: btstack_type H 13674 */ 13675 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){ 13676 return little_endian_read_16(event, 3); 13677 } 13678 /** 13679 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 13680 * @param event packet 13681 * @return att_status 13682 * @note: btstack_type 1 13683 */ 13684 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){ 13685 return event[5]; 13686 } 13687 /** 13688 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 13689 * @param event packet 13690 * @return value 13691 * @note: btstack_type T 13692 */ 13693 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){ 13694 return (const char *) &event[6]; 13695 } 13696 13697 /** 13698 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 13699 * @param event packet 13700 * @return con_handle 13701 * @note: btstack_type H 13702 */ 13703 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){ 13704 return little_endian_read_16(event, 3); 13705 } 13706 /** 13707 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 13708 * @param event packet 13709 * @return att_status 13710 * @note: btstack_type 1 13711 */ 13712 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){ 13713 return event[5]; 13714 } 13715 /** 13716 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 13717 * @param event packet 13718 * @return value 13719 * @note: btstack_type T 13720 */ 13721 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){ 13722 return (const char *) &event[6]; 13723 } 13724 13725 /** 13726 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 13727 * @param event packet 13728 * @return con_handle 13729 * @note: btstack_type H 13730 */ 13731 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){ 13732 return little_endian_read_16(event, 3); 13733 } 13734 /** 13735 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 13736 * @param event packet 13737 * @return att_status 13738 * @note: btstack_type 1 13739 */ 13740 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){ 13741 return event[5]; 13742 } 13743 /** 13744 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 13745 * @param event packet 13746 * @return value 13747 * @note: btstack_type T 13748 */ 13749 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){ 13750 return (const char *) &event[6]; 13751 } 13752 13753 /** 13754 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 13755 * @param event packet 13756 * @return con_handle 13757 * @note: btstack_type H 13758 */ 13759 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){ 13760 return little_endian_read_16(event, 3); 13761 } 13762 /** 13763 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 13764 * @param event packet 13765 * @return att_status 13766 * @note: btstack_type 1 13767 */ 13768 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){ 13769 return event[5]; 13770 } 13771 /** 13772 * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 13773 * @param event packet 13774 * @return manufacturer_id_low 13775 * @note: btstack_type 4 13776 */ 13777 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){ 13778 return little_endian_read_32(event, 6); 13779 } 13780 /** 13781 * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 13782 * @param event packet 13783 * @return manufacturer_id_high 13784 * @note: btstack_type 1 13785 */ 13786 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){ 13787 return event[10]; 13788 } 13789 /** 13790 * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 13791 * @param event packet 13792 * @return organizationally_unique_id 13793 * @note: btstack_type 3 13794 */ 13795 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){ 13796 return little_endian_read_24(event, 11); 13797 } 13798 13799 /** 13800 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 13801 * @param event packet 13802 * @return con_handle 13803 * @note: btstack_type H 13804 */ 13805 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){ 13806 return little_endian_read_16(event, 3); 13807 } 13808 /** 13809 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 13810 * @param event packet 13811 * @return att_status 13812 * @note: btstack_type 1 13813 */ 13814 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){ 13815 return event[5]; 13816 } 13817 /** 13818 * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 13819 * @param event packet 13820 * @return value_a 13821 * @note: btstack_type 2 13822 */ 13823 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){ 13824 return little_endian_read_16(event, 6); 13825 } 13826 /** 13827 * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 13828 * @param event packet 13829 * @return value_b 13830 * @note: btstack_type 2 13831 */ 13832 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){ 13833 return little_endian_read_16(event, 8); 13834 } 13835 13836 /** 13837 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 13838 * @param event packet 13839 * @return con_handle 13840 * @note: btstack_type H 13841 */ 13842 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){ 13843 return little_endian_read_16(event, 3); 13844 } 13845 /** 13846 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 13847 * @param event packet 13848 * @return att_status 13849 * @note: btstack_type 1 13850 */ 13851 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){ 13852 return event[5]; 13853 } 13854 /** 13855 * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 13856 * @param event packet 13857 * @return vendor_source_id 13858 * @note: btstack_type 1 13859 */ 13860 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){ 13861 return event[6]; 13862 } 13863 /** 13864 * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 13865 * @param event packet 13866 * @return vendor_id 13867 * @note: btstack_type 2 13868 */ 13869 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){ 13870 return little_endian_read_16(event, 7); 13871 } 13872 /** 13873 * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 13874 * @param event packet 13875 * @return product_id 13876 * @note: btstack_type 2 13877 */ 13878 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){ 13879 return little_endian_read_16(event, 9); 13880 } 13881 /** 13882 * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 13883 * @param event packet 13884 * @return product_version 13885 * @note: btstack_type 2 13886 */ 13887 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){ 13888 return little_endian_read_16(event, 11); 13889 } 13890 13891 /** 13892 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_UDI_FOR_MEDICAL_DEVICES 13893 * @param event packet 13894 * @return con_handle 13895 * @note: btstack_type H 13896 */ 13897 static inline hci_con_handle_t gattservice_subevent_device_information_udi_for_medical_devices_get_con_handle(const uint8_t * event){ 13898 return little_endian_read_16(event, 3); 13899 } 13900 /** 13901 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_UDI_FOR_MEDICAL_DEVICES 13902 * @param event packet 13903 * @return att_status 13904 * @note: btstack_type 1 13905 */ 13906 static inline uint8_t gattservice_subevent_device_information_udi_for_medical_devices_get_att_status(const uint8_t * event){ 13907 return event[5]; 13908 } 13909 /** 13910 * @brief Get field label from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_UDI_FOR_MEDICAL_DEVICES 13911 * @param event packet 13912 * @return label 13913 * @note: btstack_type T 13914 */ 13915 static inline const char * gattservice_subevent_device_information_udi_for_medical_devices_get_label(const uint8_t * event){ 13916 return (const char *) &event[6]; 13917 } 13918 13919 /** 13920 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 13921 * @param event packet 13922 * @return con_handle 13923 * @note: btstack_type H 13924 */ 13925 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){ 13926 return little_endian_read_16(event, 3); 13927 } 13928 /** 13929 * @brief Get field status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 13930 * @param event packet 13931 * @return status 13932 * @note: btstack_type 1 13933 */ 13934 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_status(const uint8_t * event){ 13935 return event[5]; 13936 } 13937 13938 /** 13939 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_DISCONNECTED 13940 * @param event packet 13941 * @return con_handle 13942 * @note: btstack_type H 13943 */ 13944 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_disconnected_get_con_handle(const uint8_t * event){ 13945 return little_endian_read_16(event, 3); 13946 } 13947 13948 /** 13949 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED 13950 * @param event packet 13951 * @return con_handle 13952 * @note: btstack_type H 13953 */ 13954 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){ 13955 return little_endian_read_16(event, 3); 13956 } 13957 13958 /** 13959 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED 13960 * @param event packet 13961 * @return con_handle 13962 * @note: btstack_type H 13963 */ 13964 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){ 13965 return little_endian_read_16(event, 3); 13966 } 13967 13968 /** 13969 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 13970 * @param event packet 13971 * @return hids_cid 13972 * @note: btstack_type 2 13973 */ 13974 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){ 13975 return little_endian_read_16(event, 3); 13976 } 13977 /** 13978 * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 13979 * @param event packet 13980 * @return status 13981 * @note: btstack_type 1 13982 */ 13983 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){ 13984 return event[5]; 13985 } 13986 /** 13987 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 13988 * @param event packet 13989 * @return protocol_mode 13990 * @note: btstack_type 1 13991 */ 13992 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){ 13993 return event[6]; 13994 } 13995 /** 13996 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 13997 * @param event packet 13998 * @return num_instances 13999 * @note: btstack_type 1 14000 */ 14001 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){ 14002 return event[7]; 14003 } 14004 14005 /** 14006 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_DISCONNECTED 14007 * @param event packet 14008 * @return hids_cid 14009 * @note: btstack_type 2 14010 */ 14011 static inline uint16_t gattservice_subevent_hid_service_disconnected_get_hids_cid(const uint8_t * event){ 14012 return little_endian_read_16(event, 3); 14013 } 14014 14015 /** 14016 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT 14017 * @param event packet 14018 * @return hids_cid 14019 * @note: btstack_type 2 14020 */ 14021 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){ 14022 return little_endian_read_16(event, 3); 14023 } 14024 /** 14025 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT 14026 * @param event packet 14027 * @return service_index 14028 * @note: btstack_type 1 14029 */ 14030 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){ 14031 return event[5]; 14032 } 14033 /** 14034 * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT 14035 * @param event packet 14036 * @return report_id 14037 * @note: btstack_type 1 14038 */ 14039 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){ 14040 return event[6]; 14041 } 14042 /** 14043 * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT 14044 * @param event packet 14045 * @return report_len 14046 * @note: btstack_type L 14047 */ 14048 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){ 14049 return little_endian_read_16(event, 7); 14050 } 14051 /** 14052 * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT 14053 * @param event packet 14054 * @return report 14055 * @note: btstack_type V 14056 */ 14057 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){ 14058 return &event[9]; 14059 } 14060 14061 /** 14062 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION 14063 * @param event packet 14064 * @return hids_cid 14065 * @note: btstack_type 2 14066 */ 14067 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){ 14068 return little_endian_read_16(event, 3); 14069 } 14070 /** 14071 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION 14072 * @param event packet 14073 * @return service_index 14074 * @note: btstack_type 1 14075 */ 14076 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){ 14077 return event[5]; 14078 } 14079 /** 14080 * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION 14081 * @param event packet 14082 * @return base_usb_hid_version 14083 * @note: btstack_type 2 14084 */ 14085 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){ 14086 return little_endian_read_16(event, 6); 14087 } 14088 /** 14089 * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION 14090 * @param event packet 14091 * @return country_code 14092 * @note: btstack_type 1 14093 */ 14094 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){ 14095 return event[8]; 14096 } 14097 /** 14098 * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION 14099 * @param event packet 14100 * @return remote_wake 14101 * @note: btstack_type 1 14102 */ 14103 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){ 14104 return event[9]; 14105 } 14106 /** 14107 * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION 14108 * @param event packet 14109 * @return normally_connectable 14110 * @note: btstack_type 1 14111 */ 14112 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){ 14113 return event[10]; 14114 } 14115 14116 /** 14117 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 14118 * @param event packet 14119 * @return hids_cid 14120 * @note: btstack_type 2 14121 */ 14122 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){ 14123 return little_endian_read_16(event, 3); 14124 } 14125 /** 14126 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 14127 * @param event packet 14128 * @return service_index 14129 * @note: btstack_type 1 14130 */ 14131 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){ 14132 return event[5]; 14133 } 14134 /** 14135 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 14136 * @param event packet 14137 * @return protocol_mode 14138 * @note: btstack_type 1 14139 */ 14140 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){ 14141 return event[6]; 14142 } 14143 14144 /** 14145 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 14146 * @param event packet 14147 * @return hids_cid 14148 * @note: btstack_type 2 14149 */ 14150 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){ 14151 return little_endian_read_16(event, 3); 14152 } 14153 /** 14154 * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 14155 * @param event packet 14156 * @return configuration 14157 * @note: btstack_type 1 14158 */ 14159 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 14160 return event[5]; 14161 } 14162 14163 /** 14164 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT_WRITTEN 14165 * @param event packet 14166 * @return hids_cid 14167 * @note: btstack_type 2 14168 */ 14169 static inline uint16_t gattservice_subevent_hid_report_written_get_hids_cid(const uint8_t * event){ 14170 return little_endian_read_16(event, 3); 14171 } 14172 /** 14173 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT_WRITTEN 14174 * @param event packet 14175 * @return service_index 14176 * @note: btstack_type 1 14177 */ 14178 static inline uint8_t gattservice_subevent_hid_report_written_get_service_index(const uint8_t * event){ 14179 return event[5]; 14180 } 14181 /** 14182 * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT_WRITTEN 14183 * @param event packet 14184 * @return report_id 14185 * @note: btstack_type 1 14186 */ 14187 static inline uint8_t gattservice_subevent_hid_report_written_get_report_id(const uint8_t * event){ 14188 return event[6]; 14189 } 14190 14191 /** 14192 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 14193 * @param event packet 14194 * @return con_handle 14195 * @note: btstack_type H 14196 */ 14197 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){ 14198 return little_endian_read_16(event, 3); 14199 } 14200 /** 14201 * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 14202 * @param event packet 14203 * @return max_scan_interval 14204 * @note: btstack_type 2 14205 */ 14206 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){ 14207 return little_endian_read_16(event, 5); 14208 } 14209 /** 14210 * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 14211 * @param event packet 14212 * @return min_scan_window 14213 * @note: btstack_type 2 14214 */ 14215 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){ 14216 return little_endian_read_16(event, 7); 14217 } 14218 14219 /** 14220 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_GATT_SERVICE_CHANGED 14221 * @param event packet 14222 * @return con_handle 14223 * @note: btstack_type H 14224 */ 14225 static inline hci_con_handle_t gattservice_subevent_gatt_service_changed_get_con_handle(const uint8_t * event){ 14226 return little_endian_read_16(event, 3); 14227 } 14228 /** 14229 * @brief Get field attribute_handle_start from event GATTSERVICE_SUBEVENT_GATT_SERVICE_CHANGED 14230 * @param event packet 14231 * @return attribute_handle_start 14232 * @note: btstack_type 2 14233 */ 14234 static inline uint16_t gattservice_subevent_gatt_service_changed_get_attribute_handle_start(const uint8_t * event){ 14235 return little_endian_read_16(event, 5); 14236 } 14237 /** 14238 * @brief Get field attribute_handle_end from event GATTSERVICE_SUBEVENT_GATT_SERVICE_CHANGED 14239 * @param event packet 14240 * @return attribute_handle_end 14241 * @note: btstack_type 2 14242 */ 14243 static inline uint16_t gattservice_subevent_gatt_service_changed_get_attribute_handle_end(const uint8_t * event){ 14244 return little_endian_read_16(event, 7); 14245 } 14246 14247 /** 14248 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_GATT_DATABASE_HASH 14249 * @param event packet 14250 * @return con_handle 14251 * @note: btstack_type H 14252 */ 14253 static inline hci_con_handle_t gattservice_subevent_gatt_database_hash_get_con_handle(const uint8_t * event){ 14254 return little_endian_read_16(event, 3); 14255 } 14256 /** 14257 * @brief Get field database_hash from event GATTSERVICE_SUBEVENT_GATT_DATABASE_HASH 14258 * @param event packet 14259 * @param Pointer to storage for database_hash 14260 * @note: btstack_type K 14261 */ 14262 static inline void gattservice_subevent_gatt_database_hash_get_database_hash(const uint8_t * event, uint8_t * database_hash){ 14263 reverse_bytes(&event[5], database_hash, 16); 14264 } 14265 14266 /** 14267 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED 14268 * @param event packet 14269 * @return con_handle 14270 * @note: btstack_type H 14271 */ 14272 static inline hci_con_handle_t gattservice_subevent_client_connected_get_con_handle(const uint8_t * event){ 14273 return little_endian_read_16(event, 3); 14274 } 14275 /** 14276 * @brief Get field cid from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED 14277 * @param event packet 14278 * @return cid 14279 * @note: btstack_type 2 14280 */ 14281 static inline uint16_t gattservice_subevent_client_connected_get_cid(const uint8_t * event){ 14282 return little_endian_read_16(event, 5); 14283 } 14284 /** 14285 * @brief Get field num_included_services from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED 14286 * @param event packet 14287 * @return num_included_services 14288 * @note: btstack_type 1 14289 */ 14290 static inline uint8_t gattservice_subevent_client_connected_get_num_included_services(const uint8_t * event){ 14291 return event[7]; 14292 } 14293 /** 14294 * @brief Get field status from event GATTSERVICE_SUBEVENT_CLIENT_CONNECTED 14295 * @param event packet 14296 * @return status 14297 * @note: btstack_type 1 14298 */ 14299 static inline uint8_t gattservice_subevent_client_connected_get_status(const uint8_t * event){ 14300 return event[8]; 14301 } 14302 14303 /** 14304 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CLIENT_DISCONNECTED 14305 * @param event packet 14306 * @return con_handle 14307 * @note: btstack_type H 14308 */ 14309 static inline hci_con_handle_t gattservice_subevent_client_disconnected_get_con_handle(const uint8_t * event){ 14310 return little_endian_read_16(event, 3); 14311 } 14312 /** 14313 * @brief Get field cid from event GATTSERVICE_SUBEVENT_CLIENT_DISCONNECTED 14314 * @param event packet 14315 * @return cid 14316 * @note: btstack_type 2 14317 */ 14318 static inline uint16_t gattservice_subevent_client_disconnected_get_cid(const uint8_t * event){ 14319 return little_endian_read_16(event, 5); 14320 } 14321 14322 /** 14323 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_LLS_CLIENT_CONNECTED 14324 * @param event packet 14325 * @return con_handle 14326 * @note: btstack_type H 14327 */ 14328 static inline hci_con_handle_t gattservice_subevent_lls_client_connected_get_con_handle(const uint8_t * event){ 14329 return little_endian_read_16(event, 3); 14330 } 14331 /** 14332 * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_CONNECTED 14333 * @param event packet 14334 * @return lls_cid 14335 * @note: btstack_type 2 14336 */ 14337 static inline uint16_t gattservice_subevent_lls_client_connected_get_lls_cid(const uint8_t * event){ 14338 return little_endian_read_16(event, 5); 14339 } 14340 /** 14341 * @brief Get field status from event GATTSERVICE_SUBEVENT_LLS_CLIENT_CONNECTED 14342 * @param event packet 14343 * @return status 14344 * @note: btstack_type 1 14345 */ 14346 static inline uint8_t gattservice_subevent_lls_client_connected_get_status(const uint8_t * event){ 14347 return event[7]; 14348 } 14349 14350 /** 14351 * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_DISCONNECTED 14352 * @param event packet 14353 * @return lls_cid 14354 * @note: btstack_type 2 14355 */ 14356 static inline uint16_t gattservice_subevent_lls_client_disconnected_get_lls_cid(const uint8_t * event){ 14357 return little_endian_read_16(event, 3); 14358 } 14359 14360 /** 14361 * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_WRITE_DONE 14362 * @param event packet 14363 * @return lls_cid 14364 * @note: btstack_type 2 14365 */ 14366 static inline uint16_t gattservice_subevent_lls_client_write_done_get_lls_cid(const uint8_t * event){ 14367 return little_endian_read_16(event, 3); 14368 } 14369 /** 14370 * @brief Get field characteristic_uuid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_WRITE_DONE 14371 * @param event packet 14372 * @return characteristic_uuid 14373 * @note: btstack_type 2 14374 */ 14375 static inline uint16_t gattservice_subevent_lls_client_write_done_get_characteristic_uuid(const uint8_t * event){ 14376 return little_endian_read_16(event, 5); 14377 } 14378 /** 14379 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_LLS_CLIENT_WRITE_DONE 14380 * @param event packet 14381 * @return att_status 14382 * @note: btstack_type 1 14383 */ 14384 static inline uint8_t gattservice_subevent_lls_client_write_done_get_att_status(const uint8_t * event){ 14385 return event[7]; 14386 } 14387 14388 /** 14389 * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_START_ALERTING 14390 * @param event packet 14391 * @return lls_cid 14392 * @note: btstack_type 2 14393 */ 14394 static inline uint16_t gattservice_subevent_lls_client_start_alerting_get_lls_cid(const uint8_t * event){ 14395 return little_endian_read_16(event, 3); 14396 } 14397 14398 /** 14399 * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_STOP_ALERTING 14400 * @param event packet 14401 * @return lls_cid 14402 * @note: btstack_type 2 14403 */ 14404 static inline uint16_t gattservice_subevent_lls_client_stop_alerting_get_lls_cid(const uint8_t * event){ 14405 return little_endian_read_16(event, 3); 14406 } 14407 /** 14408 * @brief Get field timeout from event GATTSERVICE_SUBEVENT_LLS_CLIENT_STOP_ALERTING 14409 * @param event packet 14410 * @return timeout 14411 * @note: btstack_type 1 14412 */ 14413 static inline uint8_t gattservice_subevent_lls_client_stop_alerting_get_timeout(const uint8_t * event){ 14414 return event[5]; 14415 } 14416 14417 /** 14418 * @brief Get field lls_cid from event GATTSERVICE_SUBEVENT_LLS_CLIENT_ALERT_LEVEL 14419 * @param event packet 14420 * @return lls_cid 14421 * @note: btstack_type 2 14422 */ 14423 static inline uint16_t gattservice_subevent_lls_client_alert_level_get_lls_cid(const uint8_t * event){ 14424 return little_endian_read_16(event, 3); 14425 } 14426 /** 14427 * @brief Get field value from event GATTSERVICE_SUBEVENT_LLS_CLIENT_ALERT_LEVEL 14428 * @param event packet 14429 * @return value 14430 * @note: btstack_type 1 14431 */ 14432 static inline uint8_t gattservice_subevent_lls_client_alert_level_get_value(const uint8_t * event){ 14433 return event[5]; 14434 } 14435 14436 /** 14437 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_IAS_CLIENT_CONNECTED 14438 * @param event packet 14439 * @return con_handle 14440 * @note: btstack_type H 14441 */ 14442 static inline hci_con_handle_t gattservice_subevent_ias_client_connected_get_con_handle(const uint8_t * event){ 14443 return little_endian_read_16(event, 3); 14444 } 14445 /** 14446 * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_CONNECTED 14447 * @param event packet 14448 * @return ias_cid 14449 * @note: btstack_type 2 14450 */ 14451 static inline uint16_t gattservice_subevent_ias_client_connected_get_ias_cid(const uint8_t * event){ 14452 return little_endian_read_16(event, 5); 14453 } 14454 /** 14455 * @brief Get field status from event GATTSERVICE_SUBEVENT_IAS_CLIENT_CONNECTED 14456 * @param event packet 14457 * @return status 14458 * @note: btstack_type 1 14459 */ 14460 static inline uint8_t gattservice_subevent_ias_client_connected_get_status(const uint8_t * event){ 14461 return event[7]; 14462 } 14463 14464 /** 14465 * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_DISCONNECTED 14466 * @param event packet 14467 * @return ias_cid 14468 * @note: btstack_type 2 14469 */ 14470 static inline uint16_t gattservice_subevent_ias_client_disconnected_get_ias_cid(const uint8_t * event){ 14471 return little_endian_read_16(event, 3); 14472 } 14473 14474 /** 14475 * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_START_ALERTING 14476 * @param event packet 14477 * @return ias_cid 14478 * @note: btstack_type 2 14479 */ 14480 static inline uint16_t gattservice_subevent_ias_client_start_alerting_get_ias_cid(const uint8_t * event){ 14481 return little_endian_read_16(event, 3); 14482 } 14483 14484 /** 14485 * @brief Get field ias_cid from event GATTSERVICE_SUBEVENT_IAS_CLIENT_STOP_ALERTING 14486 * @param event packet 14487 * @return ias_cid 14488 * @note: btstack_type 2 14489 */ 14490 static inline uint16_t gattservice_subevent_ias_client_stop_alerting_get_ias_cid(const uint8_t * event){ 14491 return little_endian_read_16(event, 3); 14492 } 14493 /** 14494 * @brief Get field timeout from event GATTSERVICE_SUBEVENT_IAS_CLIENT_STOP_ALERTING 14495 * @param event packet 14496 * @return timeout 14497 * @note: btstack_type 1 14498 */ 14499 static inline uint8_t gattservice_subevent_ias_client_stop_alerting_get_timeout(const uint8_t * event){ 14500 return event[5]; 14501 } 14502 14503 /** 14504 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_CONNECTED 14505 * @param event packet 14506 * @return con_handle 14507 * @note: btstack_type H 14508 */ 14509 static inline hci_con_handle_t gattservice_subevent_txps_client_connected_get_con_handle(const uint8_t * event){ 14510 return little_endian_read_16(event, 3); 14511 } 14512 /** 14513 * @brief Get field tpxs_cid from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_CONNECTED 14514 * @param event packet 14515 * @return tpxs_cid 14516 * @note: btstack_type 2 14517 */ 14518 static inline uint16_t gattservice_subevent_txps_client_connected_get_tpxs_cid(const uint8_t * event){ 14519 return little_endian_read_16(event, 5); 14520 } 14521 /** 14522 * @brief Get field status from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_CONNECTED 14523 * @param event packet 14524 * @return status 14525 * @note: btstack_type 1 14526 */ 14527 static inline uint8_t gattservice_subevent_txps_client_connected_get_status(const uint8_t * event){ 14528 return event[7]; 14529 } 14530 14531 /** 14532 * @brief Get field tpxs_cid from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_DISCONNECTED 14533 * @param event packet 14534 * @return tpxs_cid 14535 * @note: btstack_type 2 14536 */ 14537 static inline uint16_t gattservice_subevent_txps_client_disconnected_get_tpxs_cid(const uint8_t * event){ 14538 return little_endian_read_16(event, 3); 14539 } 14540 14541 /** 14542 * @brief Get field tpxs_cid from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_TX_POWER_LEVEL 14543 * @param event packet 14544 * @return tpxs_cid 14545 * @note: btstack_type 2 14546 */ 14547 static inline uint16_t gattservice_subevent_txps_client_tx_power_level_get_tpxs_cid(const uint8_t * event){ 14548 return little_endian_read_16(event, 3); 14549 } 14550 /** 14551 * @brief Get field value from event GATTSERVICE_SUBEVENT_TXPS_CLIENT_TX_POWER_LEVEL 14552 * @param event packet 14553 * @return value 14554 * @note: btstack_type 1 14555 */ 14556 static inline uint8_t gattservice_subevent_txps_client_tx_power_level_get_value(const uint8_t * event){ 14557 return event[5]; 14558 } 14559 14560 /** 14561 * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_LLS_SERVER_START_ALERTING 14562 * @param event packet 14563 * @return alert_level 14564 * @note: btstack_type 1 14565 */ 14566 static inline uint8_t gattservice_subevent_lls_server_start_alerting_get_alert_level(const uint8_t * event){ 14567 return event[3]; 14568 } 14569 14570 /** 14571 * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_LLS_SERVER_STOP_ALERTING 14572 * @param event packet 14573 * @return alert_level 14574 * @note: btstack_type 1 14575 */ 14576 static inline uint8_t gattservice_subevent_lls_server_stop_alerting_get_alert_level(const uint8_t * event){ 14577 return event[3]; 14578 } 14579 /** 14580 * @brief Get field timeout from event GATTSERVICE_SUBEVENT_LLS_SERVER_STOP_ALERTING 14581 * @param event packet 14582 * @return timeout 14583 * @note: btstack_type 1 14584 */ 14585 static inline uint8_t gattservice_subevent_lls_server_stop_alerting_get_timeout(const uint8_t * event){ 14586 return event[4]; 14587 } 14588 14589 /** 14590 * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_IAS_SERVER_START_ALERTING 14591 * @param event packet 14592 * @return alert_level 14593 * @note: btstack_type 1 14594 */ 14595 static inline uint8_t gattservice_subevent_ias_server_start_alerting_get_alert_level(const uint8_t * event){ 14596 return event[3]; 14597 } 14598 14599 /** 14600 * @brief Get field alert_level from event GATTSERVICE_SUBEVENT_IAS_SERVER_STOP_ALERTING 14601 * @param event packet 14602 * @return alert_level 14603 * @note: btstack_type 1 14604 */ 14605 static inline uint8_t gattservice_subevent_ias_server_stop_alerting_get_alert_level(const uint8_t * event){ 14606 return event[3]; 14607 } 14608 /** 14609 * @brief Get field timeout from event GATTSERVICE_SUBEVENT_IAS_SERVER_STOP_ALERTING 14610 * @param event packet 14611 * @return timeout 14612 * @note: btstack_type 1 14613 */ 14614 static inline uint8_t gattservice_subevent_ias_server_stop_alerting_get_timeout(const uint8_t * event){ 14615 return event[4]; 14616 } 14617 14618 /** 14619 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_CONNECTED 14620 * @param event packet 14621 * @return con_handle 14622 * @note: btstack_type H 14623 */ 14624 static inline hci_con_handle_t leaudio_subevent_bass_server_connected_get_con_handle(const uint8_t * event){ 14625 return little_endian_read_16(event, 3); 14626 } 14627 /** 14628 * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_SERVER_CONNECTED 14629 * @param event packet 14630 * @return status 14631 * @note: btstack_type 1 14632 */ 14633 static inline uint8_t leaudio_subevent_bass_server_connected_get_status(const uint8_t * event){ 14634 return event[5]; 14635 } 14636 14637 /** 14638 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_DISCONNECTED 14639 * @param event packet 14640 * @return con_handle 14641 * @note: btstack_type H 14642 */ 14643 static inline hci_con_handle_t leaudio_subevent_bass_server_disconnected_get_con_handle(const uint8_t * event){ 14644 return little_endian_read_16(event, 3); 14645 } 14646 14647 /** 14648 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SCAN_STOPPED 14649 * @param event packet 14650 * @return con_handle 14651 * @note: btstack_type H 14652 */ 14653 static inline hci_con_handle_t leaudio_subevent_bass_server_scan_stopped_get_con_handle(const uint8_t * event){ 14654 return little_endian_read_16(event, 3); 14655 } 14656 14657 /** 14658 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SCAN_STARTED 14659 * @param event packet 14660 * @return con_handle 14661 * @note: btstack_type H 14662 */ 14663 static inline hci_con_handle_t leaudio_subevent_bass_server_scan_started_get_con_handle(const uint8_t * event){ 14664 return little_endian_read_16(event, 3); 14665 } 14666 14667 /** 14668 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_BROADCAST_CODE 14669 * @param event packet 14670 * @return con_handle 14671 * @note: btstack_type H 14672 */ 14673 static inline hci_con_handle_t leaudio_subevent_bass_server_broadcast_code_get_con_handle(const uint8_t * event){ 14674 return little_endian_read_16(event, 3); 14675 } 14676 /** 14677 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_BROADCAST_CODE 14678 * @param event packet 14679 * @return source_id 14680 * @note: btstack_type 1 14681 */ 14682 static inline uint8_t leaudio_subevent_bass_server_broadcast_code_get_source_id(const uint8_t * event){ 14683 return event[5]; 14684 } 14685 /** 14686 * @brief Get field broadcast_code from event LEAUDIO_SUBEVENT_BASS_SERVER_BROADCAST_CODE 14687 * @param event packet 14688 * @param Pointer to storage for broadcast_code 14689 * @note: btstack_type K 14690 */ 14691 static inline void leaudio_subevent_bass_server_broadcast_code_get_broadcast_code(const uint8_t * event, uint8_t * broadcast_code){ 14692 reverse_bytes(&event[6], broadcast_code, 16); 14693 } 14694 14695 /** 14696 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED 14697 * @param event packet 14698 * @return con_handle 14699 * @note: btstack_type H 14700 */ 14701 static inline hci_con_handle_t leaudio_subevent_bass_server_source_added_get_con_handle(const uint8_t * event){ 14702 return little_endian_read_16(event, 3); 14703 } 14704 /** 14705 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED 14706 * @param event packet 14707 * @return source_id 14708 * @note: btstack_type 1 14709 */ 14710 static inline uint8_t leaudio_subevent_bass_server_source_added_get_source_id(const uint8_t * event){ 14711 return event[5]; 14712 } 14713 /** 14714 * @brief Get field pa_sync from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED 14715 * @param event packet 14716 * @return pa_sync 14717 * @note: btstack_type 1 14718 */ 14719 static inline uint8_t leaudio_subevent_bass_server_source_added_get_pa_sync(const uint8_t * event){ 14720 return event[6]; 14721 } 14722 14723 /** 14724 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 14725 * @param event packet 14726 * @return con_handle 14727 * @note: btstack_type H 14728 */ 14729 static inline hci_con_handle_t leaudio_subevent_bass_server_source_modified_get_con_handle(const uint8_t * event){ 14730 return little_endian_read_16(event, 3); 14731 } 14732 /** 14733 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 14734 * @param event packet 14735 * @return source_id 14736 * @note: btstack_type 1 14737 */ 14738 static inline uint8_t leaudio_subevent_bass_server_source_modified_get_source_id(const uint8_t * event){ 14739 return event[5]; 14740 } 14741 /** 14742 * @brief Get field pa_sync from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED 14743 * @param event packet 14744 * @return pa_sync 14745 * @note: btstack_type 1 14746 */ 14747 static inline uint8_t leaudio_subevent_bass_server_source_modified_get_pa_sync(const uint8_t * event){ 14748 return event[6]; 14749 } 14750 14751 /** 14752 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED 14753 * @param event packet 14754 * @return con_handle 14755 * @note: btstack_type H 14756 */ 14757 static inline hci_con_handle_t leaudio_subevent_bass_server_source_deleted_get_con_handle(const uint8_t * event){ 14758 return little_endian_read_16(event, 3); 14759 } 14760 /** 14761 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED 14762 * @param event packet 14763 * @return source_id 14764 * @note: btstack_type 1 14765 */ 14766 static inline uint8_t leaudio_subevent_bass_server_source_deleted_get_source_id(const uint8_t * event){ 14767 return event[5]; 14768 } 14769 /** 14770 * @brief Get field pa_sync from event LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED 14771 * @param event packet 14772 * @return pa_sync 14773 * @note: btstack_type 1 14774 */ 14775 static inline uint8_t leaudio_subevent_bass_server_source_deleted_get_pa_sync(const uint8_t * event){ 14776 return event[6]; 14777 } 14778 14779 /** 14780 * @brief Get field con_handle from event LEAUDIO_SUBEVENT_BASS_CLIENT_CONNECTED 14781 * @param event packet 14782 * @return con_handle 14783 * @note: btstack_type H 14784 */ 14785 static inline hci_con_handle_t leaudio_subevent_bass_client_connected_get_con_handle(const uint8_t * event){ 14786 return little_endian_read_16(event, 3); 14787 } 14788 /** 14789 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_CONNECTED 14790 * @param event packet 14791 * @return bass_cid 14792 * @note: btstack_type 2 14793 */ 14794 static inline uint16_t leaudio_subevent_bass_client_connected_get_bass_cid(const uint8_t * event){ 14795 return little_endian_read_16(event, 5); 14796 } 14797 /** 14798 * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_CLIENT_CONNECTED 14799 * @param event packet 14800 * @return status 14801 * @note: btstack_type 1 14802 */ 14803 static inline uint8_t leaudio_subevent_bass_client_connected_get_status(const uint8_t * event){ 14804 return event[7]; 14805 } 14806 14807 /** 14808 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_DISCONNECTED 14809 * @param event packet 14810 * @return bass_cid 14811 * @note: btstack_type 2 14812 */ 14813 static inline uint16_t leaudio_subevent_bass_client_disconnected_get_bass_cid(const uint8_t * event){ 14814 return little_endian_read_16(event, 3); 14815 } 14816 14817 /** 14818 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 14819 * @param event packet 14820 * @return bass_cid 14821 * @note: btstack_type 2 14822 */ 14823 static inline uint16_t leaudio_subevent_bass_client_scan_operation_complete_get_bass_cid(const uint8_t * event){ 14824 return little_endian_read_16(event, 3); 14825 } 14826 /** 14827 * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 14828 * @param event packet 14829 * @return status 14830 * @note: btstack_type 1 14831 */ 14832 static inline uint8_t leaudio_subevent_bass_client_scan_operation_complete_get_status(const uint8_t * event){ 14833 return event[5]; 14834 } 14835 /** 14836 * @brief Get field opcode from event LEAUDIO_SUBEVENT_BASS_CLIENT_SCAN_OPERATION_COMPLETE 14837 * @param event packet 14838 * @return opcode 14839 * @note: btstack_type 1 14840 */ 14841 static inline uint8_t leaudio_subevent_bass_client_scan_operation_complete_get_opcode(const uint8_t * event){ 14842 return event[6]; 14843 } 14844 14845 /** 14846 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14847 * @param event packet 14848 * @return bass_cid 14849 * @note: btstack_type 2 14850 */ 14851 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_base_get_bass_cid(const uint8_t * event){ 14852 return little_endian_read_16(event, 3); 14853 } 14854 /** 14855 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14856 * @param event packet 14857 * @return source_id 14858 * @note: btstack_type 1 14859 */ 14860 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_source_id(const uint8_t * event){ 14861 return event[5]; 14862 } 14863 /** 14864 * @brief Get field source_address_type from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14865 * @param event packet 14866 * @return source_address_type 14867 * @note: btstack_type 1 14868 */ 14869 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_source_address_type(const uint8_t * event){ 14870 return event[6]; 14871 } 14872 /** 14873 * @brief Get field source_address from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14874 * @param event packet 14875 * @param Pointer to storage for source_address 14876 * @note: btstack_type B 14877 */ 14878 static inline void leaudio_subevent_bass_client_notify_receive_state_base_get_source_address(const uint8_t * event, bd_addr_t source_address){ 14879 reverse_bytes(&event[7], source_address, 6); 14880 } 14881 /** 14882 * @brief Get field source_adv_sid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14883 * @param event packet 14884 * @return source_adv_sid 14885 * @note: btstack_type 1 14886 */ 14887 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_source_adv_sid(const uint8_t * event){ 14888 return event[13]; 14889 } 14890 /** 14891 * @brief Get field broadcast_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14892 * @param event packet 14893 * @return broadcast_id 14894 * @note: btstack_type 3 14895 */ 14896 static inline uint32_t leaudio_subevent_bass_client_notify_receive_state_base_get_broadcast_id(const uint8_t * event){ 14897 return little_endian_read_24(event, 14); 14898 } 14899 /** 14900 * @brief Get field pa_sync_state from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14901 * @param event packet 14902 * @return pa_sync_state 14903 * @note: btstack_type 1 14904 */ 14905 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_pa_sync_state(const uint8_t * event){ 14906 return event[17]; 14907 } 14908 /** 14909 * @brief Get field big_encryption from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14910 * @param event packet 14911 * @return big_encryption 14912 * @note: btstack_type 1 14913 */ 14914 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_big_encryption(const uint8_t * event){ 14915 return event[18]; 14916 } 14917 /** 14918 * @brief Get field bad_code from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14919 * @param event packet 14920 * @return bad_code 14921 * @note: btstack_type P 14922 */ 14923 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_base_get_bad_code(const uint8_t * event){ 14924 return (const uint8_t *) &event[19]; 14925 } 14926 /** 14927 * @brief Get field subgroups_num from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_BASE 14928 * @param event packet 14929 * @return subgroups_num 14930 * @note: btstack_type 1 14931 */ 14932 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_base_get_subgroups_num(const uint8_t * event){ 14933 return event[35]; 14934 } 14935 14936 /** 14937 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14938 * @param event packet 14939 * @return bass_cid 14940 * @note: btstack_type 2 14941 */ 14942 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_bass_cid(const uint8_t * event){ 14943 return little_endian_read_16(event, 3); 14944 } 14945 /** 14946 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14947 * @param event packet 14948 * @return source_id 14949 * @note: btstack_type 1 14950 */ 14951 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_source_id(const uint8_t * event){ 14952 return event[5]; 14953 } 14954 /** 14955 * @brief Get field bis_sync_state from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14956 * @param event packet 14957 * @return bis_sync_state 14958 * @note: btstack_type 4 14959 */ 14960 static inline uint32_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_bis_sync_state(const uint8_t * event){ 14961 return little_endian_read_32(event, 6); 14962 } 14963 /** 14964 * @brief Get field metadata_mask from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14965 * @param event packet 14966 * @return metadata_mask 14967 * @note: btstack_type 1 14968 */ 14969 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_metadata_mask(const uint8_t * event){ 14970 return event[10]; 14971 } 14972 /** 14973 * @brief Get field preferred_audio_contexts_mask from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14974 * @param event packet 14975 * @return preferred_audio_contexts_mask 14976 * @note: btstack_type 2 14977 */ 14978 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_preferred_audio_contexts_mask(const uint8_t * event){ 14979 return little_endian_read_16(event, 11); 14980 } 14981 /** 14982 * @brief Get field streaming_audio_contexts_mask from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14983 * @param event packet 14984 * @return streaming_audio_contexts_mask 14985 * @note: btstack_type 2 14986 */ 14987 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_streaming_audio_contexts_mask(const uint8_t * event){ 14988 return little_endian_read_16(event, 13); 14989 } 14990 /** 14991 * @brief Get field program_info_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 14992 * @param event packet 14993 * @return program_info_length 14994 * @note: btstack_type J 14995 */ 14996 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info_length(const uint8_t * event){ 14997 return event[15]; 14998 } 14999 /** 15000 * @brief Get field program_info from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15001 * @param event packet 15002 * @return program_info 15003 * @note: btstack_type V 15004 */ 15005 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info(const uint8_t * event){ 15006 return &event[16]; 15007 } 15008 /** 15009 * @brief Get field language_code from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15010 * @param event packet 15011 * @return language_code 15012 * @note: btstack_type 3 15013 */ 15014 static inline uint32_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_language_code(const uint8_t * event){ 15015 uint8_t offset = 16u + event[15]; 15016 return little_endian_read_24(event, (int)(int8_t) offset); 15017 } 15018 /** 15019 * @brief Get field ccids_num from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15020 * @param event packet 15021 * @return ccids_num 15022 * @note: btstack_type J 15023 */ 15024 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_ccids_num(const uint8_t * event){ 15025 return event[16u + event[15] + 3u]; 15026 } 15027 /** 15028 * @brief Get field ccids from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15029 * @param event packet 15030 * @return ccids 15031 * @note: btstack_type V 15032 */ 15033 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_ccids(const uint8_t * event){ 15034 return &event[16u + event[15] + 3u + 1u]; 15035 } 15036 /** 15037 * @brief Get field parental_rating from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15038 * @param event packet 15039 * @return parental_rating 15040 * @note: btstack_type 1 15041 */ 15042 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_parental_rating(const uint8_t * event){ 15043 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u]]; 15044 } 15045 /** 15046 * @brief Get field program_info_uri_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15047 * @param event packet 15048 * @return program_info_uri_length 15049 * @note: btstack_type J 15050 */ 15051 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri_length(const uint8_t * event){ 15052 return event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]; 15053 } 15054 /** 15055 * @brief Get field program_info_uri from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15056 * @param event packet 15057 * @return program_info_uri 15058 * @note: btstack_type V 15059 */ 15060 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_program_info_uri(const uint8_t * event){ 15061 return &event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u]; 15062 } 15063 /** 15064 * @brief Get field extended_metadata_type from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15065 * @param event packet 15066 * @return extended_metadata_type 15067 * @note: btstack_type 2 15068 */ 15069 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_type(const uint8_t * event){ 15070 uint8_t offset = 16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u + 1u + event[16u + event[15] + 3u + 1u + event[16u + event[15] + 3u] + 1u]; 15071 return little_endian_read_16(event, (int)(int8_t) offset); 15072 } 15073 /** 15074 * @brief Get field extended_metadata_value_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15075 * @param event packet 15076 * @return extended_metadata_value_length 15077 * @note: btstack_type J 15078 */ 15079 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value_length(const uint8_t * event){ 15080 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]; 15081 } 15082 /** 15083 * @brief Get field extended_metadata_value from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15084 * @param event packet 15085 * @return extended_metadata_value 15086 * @note: btstack_type V 15087 */ 15088 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_extended_metadata_value(const uint8_t * event){ 15089 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]; 15090 } 15091 /** 15092 * @brief Get field vendor_specific_metadata_type from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15093 * @param event packet 15094 * @return vendor_specific_metadata_type 15095 * @note: btstack_type 2 15096 */ 15097 static inline uint16_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_type(const uint8_t * event){ 15098 uint8_t offset = 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]; 15099 return little_endian_read_16(event, (int)(int8_t) offset); 15100 } 15101 /** 15102 * @brief Get field vendor_specific_metadata_value_length from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15103 * @param event packet 15104 * @return vendor_specific_metadata_value_length 15105 * @note: btstack_type J 15106 */ 15107 static inline uint8_t leaudio_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value_length(const uint8_t * event){ 15108 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]; 15109 } 15110 /** 15111 * @brief Get field vendor_specific_metadata_value from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFY_RECEIVE_STATE_SUBGROUP 15112 * @param event packet 15113 * @return vendor_specific_metadata_value 15114 * @note: btstack_type V 15115 */ 15116 static inline const uint8_t * leaudio_subevent_bass_client_notify_receive_state_subgroup_get_vendor_specific_metadata_value(const uint8_t * event){ 15117 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]; 15118 } 15119 15120 /** 15121 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE 15122 * @param event packet 15123 * @return bass_cid 15124 * @note: btstack_type 2 15125 */ 15126 static inline uint16_t leaudio_subevent_bass_client_notification_complete_get_bass_cid(const uint8_t * event){ 15127 return little_endian_read_16(event, 3); 15128 } 15129 /** 15130 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE 15131 * @param event packet 15132 * @return source_id 15133 * @note: btstack_type 1 15134 */ 15135 static inline uint8_t leaudio_subevent_bass_client_notification_complete_get_source_id(const uint8_t * event){ 15136 return event[5]; 15137 } 15138 15139 /** 15140 * @brief Get field bass_cid from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 15141 * @param event packet 15142 * @return bass_cid 15143 * @note: btstack_type 2 15144 */ 15145 static inline uint16_t leaudio_subevent_bass_client_source_operation_complete_get_bass_cid(const uint8_t * event){ 15146 return little_endian_read_16(event, 3); 15147 } 15148 /** 15149 * @brief Get field status from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 15150 * @param event packet 15151 * @return status 15152 * @note: btstack_type 1 15153 */ 15154 static inline uint8_t leaudio_subevent_bass_client_source_operation_complete_get_status(const uint8_t * event){ 15155 return event[5]; 15156 } 15157 /** 15158 * @brief Get field opcode from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 15159 * @param event packet 15160 * @return opcode 15161 * @note: btstack_type 1 15162 */ 15163 static inline uint8_t leaudio_subevent_bass_client_source_operation_complete_get_opcode(const uint8_t * event){ 15164 return event[6]; 15165 } 15166 /** 15167 * @brief Get field source_id from event LEAUDIO_SUBEVENT_BASS_CLIENT_SOURCE_OPERATION_COMPLETE 15168 * @param event packet 15169 * @return source_id 15170 * @note: btstack_type 1 15171 */ 15172 static inline uint8_t leaudio_subevent_bass_client_source_operation_complete_get_source_id(const uint8_t * event){ 15173 return event[7]; 15174 } 15175 15176 15177 /** 15178 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT 15179 * @param event packet 15180 * @return status 15181 * @note: btstack_type 1 15182 */ 15183 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){ 15184 return event[3]; 15185 } 15186 15187 /** 15188 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 15189 * @param event packet 15190 * @return status 15191 * @note: btstack_type 1 15192 */ 15193 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){ 15194 return event[3]; 15195 } 15196 /** 15197 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 15198 * @param event packet 15199 * @return pb_transport_cid 15200 * @note: btstack_type 2 15201 */ 15202 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){ 15203 return little_endian_read_16(event, 4); 15204 } 15205 /** 15206 * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 15207 * @param event packet 15208 * @return pb_type 15209 * @note: btstack_type 1 15210 */ 15211 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){ 15212 return event[6]; 15213 } 15214 15215 /** 15216 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 15217 * @param event packet 15218 * @return pb_transport_cid 15219 * @note: btstack_type 1 15220 */ 15221 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){ 15222 return event[3]; 15223 } 15224 /** 15225 * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 15226 * @param event packet 15227 * @return reason 15228 * @note: btstack_type 2 15229 */ 15230 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){ 15231 return little_endian_read_16(event, 4); 15232 } 15233 15234 /** 15235 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 15236 * @param event packet 15237 * @return pb_transport_cid 15238 * @note: btstack_type 2 15239 */ 15240 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){ 15241 return little_endian_read_16(event, 3); 15242 } 15243 /** 15244 * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 15245 * @param event packet 15246 * @return attention_time 15247 * @note: btstack_type 1 15248 */ 15249 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){ 15250 return event[5]; 15251 } 15252 15253 /** 15254 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB 15255 * @param event packet 15256 * @return pb_transport_cid 15257 * @note: btstack_type 2 15258 */ 15259 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15260 return little_endian_read_16(event, 3); 15261 } 15262 15263 /** 15264 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB 15265 * @param event packet 15266 * @return pb_transport_cid 15267 * @note: btstack_type 2 15268 */ 15269 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15270 return little_endian_read_16(event, 3); 15271 } 15272 15273 /** 15274 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST 15275 * @param event packet 15276 * @return pb_transport_cid 15277 * @note: btstack_type 2 15278 */ 15279 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){ 15280 return little_endian_read_16(event, 3); 15281 } 15282 15283 /** 15284 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 15285 * @param event packet 15286 * @return pb_transport_cid 15287 * @note: btstack_type 2 15288 */ 15289 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 15290 return little_endian_read_16(event, 3); 15291 } 15292 /** 15293 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 15294 * @param event packet 15295 * @return output_oob 15296 * @note: btstack_type 4 15297 */ 15298 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){ 15299 return little_endian_read_32(event, 5); 15300 } 15301 15302 /** 15303 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB 15304 * @param event packet 15305 * @return pb_transport_cid 15306 * @note: btstack_type 2 15307 */ 15308 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 15309 return little_endian_read_16(event, 3); 15310 } 15311 15312 /** 15313 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB 15314 * @param event packet 15315 * @return pb_transport_cid 15316 * @note: btstack_type 2 15317 */ 15318 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15319 return little_endian_read_16(event, 3); 15320 } 15321 15322 /** 15323 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB 15324 * @param event packet 15325 * @return pb_transport_cid 15326 * @note: btstack_type 2 15327 */ 15328 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 15329 return little_endian_read_16(event, 3); 15330 } 15331 15332 /** 15333 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST 15334 * @param event packet 15335 * @return pb_transport_cid 15336 * @note: btstack_type 2 15337 */ 15338 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){ 15339 return little_endian_read_16(event, 3); 15340 } 15341 15342 /** 15343 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 15344 * @param event packet 15345 * @return pb_transport_cid 15346 * @note: btstack_type 2 15347 */ 15348 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 15349 return little_endian_read_16(event, 3); 15350 } 15351 /** 15352 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 15353 * @param event packet 15354 * @return output_oob 15355 * @note: btstack_type 4 15356 */ 15357 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){ 15358 return little_endian_read_32(event, 5); 15359 } 15360 15361 /** 15362 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB 15363 * @param event packet 15364 * @return pb_transport_cid 15365 * @note: btstack_type 2 15366 */ 15367 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 15368 return little_endian_read_16(event, 3); 15369 } 15370 15371 /** 15372 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15373 * @param event packet 15374 * @return pb_transport_cid 15375 * @note: btstack_type 2 15376 */ 15377 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){ 15378 return little_endian_read_16(event, 3); 15379 } 15380 /** 15381 * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15382 * @param event packet 15383 * @return num_elements 15384 * @note: btstack_type 1 15385 */ 15386 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){ 15387 return event[5]; 15388 } 15389 /** 15390 * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15391 * @param event packet 15392 * @return algorithms 15393 * @note: btstack_type 2 15394 */ 15395 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){ 15396 return little_endian_read_16(event, 6); 15397 } 15398 /** 15399 * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15400 * @param event packet 15401 * @return public_key 15402 * @note: btstack_type 1 15403 */ 15404 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){ 15405 return event[8]; 15406 } 15407 /** 15408 * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15409 * @param event packet 15410 * @return static_oob_type 15411 * @note: btstack_type 1 15412 */ 15413 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){ 15414 return event[9]; 15415 } 15416 /** 15417 * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15418 * @param event packet 15419 * @return output_oob_size 15420 * @note: btstack_type 1 15421 */ 15422 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){ 15423 return event[10]; 15424 } 15425 /** 15426 * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15427 * @param event packet 15428 * @return output_oob_action 15429 * @note: btstack_type 2 15430 */ 15431 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){ 15432 return little_endian_read_16(event, 11); 15433 } 15434 /** 15435 * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15436 * @param event packet 15437 * @return input_oob_size 15438 * @note: btstack_type 1 15439 */ 15440 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){ 15441 return event[13]; 15442 } 15443 /** 15444 * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 15445 * @param event packet 15446 * @return input_oob_action 15447 * @note: btstack_type 2 15448 */ 15449 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){ 15450 return little_endian_read_16(event, 14); 15451 } 15452 15453 /** 15454 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE 15455 * @param event packet 15456 * @return pb_transport_cid 15457 * @note: btstack_type 2 15458 */ 15459 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){ 15460 return little_endian_read_16(event, 3); 15461 } 15462 15463 /** 15464 * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER 15465 * @param event packet 15466 * @return attention_time 15467 * @note: btstack_type 1 15468 */ 15469 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 15470 return event[3]; 15471 } 15472 15473 /** 15474 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 15475 * @param event packet 15476 * @return con_handle 15477 * @note: btstack_type H 15478 */ 15479 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ 15480 return little_endian_read_16(event, 3); 15481 } 15482 15483 /** 15484 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 15485 * @param event packet 15486 * @return con_handle 15487 * @note: btstack_type H 15488 */ 15489 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){ 15490 return little_endian_read_16(event, 3); 15491 } 15492 15493 /** 15494 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED 15495 * @param event packet 15496 * @return con_handle 15497 * @note: btstack_type H 15498 */ 15499 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){ 15500 return little_endian_read_16(event, 3); 15501 } 15502 15503 /** 15504 * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT 15505 * @param event packet 15506 * @return con_handle 15507 * @note: btstack_type H 15508 */ 15509 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){ 15510 return little_endian_read_16(event, 3); 15511 } 15512 15513 /** 15514 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15515 * @param event packet 15516 * @return element_index 15517 * @note: btstack_type 1 15518 */ 15519 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){ 15520 return event[3]; 15521 } 15522 /** 15523 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15524 * @param event packet 15525 * @return model_identifier 15526 * @note: btstack_type 4 15527 */ 15528 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){ 15529 return little_endian_read_32(event, 4); 15530 } 15531 /** 15532 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15533 * @param event packet 15534 * @return state_identifier 15535 * @note: btstack_type 4 15536 */ 15537 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){ 15538 return little_endian_read_32(event, 8); 15539 } 15540 /** 15541 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15542 * @param event packet 15543 * @return reason 15544 * @note: btstack_type 1 15545 */ 15546 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){ 15547 return event[12]; 15548 } 15549 /** 15550 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL 15551 * @param event packet 15552 * @return value 15553 * @note: btstack_type 1 15554 */ 15555 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){ 15556 return event[13]; 15557 } 15558 15559 /** 15560 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16 15561 * @param event packet 15562 * @return element_index 15563 * @note: btstack_type 1 15564 */ 15565 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){ 15566 return event[3]; 15567 } 15568 /** 15569 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 15570 * @param event packet 15571 * @return model_identifier 15572 * @note: btstack_type 4 15573 */ 15574 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){ 15575 return little_endian_read_32(event, 4); 15576 } 15577 /** 15578 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 15579 * @param event packet 15580 * @return state_identifier 15581 * @note: btstack_type 4 15582 */ 15583 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){ 15584 return little_endian_read_32(event, 8); 15585 } 15586 /** 15587 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16 15588 * @param event packet 15589 * @return reason 15590 * @note: btstack_type 1 15591 */ 15592 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){ 15593 return event[12]; 15594 } 15595 /** 15596 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16 15597 * @param event packet 15598 * @return value 15599 * @note: btstack_type 2 15600 */ 15601 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){ 15602 return little_endian_read_16(event, 13); 15603 } 15604 15605 /** 15606 * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15607 * @param event packet 15608 * @return element_index 15609 * @note: btstack_type 1 15610 */ 15611 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){ 15612 return event[3]; 15613 } 15614 /** 15615 * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15616 * @param event packet 15617 * @return model_identifier 15618 * @note: btstack_type 4 15619 */ 15620 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){ 15621 return little_endian_read_32(event, 4); 15622 } 15623 /** 15624 * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15625 * @param event packet 15626 * @return opcode 15627 * @note: btstack_type 4 15628 */ 15629 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){ 15630 return little_endian_read_32(event, 8); 15631 } 15632 /** 15633 * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 15634 * @param event packet 15635 * @return dest 15636 * @note: btstack_type 2 15637 */ 15638 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){ 15639 return little_endian_read_16(event, 12); 15640 } 15641 15642 /** 15643 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF 15644 * @param event packet 15645 * @return dest 15646 * @note: btstack_type 2 15647 */ 15648 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){ 15649 return little_endian_read_16(event, 3); 15650 } 15651 /** 15652 * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF 15653 * @param event packet 15654 * @return status 15655 * @note: btstack_type 1 15656 */ 15657 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){ 15658 return event[5]; 15659 } 15660 /** 15661 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF 15662 * @param event packet 15663 * @return present_value 15664 * @note: btstack_type 1 15665 */ 15666 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){ 15667 return event[6]; 15668 } 15669 /** 15670 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF 15671 * @param event packet 15672 * @return target_value 15673 * @note: btstack_type 1 15674 */ 15675 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){ 15676 return event[7]; 15677 } 15678 /** 15679 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF 15680 * @param event packet 15681 * @return remaining_time_ms 15682 * @note: btstack_type 4 15683 */ 15684 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){ 15685 return little_endian_read_32(event, 8); 15686 } 15687 15688 /** 15689 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL 15690 * @param event packet 15691 * @return dest 15692 * @note: btstack_type 2 15693 */ 15694 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){ 15695 return little_endian_read_16(event, 3); 15696 } 15697 /** 15698 * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL 15699 * @param event packet 15700 * @return status 15701 * @note: btstack_type 1 15702 */ 15703 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){ 15704 return event[5]; 15705 } 15706 /** 15707 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL 15708 * @param event packet 15709 * @return present_value 15710 * @note: btstack_type 2 15711 */ 15712 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){ 15713 return little_endian_read_16(event, 6); 15714 } 15715 /** 15716 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL 15717 * @param event packet 15718 * @return target_value 15719 * @note: btstack_type 2 15720 */ 15721 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){ 15722 return little_endian_read_16(event, 8); 15723 } 15724 /** 15725 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL 15726 * @param event packet 15727 * @return remaining_time_ms 15728 * @note: btstack_type 4 15729 */ 15730 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){ 15731 return little_endian_read_32(event, 10); 15732 } 15733 15734 /** 15735 * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15736 * @param event packet 15737 * @return dest 15738 * @note: btstack_type 2 15739 */ 15740 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){ 15741 return little_endian_read_16(event, 3); 15742 } 15743 /** 15744 * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15745 * @param event packet 15746 * @return netkey_index 15747 * @note: btstack_type 2 15748 */ 15749 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){ 15750 return little_endian_read_16(event, 5); 15751 } 15752 /** 15753 * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15754 * @param event packet 15755 * @return appkey_index 15756 * @note: btstack_type 2 15757 */ 15758 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){ 15759 return little_endian_read_16(event, 7); 15760 } 15761 /** 15762 * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15763 * @param event packet 15764 * @return company_id 15765 * @note: btstack_type 2 15766 */ 15767 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){ 15768 return little_endian_read_16(event, 9); 15769 } 15770 /** 15771 * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15772 * @param event packet 15773 * @return test_id 15774 * @note: btstack_type 1 15775 */ 15776 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){ 15777 return event[11]; 15778 } 15779 /** 15780 * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 15781 * @param event packet 15782 * @return acknowledged 15783 * @note: btstack_type 1 15784 */ 15785 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){ 15786 return event[12]; 15787 } 15788 15789 /** 15790 * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED 15791 * @param event packet 15792 * @return element_index 15793 * @note: btstack_type 1 15794 */ 15795 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){ 15796 return event[3]; 15797 } 15798 15799 /** 15800 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 15801 * @param event packet 15802 * @return dest 15803 * @note: btstack_type 2 15804 */ 15805 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){ 15806 return little_endian_read_16(event, 3); 15807 } 15808 /** 15809 * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 15810 * @param event packet 15811 * @return status 15812 * @note: btstack_type 1 15813 */ 15814 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){ 15815 return event[5]; 15816 } 15817 /** 15818 * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 15819 * @param event packet 15820 * @return transition_time_gdtt 15821 * @note: btstack_type 1 15822 */ 15823 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){ 15824 return event[6]; 15825 } 15826 15827 /** 15828 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON 15829 * @param event packet 15830 * @return dest 15831 * @note: btstack_type 2 15832 */ 15833 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){ 15834 return little_endian_read_16(event, 3); 15835 } 15836 /** 15837 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON 15838 * @param event packet 15839 * @return foundation_status 15840 * @note: btstack_type 1 15841 */ 15842 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){ 15843 return event[5]; 15844 } 15845 /** 15846 * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON 15847 * @param event packet 15848 * @return secure_network_beacon_state 15849 * @note: btstack_type 1 15850 */ 15851 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){ 15852 return event[6]; 15853 } 15854 15855 /** 15856 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 15857 * @param event packet 15858 * @return dest 15859 * @note: btstack_type 2 15860 */ 15861 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){ 15862 return little_endian_read_16(event, 3); 15863 } 15864 /** 15865 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 15866 * @param event packet 15867 * @return foundation_status 15868 * @note: btstack_type 1 15869 */ 15870 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){ 15871 return event[5]; 15872 } 15873 /** 15874 * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 15875 * @param event packet 15876 * @return default_ttl 15877 * @note: btstack_type 1 15878 */ 15879 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){ 15880 return event[6]; 15881 } 15882 15883 /** 15884 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 15885 * @param event packet 15886 * @return dest 15887 * @note: btstack_type 2 15888 */ 15889 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){ 15890 return little_endian_read_16(event, 3); 15891 } 15892 /** 15893 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 15894 * @param event packet 15895 * @return foundation_status 15896 * @note: btstack_type 1 15897 */ 15898 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){ 15899 return event[5]; 15900 } 15901 /** 15902 * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 15903 * @param event packet 15904 * @return gatt_proxy_state 15905 * @note: btstack_type 1 15906 */ 15907 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){ 15908 return event[6]; 15909 } 15910 15911 /** 15912 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY 15913 * @param event packet 15914 * @return dest 15915 * @note: btstack_type 2 15916 */ 15917 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){ 15918 return little_endian_read_16(event, 3); 15919 } 15920 /** 15921 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY 15922 * @param event packet 15923 * @return foundation_status 15924 * @note: btstack_type 1 15925 */ 15926 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){ 15927 return event[5]; 15928 } 15929 /** 15930 * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY 15931 * @param event packet 15932 * @return relay 15933 * @note: btstack_type 1 15934 */ 15935 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){ 15936 return event[6]; 15937 } 15938 /** 15939 * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY 15940 * @param event packet 15941 * @return retransmit_count 15942 * @note: btstack_type 1 15943 */ 15944 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){ 15945 return event[7]; 15946 } 15947 /** 15948 * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY 15949 * @param event packet 15950 * @return retransmit_interval_ms 15951 * @note: btstack_type 1 15952 */ 15953 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){ 15954 return event[8]; 15955 } 15956 15957 /** 15958 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15959 * @param event packet 15960 * @return dest 15961 * @note: btstack_type 2 15962 */ 15963 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){ 15964 return little_endian_read_16(event, 3); 15965 } 15966 /** 15967 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15968 * @param event packet 15969 * @return foundation_status 15970 * @note: btstack_type 1 15971 */ 15972 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){ 15973 return event[5]; 15974 } 15975 /** 15976 * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15977 * @param event packet 15978 * @return publish_address 15979 * @note: btstack_type 2 15980 */ 15981 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){ 15982 return little_endian_read_16(event, 6); 15983 } 15984 /** 15985 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15986 * @param event packet 15987 * @return appkey_index 15988 * @note: btstack_type 2 15989 */ 15990 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){ 15991 return little_endian_read_16(event, 8); 15992 } 15993 /** 15994 * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 15995 * @param event packet 15996 * @return credential_flag 15997 * @note: btstack_type 1 15998 */ 15999 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){ 16000 return event[10]; 16001 } 16002 /** 16003 * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 16004 * @param event packet 16005 * @return publish_ttl 16006 * @note: btstack_type 1 16007 */ 16008 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){ 16009 return event[11]; 16010 } 16011 /** 16012 * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 16013 * @param event packet 16014 * @return publish_period 16015 * @note: btstack_type 1 16016 */ 16017 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){ 16018 return event[12]; 16019 } 16020 /** 16021 * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 16022 * @param event packet 16023 * @return publish_retransmit_count 16024 * @note: btstack_type 1 16025 */ 16026 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){ 16027 return event[13]; 16028 } 16029 /** 16030 * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 16031 * @param event packet 16032 * @return publish_retransmit_interval_steps 16033 * @note: btstack_type 1 16034 */ 16035 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){ 16036 return event[14]; 16037 } 16038 /** 16039 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 16040 * @param event packet 16041 * @return model_identifier 16042 * @note: btstack_type 4 16043 */ 16044 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){ 16045 return little_endian_read_32(event, 15); 16046 } 16047 16048 /** 16049 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 16050 * @param event packet 16051 * @return dest 16052 * @note: btstack_type 2 16053 */ 16054 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){ 16055 return little_endian_read_16(event, 3); 16056 } 16057 /** 16058 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 16059 * @param event packet 16060 * @return foundation_status 16061 * @note: btstack_type 1 16062 */ 16063 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){ 16064 return event[5]; 16065 } 16066 /** 16067 * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 16068 * @param event packet 16069 * @return address 16070 * @note: btstack_type 2 16071 */ 16072 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){ 16073 return little_endian_read_16(event, 6); 16074 } 16075 /** 16076 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 16077 * @param event packet 16078 * @return model_identifier 16079 * @note: btstack_type 4 16080 */ 16081 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){ 16082 return little_endian_read_32(event, 8); 16083 } 16084 16085 /** 16086 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 16087 * @param event packet 16088 * @return dest 16089 * @note: btstack_type 2 16090 */ 16091 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){ 16092 return little_endian_read_16(event, 3); 16093 } 16094 /** 16095 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 16096 * @param event packet 16097 * @return foundation_status 16098 * @note: btstack_type 1 16099 */ 16100 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){ 16101 return event[5]; 16102 } 16103 /** 16104 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 16105 * @param event packet 16106 * @return model_identifier 16107 * @note: btstack_type 4 16108 */ 16109 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){ 16110 return little_endian_read_32(event, 6); 16111 } 16112 /** 16113 * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 16114 * @param event packet 16115 * @return num_subscription_addresses 16116 * @note: btstack_type 1 16117 */ 16118 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){ 16119 return event[10]; 16120 } 16121 /** 16122 * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 16123 * @param event packet 16124 * @return subscription_address_pos 16125 * @note: btstack_type 1 16126 */ 16127 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){ 16128 return event[11]; 16129 } 16130 /** 16131 * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 16132 * @param event packet 16133 * @return subscription_address_item 16134 * @note: btstack_type 2 16135 */ 16136 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){ 16137 return little_endian_read_16(event, 12); 16138 } 16139 16140 /** 16141 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 16142 * @param event packet 16143 * @return dest 16144 * @note: btstack_type 2 16145 */ 16146 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){ 16147 return little_endian_read_16(event, 3); 16148 } 16149 /** 16150 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 16151 * @param event packet 16152 * @return foundation_status 16153 * @note: btstack_type 1 16154 */ 16155 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){ 16156 return event[5]; 16157 } 16158 16159 /** 16160 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 16161 * @param event packet 16162 * @return dest 16163 * @note: btstack_type 2 16164 */ 16165 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){ 16166 return little_endian_read_16(event, 3); 16167 } 16168 /** 16169 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 16170 * @param event packet 16171 * @return foundation_status 16172 * @note: btstack_type 1 16173 */ 16174 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){ 16175 return event[5]; 16176 } 16177 /** 16178 * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 16179 * @param event packet 16180 * @return num_netkey_indexes 16181 * @note: btstack_type 1 16182 */ 16183 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){ 16184 return event[6]; 16185 } 16186 /** 16187 * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 16188 * @param event packet 16189 * @return netkey_index_pos 16190 * @note: btstack_type 1 16191 */ 16192 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){ 16193 return event[7]; 16194 } 16195 /** 16196 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 16197 * @param event packet 16198 * @return netkey_index_item 16199 * @note: btstack_type 2 16200 */ 16201 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 16202 return little_endian_read_16(event, 8); 16203 } 16204 16205 /** 16206 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 16207 * @param event packet 16208 * @return dest 16209 * @note: btstack_type 2 16210 */ 16211 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){ 16212 return little_endian_read_16(event, 3); 16213 } 16214 /** 16215 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 16216 * @param event packet 16217 * @return foundation_status 16218 * @note: btstack_type 1 16219 */ 16220 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){ 16221 return event[5]; 16222 } 16223 /** 16224 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 16225 * @param event packet 16226 * @return netkey_index_item 16227 * @note: btstack_type 2 16228 */ 16229 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){ 16230 return little_endian_read_16(event, 6); 16231 } 16232 /** 16233 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 16234 * @param event packet 16235 * @return appkey_index_item 16236 * @note: btstack_type 2 16237 */ 16238 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){ 16239 return little_endian_read_16(event, 8); 16240 } 16241 16242 /** 16243 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16244 * @param event packet 16245 * @return dest 16246 * @note: btstack_type 2 16247 */ 16248 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){ 16249 return little_endian_read_16(event, 3); 16250 } 16251 /** 16252 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16253 * @param event packet 16254 * @return foundation_status 16255 * @note: btstack_type 1 16256 */ 16257 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){ 16258 return event[5]; 16259 } 16260 /** 16261 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16262 * @param event packet 16263 * @return netkey_index 16264 * @note: btstack_type 2 16265 */ 16266 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){ 16267 return little_endian_read_16(event, 6); 16268 } 16269 /** 16270 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16271 * @param event packet 16272 * @return num_appkey_indexes 16273 * @note: btstack_type 1 16274 */ 16275 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){ 16276 return event[8]; 16277 } 16278 /** 16279 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16280 * @param event packet 16281 * @return appkey_index_pos 16282 * @note: btstack_type 1 16283 */ 16284 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){ 16285 return event[9]; 16286 } 16287 /** 16288 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16289 * @param event packet 16290 * @return netkey_index_item 16291 * @note: btstack_type 2 16292 */ 16293 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 16294 return little_endian_read_16(event, 10); 16295 } 16296 /** 16297 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 16298 * @param event packet 16299 * @return appkey_index_item 16300 * @note: btstack_type 2 16301 */ 16302 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){ 16303 return little_endian_read_16(event, 12); 16304 } 16305 16306 /** 16307 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16308 * @param event packet 16309 * @return dest 16310 * @note: btstack_type 2 16311 */ 16312 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){ 16313 return little_endian_read_16(event, 3); 16314 } 16315 /** 16316 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16317 * @param event packet 16318 * @return foundation_status 16319 * @note: btstack_type 1 16320 */ 16321 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){ 16322 return event[5]; 16323 } 16324 /** 16325 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16326 * @param event packet 16327 * @return netkey_index_item 16328 * @note: btstack_type 2 16329 */ 16330 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){ 16331 return little_endian_read_16(event, 6); 16332 } 16333 /** 16334 * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 16335 * @param event packet 16336 * @return identity_status 16337 * @note: btstack_type 1 16338 */ 16339 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){ 16340 return event[8]; 16341 } 16342 16343 /** 16344 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16345 * @param event packet 16346 * @return dest 16347 * @note: btstack_type 2 16348 */ 16349 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){ 16350 return little_endian_read_16(event, 3); 16351 } 16352 /** 16353 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16354 * @param event packet 16355 * @return foundation_status 16356 * @note: btstack_type 1 16357 */ 16358 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){ 16359 return event[5]; 16360 } 16361 /** 16362 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16363 * @param event packet 16364 * @return appkey_index 16365 * @note: btstack_type 2 16366 */ 16367 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){ 16368 return little_endian_read_16(event, 6); 16369 } 16370 /** 16371 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 16372 * @param event packet 16373 * @return model_identifier 16374 * @note: btstack_type 4 16375 */ 16376 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){ 16377 return little_endian_read_32(event, 8); 16378 } 16379 16380 /** 16381 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16382 * @param event packet 16383 * @return dest 16384 * @note: btstack_type 2 16385 */ 16386 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){ 16387 return little_endian_read_16(event, 3); 16388 } 16389 /** 16390 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16391 * @param event packet 16392 * @return foundation_status 16393 * @note: btstack_type 1 16394 */ 16395 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){ 16396 return event[5]; 16397 } 16398 /** 16399 * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16400 * @param event packet 16401 * @return model_id 16402 * @note: btstack_type 4 16403 */ 16404 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){ 16405 return little_endian_read_32(event, 6); 16406 } 16407 /** 16408 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16409 * @param event packet 16410 * @return num_appkey_indexes 16411 * @note: btstack_type 1 16412 */ 16413 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){ 16414 return event[10]; 16415 } 16416 /** 16417 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16418 * @param event packet 16419 * @return appkey_index_pos 16420 * @note: btstack_type 1 16421 */ 16422 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){ 16423 return event[11]; 16424 } 16425 /** 16426 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 16427 * @param event packet 16428 * @return appkey_index_item 16429 * @note: btstack_type 2 16430 */ 16431 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){ 16432 return little_endian_read_16(event, 12); 16433 } 16434 16435 /** 16436 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 16437 * @param event packet 16438 * @return dest 16439 * @note: btstack_type 2 16440 */ 16441 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){ 16442 return little_endian_read_16(event, 3); 16443 } 16444 /** 16445 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 16446 * @param event packet 16447 * @return foundation_status 16448 * @note: btstack_type 1 16449 */ 16450 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){ 16451 return event[5]; 16452 } 16453 16454 /** 16455 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND 16456 * @param event packet 16457 * @return dest 16458 * @note: btstack_type 2 16459 */ 16460 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){ 16461 return little_endian_read_16(event, 3); 16462 } 16463 /** 16464 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND 16465 * @param event packet 16466 * @return foundation_status 16467 * @note: btstack_type 1 16468 */ 16469 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){ 16470 return event[5]; 16471 } 16472 /** 16473 * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND 16474 * @param event packet 16475 * @return friend_state 16476 * @note: btstack_type 1 16477 */ 16478 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){ 16479 return event[6]; 16480 } 16481 16482 /** 16483 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16484 * @param event packet 16485 * @return dest 16486 * @note: btstack_type 2 16487 */ 16488 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){ 16489 return little_endian_read_16(event, 3); 16490 } 16491 /** 16492 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16493 * @param event packet 16494 * @return foundation_status 16495 * @note: btstack_type 1 16496 */ 16497 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){ 16498 return event[5]; 16499 } 16500 /** 16501 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16502 * @param event packet 16503 * @return netkey_index 16504 * @note: btstack_type 2 16505 */ 16506 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){ 16507 return little_endian_read_16(event, 6); 16508 } 16509 /** 16510 * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 16511 * @param event packet 16512 * @return phase 16513 * @note: btstack_type 1 16514 */ 16515 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){ 16516 return event[8]; 16517 } 16518 16519 /** 16520 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16521 * @param event packet 16522 * @return dest 16523 * @note: btstack_type 2 16524 */ 16525 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){ 16526 return little_endian_read_16(event, 3); 16527 } 16528 /** 16529 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16530 * @param event packet 16531 * @return foundation_status 16532 * @note: btstack_type 1 16533 */ 16534 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){ 16535 return event[5]; 16536 } 16537 /** 16538 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16539 * @param event packet 16540 * @return heartbeat_destination 16541 * @note: btstack_type 2 16542 */ 16543 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){ 16544 return little_endian_read_16(event, 6); 16545 } 16546 /** 16547 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16548 * @param event packet 16549 * @return count_S 16550 * @note: btstack_type 2 16551 */ 16552 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){ 16553 return little_endian_read_16(event, 8); 16554 } 16555 /** 16556 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16557 * @param event packet 16558 * @return period_S 16559 * @note: btstack_type 2 16560 */ 16561 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){ 16562 return little_endian_read_16(event, 10); 16563 } 16564 /** 16565 * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16566 * @param event packet 16567 * @return ttl 16568 * @note: btstack_type 1 16569 */ 16570 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){ 16571 return event[12]; 16572 } 16573 /** 16574 * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16575 * @param event packet 16576 * @return features 16577 * @note: btstack_type 2 16578 */ 16579 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){ 16580 return little_endian_read_16(event, 13); 16581 } 16582 /** 16583 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 16584 * @param event packet 16585 * @return netkey_index 16586 * @note: btstack_type 2 16587 */ 16588 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){ 16589 return little_endian_read_16(event, 15); 16590 } 16591 16592 /** 16593 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16594 * @param event packet 16595 * @return dest 16596 * @note: btstack_type 2 16597 */ 16598 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){ 16599 return little_endian_read_16(event, 3); 16600 } 16601 /** 16602 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16603 * @param event packet 16604 * @return foundation_status 16605 * @note: btstack_type 1 16606 */ 16607 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){ 16608 return event[5]; 16609 } 16610 /** 16611 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16612 * @param event packet 16613 * @return heartbeat_destination 16614 * @note: btstack_type 2 16615 */ 16616 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){ 16617 return little_endian_read_16(event, 6); 16618 } 16619 /** 16620 * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16621 * @param event packet 16622 * @return heartbeat_source 16623 * @note: btstack_type 2 16624 */ 16625 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){ 16626 return little_endian_read_16(event, 8); 16627 } 16628 /** 16629 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16630 * @param event packet 16631 * @return count_S 16632 * @note: btstack_type 2 16633 */ 16634 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){ 16635 return little_endian_read_16(event, 10); 16636 } 16637 /** 16638 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16639 * @param event packet 16640 * @return period_S 16641 * @note: btstack_type 2 16642 */ 16643 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){ 16644 return little_endian_read_16(event, 12); 16645 } 16646 /** 16647 * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16648 * @param event packet 16649 * @return min_hops 16650 * @note: btstack_type 1 16651 */ 16652 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){ 16653 return event[14]; 16654 } 16655 /** 16656 * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 16657 * @param event packet 16658 * @return max_hops 16659 * @note: btstack_type 1 16660 */ 16661 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){ 16662 return event[15]; 16663 } 16664 16665 /** 16666 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16667 * @param event packet 16668 * @return dest 16669 * @note: btstack_type 2 16670 */ 16671 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){ 16672 return little_endian_read_16(event, 3); 16673 } 16674 /** 16675 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16676 * @param event packet 16677 * @return foundation_status 16678 * @note: btstack_type 1 16679 */ 16680 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){ 16681 return event[5]; 16682 } 16683 /** 16684 * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16685 * @param event packet 16686 * @return lpn_address 16687 * @note: btstack_type 2 16688 */ 16689 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){ 16690 return little_endian_read_16(event, 6); 16691 } 16692 /** 16693 * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 16694 * @param event packet 16695 * @return poll_timeout 16696 * @note: btstack_type 3 16697 */ 16698 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){ 16699 return little_endian_read_24(event, 8); 16700 } 16701 16702 /** 16703 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16704 * @param event packet 16705 * @return dest 16706 * @note: btstack_type 2 16707 */ 16708 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){ 16709 return little_endian_read_16(event, 3); 16710 } 16711 /** 16712 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16713 * @param event packet 16714 * @return foundation_status 16715 * @note: btstack_type 1 16716 */ 16717 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){ 16718 return event[5]; 16719 } 16720 /** 16721 * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16722 * @param event packet 16723 * @return transmit_count 16724 * @note: btstack_type 1 16725 */ 16726 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){ 16727 return event[6]; 16728 } 16729 /** 16730 * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 16731 * @param event packet 16732 * @return transmit_interval_steps_ms 16733 * @note: btstack_type 2 16734 */ 16735 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){ 16736 return little_endian_read_16(event, 7); 16737 } 16738 16739 16740 16741 /* API_END */ 16742 16743 #if defined __cplusplus 16744 } 16745 #endif 16746 16747 #endif // BTSTACK_EVENT_H 16748