1 /* 2 * Copyright (C) 2016 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. Neither the name of the copyright holders nor the names of 14 * contributors may be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * 4. Any redistribution, use, or modification is done solely for 17 * personal benefit and not for any commercial purpose or for 18 * monetary gain. 19 * 20 * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24 * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * Please inquire about commercial licensing options at 34 * [email protected] 35 * 36 */ 37 38 39 /** 40 * HCI Event Getter 41 * 42 * Note: Don't edit this file. It is generated by tool/btstack_event_generator.py 43 * 44 */ 45 46 #ifndef BTSTACK_EVENT_H 47 #define BTSTACK_EVENT_H 48 49 #if defined __cplusplus 50 extern "C" { 51 #endif 52 53 #include "btstack_util.h" 54 #include <stdint.h> 55 56 #ifdef ENABLE_BLE 57 #include "ble/gatt_client.h" 58 #endif 59 60 /* API_START */ 61 62 /** 63 * @brief Get event type 64 * @param event 65 * @return type of event 66 */ 67 static inline uint8_t hci_event_packet_get_type(const uint8_t * event){ 68 return event[0]; 69 } 70 71 /*** 72 * @brief Get subevent code for a2dp event 73 * @param event packet 74 * @return subevent_code 75 */ 76 static inline uint8_t hci_event_a2dp_meta_get_subevent_code(const uint8_t * event){ 77 return event[2]; 78 } 79 /*** 80 * @brief Get subevent code for ancs event 81 * @param event packet 82 * @return subevent_code 83 */ 84 static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){ 85 return event[2]; 86 } 87 /*** 88 * @brief Get subevent code for avdtp event 89 * @param event packet 90 * @return subevent_code 91 */ 92 static inline uint8_t hci_event_avdtp_meta_get_subevent_code(const uint8_t * event){ 93 return event[2]; 94 } 95 /*** 96 * @brief Get subevent code for avrcp event 97 * @param event packet 98 * @return subevent_code 99 */ 100 static inline uint8_t hci_event_avrcp_meta_get_subevent_code(const uint8_t * event){ 101 return event[2]; 102 } 103 /*** 104 * @brief Get subevent code for gattservice event 105 * @param event packet 106 * @return subevent_code 107 */ 108 static inline uint8_t hci_event_gattservice_meta_get_subevent_code(const uint8_t * event){ 109 return event[2]; 110 } 111 /*** 112 * @brief Get subevent code for goep event 113 * @param event packet 114 * @return subevent_code 115 */ 116 static inline uint8_t hci_event_goep_meta_get_subevent_code(const uint8_t * event){ 117 return event[2]; 118 } 119 /*** 120 * @brief Get subevent code for hfp event 121 * @param event packet 122 * @return subevent_code 123 */ 124 static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event){ 125 return event[2]; 126 } 127 /*** 128 * @brief Get subevent code for hid event 129 * @param event packet 130 * @return subevent_code 131 */ 132 static inline uint8_t hci_event_hid_meta_get_subevent_code(const uint8_t * event){ 133 return event[2]; 134 } 135 /*** 136 * @brief Get subevent code for hids event 137 * @param event packet 138 * @return subevent_code 139 */ 140 static inline uint8_t hci_event_hids_meta_get_subevent_code(const uint8_t * event){ 141 return event[2]; 142 } 143 /*** 144 * @brief Get subevent code for hsp event 145 * @param event packet 146 * @return subevent_code 147 */ 148 static inline uint8_t hci_event_hsp_meta_get_subevent_code(const uint8_t * event){ 149 return event[2]; 150 } 151 /*** 152 * @brief Get subevent code for le event 153 * @param event packet 154 * @return subevent_code 155 */ 156 static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){ 157 return event[2]; 158 } 159 /*** 160 * @brief Get subevent code for map event 161 * @param event packet 162 * @return subevent_code 163 */ 164 static inline uint8_t hci_event_map_meta_get_subevent_code(const uint8_t * event){ 165 return event[2]; 166 } 167 /*** 168 * @brief Get subevent code for mesh event 169 * @param event packet 170 * @return subevent_code 171 */ 172 static inline uint8_t hci_event_mesh_meta_get_subevent_code(const uint8_t * event){ 173 return event[2]; 174 } 175 /*** 176 * @brief Get subevent code for pbap event 177 * @param event packet 178 * @return subevent_code 179 */ 180 static inline uint8_t hci_event_pbap_meta_get_subevent_code(const uint8_t * event){ 181 return event[2]; 182 } 183 /** 184 * @brief Get field status from event HCI_EVENT_INQUIRY_COMPLETE 185 * @param event packet 186 * @return status 187 * @note: btstack_type 1 188 */ 189 static inline uint8_t hci_event_inquiry_complete_get_status(const uint8_t * event){ 190 return event[2]; 191 } 192 193 /** 194 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT 195 * @param event packet 196 * @return num_responses 197 * @note: btstack_type 1 198 */ 199 static inline uint8_t hci_event_inquiry_result_get_num_responses(const uint8_t * event){ 200 return event[2]; 201 } 202 /** 203 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT 204 * @param event packet 205 * @param Pointer to storage for bd_addr 206 * @note: btstack_type B 207 */ 208 static inline void hci_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 209 reverse_bytes(&event[3], bd_addr, 6); 210 } 211 /** 212 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT 213 * @param event packet 214 * @return page_scan_repetition_mode 215 * @note: btstack_type 1 216 */ 217 static inline uint8_t hci_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 218 return event[9]; 219 } 220 /** 221 * @brief Get field reserved1 from event HCI_EVENT_INQUIRY_RESULT 222 * @param event packet 223 * @return reserved1 224 * @note: btstack_type 1 225 */ 226 static inline uint8_t hci_event_inquiry_result_get_reserved1(const uint8_t * event){ 227 return event[10]; 228 } 229 /** 230 * @brief Get field reserved2 from event HCI_EVENT_INQUIRY_RESULT 231 * @param event packet 232 * @return reserved2 233 * @note: btstack_type 1 234 */ 235 static inline uint8_t hci_event_inquiry_result_get_reserved2(const uint8_t * event){ 236 return event[11]; 237 } 238 /** 239 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT 240 * @param event packet 241 * @return class_of_device 242 * @note: btstack_type 3 243 */ 244 static inline uint32_t hci_event_inquiry_result_get_class_of_device(const uint8_t * event){ 245 return little_endian_read_24(event, 12); 246 } 247 /** 248 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT 249 * @param event packet 250 * @return clock_offset 251 * @note: btstack_type 2 252 */ 253 static inline uint16_t hci_event_inquiry_result_get_clock_offset(const uint8_t * event){ 254 return little_endian_read_16(event, 15); 255 } 256 257 /** 258 * @brief Get field status from event HCI_EVENT_CONNECTION_COMPLETE 259 * @param event packet 260 * @return status 261 * @note: btstack_type 1 262 */ 263 static inline uint8_t hci_event_connection_complete_get_status(const uint8_t * event){ 264 return event[2]; 265 } 266 /** 267 * @brief Get field connection_handle from event HCI_EVENT_CONNECTION_COMPLETE 268 * @param event packet 269 * @return connection_handle 270 * @note: btstack_type 2 271 */ 272 static inline uint16_t hci_event_connection_complete_get_connection_handle(const uint8_t * event){ 273 return little_endian_read_16(event, 3); 274 } 275 /** 276 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_COMPLETE 277 * @param event packet 278 * @param Pointer to storage for bd_addr 279 * @note: btstack_type B 280 */ 281 static inline void hci_event_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 282 reverse_bytes(&event[5], bd_addr, 6); 283 } 284 /** 285 * @brief Get field link_type from event HCI_EVENT_CONNECTION_COMPLETE 286 * @param event packet 287 * @return link_type 288 * @note: btstack_type 1 289 */ 290 static inline uint8_t hci_event_connection_complete_get_link_type(const uint8_t * event){ 291 return event[11]; 292 } 293 /** 294 * @brief Get field encryption_enabled from event HCI_EVENT_CONNECTION_COMPLETE 295 * @param event packet 296 * @return encryption_enabled 297 * @note: btstack_type 1 298 */ 299 static inline uint8_t hci_event_connection_complete_get_encryption_enabled(const uint8_t * event){ 300 return event[12]; 301 } 302 303 /** 304 * @brief Get field bd_addr from event HCI_EVENT_CONNECTION_REQUEST 305 * @param event packet 306 * @param Pointer to storage for bd_addr 307 * @note: btstack_type B 308 */ 309 static inline void hci_event_connection_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 310 reverse_bytes(&event[2], bd_addr, 6); 311 } 312 /** 313 * @brief Get field class_of_device from event HCI_EVENT_CONNECTION_REQUEST 314 * @param event packet 315 * @return class_of_device 316 * @note: btstack_type 3 317 */ 318 static inline uint32_t hci_event_connection_request_get_class_of_device(const uint8_t * event){ 319 return little_endian_read_24(event, 8); 320 } 321 /** 322 * @brief Get field link_type from event HCI_EVENT_CONNECTION_REQUEST 323 * @param event packet 324 * @return link_type 325 * @note: btstack_type 1 326 */ 327 static inline uint8_t hci_event_connection_request_get_link_type(const uint8_t * event){ 328 return event[11]; 329 } 330 331 /** 332 * @brief Get field status from event HCI_EVENT_DISCONNECTION_COMPLETE 333 * @param event packet 334 * @return status 335 * @note: btstack_type 1 336 */ 337 static inline uint8_t hci_event_disconnection_complete_get_status(const uint8_t * event){ 338 return event[2]; 339 } 340 /** 341 * @brief Get field connection_handle from event HCI_EVENT_DISCONNECTION_COMPLETE 342 * @param event packet 343 * @return connection_handle 344 * @note: btstack_type 2 345 */ 346 static inline uint16_t hci_event_disconnection_complete_get_connection_handle(const uint8_t * event){ 347 return little_endian_read_16(event, 3); 348 } 349 /** 350 * @brief Get field reason from event HCI_EVENT_DISCONNECTION_COMPLETE 351 * @param event packet 352 * @return reason 353 * @note: btstack_type 1 354 */ 355 static inline uint8_t hci_event_disconnection_complete_get_reason(const uint8_t * event){ 356 return event[5]; 357 } 358 359 /** 360 * @brief Get field status from event HCI_EVENT_AUTHENTICATION_COMPLETE 361 * @param event packet 362 * @return status 363 * @note: btstack_type 1 364 */ 365 static inline uint8_t hci_event_authentication_complete_get_status(const uint8_t * event){ 366 return event[2]; 367 } 368 /** 369 * @brief Get field connection_handle from event HCI_EVENT_AUTHENTICATION_COMPLETE 370 * @param event packet 371 * @return connection_handle 372 * @note: btstack_type 2 373 */ 374 static inline uint16_t hci_event_authentication_complete_get_connection_handle(const uint8_t * event){ 375 return little_endian_read_16(event, 3); 376 } 377 378 /** 379 * @brief Get field status from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 380 * @param event packet 381 * @return status 382 * @note: btstack_type 1 383 */ 384 static inline uint8_t hci_event_remote_name_request_complete_get_status(const uint8_t * event){ 385 return event[2]; 386 } 387 /** 388 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 389 * @param event packet 390 * @param Pointer to storage for bd_addr 391 * @note: btstack_type B 392 */ 393 static inline void hci_event_remote_name_request_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 394 reverse_bytes(&event[3], bd_addr, 6); 395 } 396 /** 397 * @brief Get field remote_name from event HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 398 * @param event packet 399 * @return remote_name 400 * @note: btstack_type N 401 */ 402 static inline const char * hci_event_remote_name_request_complete_get_remote_name(const uint8_t * event){ 403 return (const char *) &event[9]; 404 } 405 406 /** 407 * @brief Get field status from event HCI_EVENT_ENCRYPTION_CHANGE 408 * @param event packet 409 * @return status 410 * @note: btstack_type 1 411 */ 412 static inline uint8_t hci_event_encryption_change_get_status(const uint8_t * event){ 413 return event[2]; 414 } 415 /** 416 * @brief Get field connection_handle from event HCI_EVENT_ENCRYPTION_CHANGE 417 * @param event packet 418 * @return connection_handle 419 * @note: btstack_type 2 420 */ 421 static inline uint16_t hci_event_encryption_change_get_connection_handle(const uint8_t * event){ 422 return little_endian_read_16(event, 3); 423 } 424 /** 425 * @brief Get field encryption_enabled from event HCI_EVENT_ENCRYPTION_CHANGE 426 * @param event packet 427 * @return encryption_enabled 428 * @note: btstack_type 1 429 */ 430 static inline uint8_t hci_event_encryption_change_get_encryption_enabled(const uint8_t * event){ 431 return event[5]; 432 } 433 434 /** 435 * @brief Get field status from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 436 * @param event packet 437 * @return status 438 * @note: btstack_type 1 439 */ 440 static inline uint8_t hci_event_change_connection_link_key_complete_get_status(const uint8_t * event){ 441 return event[2]; 442 } 443 /** 444 * @brief Get field connection_handle from event HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE 445 * @param event packet 446 * @return connection_handle 447 * @note: btstack_type 2 448 */ 449 static inline uint16_t hci_event_change_connection_link_key_complete_get_connection_handle(const uint8_t * event){ 450 return little_endian_read_16(event, 3); 451 } 452 453 /** 454 * @brief Get field status from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 455 * @param event packet 456 * @return status 457 * @note: btstack_type 1 458 */ 459 static inline uint8_t hci_event_master_link_key_complete_get_status(const uint8_t * event){ 460 return event[2]; 461 } 462 /** 463 * @brief Get field connection_handle from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 464 * @param event packet 465 * @return connection_handle 466 * @note: btstack_type 2 467 */ 468 static inline uint16_t hci_event_master_link_key_complete_get_connection_handle(const uint8_t * event){ 469 return little_endian_read_16(event, 3); 470 } 471 /** 472 * @brief Get field key_flag from event HCI_EVENT_MASTER_LINK_KEY_COMPLETE 473 * @param event packet 474 * @return key_flag 475 * @note: btstack_type 1 476 */ 477 static inline uint8_t hci_event_master_link_key_complete_get_key_flag(const uint8_t * event){ 478 return event[5]; 479 } 480 481 /** 482 * @brief Get field status from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 483 * @param event packet 484 * @return status 485 * @note: btstack_type 1 486 */ 487 static inline uint8_t hci_event_read_remote_version_information_complete_get_status(const uint8_t * event){ 488 return event[2]; 489 } 490 /** 491 * @brief Get field connection_handle from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 492 * @param event packet 493 * @return connection_handle 494 * @note: btstack_type 2 495 */ 496 static inline uint16_t hci_event_read_remote_version_information_complete_get_connection_handle(const uint8_t * event){ 497 return little_endian_read_16(event, 3); 498 } 499 /** 500 * @brief Get field version from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 501 * @param event packet 502 * @return version 503 * @note: btstack_type 1 504 */ 505 static inline uint8_t hci_event_read_remote_version_information_complete_get_version(const uint8_t * event){ 506 return event[5]; 507 } 508 /** 509 * @brief Get field manufacturer_name from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 510 * @param event packet 511 * @return manufacturer_name 512 * @note: btstack_type 2 513 */ 514 static inline uint16_t hci_event_read_remote_version_information_complete_get_manufacturer_name(const uint8_t * event){ 515 return little_endian_read_16(event, 6); 516 } 517 /** 518 * @brief Get field subversion from event HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE 519 * @param event packet 520 * @return subversion 521 * @note: btstack_type 2 522 */ 523 static inline uint16_t hci_event_read_remote_version_information_complete_get_subversion(const uint8_t * event){ 524 return little_endian_read_16(event, 8); 525 } 526 527 /** 528 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_COMPLETE 529 * @param event packet 530 * @return num_hci_command_packets 531 * @note: btstack_type 1 532 */ 533 static inline uint8_t hci_event_command_complete_get_num_hci_command_packets(const uint8_t * event){ 534 return event[2]; 535 } 536 /** 537 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_COMPLETE 538 * @param event packet 539 * @return command_opcode 540 * @note: btstack_type 2 541 */ 542 static inline uint16_t hci_event_command_complete_get_command_opcode(const uint8_t * event){ 543 return little_endian_read_16(event, 3); 544 } 545 /** 546 * @brief Get field return_parameters from event HCI_EVENT_COMMAND_COMPLETE 547 * @param event packet 548 * @return return_parameters 549 * @note: btstack_type R 550 */ 551 static inline const uint8_t * hci_event_command_complete_get_return_parameters(const uint8_t * event){ 552 return &event[5]; 553 } 554 555 /** 556 * @brief Get field status from event HCI_EVENT_COMMAND_STATUS 557 * @param event packet 558 * @return status 559 * @note: btstack_type 1 560 */ 561 static inline uint8_t hci_event_command_status_get_status(const uint8_t * event){ 562 return event[2]; 563 } 564 /** 565 * @brief Get field num_hci_command_packets from event HCI_EVENT_COMMAND_STATUS 566 * @param event packet 567 * @return num_hci_command_packets 568 * @note: btstack_type 1 569 */ 570 static inline uint8_t hci_event_command_status_get_num_hci_command_packets(const uint8_t * event){ 571 return event[3]; 572 } 573 /** 574 * @brief Get field command_opcode from event HCI_EVENT_COMMAND_STATUS 575 * @param event packet 576 * @return command_opcode 577 * @note: btstack_type 2 578 */ 579 static inline uint16_t hci_event_command_status_get_command_opcode(const uint8_t * event){ 580 return little_endian_read_16(event, 4); 581 } 582 583 /** 584 * @brief Get field hardware_code from event HCI_EVENT_HARDWARE_ERROR 585 * @param event packet 586 * @return hardware_code 587 * @note: btstack_type 1 588 */ 589 static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t * event){ 590 return event[2]; 591 } 592 593 /** 594 * @brief Get field status from event HCI_EVENT_ROLE_CHANGE 595 * @param event packet 596 * @return status 597 * @note: btstack_type 1 598 */ 599 static inline uint8_t hci_event_role_change_get_status(const uint8_t * event){ 600 return event[2]; 601 } 602 /** 603 * @brief Get field bd_addr from event HCI_EVENT_ROLE_CHANGE 604 * @param event packet 605 * @param Pointer to storage for bd_addr 606 * @note: btstack_type B 607 */ 608 static inline void hci_event_role_change_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 609 reverse_bytes(&event[3], bd_addr, 6); 610 } 611 /** 612 * @brief Get field role from event HCI_EVENT_ROLE_CHANGE 613 * @param event packet 614 * @return role 615 * @note: btstack_type 1 616 */ 617 static inline uint8_t hci_event_role_change_get_role(const uint8_t * event){ 618 return event[9]; 619 } 620 621 /** 622 * @brief Get field status from event HCI_EVENT_MODE_CHANGE 623 * @param event packet 624 * @return status 625 * @note: btstack_type 1 626 */ 627 static inline uint8_t hci_event_mode_change_get_status(const uint8_t * event){ 628 return event[2]; 629 } 630 /** 631 * @brief Get field handle from event HCI_EVENT_MODE_CHANGE 632 * @param event packet 633 * @return handle 634 * @note: btstack_type H 635 */ 636 static inline hci_con_handle_t hci_event_mode_change_get_handle(const uint8_t * event){ 637 return little_endian_read_16(event, 3); 638 } 639 /** 640 * @brief Get field mode from event HCI_EVENT_MODE_CHANGE 641 * @param event packet 642 * @return mode 643 * @note: btstack_type 1 644 */ 645 static inline uint8_t hci_event_mode_change_get_mode(const uint8_t * event){ 646 return event[5]; 647 } 648 /** 649 * @brief Get field interval from event HCI_EVENT_MODE_CHANGE 650 * @param event packet 651 * @return interval 652 * @note: btstack_type 2 653 */ 654 static inline uint16_t hci_event_mode_change_get_interval(const uint8_t * event){ 655 return little_endian_read_16(event, 6); 656 } 657 658 /** 659 * @brief Get field bd_addr from event HCI_EVENT_PIN_CODE_REQUEST 660 * @param event packet 661 * @param Pointer to storage for bd_addr 662 * @note: btstack_type B 663 */ 664 static inline void hci_event_pin_code_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 665 reverse_bytes(&event[2], bd_addr, 6); 666 } 667 668 /** 669 * @brief Get field bd_addr from event HCI_EVENT_LINK_KEY_REQUEST 670 * @param event packet 671 * @param Pointer to storage for bd_addr 672 * @note: btstack_type B 673 */ 674 static inline void hci_event_link_key_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 675 reverse_bytes(&event[2], bd_addr, 6); 676 } 677 678 /** 679 * @brief Get field link_type from event HCI_EVENT_DATA_BUFFER_OVERFLOW 680 * @param event packet 681 * @return link_type 682 * @note: btstack_type 1 683 */ 684 static inline uint8_t hci_event_data_buffer_overflow_get_link_type(const uint8_t * event){ 685 return event[2]; 686 } 687 688 /** 689 * @brief Get field handle from event HCI_EVENT_MAX_SLOTS_CHANGED 690 * @param event packet 691 * @return handle 692 * @note: btstack_type H 693 */ 694 static inline hci_con_handle_t hci_event_max_slots_changed_get_handle(const uint8_t * event){ 695 return little_endian_read_16(event, 2); 696 } 697 /** 698 * @brief Get field lmp_max_slots from event HCI_EVENT_MAX_SLOTS_CHANGED 699 * @param event packet 700 * @return lmp_max_slots 701 * @note: btstack_type 1 702 */ 703 static inline uint8_t hci_event_max_slots_changed_get_lmp_max_slots(const uint8_t * event){ 704 return event[4]; 705 } 706 707 /** 708 * @brief Get field status from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 709 * @param event packet 710 * @return status 711 * @note: btstack_type 1 712 */ 713 static inline uint8_t hci_event_read_clock_offset_complete_get_status(const uint8_t * event){ 714 return event[2]; 715 } 716 /** 717 * @brief Get field handle from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 718 * @param event packet 719 * @return handle 720 * @note: btstack_type H 721 */ 722 static inline hci_con_handle_t hci_event_read_clock_offset_complete_get_handle(const uint8_t * event){ 723 return little_endian_read_16(event, 3); 724 } 725 /** 726 * @brief Get field clock_offset from event HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE 727 * @param event packet 728 * @return clock_offset 729 * @note: btstack_type 2 730 */ 731 static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(const uint8_t * event){ 732 return little_endian_read_16(event, 5); 733 } 734 735 /** 736 * @brief Get field status from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 737 * @param event packet 738 * @return status 739 * @note: btstack_type 1 740 */ 741 static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){ 742 return event[2]; 743 } 744 /** 745 * @brief Get field handle from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 746 * @param event packet 747 * @return handle 748 * @note: btstack_type H 749 */ 750 static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){ 751 return little_endian_read_16(event, 3); 752 } 753 /** 754 * @brief Get field packet_types from event HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 755 * @param event packet 756 * @return packet_types 757 * @note: btstack_type 2 758 */ 759 static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){ 760 return little_endian_read_16(event, 5); 761 } 762 763 /** 764 * @brief Get field num_responses from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 765 * @param event packet 766 * @return num_responses 767 * @note: btstack_type 1 768 */ 769 static inline uint8_t hci_event_inquiry_result_with_rssi_get_num_responses(const uint8_t * event){ 770 return event[2]; 771 } 772 /** 773 * @brief Get field bd_addr from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 774 * @param event packet 775 * @param Pointer to storage for bd_addr 776 * @note: btstack_type B 777 */ 778 static inline void hci_event_inquiry_result_with_rssi_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 779 reverse_bytes(&event[3], bd_addr, 6); 780 } 781 /** 782 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 783 * @param event packet 784 * @return page_scan_repetition_mode 785 * @note: btstack_type 1 786 */ 787 static inline uint8_t hci_event_inquiry_result_with_rssi_get_page_scan_repetition_mode(const uint8_t * event){ 788 return event[9]; 789 } 790 /** 791 * @brief Get field reserved from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 792 * @param event packet 793 * @return reserved 794 * @note: btstack_type 1 795 */ 796 static inline uint8_t hci_event_inquiry_result_with_rssi_get_reserved(const uint8_t * event){ 797 return event[10]; 798 } 799 /** 800 * @brief Get field class_of_device from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 801 * @param event packet 802 * @return class_of_device 803 * @note: btstack_type 3 804 */ 805 static inline uint32_t hci_event_inquiry_result_with_rssi_get_class_of_device(const uint8_t * event){ 806 return little_endian_read_24(event, 11); 807 } 808 /** 809 * @brief Get field clock_offset from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 810 * @param event packet 811 * @return clock_offset 812 * @note: btstack_type 2 813 */ 814 static inline uint16_t hci_event_inquiry_result_with_rssi_get_clock_offset(const uint8_t * event){ 815 return little_endian_read_16(event, 14); 816 } 817 /** 818 * @brief Get field rssi from event HCI_EVENT_INQUIRY_RESULT_WITH_RSSI 819 * @param event packet 820 * @return rssi 821 * @note: btstack_type 1 822 */ 823 static inline uint8_t hci_event_inquiry_result_with_rssi_get_rssi(const uint8_t * event){ 824 return event[16]; 825 } 826 827 /** 828 * @brief Get field status from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 829 * @param event packet 830 * @return status 831 * @note: btstack_type 1 832 */ 833 static inline uint8_t hci_event_synchronous_connection_complete_get_status(const uint8_t * event){ 834 return event[2]; 835 } 836 /** 837 * @brief Get field handle from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 838 * @param event packet 839 * @return handle 840 * @note: btstack_type H 841 */ 842 static inline hci_con_handle_t hci_event_synchronous_connection_complete_get_handle(const uint8_t * event){ 843 return little_endian_read_16(event, 3); 844 } 845 /** 846 * @brief Get field bd_addr from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 847 * @param event packet 848 * @param Pointer to storage for bd_addr 849 * @note: btstack_type B 850 */ 851 static inline void hci_event_synchronous_connection_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 852 reverse_bytes(&event[5], bd_addr, 6); 853 } 854 /** 855 * @brief Get field link_type from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 856 * @param event packet 857 * @return link_type 858 * @note: btstack_type 1 859 */ 860 static inline uint8_t hci_event_synchronous_connection_complete_get_link_type(const uint8_t * event){ 861 return event[11]; 862 } 863 /** 864 * @brief Get field transmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 865 * @param event packet 866 * @return transmission_interval 867 * @note: btstack_type 1 868 */ 869 static inline uint8_t hci_event_synchronous_connection_complete_get_transmission_interval(const uint8_t * event){ 870 return event[12]; 871 } 872 /** 873 * @brief Get field retransmission_interval from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 874 * @param event packet 875 * @return retransmission_interval 876 * @note: btstack_type 1 877 */ 878 static inline uint8_t hci_event_synchronous_connection_complete_get_retransmission_interval(const uint8_t * event){ 879 return event[13]; 880 } 881 /** 882 * @brief Get field rx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 883 * @param event packet 884 * @return rx_packet_length 885 * @note: btstack_type 2 886 */ 887 static inline uint16_t hci_event_synchronous_connection_complete_get_rx_packet_length(const uint8_t * event){ 888 return little_endian_read_16(event, 14); 889 } 890 /** 891 * @brief Get field tx_packet_length from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 892 * @param event packet 893 * @return tx_packet_length 894 * @note: btstack_type 2 895 */ 896 static inline uint16_t hci_event_synchronous_connection_complete_get_tx_packet_length(const uint8_t * event){ 897 return little_endian_read_16(event, 16); 898 } 899 /** 900 * @brief Get field air_mode from event HCI_EVENT_SYNCHRONOUS_CONNECTION_COMPLETE 901 * @param event packet 902 * @return air_mode 903 * @note: btstack_type 1 904 */ 905 static inline uint8_t hci_event_synchronous_connection_complete_get_air_mode(const uint8_t * event){ 906 return event[18]; 907 } 908 909 /** 910 * @brief Get field num_responses from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 911 * @param event packet 912 * @return num_responses 913 * @note: btstack_type 1 914 */ 915 static inline uint8_t hci_event_extended_inquiry_response_get_num_responses(const uint8_t * event){ 916 return event[2]; 917 } 918 /** 919 * @brief Get field bd_addr from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 920 * @param event packet 921 * @param Pointer to storage for bd_addr 922 * @note: btstack_type B 923 */ 924 static inline void hci_event_extended_inquiry_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 925 reverse_bytes(&event[3], bd_addr, 6); 926 } 927 /** 928 * @brief Get field page_scan_repetition_mode from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 929 * @param event packet 930 * @return page_scan_repetition_mode 931 * @note: btstack_type 1 932 */ 933 static inline uint8_t hci_event_extended_inquiry_response_get_page_scan_repetition_mode(const uint8_t * event){ 934 return event[9]; 935 } 936 /** 937 * @brief Get field reserved from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 938 * @param event packet 939 * @return reserved 940 * @note: btstack_type 1 941 */ 942 static inline uint8_t hci_event_extended_inquiry_response_get_reserved(const uint8_t * event){ 943 return event[10]; 944 } 945 /** 946 * @brief Get field class_of_device from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 947 * @param event packet 948 * @return class_of_device 949 * @note: btstack_type 3 950 */ 951 static inline uint32_t hci_event_extended_inquiry_response_get_class_of_device(const uint8_t * event){ 952 return little_endian_read_24(event, 11); 953 } 954 /** 955 * @brief Get field clock_offset from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 956 * @param event packet 957 * @return clock_offset 958 * @note: btstack_type 2 959 */ 960 static inline uint16_t hci_event_extended_inquiry_response_get_clock_offset(const uint8_t * event){ 961 return little_endian_read_16(event, 14); 962 } 963 /** 964 * @brief Get field rssi from event HCI_EVENT_EXTENDED_INQUIRY_RESPONSE 965 * @param event packet 966 * @return rssi 967 * @note: btstack_type 1 968 */ 969 static inline uint8_t hci_event_extended_inquiry_response_get_rssi(const uint8_t * event){ 970 return event[16]; 971 } 972 973 /** 974 * @brief Get field status from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 975 * @param event packet 976 * @return status 977 * @note: btstack_type 1 978 */ 979 static inline uint8_t hci_event_encryption_key_refresh_complete_get_status(const uint8_t * event){ 980 return event[2]; 981 } 982 /** 983 * @brief Get field handle from event HCI_EVENT_ENCRYPTION_KEY_REFRESH_COMPLETE 984 * @param event packet 985 * @return handle 986 * @note: btstack_type H 987 */ 988 static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_handle(const uint8_t * event){ 989 return little_endian_read_16(event, 3); 990 } 991 992 /** 993 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_REQUEST 994 * @param event packet 995 * @param Pointer to storage for bd_addr 996 * @note: btstack_type B 997 */ 998 static inline void hci_event_io_capability_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 999 reverse_bytes(&event[2], bd_addr, 6); 1000 } 1001 1002 /** 1003 * @brief Get field bd_addr from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1004 * @param event packet 1005 * @param Pointer to storage for bd_addr 1006 * @note: btstack_type B 1007 */ 1008 static inline void hci_event_io_capability_response_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1009 reverse_bytes(&event[2], bd_addr, 6); 1010 } 1011 /** 1012 * @brief Get field io_capability from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1013 * @param event packet 1014 * @return io_capability 1015 * @note: btstack_type 1 1016 */ 1017 static inline uint8_t hci_event_io_capability_response_get_io_capability(const uint8_t * event){ 1018 return event[8]; 1019 } 1020 /** 1021 * @brief Get field oob_data_present from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1022 * @param event packet 1023 * @return oob_data_present 1024 * @note: btstack_type 1 1025 */ 1026 static inline uint8_t hci_event_io_capability_response_get_oob_data_present(const uint8_t * event){ 1027 return event[9]; 1028 } 1029 /** 1030 * @brief Get field authentication_requirements from event HCI_EVENT_IO_CAPABILITY_RESPONSE 1031 * @param event packet 1032 * @return authentication_requirements 1033 * @note: btstack_type 1 1034 */ 1035 static inline uint8_t hci_event_io_capability_response_get_authentication_requirements(const uint8_t * event){ 1036 return event[10]; 1037 } 1038 1039 /** 1040 * @brief Get field bd_addr from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1041 * @param event packet 1042 * @param Pointer to storage for bd_addr 1043 * @note: btstack_type B 1044 */ 1045 static inline void hci_event_user_confirmation_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1046 reverse_bytes(&event[2], bd_addr, 6); 1047 } 1048 /** 1049 * @brief Get field numeric_value from event HCI_EVENT_USER_CONFIRMATION_REQUEST 1050 * @param event packet 1051 * @return numeric_value 1052 * @note: btstack_type 4 1053 */ 1054 static inline uint32_t hci_event_user_confirmation_request_get_numeric_value(const uint8_t * event){ 1055 return little_endian_read_32(event, 8); 1056 } 1057 1058 /** 1059 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_REQUEST 1060 * @param event packet 1061 * @param Pointer to storage for bd_addr 1062 * @note: btstack_type B 1063 */ 1064 static inline void hci_event_user_passkey_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1065 reverse_bytes(&event[2], bd_addr, 6); 1066 } 1067 1068 /** 1069 * @brief Get field bd_addr from event HCI_EVENT_REMOTE_OOB_DATA_REQUEST 1070 * @param event packet 1071 * @param Pointer to storage for bd_addr 1072 * @note: btstack_type B 1073 */ 1074 static inline void hci_event_remote_oob_data_request_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1075 reverse_bytes(&event[2], bd_addr, 6); 1076 } 1077 1078 /** 1079 * @brief Get field status from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1080 * @param event packet 1081 * @return status 1082 * @note: btstack_type 1 1083 */ 1084 static inline uint8_t hci_event_simple_pairing_complete_get_status(const uint8_t * event){ 1085 return event[2]; 1086 } 1087 /** 1088 * @brief Get field bd_addr from event HCI_EVENT_SIMPLE_PAIRING_COMPLETE 1089 * @param event packet 1090 * @param Pointer to storage for bd_addr 1091 * @note: btstack_type B 1092 */ 1093 static inline void hci_event_simple_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1094 reverse_bytes(&event[3], bd_addr, 6); 1095 } 1096 1097 /** 1098 * @brief Get field bd_addr from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1099 * @param event packet 1100 * @param Pointer to storage for bd_addr 1101 * @note: btstack_type B 1102 */ 1103 static inline void hci_event_user_passkey_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1104 reverse_bytes(&event[2], bd_addr, 6); 1105 } 1106 /** 1107 * @brief Get field numeric_value from event HCI_EVENT_USER_PASSKEY_NOTIFICATION 1108 * @param event packet 1109 * @return numeric_value 1110 * @note: btstack_type 4 1111 */ 1112 static inline uint32_t hci_event_user_passkey_notification_get_numeric_value(const uint8_t * event){ 1113 return little_endian_read_32(event, 8); 1114 } 1115 1116 /** 1117 * @brief Get field bd_addr from event HCI_EVENT_KEYPRESS_NOTIFICATION 1118 * @param event packet 1119 * @param Pointer to storage for bd_addr 1120 * @note: btstack_type B 1121 */ 1122 static inline void hci_event_keypress_notification_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1123 reverse_bytes(&event[2], bd_addr, 6); 1124 } 1125 /** 1126 * @brief Get field notification_type from event HCI_EVENT_KEYPRESS_NOTIFICATION 1127 * @param event packet 1128 * @return notification_type 1129 * @note: btstack_type 1 1130 */ 1131 static inline uint8_t hci_event_keypress_notification_get_notification_type(const uint8_t * event){ 1132 return event[8]; 1133 } 1134 1135 /** 1136 * @brief Get field state from event BTSTACK_EVENT_STATE 1137 * @param event packet 1138 * @return state 1139 * @note: btstack_type 1 1140 */ 1141 static inline uint8_t btstack_event_state_get_state(const uint8_t * event){ 1142 return event[2]; 1143 } 1144 1145 /** 1146 * @brief Get field number_connections from event BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1147 * @param event packet 1148 * @return number_connections 1149 * @note: btstack_type 1 1150 */ 1151 static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){ 1152 return event[2]; 1153 } 1154 1155 1156 /** 1157 * @brief Get field discoverable from event BTSTACK_EVENT_DISCOVERABLE_ENABLED 1158 * @param event packet 1159 * @return discoverable 1160 * @note: btstack_type 1 1161 */ 1162 static inline uint8_t btstack_event_discoverable_enabled_get_discoverable(const uint8_t * event){ 1163 return event[2]; 1164 } 1165 1166 /** 1167 * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE 1168 * @param event packet 1169 * @return active 1170 * @note: btstack_type 1 1171 */ 1172 static inline uint8_t hci_event_transport_sleep_mode_get_active(const uint8_t * event){ 1173 return event[2]; 1174 } 1175 1176 /** 1177 * @brief Get field handle from event HCI_EVENT_SCO_CAN_SEND_NOW 1178 * @param event packet 1179 * @param Pointer to storage for handle 1180 * @note: btstack_type B 1181 */ 1182 static inline void hci_event_sco_can_send_now_get_handle(const uint8_t * event, bd_addr_t handle){ 1183 reverse_bytes(&event[2], handle, 6); 1184 } 1185 1186 /** 1187 * @brief Get field status from event L2CAP_EVENT_CHANNEL_OPENED 1188 * @param event packet 1189 * @return status 1190 * @note: btstack_type 1 1191 */ 1192 static inline uint8_t l2cap_event_channel_opened_get_status(const uint8_t * event){ 1193 return event[2]; 1194 } 1195 /** 1196 * @brief Get field address from event L2CAP_EVENT_CHANNEL_OPENED 1197 * @param event packet 1198 * @param Pointer to storage for address 1199 * @note: btstack_type B 1200 */ 1201 static inline void l2cap_event_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1202 reverse_bytes(&event[3], address, 6); 1203 } 1204 /** 1205 * @brief Get field handle from event L2CAP_EVENT_CHANNEL_OPENED 1206 * @param event packet 1207 * @return handle 1208 * @note: btstack_type H 1209 */ 1210 static inline hci_con_handle_t l2cap_event_channel_opened_get_handle(const uint8_t * event){ 1211 return little_endian_read_16(event, 9); 1212 } 1213 /** 1214 * @brief Get field psm from event L2CAP_EVENT_CHANNEL_OPENED 1215 * @param event packet 1216 * @return psm 1217 * @note: btstack_type 2 1218 */ 1219 static inline uint16_t l2cap_event_channel_opened_get_psm(const uint8_t * event){ 1220 return little_endian_read_16(event, 11); 1221 } 1222 /** 1223 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_OPENED 1224 * @param event packet 1225 * @return local_cid 1226 * @note: btstack_type 2 1227 */ 1228 static inline uint16_t l2cap_event_channel_opened_get_local_cid(const uint8_t * event){ 1229 return little_endian_read_16(event, 13); 1230 } 1231 /** 1232 * @brief Get field remote_cid from event L2CAP_EVENT_CHANNEL_OPENED 1233 * @param event packet 1234 * @return remote_cid 1235 * @note: btstack_type 2 1236 */ 1237 static inline uint16_t l2cap_event_channel_opened_get_remote_cid(const uint8_t * event){ 1238 return little_endian_read_16(event, 15); 1239 } 1240 /** 1241 * @brief Get field local_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1242 * @param event packet 1243 * @return local_mtu 1244 * @note: btstack_type 2 1245 */ 1246 static inline uint16_t l2cap_event_channel_opened_get_local_mtu(const uint8_t * event){ 1247 return little_endian_read_16(event, 17); 1248 } 1249 /** 1250 * @brief Get field remote_mtu from event L2CAP_EVENT_CHANNEL_OPENED 1251 * @param event packet 1252 * @return remote_mtu 1253 * @note: btstack_type 2 1254 */ 1255 static inline uint16_t l2cap_event_channel_opened_get_remote_mtu(const uint8_t * event){ 1256 return little_endian_read_16(event, 19); 1257 } 1258 /** 1259 * @brief Get field flush_timeout from event L2CAP_EVENT_CHANNEL_OPENED 1260 * @param event packet 1261 * @return flush_timeout 1262 * @note: btstack_type 2 1263 */ 1264 static inline uint16_t l2cap_event_channel_opened_get_flush_timeout(const uint8_t * event){ 1265 return little_endian_read_16(event, 21); 1266 } 1267 /** 1268 * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED 1269 * @param event packet 1270 * @return incoming 1271 * @note: btstack_type 1 1272 */ 1273 static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){ 1274 return event[23]; 1275 } 1276 /** 1277 * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED 1278 * @param event packet 1279 * @return mode 1280 * @note: btstack_type 1 1281 */ 1282 static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){ 1283 return event[24]; 1284 } 1285 /** 1286 * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED 1287 * @param event packet 1288 * @return fcs 1289 * @note: btstack_type 1 1290 */ 1291 static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){ 1292 return event[25]; 1293 } 1294 1295 /** 1296 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED 1297 * @param event packet 1298 * @return local_cid 1299 * @note: btstack_type 2 1300 */ 1301 static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){ 1302 return little_endian_read_16(event, 2); 1303 } 1304 1305 /** 1306 * @brief Get field address from event L2CAP_EVENT_INCOMING_CONNECTION 1307 * @param event packet 1308 * @param Pointer to storage for address 1309 * @note: btstack_type B 1310 */ 1311 static inline void l2cap_event_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1312 reverse_bytes(&event[2], address, 6); 1313 } 1314 /** 1315 * @brief Get field handle from event L2CAP_EVENT_INCOMING_CONNECTION 1316 * @param event packet 1317 * @return handle 1318 * @note: btstack_type H 1319 */ 1320 static inline hci_con_handle_t l2cap_event_incoming_connection_get_handle(const uint8_t * event){ 1321 return little_endian_read_16(event, 8); 1322 } 1323 /** 1324 * @brief Get field psm from event L2CAP_EVENT_INCOMING_CONNECTION 1325 * @param event packet 1326 * @return psm 1327 * @note: btstack_type 2 1328 */ 1329 static inline uint16_t l2cap_event_incoming_connection_get_psm(const uint8_t * event){ 1330 return little_endian_read_16(event, 10); 1331 } 1332 /** 1333 * @brief Get field local_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1334 * @param event packet 1335 * @return local_cid 1336 * @note: btstack_type 2 1337 */ 1338 static inline uint16_t l2cap_event_incoming_connection_get_local_cid(const uint8_t * event){ 1339 return little_endian_read_16(event, 12); 1340 } 1341 /** 1342 * @brief Get field remote_cid from event L2CAP_EVENT_INCOMING_CONNECTION 1343 * @param event packet 1344 * @return remote_cid 1345 * @note: btstack_type 2 1346 */ 1347 static inline uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t * event){ 1348 return little_endian_read_16(event, 14); 1349 } 1350 1351 /** 1352 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1353 * @param event packet 1354 * @return handle 1355 * @note: btstack_type H 1356 */ 1357 static inline hci_con_handle_t l2cap_event_connection_parameter_update_request_get_handle(const uint8_t * event){ 1358 return little_endian_read_16(event, 2); 1359 } 1360 /** 1361 * @brief Get field interval_min from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1362 * @param event packet 1363 * @return interval_min 1364 * @note: btstack_type 2 1365 */ 1366 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_min(const uint8_t * event){ 1367 return little_endian_read_16(event, 4); 1368 } 1369 /** 1370 * @brief Get field interval_max from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1371 * @param event packet 1372 * @return interval_max 1373 * @note: btstack_type 2 1374 */ 1375 static inline uint16_t l2cap_event_connection_parameter_update_request_get_interval_max(const uint8_t * event){ 1376 return little_endian_read_16(event, 6); 1377 } 1378 /** 1379 * @brief Get field latencey from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1380 * @param event packet 1381 * @return latencey 1382 * @note: btstack_type 2 1383 */ 1384 static inline uint16_t l2cap_event_connection_parameter_update_request_get_latencey(const uint8_t * event){ 1385 return little_endian_read_16(event, 8); 1386 } 1387 /** 1388 * @brief Get field timeout_multiplier from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 1389 * @param event packet 1390 * @return timeout_multiplier 1391 * @note: btstack_type 2 1392 */ 1393 static inline uint16_t l2cap_event_connection_parameter_update_request_get_timeout_multiplier(const uint8_t * event){ 1394 return little_endian_read_16(event, 10); 1395 } 1396 1397 /** 1398 * @brief Get field handle from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1399 * @param event packet 1400 * @return handle 1401 * @note: btstack_type H 1402 */ 1403 static inline hci_con_handle_t l2cap_event_connection_parameter_update_response_get_handle(const uint8_t * event){ 1404 return little_endian_read_16(event, 2); 1405 } 1406 /** 1407 * @brief Get field result from event L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 1408 * @param event packet 1409 * @return result 1410 * @note: btstack_type 2 1411 */ 1412 static inline uint16_t l2cap_event_connection_parameter_update_response_get_result(const uint8_t * event){ 1413 return little_endian_read_16(event, 4); 1414 } 1415 1416 /** 1417 * @brief Get field local_cid from event L2CAP_EVENT_CAN_SEND_NOW 1418 * @param event packet 1419 * @return local_cid 1420 * @note: btstack_type 2 1421 */ 1422 static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){ 1423 return little_endian_read_16(event, 2); 1424 } 1425 1426 /** 1427 * @brief Get field address_type from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1428 * @param event packet 1429 * @return address_type 1430 * @note: btstack_type 1 1431 */ 1432 static inline uint8_t l2cap_event_le_incoming_connection_get_address_type(const uint8_t * event){ 1433 return event[2]; 1434 } 1435 /** 1436 * @brief Get field address from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1437 * @param event packet 1438 * @param Pointer to storage for address 1439 * @note: btstack_type B 1440 */ 1441 static inline void l2cap_event_le_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1442 reverse_bytes(&event[3], address, 6); 1443 } 1444 /** 1445 * @brief Get field handle from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1446 * @param event packet 1447 * @return handle 1448 * @note: btstack_type H 1449 */ 1450 static inline hci_con_handle_t l2cap_event_le_incoming_connection_get_handle(const uint8_t * event){ 1451 return little_endian_read_16(event, 9); 1452 } 1453 /** 1454 * @brief Get field psm from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1455 * @param event packet 1456 * @return psm 1457 * @note: btstack_type 2 1458 */ 1459 static inline uint16_t l2cap_event_le_incoming_connection_get_psm(const uint8_t * event){ 1460 return little_endian_read_16(event, 11); 1461 } 1462 /** 1463 * @brief Get field local_cid from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1464 * @param event packet 1465 * @return local_cid 1466 * @note: btstack_type 2 1467 */ 1468 static inline uint16_t l2cap_event_le_incoming_connection_get_local_cid(const uint8_t * event){ 1469 return little_endian_read_16(event, 13); 1470 } 1471 /** 1472 * @brief Get field remote_cid from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1473 * @param event packet 1474 * @return remote_cid 1475 * @note: btstack_type 2 1476 */ 1477 static inline uint16_t l2cap_event_le_incoming_connection_get_remote_cid(const uint8_t * event){ 1478 return little_endian_read_16(event, 15); 1479 } 1480 /** 1481 * @brief Get field remote_mtu from event L2CAP_EVENT_LE_INCOMING_CONNECTION 1482 * @param event packet 1483 * @return remote_mtu 1484 * @note: btstack_type 2 1485 */ 1486 static inline uint16_t l2cap_event_le_incoming_connection_get_remote_mtu(const uint8_t * event){ 1487 return little_endian_read_16(event, 17); 1488 } 1489 1490 /** 1491 * @brief Get field status from event L2CAP_EVENT_LE_CHANNEL_OPENED 1492 * @param event packet 1493 * @return status 1494 * @note: btstack_type 1 1495 */ 1496 static inline uint8_t l2cap_event_le_channel_opened_get_status(const uint8_t * event){ 1497 return event[2]; 1498 } 1499 /** 1500 * @brief Get field address_type from event L2CAP_EVENT_LE_CHANNEL_OPENED 1501 * @param event packet 1502 * @return address_type 1503 * @note: btstack_type 1 1504 */ 1505 static inline uint8_t l2cap_event_le_channel_opened_get_address_type(const uint8_t * event){ 1506 return event[3]; 1507 } 1508 /** 1509 * @brief Get field address from event L2CAP_EVENT_LE_CHANNEL_OPENED 1510 * @param event packet 1511 * @param Pointer to storage for address 1512 * @note: btstack_type B 1513 */ 1514 static inline void l2cap_event_le_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1515 reverse_bytes(&event[4], address, 6); 1516 } 1517 /** 1518 * @brief Get field handle from event L2CAP_EVENT_LE_CHANNEL_OPENED 1519 * @param event packet 1520 * @return handle 1521 * @note: btstack_type H 1522 */ 1523 static inline hci_con_handle_t l2cap_event_le_channel_opened_get_handle(const uint8_t * event){ 1524 return little_endian_read_16(event, 10); 1525 } 1526 /** 1527 * @brief Get field incoming from event L2CAP_EVENT_LE_CHANNEL_OPENED 1528 * @param event packet 1529 * @return incoming 1530 * @note: btstack_type 1 1531 */ 1532 static inline uint8_t l2cap_event_le_channel_opened_get_incoming(const uint8_t * event){ 1533 return event[12]; 1534 } 1535 /** 1536 * @brief Get field psm from event L2CAP_EVENT_LE_CHANNEL_OPENED 1537 * @param event packet 1538 * @return psm 1539 * @note: btstack_type 2 1540 */ 1541 static inline uint16_t l2cap_event_le_channel_opened_get_psm(const uint8_t * event){ 1542 return little_endian_read_16(event, 13); 1543 } 1544 /** 1545 * @brief Get field local_cid from event L2CAP_EVENT_LE_CHANNEL_OPENED 1546 * @param event packet 1547 * @return local_cid 1548 * @note: btstack_type 2 1549 */ 1550 static inline uint16_t l2cap_event_le_channel_opened_get_local_cid(const uint8_t * event){ 1551 return little_endian_read_16(event, 15); 1552 } 1553 /** 1554 * @brief Get field remote_cid from event L2CAP_EVENT_LE_CHANNEL_OPENED 1555 * @param event packet 1556 * @return remote_cid 1557 * @note: btstack_type 2 1558 */ 1559 static inline uint16_t l2cap_event_le_channel_opened_get_remote_cid(const uint8_t * event){ 1560 return little_endian_read_16(event, 17); 1561 } 1562 /** 1563 * @brief Get field local_mtu from event L2CAP_EVENT_LE_CHANNEL_OPENED 1564 * @param event packet 1565 * @return local_mtu 1566 * @note: btstack_type 2 1567 */ 1568 static inline uint16_t l2cap_event_le_channel_opened_get_local_mtu(const uint8_t * event){ 1569 return little_endian_read_16(event, 19); 1570 } 1571 /** 1572 * @brief Get field remote_mtu from event L2CAP_EVENT_LE_CHANNEL_OPENED 1573 * @param event packet 1574 * @return remote_mtu 1575 * @note: btstack_type 2 1576 */ 1577 static inline uint16_t l2cap_event_le_channel_opened_get_remote_mtu(const uint8_t * event){ 1578 return little_endian_read_16(event, 21); 1579 } 1580 1581 /** 1582 * @brief Get field local_cid from event L2CAP_EVENT_LE_CHANNEL_CLOSED 1583 * @param event packet 1584 * @return local_cid 1585 * @note: btstack_type 2 1586 */ 1587 static inline uint16_t l2cap_event_le_channel_closed_get_local_cid(const uint8_t * event){ 1588 return little_endian_read_16(event, 2); 1589 } 1590 1591 /** 1592 * @brief Get field local_cid from event L2CAP_EVENT_LE_CAN_SEND_NOW 1593 * @param event packet 1594 * @return local_cid 1595 * @note: btstack_type 2 1596 */ 1597 static inline uint16_t l2cap_event_le_can_send_now_get_local_cid(const uint8_t * event){ 1598 return little_endian_read_16(event, 2); 1599 } 1600 1601 /** 1602 * @brief Get field local_cid from event L2CAP_EVENT_LE_PACKET_SENT 1603 * @param event packet 1604 * @return local_cid 1605 * @note: btstack_type 2 1606 */ 1607 static inline uint16_t l2cap_event_le_packet_sent_get_local_cid(const uint8_t * event){ 1608 return little_endian_read_16(event, 2); 1609 } 1610 1611 /** 1612 * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED 1613 * @param event packet 1614 * @return local_cid 1615 * @note: btstack_type 2 1616 */ 1617 static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1618 return little_endian_read_16(event, 2); 1619 } 1620 1621 1622 /** 1623 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED 1624 * @param event packet 1625 * @return status 1626 * @note: btstack_type 1 1627 */ 1628 static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){ 1629 return event[2]; 1630 } 1631 /** 1632 * @brief Get field bd_addr from event RFCOMM_EVENT_CHANNEL_OPENED 1633 * @param event packet 1634 * @param Pointer to storage for bd_addr 1635 * @note: btstack_type B 1636 */ 1637 static inline void rfcomm_event_channel_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1638 reverse_bytes(&event[3], bd_addr, 6); 1639 } 1640 /** 1641 * @brief Get field con_handle from event RFCOMM_EVENT_CHANNEL_OPENED 1642 * @param event packet 1643 * @return con_handle 1644 * @note: btstack_type 2 1645 */ 1646 static inline uint16_t rfcomm_event_channel_opened_get_con_handle(const uint8_t * event){ 1647 return little_endian_read_16(event, 9); 1648 } 1649 /** 1650 * @brief Get field server_channel from event RFCOMM_EVENT_CHANNEL_OPENED 1651 * @param event packet 1652 * @return server_channel 1653 * @note: btstack_type 1 1654 */ 1655 static inline uint8_t rfcomm_event_channel_opened_get_server_channel(const uint8_t * event){ 1656 return event[11]; 1657 } 1658 /** 1659 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_OPENED 1660 * @param event packet 1661 * @return rfcomm_cid 1662 * @note: btstack_type 2 1663 */ 1664 static inline uint16_t rfcomm_event_channel_opened_get_rfcomm_cid(const uint8_t * event){ 1665 return little_endian_read_16(event, 12); 1666 } 1667 /** 1668 * @brief Get field max_frame_size from event RFCOMM_EVENT_CHANNEL_OPENED 1669 * @param event packet 1670 * @return max_frame_size 1671 * @note: btstack_type 2 1672 */ 1673 static inline uint16_t rfcomm_event_channel_opened_get_max_frame_size(const uint8_t * event){ 1674 return little_endian_read_16(event, 14); 1675 } 1676 /** 1677 * @brief Get field incoming from event RFCOMM_EVENT_CHANNEL_OPENED 1678 * @param event packet 1679 * @return incoming 1680 * @note: btstack_type 1 1681 */ 1682 static inline uint8_t rfcomm_event_channel_opened_get_incoming(const uint8_t * event){ 1683 return event[16]; 1684 } 1685 1686 /** 1687 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CHANNEL_CLOSED 1688 * @param event packet 1689 * @return rfcomm_cid 1690 * @note: btstack_type 2 1691 */ 1692 static inline uint16_t rfcomm_event_channel_closed_get_rfcomm_cid(const uint8_t * event){ 1693 return little_endian_read_16(event, 2); 1694 } 1695 1696 /** 1697 * @brief Get field bd_addr from event RFCOMM_EVENT_INCOMING_CONNECTION 1698 * @param event packet 1699 * @param Pointer to storage for bd_addr 1700 * @note: btstack_type B 1701 */ 1702 static inline void rfcomm_event_incoming_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 1703 reverse_bytes(&event[2], bd_addr, 6); 1704 } 1705 /** 1706 * @brief Get field server_channel from event RFCOMM_EVENT_INCOMING_CONNECTION 1707 * @param event packet 1708 * @return server_channel 1709 * @note: btstack_type 1 1710 */ 1711 static inline uint8_t rfcomm_event_incoming_connection_get_server_channel(const uint8_t * event){ 1712 return event[8]; 1713 } 1714 /** 1715 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_INCOMING_CONNECTION 1716 * @param event packet 1717 * @return rfcomm_cid 1718 * @note: btstack_type 2 1719 */ 1720 static inline uint16_t rfcomm_event_incoming_connection_get_rfcomm_cid(const uint8_t * event){ 1721 return little_endian_read_16(event, 9); 1722 } 1723 1724 /** 1725 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_LINE_STATUS 1726 * @param event packet 1727 * @return rfcomm_cid 1728 * @note: btstack_type 2 1729 */ 1730 static inline uint16_t rfcomm_event_remote_line_status_get_rfcomm_cid(const uint8_t * event){ 1731 return little_endian_read_16(event, 2); 1732 } 1733 /** 1734 * @brief Get field line_status from event RFCOMM_EVENT_REMOTE_LINE_STATUS 1735 * @param event packet 1736 * @return line_status 1737 * @note: btstack_type 1 1738 */ 1739 static inline uint8_t rfcomm_event_remote_line_status_get_line_status(const uint8_t * event){ 1740 return event[4]; 1741 } 1742 1743 /** 1744 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 1745 * @param event packet 1746 * @return rfcomm_cid 1747 * @note: btstack_type 2 1748 */ 1749 static inline uint16_t rfcomm_event_remote_modem_status_get_rfcomm_cid(const uint8_t * event){ 1750 return little_endian_read_16(event, 2); 1751 } 1752 /** 1753 * @brief Get field modem_status from event RFCOMM_EVENT_REMOTE_MODEM_STATUS 1754 * @param event packet 1755 * @return modem_status 1756 * @note: btstack_type 1 1757 */ 1758 static inline uint8_t rfcomm_event_remote_modem_status_get_modem_status(const uint8_t * event){ 1759 return event[4]; 1760 } 1761 1762 /** 1763 * @brief Get field rfcomm_cid from event RFCOMM_EVENT_CAN_SEND_NOW 1764 * @param event packet 1765 * @return rfcomm_cid 1766 * @note: btstack_type 2 1767 */ 1768 static inline uint16_t rfcomm_event_can_send_now_get_rfcomm_cid(const uint8_t * event){ 1769 return little_endian_read_16(event, 2); 1770 } 1771 1772 /** 1773 * @brief Get field status from event SDP_EVENT_QUERY_COMPLETE 1774 * @param event packet 1775 * @return status 1776 * @note: btstack_type 1 1777 */ 1778 static inline uint8_t sdp_event_query_complete_get_status(const uint8_t * event){ 1779 return event[2]; 1780 } 1781 1782 /** 1783 * @brief Get field rfcomm_channel from event SDP_EVENT_QUERY_RFCOMM_SERVICE 1784 * @param event packet 1785 * @return rfcomm_channel 1786 * @note: btstack_type 1 1787 */ 1788 static inline uint8_t sdp_event_query_rfcomm_service_get_rfcomm_channel(const uint8_t * event){ 1789 return event[2]; 1790 } 1791 /** 1792 * @brief Get field name from event SDP_EVENT_QUERY_RFCOMM_SERVICE 1793 * @param event packet 1794 * @return name 1795 * @note: btstack_type T 1796 */ 1797 static inline const char * sdp_event_query_rfcomm_service_get_name(const uint8_t * event){ 1798 return (const char *) &event[3]; 1799 } 1800 1801 /** 1802 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 1803 * @param event packet 1804 * @return record_id 1805 * @note: btstack_type 2 1806 */ 1807 static inline uint16_t sdp_event_query_attribute_byte_get_record_id(const uint8_t * event){ 1808 return little_endian_read_16(event, 2); 1809 } 1810 /** 1811 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 1812 * @param event packet 1813 * @return attribute_id 1814 * @note: btstack_type 2 1815 */ 1816 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_id(const uint8_t * event){ 1817 return little_endian_read_16(event, 4); 1818 } 1819 /** 1820 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 1821 * @param event packet 1822 * @return attribute_length 1823 * @note: btstack_type 2 1824 */ 1825 static inline uint16_t sdp_event_query_attribute_byte_get_attribute_length(const uint8_t * event){ 1826 return little_endian_read_16(event, 6); 1827 } 1828 /** 1829 * @brief Get field data_offset from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 1830 * @param event packet 1831 * @return data_offset 1832 * @note: btstack_type 2 1833 */ 1834 static inline uint16_t sdp_event_query_attribute_byte_get_data_offset(const uint8_t * event){ 1835 return little_endian_read_16(event, 8); 1836 } 1837 /** 1838 * @brief Get field data from event SDP_EVENT_QUERY_ATTRIBUTE_BYTE 1839 * @param event packet 1840 * @return data 1841 * @note: btstack_type 1 1842 */ 1843 static inline uint8_t sdp_event_query_attribute_byte_get_data(const uint8_t * event){ 1844 return event[10]; 1845 } 1846 1847 /** 1848 * @brief Get field record_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 1849 * @param event packet 1850 * @return record_id 1851 * @note: btstack_type 2 1852 */ 1853 static inline uint16_t sdp_event_query_attribute_value_get_record_id(const uint8_t * event){ 1854 return little_endian_read_16(event, 2); 1855 } 1856 /** 1857 * @brief Get field attribute_id from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 1858 * @param event packet 1859 * @return attribute_id 1860 * @note: btstack_type 2 1861 */ 1862 static inline uint16_t sdp_event_query_attribute_value_get_attribute_id(const uint8_t * event){ 1863 return little_endian_read_16(event, 4); 1864 } 1865 /** 1866 * @brief Get field attribute_length from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 1867 * @param event packet 1868 * @return attribute_length 1869 * @note: btstack_type L 1870 */ 1871 static inline uint16_t sdp_event_query_attribute_value_get_attribute_length(const uint8_t * event){ 1872 return little_endian_read_16(event, 6); 1873 } 1874 /** 1875 * @brief Get field attribute_value from event SDP_EVENT_QUERY_ATTRIBUTE_VALUE 1876 * @param event packet 1877 * @return attribute_value 1878 * @note: btstack_type V 1879 */ 1880 static inline const uint8_t * sdp_event_query_attribute_value_get_attribute_value(const uint8_t * event){ 1881 return &event[8]; 1882 } 1883 1884 /** 1885 * @brief Get field total_count from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 1886 * @param event packet 1887 * @return total_count 1888 * @note: btstack_type 2 1889 */ 1890 static inline uint16_t sdp_event_query_service_record_handle_get_total_count(const uint8_t * event){ 1891 return little_endian_read_16(event, 2); 1892 } 1893 /** 1894 * @brief Get field record_index from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 1895 * @param event packet 1896 * @return record_index 1897 * @note: btstack_type 2 1898 */ 1899 static inline uint16_t sdp_event_query_service_record_handle_get_record_index(const uint8_t * event){ 1900 return little_endian_read_16(event, 4); 1901 } 1902 /** 1903 * @brief Get field record_handle from event SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 1904 * @param event packet 1905 * @return record_handle 1906 * @note: btstack_type 4 1907 */ 1908 static inline uint32_t sdp_event_query_service_record_handle_get_record_handle(const uint8_t * event){ 1909 return little_endian_read_32(event, 6); 1910 } 1911 1912 #ifdef ENABLE_BLE 1913 /** 1914 * @brief Get field handle from event GATT_EVENT_QUERY_COMPLETE 1915 * @param event packet 1916 * @return handle 1917 * @note: btstack_type H 1918 */ 1919 static inline hci_con_handle_t gatt_event_query_complete_get_handle(const uint8_t * event){ 1920 return little_endian_read_16(event, 2); 1921 } 1922 /** 1923 * @brief Get field att_status from event GATT_EVENT_QUERY_COMPLETE 1924 * @param event packet 1925 * @return att_status 1926 * @note: btstack_type 1 1927 */ 1928 static inline uint8_t gatt_event_query_complete_get_att_status(const uint8_t * event){ 1929 return event[4]; 1930 } 1931 #endif 1932 1933 #ifdef ENABLE_BLE 1934 /** 1935 * @brief Get field handle from event GATT_EVENT_SERVICE_QUERY_RESULT 1936 * @param event packet 1937 * @return handle 1938 * @note: btstack_type H 1939 */ 1940 static inline hci_con_handle_t gatt_event_service_query_result_get_handle(const uint8_t * event){ 1941 return little_endian_read_16(event, 2); 1942 } 1943 /** 1944 * @brief Get field service from event GATT_EVENT_SERVICE_QUERY_RESULT 1945 * @param event packet 1946 * @param Pointer to storage for service 1947 * @note: btstack_type X 1948 */ 1949 static inline void gatt_event_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 1950 gatt_client_deserialize_service(event, 4, service); 1951 } 1952 #endif 1953 1954 #ifdef ENABLE_BLE 1955 /** 1956 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 1957 * @param event packet 1958 * @return handle 1959 * @note: btstack_type H 1960 */ 1961 static inline hci_con_handle_t gatt_event_characteristic_query_result_get_handle(const uint8_t * event){ 1962 return little_endian_read_16(event, 2); 1963 } 1964 /** 1965 * @brief Get field characteristic from event GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 1966 * @param event packet 1967 * @param Pointer to storage for characteristic 1968 * @note: btstack_type Y 1969 */ 1970 static inline void gatt_event_characteristic_query_result_get_characteristic(const uint8_t * event, gatt_client_characteristic_t * characteristic){ 1971 gatt_client_deserialize_characteristic(event, 4, characteristic); 1972 } 1973 #endif 1974 1975 #ifdef ENABLE_BLE 1976 /** 1977 * @brief Get field handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 1978 * @param event packet 1979 * @return handle 1980 * @note: btstack_type H 1981 */ 1982 static inline hci_con_handle_t gatt_event_included_service_query_result_get_handle(const uint8_t * event){ 1983 return little_endian_read_16(event, 2); 1984 } 1985 /** 1986 * @brief Get field include_handle from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 1987 * @param event packet 1988 * @return include_handle 1989 * @note: btstack_type 2 1990 */ 1991 static inline uint16_t gatt_event_included_service_query_result_get_include_handle(const uint8_t * event){ 1992 return little_endian_read_16(event, 4); 1993 } 1994 /** 1995 * @brief Get field service from event GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 1996 * @param event packet 1997 * @param Pointer to storage for service 1998 * @note: btstack_type X 1999 */ 2000 static inline void gatt_event_included_service_query_result_get_service(const uint8_t * event, gatt_client_service_t * service){ 2001 gatt_client_deserialize_service(event, 6, service); 2002 } 2003 #endif 2004 2005 #ifdef ENABLE_BLE 2006 /** 2007 * @brief Get field handle from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2008 * @param event packet 2009 * @return handle 2010 * @note: btstack_type H 2011 */ 2012 static inline hci_con_handle_t gatt_event_all_characteristic_descriptors_query_result_get_handle(const uint8_t * event){ 2013 return little_endian_read_16(event, 2); 2014 } 2015 /** 2016 * @brief Get field characteristic_descriptor from event GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT 2017 * @param event packet 2018 * @param Pointer to storage for characteristic_descriptor 2019 * @note: btstack_type Z 2020 */ 2021 static inline void gatt_event_all_characteristic_descriptors_query_result_get_characteristic_descriptor(const uint8_t * event, gatt_client_characteristic_descriptor_t * characteristic_descriptor){ 2022 gatt_client_deserialize_characteristic_descriptor(event, 4, characteristic_descriptor); 2023 } 2024 #endif 2025 2026 #ifdef ENABLE_BLE 2027 /** 2028 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2029 * @param event packet 2030 * @return handle 2031 * @note: btstack_type H 2032 */ 2033 static inline hci_con_handle_t gatt_event_characteristic_value_query_result_get_handle(const uint8_t * event){ 2034 return little_endian_read_16(event, 2); 2035 } 2036 /** 2037 * @brief Get field value_handle from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2038 * @param event packet 2039 * @return value_handle 2040 * @note: btstack_type 2 2041 */ 2042 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2043 return little_endian_read_16(event, 4); 2044 } 2045 /** 2046 * @brief Get field value_length from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2047 * @param event packet 2048 * @return value_length 2049 * @note: btstack_type L 2050 */ 2051 static inline uint16_t gatt_event_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2052 return little_endian_read_16(event, 6); 2053 } 2054 /** 2055 * @brief Get field value from event GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 2056 * @param event packet 2057 * @return value 2058 * @note: btstack_type V 2059 */ 2060 static inline const uint8_t * gatt_event_characteristic_value_query_result_get_value(const uint8_t * event){ 2061 return &event[8]; 2062 } 2063 #endif 2064 2065 #ifdef ENABLE_BLE 2066 /** 2067 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2068 * @param event packet 2069 * @return handle 2070 * @note: btstack_type H 2071 */ 2072 static inline hci_con_handle_t gatt_event_long_characteristic_value_query_result_get_handle(const uint8_t * event){ 2073 return little_endian_read_16(event, 2); 2074 } 2075 /** 2076 * @brief Get field value_handle from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2077 * @param event packet 2078 * @return value_handle 2079 * @note: btstack_type 2 2080 */ 2081 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_handle(const uint8_t * event){ 2082 return little_endian_read_16(event, 4); 2083 } 2084 /** 2085 * @brief Get field value_offset from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2086 * @param event packet 2087 * @return value_offset 2088 * @note: btstack_type 2 2089 */ 2090 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_offset(const uint8_t * event){ 2091 return little_endian_read_16(event, 6); 2092 } 2093 /** 2094 * @brief Get field value_length from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2095 * @param event packet 2096 * @return value_length 2097 * @note: btstack_type L 2098 */ 2099 static inline uint16_t gatt_event_long_characteristic_value_query_result_get_value_length(const uint8_t * event){ 2100 return little_endian_read_16(event, 8); 2101 } 2102 /** 2103 * @brief Get field value from event GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 2104 * @param event packet 2105 * @return value 2106 * @note: btstack_type V 2107 */ 2108 static inline const uint8_t * gatt_event_long_characteristic_value_query_result_get_value(const uint8_t * event){ 2109 return &event[10]; 2110 } 2111 #endif 2112 2113 #ifdef ENABLE_BLE 2114 /** 2115 * @brief Get field handle from event GATT_EVENT_NOTIFICATION 2116 * @param event packet 2117 * @return handle 2118 * @note: btstack_type H 2119 */ 2120 static inline hci_con_handle_t gatt_event_notification_get_handle(const uint8_t * event){ 2121 return little_endian_read_16(event, 2); 2122 } 2123 /** 2124 * @brief Get field value_handle from event GATT_EVENT_NOTIFICATION 2125 * @param event packet 2126 * @return value_handle 2127 * @note: btstack_type 2 2128 */ 2129 static inline uint16_t gatt_event_notification_get_value_handle(const uint8_t * event){ 2130 return little_endian_read_16(event, 4); 2131 } 2132 /** 2133 * @brief Get field value_length from event GATT_EVENT_NOTIFICATION 2134 * @param event packet 2135 * @return value_length 2136 * @note: btstack_type L 2137 */ 2138 static inline uint16_t gatt_event_notification_get_value_length(const uint8_t * event){ 2139 return little_endian_read_16(event, 6); 2140 } 2141 /** 2142 * @brief Get field value from event GATT_EVENT_NOTIFICATION 2143 * @param event packet 2144 * @return value 2145 * @note: btstack_type V 2146 */ 2147 static inline const uint8_t * gatt_event_notification_get_value(const uint8_t * event){ 2148 return &event[8]; 2149 } 2150 #endif 2151 2152 #ifdef ENABLE_BLE 2153 /** 2154 * @brief Get field handle from event GATT_EVENT_INDICATION 2155 * @param event packet 2156 * @return handle 2157 * @note: btstack_type H 2158 */ 2159 static inline hci_con_handle_t gatt_event_indication_get_handle(const uint8_t * event){ 2160 return little_endian_read_16(event, 2); 2161 } 2162 /** 2163 * @brief Get field value_handle from event GATT_EVENT_INDICATION 2164 * @param event packet 2165 * @return value_handle 2166 * @note: btstack_type 2 2167 */ 2168 static inline uint16_t gatt_event_indication_get_value_handle(const uint8_t * event){ 2169 return little_endian_read_16(event, 4); 2170 } 2171 /** 2172 * @brief Get field value_length from event GATT_EVENT_INDICATION 2173 * @param event packet 2174 * @return value_length 2175 * @note: btstack_type L 2176 */ 2177 static inline uint16_t gatt_event_indication_get_value_length(const uint8_t * event){ 2178 return little_endian_read_16(event, 6); 2179 } 2180 /** 2181 * @brief Get field value from event GATT_EVENT_INDICATION 2182 * @param event packet 2183 * @return value 2184 * @note: btstack_type V 2185 */ 2186 static inline const uint8_t * gatt_event_indication_get_value(const uint8_t * event){ 2187 return &event[8]; 2188 } 2189 #endif 2190 2191 #ifdef ENABLE_BLE 2192 /** 2193 * @brief Get field handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2194 * @param event packet 2195 * @return handle 2196 * @note: btstack_type H 2197 */ 2198 static inline hci_con_handle_t gatt_event_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 2199 return little_endian_read_16(event, 2); 2200 } 2201 /** 2202 * @brief Get field descriptor_handle from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2203 * @param event packet 2204 * @return descriptor_handle 2205 * @note: btstack_type 2 2206 */ 2207 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){ 2208 return little_endian_read_16(event, 4); 2209 } 2210 /** 2211 * @brief Get field descriptor_length from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2212 * @param event packet 2213 * @return descriptor_length 2214 * @note: btstack_type L 2215 */ 2216 static inline uint16_t gatt_event_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 2217 return little_endian_read_16(event, 6); 2218 } 2219 /** 2220 * @brief Get field descriptor from event GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2221 * @param event packet 2222 * @return descriptor 2223 * @note: btstack_type V 2224 */ 2225 static inline const uint8_t * gatt_event_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 2226 return &event[8]; 2227 } 2228 #endif 2229 2230 #ifdef ENABLE_BLE 2231 /** 2232 * @brief Get field handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2233 * @param event packet 2234 * @return handle 2235 * @note: btstack_type H 2236 */ 2237 static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){ 2238 return little_endian_read_16(event, 2); 2239 } 2240 /** 2241 * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2242 * @param event packet 2243 * @return descriptor_offset 2244 * @note: btstack_type 2 2245 */ 2246 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){ 2247 return little_endian_read_16(event, 4); 2248 } 2249 /** 2250 * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2251 * @param event packet 2252 * @return descriptor_length 2253 * @note: btstack_type L 2254 */ 2255 static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){ 2256 return little_endian_read_16(event, 6); 2257 } 2258 /** 2259 * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2260 * @param event packet 2261 * @return descriptor 2262 * @note: btstack_type V 2263 */ 2264 static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){ 2265 return &event[8]; 2266 } 2267 #endif 2268 2269 #ifdef ENABLE_BLE 2270 /** 2271 * @brief Get field handle from event GATT_EVENT_MTU 2272 * @param event packet 2273 * @return handle 2274 * @note: btstack_type H 2275 */ 2276 static inline hci_con_handle_t gatt_event_mtu_get_handle(const uint8_t * event){ 2277 return little_endian_read_16(event, 2); 2278 } 2279 /** 2280 * @brief Get field MTU from event GATT_EVENT_MTU 2281 * @param event packet 2282 * @return MTU 2283 * @note: btstack_type 2 2284 */ 2285 static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){ 2286 return little_endian_read_16(event, 4); 2287 } 2288 #endif 2289 2290 #ifdef ENABLE_BLE 2291 /** 2292 * @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 2293 * @param event packet 2294 * @return handle 2295 * @note: btstack_type H 2296 */ 2297 static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){ 2298 return little_endian_read_16(event, 2); 2299 } 2300 #endif 2301 2302 /** 2303 * @brief Get field address_type from event ATT_EVENT_CONNECTED 2304 * @param event packet 2305 * @return address_type 2306 * @note: btstack_type 1 2307 */ 2308 static inline uint8_t att_event_connected_get_address_type(const uint8_t * event){ 2309 return event[2]; 2310 } 2311 /** 2312 * @brief Get field address from event ATT_EVENT_CONNECTED 2313 * @param event packet 2314 * @param Pointer to storage for address 2315 * @note: btstack_type B 2316 */ 2317 static inline void att_event_connected_get_address(const uint8_t * event, bd_addr_t address){ 2318 reverse_bytes(&event[3], address, 6); 2319 } 2320 /** 2321 * @brief Get field handle from event ATT_EVENT_CONNECTED 2322 * @param event packet 2323 * @return handle 2324 * @note: btstack_type H 2325 */ 2326 static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){ 2327 return little_endian_read_16(event, 9); 2328 } 2329 2330 /** 2331 * @brief Get field handle from event ATT_EVENT_DISCONNECTED 2332 * @param event packet 2333 * @return handle 2334 * @note: btstack_type H 2335 */ 2336 static inline hci_con_handle_t att_event_disconnected_get_handle(const uint8_t * event){ 2337 return little_endian_read_16(event, 2); 2338 } 2339 2340 /** 2341 * @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 2342 * @param event packet 2343 * @return handle 2344 * @note: btstack_type H 2345 */ 2346 static inline hci_con_handle_t att_event_mtu_exchange_complete_get_handle(const uint8_t * event){ 2347 return little_endian_read_16(event, 2); 2348 } 2349 /** 2350 * @brief Get field MTU from event ATT_EVENT_MTU_EXCHANGE_COMPLETE 2351 * @param event packet 2352 * @return MTU 2353 * @note: btstack_type 2 2354 */ 2355 static inline uint16_t att_event_mtu_exchange_complete_get_MTU(const uint8_t * event){ 2356 return little_endian_read_16(event, 4); 2357 } 2358 2359 /** 2360 * @brief Get field status from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2361 * @param event packet 2362 * @return status 2363 * @note: btstack_type 1 2364 */ 2365 static inline uint8_t att_event_handle_value_indication_complete_get_status(const uint8_t * event){ 2366 return event[2]; 2367 } 2368 /** 2369 * @brief Get field conn_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2370 * @param event packet 2371 * @return conn_handle 2372 * @note: btstack_type H 2373 */ 2374 static inline hci_con_handle_t att_event_handle_value_indication_complete_get_conn_handle(const uint8_t * event){ 2375 return little_endian_read_16(event, 3); 2376 } 2377 /** 2378 * @brief Get field attribute_handle from event ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 2379 * @param event packet 2380 * @return attribute_handle 2381 * @note: btstack_type 2 2382 */ 2383 static inline uint16_t att_event_handle_value_indication_complete_get_attribute_handle(const uint8_t * event){ 2384 return little_endian_read_16(event, 5); 2385 } 2386 2387 2388 /** 2389 * @brief Get field status from event BNEP_EVENT_SERVICE_REGISTERED 2390 * @param event packet 2391 * @return status 2392 * @note: btstack_type 1 2393 */ 2394 static inline uint8_t bnep_event_service_registered_get_status(const uint8_t * event){ 2395 return event[2]; 2396 } 2397 /** 2398 * @brief Get field service_uuid from event BNEP_EVENT_SERVICE_REGISTERED 2399 * @param event packet 2400 * @return service_uuid 2401 * @note: btstack_type 2 2402 */ 2403 static inline uint16_t bnep_event_service_registered_get_service_uuid(const uint8_t * event){ 2404 return little_endian_read_16(event, 3); 2405 } 2406 2407 /** 2408 * @brief Get field status from event BNEP_EVENT_CHANNEL_OPENED 2409 * @param event packet 2410 * @return status 2411 * @note: btstack_type 1 2412 */ 2413 static inline uint8_t bnep_event_channel_opened_get_status(const uint8_t * event){ 2414 return event[2]; 2415 } 2416 /** 2417 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_OPENED 2418 * @param event packet 2419 * @return bnep_cid 2420 * @note: btstack_type 2 2421 */ 2422 static inline uint16_t bnep_event_channel_opened_get_bnep_cid(const uint8_t * event){ 2423 return little_endian_read_16(event, 3); 2424 } 2425 /** 2426 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_OPENED 2427 * @param event packet 2428 * @return source_uuid 2429 * @note: btstack_type 2 2430 */ 2431 static inline uint16_t bnep_event_channel_opened_get_source_uuid(const uint8_t * event){ 2432 return little_endian_read_16(event, 5); 2433 } 2434 /** 2435 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_OPENED 2436 * @param event packet 2437 * @return destination_uuid 2438 * @note: btstack_type 2 2439 */ 2440 static inline uint16_t bnep_event_channel_opened_get_destination_uuid(const uint8_t * event){ 2441 return little_endian_read_16(event, 7); 2442 } 2443 /** 2444 * @brief Get field mtu from event BNEP_EVENT_CHANNEL_OPENED 2445 * @param event packet 2446 * @return mtu 2447 * @note: btstack_type 2 2448 */ 2449 static inline uint16_t bnep_event_channel_opened_get_mtu(const uint8_t * event){ 2450 return little_endian_read_16(event, 9); 2451 } 2452 /** 2453 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_OPENED 2454 * @param event packet 2455 * @param Pointer to storage for remote_address 2456 * @note: btstack_type B 2457 */ 2458 static inline void bnep_event_channel_opened_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 2459 reverse_bytes(&event[11], remote_address, 6); 2460 } 2461 /** 2462 * @brief Get field con_handle from event BNEP_EVENT_CHANNEL_OPENED 2463 * @param event packet 2464 * @return con_handle 2465 * @note: btstack_type H 2466 */ 2467 static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){ 2468 return little_endian_read_16(event, 17); 2469 } 2470 2471 /** 2472 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED 2473 * @param event packet 2474 * @return bnep_cid 2475 * @note: btstack_type 2 2476 */ 2477 static inline uint16_t bnep_event_channel_closed_get_bnep_cid(const uint8_t * event){ 2478 return little_endian_read_16(event, 2); 2479 } 2480 /** 2481 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_CLOSED 2482 * @param event packet 2483 * @return source_uuid 2484 * @note: btstack_type 2 2485 */ 2486 static inline uint16_t bnep_event_channel_closed_get_source_uuid(const uint8_t * event){ 2487 return little_endian_read_16(event, 4); 2488 } 2489 /** 2490 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_CLOSED 2491 * @param event packet 2492 * @return destination_uuid 2493 * @note: btstack_type 2 2494 */ 2495 static inline uint16_t bnep_event_channel_closed_get_destination_uuid(const uint8_t * event){ 2496 return little_endian_read_16(event, 6); 2497 } 2498 /** 2499 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_CLOSED 2500 * @param event packet 2501 * @param Pointer to storage for remote_address 2502 * @note: btstack_type B 2503 */ 2504 static inline void bnep_event_channel_closed_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 2505 reverse_bytes(&event[8], remote_address, 6); 2506 } 2507 2508 /** 2509 * @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_TIMEOUT 2510 * @param event packet 2511 * @return bnep_cid 2512 * @note: btstack_type 2 2513 */ 2514 static inline uint16_t bnep_event_channel_timeout_get_bnep_cid(const uint8_t * event){ 2515 return little_endian_read_16(event, 2); 2516 } 2517 /** 2518 * @brief Get field source_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 2519 * @param event packet 2520 * @return source_uuid 2521 * @note: btstack_type 2 2522 */ 2523 static inline uint16_t bnep_event_channel_timeout_get_source_uuid(const uint8_t * event){ 2524 return little_endian_read_16(event, 4); 2525 } 2526 /** 2527 * @brief Get field destination_uuid from event BNEP_EVENT_CHANNEL_TIMEOUT 2528 * @param event packet 2529 * @return destination_uuid 2530 * @note: btstack_type 2 2531 */ 2532 static inline uint16_t bnep_event_channel_timeout_get_destination_uuid(const uint8_t * event){ 2533 return little_endian_read_16(event, 6); 2534 } 2535 /** 2536 * @brief Get field remote_address from event BNEP_EVENT_CHANNEL_TIMEOUT 2537 * @param event packet 2538 * @param Pointer to storage for remote_address 2539 * @note: btstack_type B 2540 */ 2541 static inline void bnep_event_channel_timeout_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 2542 reverse_bytes(&event[8], remote_address, 6); 2543 } 2544 /** 2545 * @brief Get field channel_state from event BNEP_EVENT_CHANNEL_TIMEOUT 2546 * @param event packet 2547 * @return channel_state 2548 * @note: btstack_type 1 2549 */ 2550 static inline uint8_t bnep_event_channel_timeout_get_channel_state(const uint8_t * event){ 2551 return event[14]; 2552 } 2553 2554 /** 2555 * @brief Get field bnep_cid from event BNEP_EVENT_CAN_SEND_NOW 2556 * @param event packet 2557 * @return bnep_cid 2558 * @note: btstack_type 2 2559 */ 2560 static inline uint16_t bnep_event_can_send_now_get_bnep_cid(const uint8_t * event){ 2561 return little_endian_read_16(event, 2); 2562 } 2563 /** 2564 * @brief Get field source_uuid from event BNEP_EVENT_CAN_SEND_NOW 2565 * @param event packet 2566 * @return source_uuid 2567 * @note: btstack_type 2 2568 */ 2569 static inline uint16_t bnep_event_can_send_now_get_source_uuid(const uint8_t * event){ 2570 return little_endian_read_16(event, 4); 2571 } 2572 /** 2573 * @brief Get field destination_uuid from event BNEP_EVENT_CAN_SEND_NOW 2574 * @param event packet 2575 * @return destination_uuid 2576 * @note: btstack_type 2 2577 */ 2578 static inline uint16_t bnep_event_can_send_now_get_destination_uuid(const uint8_t * event){ 2579 return little_endian_read_16(event, 6); 2580 } 2581 /** 2582 * @brief Get field remote_address from event BNEP_EVENT_CAN_SEND_NOW 2583 * @param event packet 2584 * @param Pointer to storage for remote_address 2585 * @note: btstack_type B 2586 */ 2587 static inline void bnep_event_can_send_now_get_remote_address(const uint8_t * event, bd_addr_t remote_address){ 2588 reverse_bytes(&event[8], remote_address, 6); 2589 } 2590 2591 #ifdef ENABLE_BLE 2592 /** 2593 * @brief Get field handle from event SM_EVENT_JUST_WORKS_REQUEST 2594 * @param event packet 2595 * @return handle 2596 * @note: btstack_type H 2597 */ 2598 static inline hci_con_handle_t sm_event_just_works_request_get_handle(const uint8_t * event){ 2599 return little_endian_read_16(event, 2); 2600 } 2601 /** 2602 * @brief Get field addr_type from event SM_EVENT_JUST_WORKS_REQUEST 2603 * @param event packet 2604 * @return addr_type 2605 * @note: btstack_type 1 2606 */ 2607 static inline uint8_t sm_event_just_works_request_get_addr_type(const uint8_t * event){ 2608 return event[4]; 2609 } 2610 /** 2611 * @brief Get field address from event SM_EVENT_JUST_WORKS_REQUEST 2612 * @param event packet 2613 * @param Pointer to storage for address 2614 * @note: btstack_type B 2615 */ 2616 static inline void sm_event_just_works_request_get_address(const uint8_t * event, bd_addr_t address){ 2617 reverse_bytes(&event[5], address, 6); 2618 } 2619 #endif 2620 2621 #ifdef ENABLE_BLE 2622 /** 2623 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 2624 * @param event packet 2625 * @return handle 2626 * @note: btstack_type H 2627 */ 2628 static inline hci_con_handle_t sm_event_passkey_display_number_get_handle(const uint8_t * event){ 2629 return little_endian_read_16(event, 2); 2630 } 2631 /** 2632 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 2633 * @param event packet 2634 * @return addr_type 2635 * @note: btstack_type 1 2636 */ 2637 static inline uint8_t sm_event_passkey_display_number_get_addr_type(const uint8_t * event){ 2638 return event[4]; 2639 } 2640 /** 2641 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 2642 * @param event packet 2643 * @param Pointer to storage for address 2644 * @note: btstack_type B 2645 */ 2646 static inline void sm_event_passkey_display_number_get_address(const uint8_t * event, bd_addr_t address){ 2647 reverse_bytes(&event[5], address, 6); 2648 } 2649 /** 2650 * @brief Get field passkey from event SM_EVENT_PASSKEY_DISPLAY_NUMBER 2651 * @param event packet 2652 * @return passkey 2653 * @note: btstack_type 4 2654 */ 2655 static inline uint32_t sm_event_passkey_display_number_get_passkey(const uint8_t * event){ 2656 return little_endian_read_32(event, 11); 2657 } 2658 #endif 2659 2660 #ifdef ENABLE_BLE 2661 /** 2662 * @brief Get field handle from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 2663 * @param event packet 2664 * @return handle 2665 * @note: btstack_type H 2666 */ 2667 static inline hci_con_handle_t sm_event_passkey_display_cancel_get_handle(const uint8_t * event){ 2668 return little_endian_read_16(event, 2); 2669 } 2670 /** 2671 * @brief Get field addr_type from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 2672 * @param event packet 2673 * @return addr_type 2674 * @note: btstack_type 1 2675 */ 2676 static inline uint8_t sm_event_passkey_display_cancel_get_addr_type(const uint8_t * event){ 2677 return event[4]; 2678 } 2679 /** 2680 * @brief Get field address from event SM_EVENT_PASSKEY_DISPLAY_CANCEL 2681 * @param event packet 2682 * @param Pointer to storage for address 2683 * @note: btstack_type B 2684 */ 2685 static inline void sm_event_passkey_display_cancel_get_address(const uint8_t * event, bd_addr_t address){ 2686 reverse_bytes(&event[5], address, 6); 2687 } 2688 #endif 2689 2690 #ifdef ENABLE_BLE 2691 /** 2692 * @brief Get field handle from event SM_EVENT_PASSKEY_INPUT_NUMBER 2693 * @param event packet 2694 * @return handle 2695 * @note: btstack_type H 2696 */ 2697 static inline hci_con_handle_t sm_event_passkey_input_number_get_handle(const uint8_t * event){ 2698 return little_endian_read_16(event, 2); 2699 } 2700 /** 2701 * @brief Get field addr_type from event SM_EVENT_PASSKEY_INPUT_NUMBER 2702 * @param event packet 2703 * @return addr_type 2704 * @note: btstack_type 1 2705 */ 2706 static inline uint8_t sm_event_passkey_input_number_get_addr_type(const uint8_t * event){ 2707 return event[4]; 2708 } 2709 /** 2710 * @brief Get field address from event SM_EVENT_PASSKEY_INPUT_NUMBER 2711 * @param event packet 2712 * @param Pointer to storage for address 2713 * @note: btstack_type B 2714 */ 2715 static inline void sm_event_passkey_input_number_get_address(const uint8_t * event, bd_addr_t address){ 2716 reverse_bytes(&event[5], address, 6); 2717 } 2718 #endif 2719 2720 #ifdef ENABLE_BLE 2721 /** 2722 * @brief Get field handle from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 2723 * @param event packet 2724 * @return handle 2725 * @note: btstack_type H 2726 */ 2727 static inline hci_con_handle_t sm_event_numeric_comparison_request_get_handle(const uint8_t * event){ 2728 return little_endian_read_16(event, 2); 2729 } 2730 /** 2731 * @brief Get field addr_type from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 2732 * @param event packet 2733 * @return addr_type 2734 * @note: btstack_type 1 2735 */ 2736 static inline uint8_t sm_event_numeric_comparison_request_get_addr_type(const uint8_t * event){ 2737 return event[4]; 2738 } 2739 /** 2740 * @brief Get field address from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 2741 * @param event packet 2742 * @param Pointer to storage for address 2743 * @note: btstack_type B 2744 */ 2745 static inline void sm_event_numeric_comparison_request_get_address(const uint8_t * event, bd_addr_t address){ 2746 reverse_bytes(&event[5], address, 6); 2747 } 2748 /** 2749 * @brief Get field passkey from event SM_EVENT_NUMERIC_COMPARISON_REQUEST 2750 * @param event packet 2751 * @return passkey 2752 * @note: btstack_type 4 2753 */ 2754 static inline uint32_t sm_event_numeric_comparison_request_get_passkey(const uint8_t * event){ 2755 return little_endian_read_32(event, 11); 2756 } 2757 #endif 2758 2759 #ifdef ENABLE_BLE 2760 /** 2761 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_STARTED 2762 * @param event packet 2763 * @return handle 2764 * @note: btstack_type H 2765 */ 2766 static inline hci_con_handle_t sm_event_identity_resolving_started_get_handle(const uint8_t * event){ 2767 return little_endian_read_16(event, 2); 2768 } 2769 /** 2770 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_STARTED 2771 * @param event packet 2772 * @return addr_type 2773 * @note: btstack_type 1 2774 */ 2775 static inline uint8_t sm_event_identity_resolving_started_get_addr_type(const uint8_t * event){ 2776 return event[4]; 2777 } 2778 /** 2779 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_STARTED 2780 * @param event packet 2781 * @param Pointer to storage for address 2782 * @note: btstack_type B 2783 */ 2784 static inline void sm_event_identity_resolving_started_get_address(const uint8_t * event, bd_addr_t address){ 2785 reverse_bytes(&event[5], address, 6); 2786 } 2787 #endif 2788 2789 #ifdef ENABLE_BLE 2790 /** 2791 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_FAILED 2792 * @param event packet 2793 * @return handle 2794 * @note: btstack_type H 2795 */ 2796 static inline hci_con_handle_t sm_event_identity_resolving_failed_get_handle(const uint8_t * event){ 2797 return little_endian_read_16(event, 2); 2798 } 2799 /** 2800 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_FAILED 2801 * @param event packet 2802 * @return addr_type 2803 * @note: btstack_type 1 2804 */ 2805 static inline uint8_t sm_event_identity_resolving_failed_get_addr_type(const uint8_t * event){ 2806 return event[4]; 2807 } 2808 /** 2809 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_FAILED 2810 * @param event packet 2811 * @param Pointer to storage for address 2812 * @note: btstack_type B 2813 */ 2814 static inline void sm_event_identity_resolving_failed_get_address(const uint8_t * event, bd_addr_t address){ 2815 reverse_bytes(&event[5], address, 6); 2816 } 2817 #endif 2818 2819 #ifdef ENABLE_BLE 2820 /** 2821 * @brief Get field handle from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2822 * @param event packet 2823 * @return handle 2824 * @note: btstack_type H 2825 */ 2826 static inline hci_con_handle_t sm_event_identity_resolving_succeeded_get_handle(const uint8_t * event){ 2827 return little_endian_read_16(event, 2); 2828 } 2829 /** 2830 * @brief Get field addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2831 * @param event packet 2832 * @return addr_type 2833 * @note: btstack_type 1 2834 */ 2835 static inline uint8_t sm_event_identity_resolving_succeeded_get_addr_type(const uint8_t * event){ 2836 return event[4]; 2837 } 2838 /** 2839 * @brief Get field address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2840 * @param event packet 2841 * @param Pointer to storage for address 2842 * @note: btstack_type B 2843 */ 2844 static inline void sm_event_identity_resolving_succeeded_get_address(const uint8_t * event, bd_addr_t address){ 2845 reverse_bytes(&event[5], address, 6); 2846 } 2847 /** 2848 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2849 * @param event packet 2850 * @return identity_addr_type 2851 * @note: btstack_type 1 2852 */ 2853 static inline uint8_t sm_event_identity_resolving_succeeded_get_identity_addr_type(const uint8_t * event){ 2854 return event[11]; 2855 } 2856 /** 2857 * @brief Get field identity_address from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2858 * @param event packet 2859 * @param Pointer to storage for identity_address 2860 * @note: btstack_type B 2861 */ 2862 static inline void sm_event_identity_resolving_succeeded_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 2863 reverse_bytes(&event[12], identity_address, 6); 2864 } 2865 /** 2866 * @brief Get field index from event SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2867 * @param event packet 2868 * @return index 2869 * @note: btstack_type 2 2870 */ 2871 static inline uint16_t sm_event_identity_resolving_succeeded_get_index(const uint8_t * event){ 2872 return little_endian_read_16(event, 18); 2873 } 2874 #endif 2875 2876 #ifdef ENABLE_BLE 2877 /** 2878 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_REQUEST 2879 * @param event packet 2880 * @return handle 2881 * @note: btstack_type H 2882 */ 2883 static inline hci_con_handle_t sm_event_authorization_request_get_handle(const uint8_t * event){ 2884 return little_endian_read_16(event, 2); 2885 } 2886 /** 2887 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_REQUEST 2888 * @param event packet 2889 * @return addr_type 2890 * @note: btstack_type 1 2891 */ 2892 static inline uint8_t sm_event_authorization_request_get_addr_type(const uint8_t * event){ 2893 return event[4]; 2894 } 2895 /** 2896 * @brief Get field address from event SM_EVENT_AUTHORIZATION_REQUEST 2897 * @param event packet 2898 * @param Pointer to storage for address 2899 * @note: btstack_type B 2900 */ 2901 static inline void sm_event_authorization_request_get_address(const uint8_t * event, bd_addr_t address){ 2902 reverse_bytes(&event[5], address, 6); 2903 } 2904 #endif 2905 2906 #ifdef ENABLE_BLE 2907 /** 2908 * @brief Get field handle from event SM_EVENT_AUTHORIZATION_RESULT 2909 * @param event packet 2910 * @return handle 2911 * @note: btstack_type H 2912 */ 2913 static inline hci_con_handle_t sm_event_authorization_result_get_handle(const uint8_t * event){ 2914 return little_endian_read_16(event, 2); 2915 } 2916 /** 2917 * @brief Get field addr_type from event SM_EVENT_AUTHORIZATION_RESULT 2918 * @param event packet 2919 * @return addr_type 2920 * @note: btstack_type 1 2921 */ 2922 static inline uint8_t sm_event_authorization_result_get_addr_type(const uint8_t * event){ 2923 return event[4]; 2924 } 2925 /** 2926 * @brief Get field address from event SM_EVENT_AUTHORIZATION_RESULT 2927 * @param event packet 2928 * @param Pointer to storage for address 2929 * @note: btstack_type B 2930 */ 2931 static inline void sm_event_authorization_result_get_address(const uint8_t * event, bd_addr_t address){ 2932 reverse_bytes(&event[5], address, 6); 2933 } 2934 /** 2935 * @brief Get field authorization_result from event SM_EVENT_AUTHORIZATION_RESULT 2936 * @param event packet 2937 * @return authorization_result 2938 * @note: btstack_type 1 2939 */ 2940 static inline uint8_t sm_event_authorization_result_get_authorization_result(const uint8_t * event){ 2941 return event[11]; 2942 } 2943 #endif 2944 2945 #ifdef ENABLE_BLE 2946 /** 2947 * @brief Get field handle from event SM_EVENT_KEYPRESS_NOTIFICATION 2948 * @param event packet 2949 * @return handle 2950 * @note: btstack_type H 2951 */ 2952 static inline hci_con_handle_t sm_event_keypress_notification_get_handle(const uint8_t * event){ 2953 return little_endian_read_16(event, 2); 2954 } 2955 /** 2956 * @brief Get field action from event SM_EVENT_KEYPRESS_NOTIFICATION 2957 * @param event packet 2958 * @return action 2959 * @note: btstack_type 1 2960 */ 2961 static inline uint8_t sm_event_keypress_notification_get_action(const uint8_t * event){ 2962 return event[4]; 2963 } 2964 #endif 2965 2966 #ifdef ENABLE_BLE 2967 /** 2968 * @brief Get field handle from event SM_EVENT_IDENTITY_CREATED 2969 * @param event packet 2970 * @return handle 2971 * @note: btstack_type H 2972 */ 2973 static inline hci_con_handle_t sm_event_identity_created_get_handle(const uint8_t * event){ 2974 return little_endian_read_16(event, 2); 2975 } 2976 /** 2977 * @brief Get field addr_type from event SM_EVENT_IDENTITY_CREATED 2978 * @param event packet 2979 * @return addr_type 2980 * @note: btstack_type 1 2981 */ 2982 static inline uint8_t sm_event_identity_created_get_addr_type(const uint8_t * event){ 2983 return event[4]; 2984 } 2985 /** 2986 * @brief Get field address from event SM_EVENT_IDENTITY_CREATED 2987 * @param event packet 2988 * @param Pointer to storage for address 2989 * @note: btstack_type B 2990 */ 2991 static inline void sm_event_identity_created_get_address(const uint8_t * event, bd_addr_t address){ 2992 reverse_bytes(&event[5], address, 6); 2993 } 2994 /** 2995 * @brief Get field identity_addr_type from event SM_EVENT_IDENTITY_CREATED 2996 * @param event packet 2997 * @return identity_addr_type 2998 * @note: btstack_type 1 2999 */ 3000 static inline uint8_t sm_event_identity_created_get_identity_addr_type(const uint8_t * event){ 3001 return event[11]; 3002 } 3003 /** 3004 * @brief Get field identity_address from event SM_EVENT_IDENTITY_CREATED 3005 * @param event packet 3006 * @param Pointer to storage for identity_address 3007 * @note: btstack_type B 3008 */ 3009 static inline void sm_event_identity_created_get_identity_address(const uint8_t * event, bd_addr_t identity_address){ 3010 reverse_bytes(&event[12], identity_address, 6); 3011 } 3012 /** 3013 * @brief Get field index from event SM_EVENT_IDENTITY_CREATED 3014 * @param event packet 3015 * @return index 3016 * @note: btstack_type 2 3017 */ 3018 static inline uint16_t sm_event_identity_created_get_index(const uint8_t * event){ 3019 return little_endian_read_16(event, 18); 3020 } 3021 #endif 3022 3023 #ifdef ENABLE_BLE 3024 /** 3025 * @brief Get field handle from event SM_EVENT_PAIRING_STARTED 3026 * @param event packet 3027 * @return handle 3028 * @note: btstack_type H 3029 */ 3030 static inline hci_con_handle_t sm_event_pairing_started_get_handle(const uint8_t * event){ 3031 return little_endian_read_16(event, 2); 3032 } 3033 /** 3034 * @brief Get field addr_type from event SM_EVENT_PAIRING_STARTED 3035 * @param event packet 3036 * @return addr_type 3037 * @note: btstack_type 1 3038 */ 3039 static inline uint8_t sm_event_pairing_started_get_addr_type(const uint8_t * event){ 3040 return event[4]; 3041 } 3042 /** 3043 * @brief Get field address from event SM_EVENT_PAIRING_STARTED 3044 * @param event packet 3045 * @param Pointer to storage for address 3046 * @note: btstack_type B 3047 */ 3048 static inline void sm_event_pairing_started_get_address(const uint8_t * event, bd_addr_t address){ 3049 reverse_bytes(&event[5], address, 6); 3050 } 3051 #endif 3052 3053 #ifdef ENABLE_BLE 3054 /** 3055 * @brief Get field handle from event SM_EVENT_PAIRING_COMPLETE 3056 * @param event packet 3057 * @return handle 3058 * @note: btstack_type H 3059 */ 3060 static inline hci_con_handle_t sm_event_pairing_complete_get_handle(const uint8_t * event){ 3061 return little_endian_read_16(event, 2); 3062 } 3063 /** 3064 * @brief Get field addr_type from event SM_EVENT_PAIRING_COMPLETE 3065 * @param event packet 3066 * @return addr_type 3067 * @note: btstack_type 1 3068 */ 3069 static inline uint8_t sm_event_pairing_complete_get_addr_type(const uint8_t * event){ 3070 return event[4]; 3071 } 3072 /** 3073 * @brief Get field address from event SM_EVENT_PAIRING_COMPLETE 3074 * @param event packet 3075 * @param Pointer to storage for address 3076 * @note: btstack_type B 3077 */ 3078 static inline void sm_event_pairing_complete_get_address(const uint8_t * event, bd_addr_t address){ 3079 reverse_bytes(&event[5], address, 6); 3080 } 3081 /** 3082 * @brief Get field status from event SM_EVENT_PAIRING_COMPLETE 3083 * @param event packet 3084 * @return status 3085 * @note: btstack_type 1 3086 */ 3087 static inline uint8_t sm_event_pairing_complete_get_status(const uint8_t * event){ 3088 return event[11]; 3089 } 3090 /** 3091 * @brief Get field reason from event SM_EVENT_PAIRING_COMPLETE 3092 * @param event packet 3093 * @return reason 3094 * @note: btstack_type 1 3095 */ 3096 static inline uint8_t sm_event_pairing_complete_get_reason(const uint8_t * event){ 3097 return event[12]; 3098 } 3099 #endif 3100 3101 #ifdef ENABLE_BLE 3102 /** 3103 * @brief Get field handle from event SM_EVENT_REENCRYPTION_STARTED 3104 * @param event packet 3105 * @return handle 3106 * @note: btstack_type H 3107 */ 3108 static inline hci_con_handle_t sm_event_reencryption_started_get_handle(const uint8_t * event){ 3109 return little_endian_read_16(event, 2); 3110 } 3111 /** 3112 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_STARTED 3113 * @param event packet 3114 * @return addr_type 3115 * @note: btstack_type 1 3116 */ 3117 static inline uint8_t sm_event_reencryption_started_get_addr_type(const uint8_t * event){ 3118 return event[4]; 3119 } 3120 /** 3121 * @brief Get field address from event SM_EVENT_REENCRYPTION_STARTED 3122 * @param event packet 3123 * @param Pointer to storage for address 3124 * @note: btstack_type B 3125 */ 3126 static inline void sm_event_reencryption_started_get_address(const uint8_t * event, bd_addr_t address){ 3127 reverse_bytes(&event[5], address, 6); 3128 } 3129 #endif 3130 3131 #ifdef ENABLE_BLE 3132 /** 3133 * @brief Get field handle from event SM_EVENT_REENCRYPTION_COMPLETE 3134 * @param event packet 3135 * @return handle 3136 * @note: btstack_type H 3137 */ 3138 static inline hci_con_handle_t sm_event_reencryption_complete_get_handle(const uint8_t * event){ 3139 return little_endian_read_16(event, 2); 3140 } 3141 /** 3142 * @brief Get field addr_type from event SM_EVENT_REENCRYPTION_COMPLETE 3143 * @param event packet 3144 * @return addr_type 3145 * @note: btstack_type 1 3146 */ 3147 static inline uint8_t sm_event_reencryption_complete_get_addr_type(const uint8_t * event){ 3148 return event[4]; 3149 } 3150 /** 3151 * @brief Get field address from event SM_EVENT_REENCRYPTION_COMPLETE 3152 * @param event packet 3153 * @param Pointer to storage for address 3154 * @note: btstack_type B 3155 */ 3156 static inline void sm_event_reencryption_complete_get_address(const uint8_t * event, bd_addr_t address){ 3157 reverse_bytes(&event[5], address, 6); 3158 } 3159 /** 3160 * @brief Get field status from event SM_EVENT_REENCRYPTION_COMPLETE 3161 * @param event packet 3162 * @return status 3163 * @note: btstack_type 1 3164 */ 3165 static inline uint8_t sm_event_reencryption_complete_get_status(const uint8_t * event){ 3166 return event[11]; 3167 } 3168 #endif 3169 3170 /** 3171 * @brief Get field handle from event GAP_EVENT_SECURITY_LEVEL 3172 * @param event packet 3173 * @return handle 3174 * @note: btstack_type H 3175 */ 3176 static inline hci_con_handle_t gap_event_security_level_get_handle(const uint8_t * event){ 3177 return little_endian_read_16(event, 2); 3178 } 3179 /** 3180 * @brief Get field security_level from event GAP_EVENT_SECURITY_LEVEL 3181 * @param event packet 3182 * @return security_level 3183 * @note: btstack_type 1 3184 */ 3185 static inline uint8_t gap_event_security_level_get_security_level(const uint8_t * event){ 3186 return event[4]; 3187 } 3188 3189 /** 3190 * @brief Get field status from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 3191 * @param event packet 3192 * @return status 3193 * @note: btstack_type 1 3194 */ 3195 static inline uint8_t gap_event_dedicated_bonding_completed_get_status(const uint8_t * event){ 3196 return event[2]; 3197 } 3198 /** 3199 * @brief Get field address from event GAP_EVENT_DEDICATED_BONDING_COMPLETED 3200 * @param event packet 3201 * @param Pointer to storage for address 3202 * @note: btstack_type B 3203 */ 3204 static inline void gap_event_dedicated_bonding_completed_get_address(const uint8_t * event, bd_addr_t address){ 3205 reverse_bytes(&event[3], address, 6); 3206 } 3207 3208 /** 3209 * @brief Get field advertising_event_type from event GAP_EVENT_ADVERTISING_REPORT 3210 * @param event packet 3211 * @return advertising_event_type 3212 * @note: btstack_type 1 3213 */ 3214 static inline uint8_t gap_event_advertising_report_get_advertising_event_type(const uint8_t * event){ 3215 return event[2]; 3216 } 3217 /** 3218 * @brief Get field address_type from event GAP_EVENT_ADVERTISING_REPORT 3219 * @param event packet 3220 * @return address_type 3221 * @note: btstack_type 1 3222 */ 3223 static inline uint8_t gap_event_advertising_report_get_address_type(const uint8_t * event){ 3224 return event[3]; 3225 } 3226 /** 3227 * @brief Get field address from event GAP_EVENT_ADVERTISING_REPORT 3228 * @param event packet 3229 * @param Pointer to storage for address 3230 * @note: btstack_type B 3231 */ 3232 static inline void gap_event_advertising_report_get_address(const uint8_t * event, bd_addr_t address){ 3233 reverse_bytes(&event[4], address, 6); 3234 } 3235 /** 3236 * @brief Get field rssi from event GAP_EVENT_ADVERTISING_REPORT 3237 * @param event packet 3238 * @return rssi 3239 * @note: btstack_type 1 3240 */ 3241 static inline uint8_t gap_event_advertising_report_get_rssi(const uint8_t * event){ 3242 return event[10]; 3243 } 3244 /** 3245 * @brief Get field data_length from event GAP_EVENT_ADVERTISING_REPORT 3246 * @param event packet 3247 * @return data_length 3248 * @note: btstack_type J 3249 */ 3250 static inline uint8_t gap_event_advertising_report_get_data_length(const uint8_t * event){ 3251 return event[11]; 3252 } 3253 /** 3254 * @brief Get field data from event GAP_EVENT_ADVERTISING_REPORT 3255 * @param event packet 3256 * @return data 3257 * @note: btstack_type V 3258 */ 3259 static inline const uint8_t * gap_event_advertising_report_get_data(const uint8_t * event){ 3260 return &event[12]; 3261 } 3262 3263 /** 3264 * @brief Get field bd_addr from event GAP_EVENT_INQUIRY_RESULT 3265 * @param event packet 3266 * @param Pointer to storage for bd_addr 3267 * @note: btstack_type B 3268 */ 3269 static inline void gap_event_inquiry_result_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 3270 reverse_bytes(&event[2], bd_addr, 6); 3271 } 3272 /** 3273 * @brief Get field page_scan_repetition_mode from event GAP_EVENT_INQUIRY_RESULT 3274 * @param event packet 3275 * @return page_scan_repetition_mode 3276 * @note: btstack_type 1 3277 */ 3278 static inline uint8_t gap_event_inquiry_result_get_page_scan_repetition_mode(const uint8_t * event){ 3279 return event[8]; 3280 } 3281 /** 3282 * @brief Get field class_of_device from event GAP_EVENT_INQUIRY_RESULT 3283 * @param event packet 3284 * @return class_of_device 3285 * @note: btstack_type 3 3286 */ 3287 static inline uint32_t gap_event_inquiry_result_get_class_of_device(const uint8_t * event){ 3288 return little_endian_read_24(event, 9); 3289 } 3290 /** 3291 * @brief Get field clock_offset from event GAP_EVENT_INQUIRY_RESULT 3292 * @param event packet 3293 * @return clock_offset 3294 * @note: btstack_type 2 3295 */ 3296 static inline uint16_t gap_event_inquiry_result_get_clock_offset(const uint8_t * event){ 3297 return little_endian_read_16(event, 12); 3298 } 3299 /** 3300 * @brief Get field rssi_available from event GAP_EVENT_INQUIRY_RESULT 3301 * @param event packet 3302 * @return rssi_available 3303 * @note: btstack_type 1 3304 */ 3305 static inline uint8_t gap_event_inquiry_result_get_rssi_available(const uint8_t * event){ 3306 return event[14]; 3307 } 3308 /** 3309 * @brief Get field rssi from event GAP_EVENT_INQUIRY_RESULT 3310 * @param event packet 3311 * @return rssi 3312 * @note: btstack_type 1 3313 */ 3314 static inline uint8_t gap_event_inquiry_result_get_rssi(const uint8_t * event){ 3315 return event[15]; 3316 } 3317 /** 3318 * @brief Get field device_id_available from event GAP_EVENT_INQUIRY_RESULT 3319 * @param event packet 3320 * @return device_id_available 3321 * @note: btstack_type 1 3322 */ 3323 static inline uint8_t gap_event_inquiry_result_get_device_id_available(const uint8_t * event){ 3324 return event[16]; 3325 } 3326 /** 3327 * @brief Get field device_id_vendor_id_source from event GAP_EVENT_INQUIRY_RESULT 3328 * @param event packet 3329 * @return device_id_vendor_id_source 3330 * @note: btstack_type 2 3331 */ 3332 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id_source(const uint8_t * event){ 3333 return little_endian_read_16(event, 17); 3334 } 3335 /** 3336 * @brief Get field device_id_vendor_id from event GAP_EVENT_INQUIRY_RESULT 3337 * @param event packet 3338 * @return device_id_vendor_id 3339 * @note: btstack_type 2 3340 */ 3341 static inline uint16_t gap_event_inquiry_result_get_device_id_vendor_id(const uint8_t * event){ 3342 return little_endian_read_16(event, 19); 3343 } 3344 /** 3345 * @brief Get field device_id_product_id from event GAP_EVENT_INQUIRY_RESULT 3346 * @param event packet 3347 * @return device_id_product_id 3348 * @note: btstack_type 2 3349 */ 3350 static inline uint16_t gap_event_inquiry_result_get_device_id_product_id(const uint8_t * event){ 3351 return little_endian_read_16(event, 21); 3352 } 3353 /** 3354 * @brief Get field device_id_version from event GAP_EVENT_INQUIRY_RESULT 3355 * @param event packet 3356 * @return device_id_version 3357 * @note: btstack_type 2 3358 */ 3359 static inline uint16_t gap_event_inquiry_result_get_device_id_version(const uint8_t * event){ 3360 return little_endian_read_16(event, 23); 3361 } 3362 /** 3363 * @brief Get field name_available from event GAP_EVENT_INQUIRY_RESULT 3364 * @param event packet 3365 * @return name_available 3366 * @note: btstack_type 1 3367 */ 3368 static inline uint8_t gap_event_inquiry_result_get_name_available(const uint8_t * event){ 3369 return event[25]; 3370 } 3371 /** 3372 * @brief Get field name_len from event GAP_EVENT_INQUIRY_RESULT 3373 * @param event packet 3374 * @return name_len 3375 * @note: btstack_type J 3376 */ 3377 static inline uint8_t gap_event_inquiry_result_get_name_len(const uint8_t * event){ 3378 return event[26]; 3379 } 3380 /** 3381 * @brief Get field name from event GAP_EVENT_INQUIRY_RESULT 3382 * @param event packet 3383 * @return name 3384 * @note: btstack_type V 3385 */ 3386 static inline const uint8_t * gap_event_inquiry_result_get_name(const uint8_t * event){ 3387 return &event[27]; 3388 } 3389 3390 /** 3391 * @brief Get field status from event GAP_EVENT_INQUIRY_COMPLETE 3392 * @param event packet 3393 * @return status 3394 * @note: btstack_type 1 3395 */ 3396 static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){ 3397 return event[2]; 3398 } 3399 3400 /** 3401 * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT 3402 * @param event packet 3403 * @return con_handle 3404 * @note: btstack_type H 3405 */ 3406 static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){ 3407 return little_endian_read_16(event, 2); 3408 } 3409 /** 3410 * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT 3411 * @param event packet 3412 * @return rssi 3413 * @note: btstack_type 1 3414 */ 3415 static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){ 3416 return event[4]; 3417 } 3418 3419 /** 3420 * @brief Get field oob_data_present from event GAP_EVENT_LOCAL_OOB_DATA 3421 * @param event packet 3422 * @return oob_data_present 3423 * @note: btstack_type 1 3424 */ 3425 static inline uint8_t gap_event_local_oob_data_get_oob_data_present(const uint8_t * event){ 3426 return event[2]; 3427 } 3428 /** 3429 * @brief Get field c_192 from event GAP_EVENT_LOCAL_OOB_DATA 3430 * @param event packet 3431 * @param Pointer to storage for c_192 3432 * @note: btstack_type K 3433 */ 3434 static inline void gap_event_local_oob_data_get_c_192(const uint8_t * event, uint8_t * c_192){ 3435 reverse_bytes(&event[3], c_192, 16); 3436 } 3437 /** 3438 * @brief Get field r_192 from event GAP_EVENT_LOCAL_OOB_DATA 3439 * @param event packet 3440 * @param Pointer to storage for r_192 3441 * @note: btstack_type K 3442 */ 3443 static inline void gap_event_local_oob_data_get_r_192(const uint8_t * event, uint8_t * r_192){ 3444 reverse_bytes(&event[19], r_192, 16); 3445 } 3446 /** 3447 * @brief Get field c_256 from event GAP_EVENT_LOCAL_OOB_DATA 3448 * @param event packet 3449 * @param Pointer to storage for c_256 3450 * @note: btstack_type K 3451 */ 3452 static inline void gap_event_local_oob_data_get_c_256(const uint8_t * event, uint8_t * c_256){ 3453 reverse_bytes(&event[35], c_256, 16); 3454 } 3455 /** 3456 * @brief Get field r_256 from event GAP_EVENT_LOCAL_OOB_DATA 3457 * @param event packet 3458 * @param Pointer to storage for r_256 3459 * @note: btstack_type K 3460 */ 3461 static inline void gap_event_local_oob_data_get_r_256(const uint8_t * event, uint8_t * r_256){ 3462 reverse_bytes(&event[51], r_256, 16); 3463 } 3464 3465 /** 3466 * @brief Get field con_handle from event GAP_EVENT_PAIRING_STARTED 3467 * @param event packet 3468 * @return con_handle 3469 * @note: btstack_type H 3470 */ 3471 static inline hci_con_handle_t gap_event_pairing_started_get_con_handle(const uint8_t * event){ 3472 return little_endian_read_16(event, 2); 3473 } 3474 /** 3475 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_STARTED 3476 * @param event packet 3477 * @param Pointer to storage for bd_addr 3478 * @note: btstack_type B 3479 */ 3480 static inline void gap_event_pairing_started_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 3481 reverse_bytes(&event[4], bd_addr, 6); 3482 } 3483 /** 3484 * @brief Get field ssp from event GAP_EVENT_PAIRING_STARTED 3485 * @param event packet 3486 * @return ssp 3487 * @note: btstack_type 1 3488 */ 3489 static inline uint8_t gap_event_pairing_started_get_ssp(const uint8_t * event){ 3490 return event[10]; 3491 } 3492 /** 3493 * @brief Get field initiator from event GAP_EVENT_PAIRING_STARTED 3494 * @param event packet 3495 * @return initiator 3496 * @note: btstack_type 1 3497 */ 3498 static inline uint8_t gap_event_pairing_started_get_initiator(const uint8_t * event){ 3499 return event[11]; 3500 } 3501 3502 /** 3503 * @brief Get field con_handle from event GAP_EVENT_PAIRING_COMPLETE 3504 * @param event packet 3505 * @return con_handle 3506 * @note: btstack_type H 3507 */ 3508 static inline hci_con_handle_t gap_event_pairing_complete_get_con_handle(const uint8_t * event){ 3509 return little_endian_read_16(event, 2); 3510 } 3511 /** 3512 * @brief Get field bd_addr from event GAP_EVENT_PAIRING_COMPLETE 3513 * @param event packet 3514 * @param Pointer to storage for bd_addr 3515 * @note: btstack_type B 3516 */ 3517 static inline void gap_event_pairing_complete_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 3518 reverse_bytes(&event[4], bd_addr, 6); 3519 } 3520 /** 3521 * @brief Get field status from event GAP_EVENT_PAIRING_COMPLETE 3522 * @param event packet 3523 * @return status 3524 * @note: btstack_type 1 3525 */ 3526 static inline uint8_t gap_event_pairing_complete_get_status(const uint8_t * event){ 3527 return event[10]; 3528 } 3529 3530 /** 3531 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3532 * @param event packet 3533 * @return status 3534 * @note: btstack_type 1 3535 */ 3536 static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){ 3537 return event[3]; 3538 } 3539 /** 3540 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3541 * @param event packet 3542 * @return connection_handle 3543 * @note: btstack_type H 3544 */ 3545 static inline hci_con_handle_t hci_subevent_le_connection_complete_get_connection_handle(const uint8_t * event){ 3546 return little_endian_read_16(event, 4); 3547 } 3548 /** 3549 * @brief Get field role from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3550 * @param event packet 3551 * @return role 3552 * @note: btstack_type 1 3553 */ 3554 static inline uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t * event){ 3555 return event[6]; 3556 } 3557 /** 3558 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3559 * @param event packet 3560 * @return peer_address_type 3561 * @note: btstack_type 1 3562 */ 3563 static inline uint8_t hci_subevent_le_connection_complete_get_peer_address_type(const uint8_t * event){ 3564 return event[7]; 3565 } 3566 /** 3567 * @brief Get field peer_address from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3568 * @param event packet 3569 * @param Pointer to storage for peer_address 3570 * @note: btstack_type B 3571 */ 3572 static inline void hci_subevent_le_connection_complete_get_peer_address(const uint8_t * event, bd_addr_t peer_address){ 3573 reverse_bytes(&event[8], peer_address, 6); 3574 } 3575 /** 3576 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3577 * @param event packet 3578 * @return conn_interval 3579 * @note: btstack_type 2 3580 */ 3581 static inline uint16_t hci_subevent_le_connection_complete_get_conn_interval(const uint8_t * event){ 3582 return little_endian_read_16(event, 14); 3583 } 3584 /** 3585 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3586 * @param event packet 3587 * @return conn_latency 3588 * @note: btstack_type 2 3589 */ 3590 static inline uint16_t hci_subevent_le_connection_complete_get_conn_latency(const uint8_t * event){ 3591 return little_endian_read_16(event, 16); 3592 } 3593 /** 3594 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3595 * @param event packet 3596 * @return supervision_timeout 3597 * @note: btstack_type 2 3598 */ 3599 static inline uint16_t hci_subevent_le_connection_complete_get_supervision_timeout(const uint8_t * event){ 3600 return little_endian_read_16(event, 18); 3601 } 3602 /** 3603 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3604 * @param event packet 3605 * @return master_clock_accuracy 3606 * @note: btstack_type 1 3607 */ 3608 static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 3609 return event[20]; 3610 } 3611 3612 /** 3613 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 3614 * @param event packet 3615 * @return status 3616 * @note: btstack_type 1 3617 */ 3618 static inline uint8_t hci_subevent_le_connection_update_complete_get_status(const uint8_t * event){ 3619 return event[3]; 3620 } 3621 /** 3622 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 3623 * @param event packet 3624 * @return connection_handle 3625 * @note: btstack_type H 3626 */ 3627 static inline hci_con_handle_t hci_subevent_le_connection_update_complete_get_connection_handle(const uint8_t * event){ 3628 return little_endian_read_16(event, 4); 3629 } 3630 /** 3631 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 3632 * @param event packet 3633 * @return conn_interval 3634 * @note: btstack_type 2 3635 */ 3636 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_interval(const uint8_t * event){ 3637 return little_endian_read_16(event, 6); 3638 } 3639 /** 3640 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 3641 * @param event packet 3642 * @return conn_latency 3643 * @note: btstack_type 2 3644 */ 3645 static inline uint16_t hci_subevent_le_connection_update_complete_get_conn_latency(const uint8_t * event){ 3646 return little_endian_read_16(event, 8); 3647 } 3648 /** 3649 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE 3650 * @param event packet 3651 * @return supervision_timeout 3652 * @note: btstack_type 2 3653 */ 3654 static inline uint16_t hci_subevent_le_connection_update_complete_get_supervision_timeout(const uint8_t * event){ 3655 return little_endian_read_16(event, 10); 3656 } 3657 3658 /** 3659 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 3660 * @param event packet 3661 * @return connection_handle 3662 * @note: btstack_type H 3663 */ 3664 static inline hci_con_handle_t hci_subevent_le_read_remote_features_complete_get_connection_handle(const uint8_t * event){ 3665 return little_endian_read_16(event, 3); 3666 } 3667 /** 3668 * @brief Get field le_features from event HCI_SUBEVENT_LE_READ_REMOTE_FEATURES_COMPLETE 3669 * @param event packet 3670 * @return le_features 3671 * @note: btstack_type D 3672 */ 3673 static inline const uint8_t * hci_subevent_le_read_remote_features_complete_get_le_features(const uint8_t * event){ 3674 return (const uint8_t *) &event[5]; 3675 } 3676 3677 /** 3678 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 3679 * @param event packet 3680 * @return connection_handle 3681 * @note: btstack_type H 3682 */ 3683 static inline hci_con_handle_t hci_subevent_le_long_term_key_request_get_connection_handle(const uint8_t * event){ 3684 return little_endian_read_16(event, 3); 3685 } 3686 /** 3687 * @brief Get field random_number from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 3688 * @param event packet 3689 * @return random_number 3690 * @note: btstack_type D 3691 */ 3692 static inline const uint8_t * hci_subevent_le_long_term_key_request_get_random_number(const uint8_t * event){ 3693 return (const uint8_t *) &event[5]; 3694 } 3695 /** 3696 * @brief Get field encryption_diversifier from event HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 3697 * @param event packet 3698 * @return encryption_diversifier 3699 * @note: btstack_type 2 3700 */ 3701 static inline uint16_t hci_subevent_le_long_term_key_request_get_encryption_diversifier(const uint8_t * event){ 3702 return little_endian_read_16(event, 13); 3703 } 3704 3705 /** 3706 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 3707 * @param event packet 3708 * @return connection_handle 3709 * @note: btstack_type H 3710 */ 3711 static inline hci_con_handle_t hci_subevent_le_remote_connection_parameter_request_get_connection_handle(const uint8_t * event){ 3712 return little_endian_read_16(event, 3); 3713 } 3714 /** 3715 * @brief Get field interval_min from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 3716 * @param event packet 3717 * @return interval_min 3718 * @note: btstack_type 2 3719 */ 3720 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_min(const uint8_t * event){ 3721 return little_endian_read_16(event, 5); 3722 } 3723 /** 3724 * @brief Get field interval_max from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 3725 * @param event packet 3726 * @return interval_max 3727 * @note: btstack_type 2 3728 */ 3729 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_interval_max(const uint8_t * event){ 3730 return little_endian_read_16(event, 7); 3731 } 3732 /** 3733 * @brief Get field latency from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 3734 * @param event packet 3735 * @return latency 3736 * @note: btstack_type 2 3737 */ 3738 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_latency(const uint8_t * event){ 3739 return little_endian_read_16(event, 9); 3740 } 3741 /** 3742 * @brief Get field timeout from event HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 3743 * @param event packet 3744 * @return timeout 3745 * @note: btstack_type 2 3746 */ 3747 static inline uint16_t hci_subevent_le_remote_connection_parameter_request_get_timeout(const uint8_t * event){ 3748 return little_endian_read_16(event, 11); 3749 } 3750 3751 /** 3752 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 3753 * @param event packet 3754 * @return connection_handle 3755 * @note: btstack_type H 3756 */ 3757 static inline hci_con_handle_t hci_subevent_le_data_length_change_get_connection_handle(const uint8_t * event){ 3758 return little_endian_read_16(event, 3); 3759 } 3760 /** 3761 * @brief Get field max_tx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 3762 * @param event packet 3763 * @return max_tx_octets 3764 * @note: btstack_type 2 3765 */ 3766 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_octets(const uint8_t * event){ 3767 return little_endian_read_16(event, 5); 3768 } 3769 /** 3770 * @brief Get field max_tx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 3771 * @param event packet 3772 * @return max_tx_time 3773 * @note: btstack_type 2 3774 */ 3775 static inline uint16_t hci_subevent_le_data_length_change_get_max_tx_time(const uint8_t * event){ 3776 return little_endian_read_16(event, 7); 3777 } 3778 /** 3779 * @brief Get field max_rx_octets from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 3780 * @param event packet 3781 * @return max_rx_octets 3782 * @note: btstack_type 2 3783 */ 3784 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_octets(const uint8_t * event){ 3785 return little_endian_read_16(event, 9); 3786 } 3787 /** 3788 * @brief Get field max_rx_time from event HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE 3789 * @param event packet 3790 * @return max_rx_time 3791 * @note: btstack_type 2 3792 */ 3793 static inline uint16_t hci_subevent_le_data_length_change_get_max_rx_time(const uint8_t * event){ 3794 return little_endian_read_16(event, 11); 3795 } 3796 3797 /** 3798 * @brief Get field status from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 3799 * @param event packet 3800 * @return status 3801 * @note: btstack_type 1 3802 */ 3803 static inline uint8_t hci_subevent_le_read_local_p256_public_key_complete_get_status(const uint8_t * event){ 3804 return event[3]; 3805 } 3806 /** 3807 * @brief Get field dhkey_x from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 3808 * @param event packet 3809 * @param Pointer to storage for dhkey_x 3810 * @note: btstack_type Q 3811 */ 3812 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_x(const uint8_t * event, uint8_t * dhkey_x){ 3813 reverse_bytes(&event[4], dhkey_x, 32); 3814 } 3815 /** 3816 * @brief Get field dhkey_y from event HCI_SUBEVENT_LE_READ_LOCAL_P256_PUBLIC_KEY_COMPLETE 3817 * @param event packet 3818 * @param Pointer to storage for dhkey_y 3819 * @note: btstack_type Q 3820 */ 3821 static inline void hci_subevent_le_read_local_p256_public_key_complete_get_dhkey_y(const uint8_t * event, uint8_t * dhkey_y){ 3822 reverse_bytes(&event[36], dhkey_y, 32); 3823 } 3824 3825 /** 3826 * @brief Get field status from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 3827 * @param event packet 3828 * @return status 3829 * @note: btstack_type 1 3830 */ 3831 static inline uint8_t hci_subevent_le_generate_dhkey_complete_get_status(const uint8_t * event){ 3832 return event[3]; 3833 } 3834 /** 3835 * @brief Get field dhkey from event HCI_SUBEVENT_LE_GENERATE_DHKEY_COMPLETE 3836 * @param event packet 3837 * @param Pointer to storage for dhkey 3838 * @note: btstack_type Q 3839 */ 3840 static inline void hci_subevent_le_generate_dhkey_complete_get_dhkey(const uint8_t * event, uint8_t * dhkey){ 3841 reverse_bytes(&event[4], dhkey, 32); 3842 } 3843 3844 /** 3845 * @brief Get field status from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3846 * @param event packet 3847 * @return status 3848 * @note: btstack_type 1 3849 */ 3850 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_status(const uint8_t * event){ 3851 return event[3]; 3852 } 3853 /** 3854 * @brief Get field connection_handle from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3855 * @param event packet 3856 * @return connection_handle 3857 * @note: btstack_type H 3858 */ 3859 static inline hci_con_handle_t hci_subevent_le_enhanced_connection_complete_get_connection_handle(const uint8_t * event){ 3860 return little_endian_read_16(event, 4); 3861 } 3862 /** 3863 * @brief Get field role from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3864 * @param event packet 3865 * @return role 3866 * @note: btstack_type 1 3867 */ 3868 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_role(const uint8_t * event){ 3869 return event[6]; 3870 } 3871 /** 3872 * @brief Get field peer_address_type from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3873 * @param event packet 3874 * @return peer_address_type 3875 * @note: btstack_type 1 3876 */ 3877 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_peer_address_type(const uint8_t * event){ 3878 return event[7]; 3879 } 3880 /** 3881 * @brief Get field perr_addresss from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3882 * @param event packet 3883 * @param Pointer to storage for perr_addresss 3884 * @note: btstack_type B 3885 */ 3886 static inline void hci_subevent_le_enhanced_connection_complete_get_perr_addresss(const uint8_t * event, bd_addr_t perr_addresss){ 3887 reverse_bytes(&event[8], perr_addresss, 6); 3888 } 3889 /** 3890 * @brief Get field local_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3891 * @param event packet 3892 * @param Pointer to storage for local_resolvable_private_addres 3893 * @note: btstack_type B 3894 */ 3895 static inline void hci_subevent_le_enhanced_connection_complete_get_local_resolvable_private_addres(const uint8_t * event, bd_addr_t local_resolvable_private_addres){ 3896 reverse_bytes(&event[14], local_resolvable_private_addres, 6); 3897 } 3898 /** 3899 * @brief Get field peer_resolvable_private_addres from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3900 * @param event packet 3901 * @param Pointer to storage for peer_resolvable_private_addres 3902 * @note: btstack_type B 3903 */ 3904 static inline void hci_subevent_le_enhanced_connection_complete_get_peer_resolvable_private_addres(const uint8_t * event, bd_addr_t peer_resolvable_private_addres){ 3905 reverse_bytes(&event[20], peer_resolvable_private_addres, 6); 3906 } 3907 /** 3908 * @brief Get field conn_interval from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3909 * @param event packet 3910 * @return conn_interval 3911 * @note: btstack_type 2 3912 */ 3913 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_interval(const uint8_t * event){ 3914 return little_endian_read_16(event, 26); 3915 } 3916 /** 3917 * @brief Get field conn_latency from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3918 * @param event packet 3919 * @return conn_latency 3920 * @note: btstack_type 2 3921 */ 3922 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_conn_latency(const uint8_t * event){ 3923 return little_endian_read_16(event, 28); 3924 } 3925 /** 3926 * @brief Get field supervision_timeout from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3927 * @param event packet 3928 * @return supervision_timeout 3929 * @note: btstack_type 2 3930 */ 3931 static inline uint16_t hci_subevent_le_enhanced_connection_complete_get_supervision_timeout(const uint8_t * event){ 3932 return little_endian_read_16(event, 30); 3933 } 3934 /** 3935 * @brief Get field master_clock_accuracy from event HCI_SUBEVENT_LE_ENHANCED_CONNECTION_COMPLETE 3936 * @param event packet 3937 * @return master_clock_accuracy 3938 * @note: btstack_type 1 3939 */ 3940 static inline uint8_t hci_subevent_le_enhanced_connection_complete_get_master_clock_accuracy(const uint8_t * event){ 3941 return event[32]; 3942 } 3943 3944 /** 3945 * @brief Get field status from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 3946 * @param event packet 3947 * @return status 3948 * @note: btstack_type 1 3949 */ 3950 static inline uint8_t hsp_subevent_rfcomm_connection_complete_get_status(const uint8_t * event){ 3951 return event[3]; 3952 } 3953 3954 /** 3955 * @brief Get field status from event HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE 3956 * @param event packet 3957 * @return status 3958 * @note: btstack_type 1 3959 */ 3960 static inline uint8_t hsp_subevent_rfcomm_disconnection_complete_get_status(const uint8_t * event){ 3961 return event[3]; 3962 } 3963 3964 /** 3965 * @brief Get field status from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 3966 * @param event packet 3967 * @return status 3968 * @note: btstack_type 1 3969 */ 3970 static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){ 3971 return event[3]; 3972 } 3973 /** 3974 * @brief Get field handle from event HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 3975 * @param event packet 3976 * @return handle 3977 * @note: btstack_type H 3978 */ 3979 static inline hci_con_handle_t hsp_subevent_audio_connection_complete_get_handle(const uint8_t * event){ 3980 return little_endian_read_16(event, 4); 3981 } 3982 3983 /** 3984 * @brief Get field status from event HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 3985 * @param event packet 3986 * @return status 3987 * @note: btstack_type 1 3988 */ 3989 static inline uint8_t hsp_subevent_audio_disconnection_complete_get_status(const uint8_t * event){ 3990 return event[3]; 3991 } 3992 3993 3994 /** 3995 * @brief Get field gain from event HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 3996 * @param event packet 3997 * @return gain 3998 * @note: btstack_type 1 3999 */ 4000 static inline uint8_t hsp_subevent_microphone_gain_changed_get_gain(const uint8_t * event){ 4001 return event[3]; 4002 } 4003 4004 /** 4005 * @brief Get field gain from event HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 4006 * @param event packet 4007 * @return gain 4008 * @note: btstack_type 1 4009 */ 4010 static inline uint8_t hsp_subevent_speaker_gain_changed_get_gain(const uint8_t * event){ 4011 return event[3]; 4012 } 4013 4014 /** 4015 * @brief Get field value_length from event HSP_SUBEVENT_HS_COMMAND 4016 * @param event packet 4017 * @return value_length 4018 * @note: btstack_type J 4019 */ 4020 static inline uint8_t hsp_subevent_hs_command_get_value_length(const uint8_t * event){ 4021 return event[3]; 4022 } 4023 /** 4024 * @brief Get field value from event HSP_SUBEVENT_HS_COMMAND 4025 * @param event packet 4026 * @return value 4027 * @note: btstack_type V 4028 */ 4029 static inline const uint8_t * hsp_subevent_hs_command_get_value(const uint8_t * event){ 4030 return &event[4]; 4031 } 4032 4033 /** 4034 * @brief Get field value_length from event HSP_SUBEVENT_AG_INDICATION 4035 * @param event packet 4036 * @return value_length 4037 * @note: btstack_type J 4038 */ 4039 static inline uint8_t hsp_subevent_ag_indication_get_value_length(const uint8_t * event){ 4040 return event[3]; 4041 } 4042 /** 4043 * @brief Get field value from event HSP_SUBEVENT_AG_INDICATION 4044 * @param event packet 4045 * @return value 4046 * @note: btstack_type V 4047 */ 4048 static inline const uint8_t * hsp_subevent_ag_indication_get_value(const uint8_t * event){ 4049 return &event[4]; 4050 } 4051 4052 4053 /** 4054 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 4055 * @param event packet 4056 * @return acl_handle 4057 * @note: btstack_type H 4058 */ 4059 static inline hci_con_handle_t hfp_subevent_service_level_connection_established_get_acl_handle(const uint8_t * event){ 4060 return little_endian_read_16(event, 3); 4061 } 4062 /** 4063 * @brief Get field status from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 4064 * @param event packet 4065 * @return status 4066 * @note: btstack_type 1 4067 */ 4068 static inline uint8_t hfp_subevent_service_level_connection_established_get_status(const uint8_t * event){ 4069 return event[5]; 4070 } 4071 /** 4072 * @brief Get field bd_addr from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 4073 * @param event packet 4074 * @param Pointer to storage for bd_addr 4075 * @note: btstack_type B 4076 */ 4077 static inline void hfp_subevent_service_level_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4078 reverse_bytes(&event[6], bd_addr, 6); 4079 } 4080 4081 /** 4082 * @brief Get field acl_handle from event HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 4083 * @param event packet 4084 * @return acl_handle 4085 * @note: btstack_type H 4086 */ 4087 static inline hci_con_handle_t hfp_subevent_service_level_connection_released_get_acl_handle(const uint8_t * event){ 4088 return little_endian_read_16(event, 3); 4089 } 4090 4091 /** 4092 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 4093 * @param event packet 4094 * @return acl_handle 4095 * @note: btstack_type H 4096 */ 4097 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_acl_handle(const uint8_t * event){ 4098 return little_endian_read_16(event, 3); 4099 } 4100 /** 4101 * @brief Get field status from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 4102 * @param event packet 4103 * @return status 4104 * @note: btstack_type 1 4105 */ 4106 static inline uint8_t hfp_subevent_audio_connection_established_get_status(const uint8_t * event){ 4107 return event[5]; 4108 } 4109 /** 4110 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 4111 * @param event packet 4112 * @return sco_handle 4113 * @note: btstack_type H 4114 */ 4115 static inline hci_con_handle_t hfp_subevent_audio_connection_established_get_sco_handle(const uint8_t * event){ 4116 return little_endian_read_16(event, 6); 4117 } 4118 /** 4119 * @brief Get field bd_addr from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 4120 * @param event packet 4121 * @param Pointer to storage for bd_addr 4122 * @note: btstack_type B 4123 */ 4124 static inline void hfp_subevent_audio_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 4125 reverse_bytes(&event[8], bd_addr, 6); 4126 } 4127 /** 4128 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 4129 * @param event packet 4130 * @return negotiated_codec 4131 * @note: btstack_type 1 4132 */ 4133 static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){ 4134 return event[14]; 4135 } 4136 4137 /** 4138 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 4139 * @param event packet 4140 * @return acl_handle 4141 * @note: btstack_type H 4142 */ 4143 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){ 4144 return little_endian_read_16(event, 3); 4145 } 4146 /** 4147 * @brief Get field sco_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 4148 * @param event packet 4149 * @return sco_handle 4150 * @note: btstack_type H 4151 */ 4152 static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_sco_handle(const uint8_t * event){ 4153 return little_endian_read_16(event, 5); 4154 } 4155 4156 /** 4157 * @brief Get field acl_handle from event HFP_SUBEVENT_COMPLETE 4158 * @param event packet 4159 * @return acl_handle 4160 * @note: btstack_type H 4161 */ 4162 static inline hci_con_handle_t hfp_subevent_complete_get_acl_handle(const uint8_t * event){ 4163 return little_endian_read_16(event, 3); 4164 } 4165 /** 4166 * @brief Get field status from event HFP_SUBEVENT_COMPLETE 4167 * @param event packet 4168 * @return status 4169 * @note: btstack_type 1 4170 */ 4171 static inline uint8_t hfp_subevent_complete_get_status(const uint8_t * event){ 4172 return event[5]; 4173 } 4174 4175 /** 4176 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 4177 * @param event packet 4178 * @return acl_handle 4179 * @note: btstack_type H 4180 */ 4181 static inline hci_con_handle_t hfp_subevent_ag_indicator_mapping_get_acl_handle(const uint8_t * event){ 4182 return little_endian_read_16(event, 3); 4183 } 4184 /** 4185 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 4186 * @param event packet 4187 * @return indicator_index 4188 * @note: btstack_type 1 4189 */ 4190 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_index(const uint8_t * event){ 4191 return event[5]; 4192 } 4193 /** 4194 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 4195 * @param event packet 4196 * @return indicator_min_range 4197 * @note: btstack_type 1 4198 */ 4199 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_min_range(const uint8_t * event){ 4200 return event[6]; 4201 } 4202 /** 4203 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 4204 * @param event packet 4205 * @return indicator_max_range 4206 * @note: btstack_type 1 4207 */ 4208 static inline uint8_t hfp_subevent_ag_indicator_mapping_get_indicator_max_range(const uint8_t * event){ 4209 return event[7]; 4210 } 4211 /** 4212 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_MAPPING 4213 * @param event packet 4214 * @return indicator_name 4215 * @note: btstack_type T 4216 */ 4217 static inline const char * hfp_subevent_ag_indicator_mapping_get_indicator_name(const uint8_t * event){ 4218 return (const char *) &event[8]; 4219 } 4220 4221 /** 4222 * @brief Get field acl_handle from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4223 * @param event packet 4224 * @return acl_handle 4225 * @note: btstack_type H 4226 */ 4227 static inline hci_con_handle_t hfp_subevent_ag_indicator_status_changed_get_acl_handle(const uint8_t * event){ 4228 return little_endian_read_16(event, 3); 4229 } 4230 /** 4231 * @brief Get field indicator_index from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4232 * @param event packet 4233 * @return indicator_index 4234 * @note: btstack_type 1 4235 */ 4236 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_index(const uint8_t * event){ 4237 return event[5]; 4238 } 4239 /** 4240 * @brief Get field indicator_status from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4241 * @param event packet 4242 * @return indicator_status 4243 * @note: btstack_type 1 4244 */ 4245 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status(const uint8_t * event){ 4246 return event[6]; 4247 } 4248 /** 4249 * @brief Get field indicator_min_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4250 * @param event packet 4251 * @return indicator_min_range 4252 * @note: btstack_type 1 4253 */ 4254 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_min_range(const uint8_t * event){ 4255 return event[7]; 4256 } 4257 /** 4258 * @brief Get field indicator_max_range from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4259 * @param event packet 4260 * @return indicator_max_range 4261 * @note: btstack_type 1 4262 */ 4263 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_max_range(const uint8_t * event){ 4264 return event[8]; 4265 } 4266 /** 4267 * @brief Get field indicator_mandatory from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4268 * @param event packet 4269 * @return indicator_mandatory 4270 * @note: btstack_type 1 4271 */ 4272 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_mandatory(const uint8_t * event){ 4273 return event[9]; 4274 } 4275 /** 4276 * @brief Get field indicator_enabled from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4277 * @param event packet 4278 * @return indicator_enabled 4279 * @note: btstack_type 1 4280 */ 4281 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_enabled(const uint8_t * event){ 4282 return event[10]; 4283 } 4284 /** 4285 * @brief Get field indicator_status_changed from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4286 * @param event packet 4287 * @return indicator_status_changed 4288 * @note: btstack_type 1 4289 */ 4290 static inline uint8_t hfp_subevent_ag_indicator_status_changed_get_indicator_status_changed(const uint8_t * event){ 4291 return event[11]; 4292 } 4293 /** 4294 * @brief Get field indicator_name from event HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 4295 * @param event packet 4296 * @return indicator_name 4297 * @note: btstack_type T 4298 */ 4299 static inline const char * hfp_subevent_ag_indicator_status_changed_get_indicator_name(const uint8_t * event){ 4300 return (const char *) &event[12]; 4301 } 4302 4303 /** 4304 * @brief Get field acl_handle from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 4305 * @param event packet 4306 * @return acl_handle 4307 * @note: btstack_type H 4308 */ 4309 static inline hci_con_handle_t hfp_subevent_network_operator_changed_get_acl_handle(const uint8_t * event){ 4310 return little_endian_read_16(event, 3); 4311 } 4312 /** 4313 * @brief Get field network_operator_mode from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 4314 * @param event packet 4315 * @return network_operator_mode 4316 * @note: btstack_type 1 4317 */ 4318 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_mode(const uint8_t * event){ 4319 return event[5]; 4320 } 4321 /** 4322 * @brief Get field network_operator_format from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 4323 * @param event packet 4324 * @return network_operator_format 4325 * @note: btstack_type 1 4326 */ 4327 static inline uint8_t hfp_subevent_network_operator_changed_get_network_operator_format(const uint8_t * event){ 4328 return event[6]; 4329 } 4330 /** 4331 * @brief Get field network_operator_name from event HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 4332 * @param event packet 4333 * @return network_operator_name 4334 * @note: btstack_type T 4335 */ 4336 static inline const char * hfp_subevent_network_operator_changed_get_network_operator_name(const uint8_t * event){ 4337 return (const char *) &event[7]; 4338 } 4339 4340 /** 4341 * @brief Get field acl_handle from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 4342 * @param event packet 4343 * @return acl_handle 4344 * @note: btstack_type H 4345 */ 4346 static inline hci_con_handle_t hfp_subevent_extended_audio_gateway_error_get_acl_handle(const uint8_t * event){ 4347 return little_endian_read_16(event, 3); 4348 } 4349 /** 4350 * @brief Get field error from event HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 4351 * @param event packet 4352 * @return error 4353 * @note: btstack_type 1 4354 */ 4355 static inline uint8_t hfp_subevent_extended_audio_gateway_error_get_error(const uint8_t * event){ 4356 return event[5]; 4357 } 4358 4359 /** 4360 * @brief Get field acl_handle from event HFP_SUBEVENT_START_RINGING 4361 * @param event packet 4362 * @return acl_handle 4363 * @note: btstack_type H 4364 */ 4365 static inline hci_con_handle_t hfp_subevent_start_ringing_get_acl_handle(const uint8_t * event){ 4366 return little_endian_read_16(event, 3); 4367 } 4368 4369 /** 4370 * @brief Get field acl_handle from event HFP_SUBEVENT_RING 4371 * @param event packet 4372 * @return acl_handle 4373 * @note: btstack_type H 4374 */ 4375 static inline hci_con_handle_t hfp_subevent_ring_get_acl_handle(const uint8_t * event){ 4376 return little_endian_read_16(event, 3); 4377 } 4378 4379 /** 4380 * @brief Get field acl_handle from event HFP_SUBEVENT_STOP_RINGING 4381 * @param event packet 4382 * @return acl_handle 4383 * @note: btstack_type H 4384 */ 4385 static inline hci_con_handle_t hfp_subevent_stop_ringing_get_acl_handle(const uint8_t * event){ 4386 return little_endian_read_16(event, 3); 4387 } 4388 4389 /** 4390 * @brief Get field acl_handle from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 4391 * @param event packet 4392 * @return acl_handle 4393 * @note: btstack_type H 4394 */ 4395 static inline hci_con_handle_t hfp_subevent_place_call_with_number_get_acl_handle(const uint8_t * event){ 4396 return little_endian_read_16(event, 3); 4397 } 4398 /** 4399 * @brief Get field number from event HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 4400 * @param event packet 4401 * @return number 4402 * @note: btstack_type T 4403 */ 4404 static inline const char * hfp_subevent_place_call_with_number_get_number(const uint8_t * event){ 4405 return (const char *) &event[5]; 4406 } 4407 4408 /** 4409 * @brief Get field acl_handle from event HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG 4410 * @param event packet 4411 * @return acl_handle 4412 * @note: btstack_type H 4413 */ 4414 static inline hci_con_handle_t hfp_subevent_attach_number_to_voice_tag_get_acl_handle(const uint8_t * event){ 4415 return little_endian_read_16(event, 3); 4416 } 4417 4418 /** 4419 * @brief Get field acl_handle from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 4420 * @param event packet 4421 * @return acl_handle 4422 * @note: btstack_type H 4423 */ 4424 static inline hci_con_handle_t hfp_subevent_number_for_voice_tag_get_acl_handle(const uint8_t * event){ 4425 return little_endian_read_16(event, 3); 4426 } 4427 /** 4428 * @brief Get field number from event HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 4429 * @param event packet 4430 * @return number 4431 * @note: btstack_type T 4432 */ 4433 static inline const char * hfp_subevent_number_for_voice_tag_get_number(const uint8_t * event){ 4434 return (const char *) &event[5]; 4435 } 4436 4437 /** 4438 * @brief Get field acl_handle from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 4439 * @param event packet 4440 * @return acl_handle 4441 * @note: btstack_type H 4442 */ 4443 static inline hci_con_handle_t hfp_subevent_transmit_dtmf_codes_get_acl_handle(const uint8_t * event){ 4444 return little_endian_read_16(event, 3); 4445 } 4446 /** 4447 * @brief Get field dtmf from event HFP_SUBEVENT_TRANSMIT_DTMF_CODES 4448 * @param event packet 4449 * @return dtmf 4450 * @note: btstack_type T 4451 */ 4452 static inline const char * hfp_subevent_transmit_dtmf_codes_get_dtmf(const uint8_t * event){ 4453 return (const char *) &event[5]; 4454 } 4455 4456 /** 4457 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_ANSWERED 4458 * @param event packet 4459 * @return acl_handle 4460 * @note: btstack_type H 4461 */ 4462 static inline hci_con_handle_t hfp_subevent_call_answered_get_acl_handle(const uint8_t * event){ 4463 return little_endian_read_16(event, 3); 4464 } 4465 4466 /** 4467 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_TERMINATED 4468 * @param event packet 4469 * @return acl_handle 4470 * @note: btstack_type H 4471 */ 4472 static inline hci_con_handle_t hfp_subevent_call_terminated_get_acl_handle(const uint8_t * event){ 4473 return little_endian_read_16(event, 3); 4474 } 4475 4476 /** 4477 * @brief Get field acl_handle from event HFP_SUBEVENT_CONFERENCE_CALL 4478 * @param event packet 4479 * @return acl_handle 4480 * @note: btstack_type H 4481 */ 4482 static inline hci_con_handle_t hfp_subevent_conference_call_get_acl_handle(const uint8_t * event){ 4483 return little_endian_read_16(event, 3); 4484 } 4485 4486 /** 4487 * @brief Get field acl_handle from event HFP_SUBEVENT_SPEAKER_VOLUME 4488 * @param event packet 4489 * @return acl_handle 4490 * @note: btstack_type H 4491 */ 4492 static inline hci_con_handle_t hfp_subevent_speaker_volume_get_acl_handle(const uint8_t * event){ 4493 return little_endian_read_16(event, 3); 4494 } 4495 /** 4496 * @brief Get field gain from event HFP_SUBEVENT_SPEAKER_VOLUME 4497 * @param event packet 4498 * @return gain 4499 * @note: btstack_type 1 4500 */ 4501 static inline uint8_t hfp_subevent_speaker_volume_get_gain(const uint8_t * event){ 4502 return event[5]; 4503 } 4504 4505 /** 4506 * @brief Get field acl_handle from event HFP_SUBEVENT_MICROPHONE_VOLUME 4507 * @param event packet 4508 * @return acl_handle 4509 * @note: btstack_type H 4510 */ 4511 static inline hci_con_handle_t hfp_subevent_microphone_volume_get_acl_handle(const uint8_t * event){ 4512 return little_endian_read_16(event, 3); 4513 } 4514 /** 4515 * @brief Get field gain from event HFP_SUBEVENT_MICROPHONE_VOLUME 4516 * @param event packet 4517 * @return gain 4518 * @note: btstack_type 1 4519 */ 4520 static inline uint8_t hfp_subevent_microphone_volume_get_gain(const uint8_t * event){ 4521 return event[5]; 4522 } 4523 4524 /** 4525 * @brief Get field acl_handle from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 4526 * @param event packet 4527 * @return acl_handle 4528 * @note: btstack_type H 4529 */ 4530 static inline hci_con_handle_t hfp_subevent_call_waiting_notification_get_acl_handle(const uint8_t * event){ 4531 return little_endian_read_16(event, 3); 4532 } 4533 /** 4534 * @brief Get field type from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 4535 * @param event packet 4536 * @return type 4537 * @note: btstack_type 1 4538 */ 4539 static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){ 4540 return event[5]; 4541 } 4542 /** 4543 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 4544 * @param event packet 4545 * @return number 4546 * @note: btstack_type T 4547 */ 4548 static inline const char * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){ 4549 return (const char *) &event[6]; 4550 } 4551 4552 /** 4553 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 4554 * @param event packet 4555 * @return acl_handle 4556 * @note: btstack_type H 4557 */ 4558 static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){ 4559 return little_endian_read_16(event, 3); 4560 } 4561 /** 4562 * @brief Get field type from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 4563 * @param event packet 4564 * @return type 4565 * @note: btstack_type 1 4566 */ 4567 static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){ 4568 return event[5]; 4569 } 4570 /** 4571 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 4572 * @param event packet 4573 * @return number 4574 * @note: btstack_type T 4575 */ 4576 static inline const char * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){ 4577 return (const char *) &event[6]; 4578 } 4579 4580 /** 4581 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4582 * @param event packet 4583 * @return acl_handle 4584 * @note: btstack_type H 4585 */ 4586 static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){ 4587 return little_endian_read_16(event, 3); 4588 } 4589 /** 4590 * @brief Get field clcc_idx from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4591 * @param event packet 4592 * @return clcc_idx 4593 * @note: btstack_type 1 4594 */ 4595 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_idx(const uint8_t * event){ 4596 return event[5]; 4597 } 4598 /** 4599 * @brief Get field clcc_dir from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4600 * @param event packet 4601 * @return clcc_dir 4602 * @note: btstack_type 1 4603 */ 4604 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_dir(const uint8_t * event){ 4605 return event[6]; 4606 } 4607 /** 4608 * @brief Get field clcc_status from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4609 * @param event packet 4610 * @return clcc_status 4611 * @note: btstack_type 1 4612 */ 4613 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_status(const uint8_t * event){ 4614 return event[7]; 4615 } 4616 /** 4617 * @brief Get field clcc_mode from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4618 * @param event packet 4619 * @return clcc_mode 4620 * @note: btstack_type 1 4621 */ 4622 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mode(const uint8_t * event){ 4623 return event[8]; 4624 } 4625 /** 4626 * @brief Get field clcc_mpty from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4627 * @param event packet 4628 * @return clcc_mpty 4629 * @note: btstack_type 1 4630 */ 4631 static inline uint8_t hfp_subevent_enhanced_call_status_get_clcc_mpty(const uint8_t * event){ 4632 return event[9]; 4633 } 4634 /** 4635 * @brief Get field bnip_type from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4636 * @param event packet 4637 * @return bnip_type 4638 * @note: btstack_type 1 4639 */ 4640 static inline uint8_t hfp_subevent_enhanced_call_status_get_bnip_type(const uint8_t * event){ 4641 return event[10]; 4642 } 4643 /** 4644 * @brief Get field bnip_number from event HFP_SUBEVENT_ENHANCED_CALL_STATUS 4645 * @param event packet 4646 * @return bnip_number 4647 * @note: btstack_type T 4648 */ 4649 static inline const char * hfp_subevent_enhanced_call_status_get_bnip_number(const uint8_t * event){ 4650 return (const char *) &event[11]; 4651 } 4652 4653 /** 4654 * @brief Get field acl_handle from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 4655 * @param event packet 4656 * @return acl_handle 4657 * @note: btstack_type H 4658 */ 4659 static inline hci_con_handle_t hfp_subevent_subscriber_number_information_get_acl_handle(const uint8_t * event){ 4660 return little_endian_read_16(event, 3); 4661 } 4662 /** 4663 * @brief Get field status from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 4664 * @param event packet 4665 * @return status 4666 * @note: btstack_type 1 4667 */ 4668 static inline uint8_t hfp_subevent_subscriber_number_information_get_status(const uint8_t * event){ 4669 return event[5]; 4670 } 4671 /** 4672 * @brief Get field bnip_type from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 4673 * @param event packet 4674 * @return bnip_type 4675 * @note: btstack_type 1 4676 */ 4677 static inline uint8_t hfp_subevent_subscriber_number_information_get_bnip_type(const uint8_t * event){ 4678 return event[6]; 4679 } 4680 /** 4681 * @brief Get field bnip_number from event HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 4682 * @param event packet 4683 * @return bnip_number 4684 * @note: btstack_type T 4685 */ 4686 static inline const char * hfp_subevent_subscriber_number_information_get_bnip_number(const uint8_t * event){ 4687 return (const char *) &event[7]; 4688 } 4689 4690 /** 4691 * @brief Get field acl_handle from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 4692 * @param event packet 4693 * @return acl_handle 4694 * @note: btstack_type H 4695 */ 4696 static inline hci_con_handle_t hfp_subevent_response_and_hold_status_get_acl_handle(const uint8_t * event){ 4697 return little_endian_read_16(event, 3); 4698 } 4699 /** 4700 * @brief Get field value from event HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 4701 * @param event packet 4702 * @return value 4703 * @note: btstack_type T 4704 */ 4705 static inline const char * hfp_subevent_response_and_hold_status_get_value(const uint8_t * event){ 4706 return (const char *) &event[5]; 4707 } 4708 4709 /** 4710 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_SENT 4711 * @param event packet 4712 * @return acl_handle 4713 * @note: btstack_type H 4714 */ 4715 static inline hci_con_handle_t hfp_subevent_at_message_sent_get_acl_handle(const uint8_t * event){ 4716 return little_endian_read_16(event, 3); 4717 } 4718 /** 4719 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_SENT 4720 * @param event packet 4721 * @return command 4722 * @note: btstack_type T 4723 */ 4724 static inline const char * hfp_subevent_at_message_sent_get_command(const uint8_t * event){ 4725 return (const char *) &event[5]; 4726 } 4727 4728 /** 4729 * @brief Get field acl_handle from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 4730 * @param event packet 4731 * @return acl_handle 4732 * @note: btstack_type H 4733 */ 4734 static inline hci_con_handle_t hfp_subevent_at_message_received_get_acl_handle(const uint8_t * event){ 4735 return little_endian_read_16(event, 3); 4736 } 4737 /** 4738 * @brief Get field command from event HFP_SUBEVENT_AT_MESSAGE_RECEIVED 4739 * @param event packet 4740 * @return command 4741 * @note: btstack_type T 4742 */ 4743 static inline const char * hfp_subevent_at_message_received_get_command(const uint8_t * event){ 4744 return (const char *) &event[5]; 4745 } 4746 4747 /** 4748 * @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE 4749 * @param event packet 4750 * @return acl_handle 4751 * @note: btstack_type H 4752 */ 4753 static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){ 4754 return little_endian_read_16(event, 3); 4755 } 4756 /** 4757 * @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE 4758 * @param event packet 4759 * @return status 4760 * @note: btstack_type 1 4761 */ 4762 static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){ 4763 return event[5]; 4764 } 4765 4766 /** 4767 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 4768 * @param event packet 4769 * @return acl_handle 4770 * @note: btstack_type H 4771 */ 4772 static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_get_acl_handle(const uint8_t * event){ 4773 return little_endian_read_16(event, 3); 4774 } 4775 /** 4776 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 4777 * @param event packet 4778 * @return status 4779 * @note: btstack_type 1 4780 */ 4781 static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){ 4782 return event[5]; 4783 } 4784 /** 4785 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED 4786 * @param event packet 4787 * @return enhanced 4788 * @note: btstack_type 1 4789 */ 4790 static inline uint8_t hfp_subevent_voice_recognition_activated_get_enhanced(const uint8_t * event){ 4791 return event[6]; 4792 } 4793 4794 /** 4795 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 4796 * @param event packet 4797 * @return acl_handle 4798 * @note: btstack_type H 4799 */ 4800 static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){ 4801 return little_endian_read_16(event, 3); 4802 } 4803 /** 4804 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED 4805 * @param event packet 4806 * @return status 4807 * @note: btstack_type 1 4808 */ 4809 static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){ 4810 return event[5]; 4811 } 4812 4813 /** 4814 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 4815 * @param event packet 4816 * @return acl_handle 4817 * @note: btstack_type H 4818 */ 4819 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){ 4820 return little_endian_read_16(event, 3); 4821 } 4822 /** 4823 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO 4824 * @param event packet 4825 * @return status 4826 * @note: btstack_type 1 4827 */ 4828 static inline uint8_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_status(const uint8_t * event){ 4829 return event[5]; 4830 } 4831 4832 /** 4833 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 4834 * @param event packet 4835 * @return acl_handle 4836 * @note: btstack_type H 4837 */ 4838 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_acl_handle(const uint8_t * event){ 4839 return little_endian_read_16(event, 3); 4840 } 4841 /** 4842 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT 4843 * @param event packet 4844 * @return status 4845 * @note: btstack_type 1 4846 */ 4847 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_ready_to_accept_audio_input_get_status(const uint8_t * event){ 4848 return event[5]; 4849 } 4850 4851 /** 4852 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 4853 * @param event packet 4854 * @return acl_handle 4855 * @note: btstack_type H 4856 */ 4857 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_acl_handle(const uint8_t * event){ 4858 return little_endian_read_16(event, 3); 4859 } 4860 /** 4861 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND 4862 * @param event packet 4863 * @return status 4864 * @note: btstack_type 1 4865 */ 4866 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_starting_sound_get_status(const uint8_t * event){ 4867 return event[5]; 4868 } 4869 4870 /** 4871 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 4872 * @param event packet 4873 * @return acl_handle 4874 * @note: btstack_type H 4875 */ 4876 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_acl_handle(const uint8_t * event){ 4877 return little_endian_read_16(event, 3); 4878 } 4879 /** 4880 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT 4881 * @param event packet 4882 * @return status 4883 * @note: btstack_type 1 4884 */ 4885 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_is_processing_audio_input_get_status(const uint8_t * event){ 4886 return event[5]; 4887 } 4888 4889 /** 4890 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 4891 * @param event packet 4892 * @return acl_handle 4893 * @note: btstack_type H 4894 */ 4895 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_acl_handle(const uint8_t * event){ 4896 return little_endian_read_16(event, 3); 4897 } 4898 /** 4899 * @brief Get field status from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT 4900 * @param event packet 4901 * @return status 4902 * @note: btstack_type 1 4903 */ 4904 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_sent_get_status(const uint8_t * event){ 4905 return event[5]; 4906 } 4907 4908 /** 4909 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 4910 * @param event packet 4911 * @return acl_handle 4912 * @note: btstack_type H 4913 */ 4914 static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_message_get_acl_handle(const uint8_t * event){ 4915 return little_endian_read_16(event, 3); 4916 } 4917 /** 4918 * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 4919 * @param event packet 4920 * @return text_id 4921 * @note: btstack_type 2 4922 */ 4923 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){ 4924 return little_endian_read_16(event, 5); 4925 } 4926 /** 4927 * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 4928 * @param event packet 4929 * @return text_type 4930 * @note: btstack_type 1 4931 */ 4932 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){ 4933 return event[7]; 4934 } 4935 /** 4936 * @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 4937 * @param event packet 4938 * @return text_operation 4939 * @note: btstack_type 1 4940 */ 4941 static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){ 4942 return event[8]; 4943 } 4944 /** 4945 * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 4946 * @param event packet 4947 * @return text_length 4948 * @note: btstack_type L 4949 */ 4950 static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_length(const uint8_t * event){ 4951 return little_endian_read_16(event, 9); 4952 } 4953 /** 4954 * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 4955 * @param event packet 4956 * @return text 4957 * @note: btstack_type V 4958 */ 4959 static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message_get_text(const uint8_t * event){ 4960 return &event[11]; 4961 } 4962 4963 /** 4964 * @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 4965 * @param event packet 4966 * @return acl_handle 4967 * @note: btstack_type H 4968 */ 4969 static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){ 4970 return little_endian_read_16(event, 3); 4971 } 4972 /** 4973 * @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 4974 * @param event packet 4975 * @return status 4976 * @note: btstack_type 1 4977 */ 4978 static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){ 4979 return event[5]; 4980 } 4981 4982 /** 4983 * @brief Get field acl_handle from event HFP_SUBEVENT_HF_INDICATOR 4984 * @param event packet 4985 * @return acl_handle 4986 * @note: btstack_type H 4987 */ 4988 static inline hci_con_handle_t hfp_subevent_hf_indicator_get_acl_handle(const uint8_t * event){ 4989 return little_endian_read_16(event, 3); 4990 } 4991 /** 4992 * @brief Get field uuid from event HFP_SUBEVENT_HF_INDICATOR 4993 * @param event packet 4994 * @return uuid 4995 * @note: btstack_type 2 4996 */ 4997 static inline uint16_t hfp_subevent_hf_indicator_get_uuid(const uint8_t * event){ 4998 return little_endian_read_16(event, 5); 4999 } 5000 /** 5001 * @brief Get field value from event HFP_SUBEVENT_HF_INDICATOR 5002 * @param event packet 5003 * @return value 5004 * @note: btstack_type 1 5005 */ 5006 static inline uint8_t hfp_subevent_hf_indicator_get_value(const uint8_t * event){ 5007 return event[7]; 5008 } 5009 5010 #ifdef ENABLE_BLE 5011 /** 5012 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED 5013 * @param event packet 5014 * @return handle 5015 * @note: btstack_type H 5016 */ 5017 static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){ 5018 return little_endian_read_16(event, 3); 5019 } 5020 #endif 5021 5022 #ifdef ENABLE_BLE 5023 /** 5024 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 5025 * @param event packet 5026 * @return handle 5027 * @note: btstack_type H 5028 */ 5029 static inline hci_con_handle_t ancs_subevent_client_notification_get_handle(const uint8_t * event){ 5030 return little_endian_read_16(event, 3); 5031 } 5032 /** 5033 * @brief Get field attribute_id from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 5034 * @param event packet 5035 * @return attribute_id 5036 * @note: btstack_type 2 5037 */ 5038 static inline uint16_t ancs_subevent_client_notification_get_attribute_id(const uint8_t * event){ 5039 return little_endian_read_16(event, 5); 5040 } 5041 /** 5042 * @brief Get field text from event ANCS_SUBEVENT_CLIENT_NOTIFICATION 5043 * @param event packet 5044 * @return text 5045 * @note: btstack_type T 5046 */ 5047 static inline const char * ancs_subevent_client_notification_get_text(const uint8_t * event){ 5048 return (const char *) &event[7]; 5049 } 5050 #endif 5051 5052 #ifdef ENABLE_BLE 5053 /** 5054 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_DISCONNECTED 5055 * @param event packet 5056 * @return handle 5057 * @note: btstack_type H 5058 */ 5059 static inline hci_con_handle_t ancs_subevent_client_disconnected_get_handle(const uint8_t * event){ 5060 return little_endian_read_16(event, 3); 5061 } 5062 #endif 5063 5064 /** 5065 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 5066 * @param event packet 5067 * @return avdtp_cid 5068 * @note: btstack_type 2 5069 */ 5070 static inline uint16_t avdtp_subevent_signaling_accept_get_avdtp_cid(const uint8_t * event){ 5071 return little_endian_read_16(event, 3); 5072 } 5073 /** 5074 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 5075 * @param event packet 5076 * @return local_seid 5077 * @note: btstack_type 1 5078 */ 5079 static inline uint8_t avdtp_subevent_signaling_accept_get_local_seid(const uint8_t * event){ 5080 return event[5]; 5081 } 5082 /** 5083 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 5084 * @param event packet 5085 * @return is_initiator 5086 * @note: btstack_type 1 5087 */ 5088 static inline uint8_t avdtp_subevent_signaling_accept_get_is_initiator(const uint8_t * event){ 5089 return event[6]; 5090 } 5091 /** 5092 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_ACCEPT 5093 * @param event packet 5094 * @return signal_identifier 5095 * @note: btstack_type 1 5096 */ 5097 static inline uint8_t avdtp_subevent_signaling_accept_get_signal_identifier(const uint8_t * event){ 5098 return event[7]; 5099 } 5100 5101 /** 5102 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REJECT 5103 * @param event packet 5104 * @return avdtp_cid 5105 * @note: btstack_type 2 5106 */ 5107 static inline uint16_t avdtp_subevent_signaling_reject_get_avdtp_cid(const uint8_t * event){ 5108 return little_endian_read_16(event, 3); 5109 } 5110 /** 5111 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_REJECT 5112 * @param event packet 5113 * @return local_seid 5114 * @note: btstack_type 1 5115 */ 5116 static inline uint8_t avdtp_subevent_signaling_reject_get_local_seid(const uint8_t * event){ 5117 return event[5]; 5118 } 5119 /** 5120 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_REJECT 5121 * @param event packet 5122 * @return is_initiator 5123 * @note: btstack_type 1 5124 */ 5125 static inline uint8_t avdtp_subevent_signaling_reject_get_is_initiator(const uint8_t * event){ 5126 return event[6]; 5127 } 5128 /** 5129 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_REJECT 5130 * @param event packet 5131 * @return signal_identifier 5132 * @note: btstack_type 1 5133 */ 5134 static inline uint8_t avdtp_subevent_signaling_reject_get_signal_identifier(const uint8_t * event){ 5135 return event[7]; 5136 } 5137 5138 /** 5139 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 5140 * @param event packet 5141 * @return avdtp_cid 5142 * @note: btstack_type 2 5143 */ 5144 static inline uint16_t avdtp_subevent_signaling_general_reject_get_avdtp_cid(const uint8_t * event){ 5145 return little_endian_read_16(event, 3); 5146 } 5147 /** 5148 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 5149 * @param event packet 5150 * @return local_seid 5151 * @note: btstack_type 1 5152 */ 5153 static inline uint8_t avdtp_subevent_signaling_general_reject_get_local_seid(const uint8_t * event){ 5154 return event[5]; 5155 } 5156 /** 5157 * @brief Get field is_initiator from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 5158 * @param event packet 5159 * @return is_initiator 5160 * @note: btstack_type 1 5161 */ 5162 static inline uint8_t avdtp_subevent_signaling_general_reject_get_is_initiator(const uint8_t * event){ 5163 return event[6]; 5164 } 5165 /** 5166 * @brief Get field signal_identifier from event AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 5167 * @param event packet 5168 * @return signal_identifier 5169 * @note: btstack_type 1 5170 */ 5171 static inline uint8_t avdtp_subevent_signaling_general_reject_get_signal_identifier(const uint8_t * event){ 5172 return event[7]; 5173 } 5174 5175 /** 5176 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 5177 * @param event packet 5178 * @return avdtp_cid 5179 * @note: btstack_type 2 5180 */ 5181 static inline uint16_t avdtp_subevent_signaling_connection_established_get_avdtp_cid(const uint8_t * event){ 5182 return little_endian_read_16(event, 3); 5183 } 5184 /** 5185 * @brief Get field bd_addr from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 5186 * @param event packet 5187 * @param Pointer to storage for bd_addr 5188 * @note: btstack_type B 5189 */ 5190 static inline void avdtp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 5191 reverse_bytes(&event[5], bd_addr, 6); 5192 } 5193 /** 5194 * @brief Get field con_handle from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 5195 * @param event packet 5196 * @return con_handle 5197 * @note: btstack_type 2 5198 */ 5199 static inline uint16_t avdtp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 5200 return little_endian_read_16(event, 11); 5201 } 5202 /** 5203 * @brief Get field status from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 5204 * @param event packet 5205 * @return status 5206 * @note: btstack_type 1 5207 */ 5208 static inline uint8_t avdtp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 5209 return event[13]; 5210 } 5211 5212 /** 5213 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 5214 * @param event packet 5215 * @return avdtp_cid 5216 * @note: btstack_type 2 5217 */ 5218 static inline uint16_t avdtp_subevent_signaling_connection_released_get_avdtp_cid(const uint8_t * event){ 5219 return little_endian_read_16(event, 3); 5220 } 5221 5222 /** 5223 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 5224 * @param event packet 5225 * @return avdtp_cid 5226 * @note: btstack_type 2 5227 */ 5228 static inline uint16_t avdtp_subevent_signaling_sep_found_get_avdtp_cid(const uint8_t * event){ 5229 return little_endian_read_16(event, 3); 5230 } 5231 /** 5232 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 5233 * @param event packet 5234 * @return remote_seid 5235 * @note: btstack_type 1 5236 */ 5237 static inline uint8_t avdtp_subevent_signaling_sep_found_get_remote_seid(const uint8_t * event){ 5238 return event[5]; 5239 } 5240 /** 5241 * @brief Get field in_use from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 5242 * @param event packet 5243 * @return in_use 5244 * @note: btstack_type 1 5245 */ 5246 static inline uint8_t avdtp_subevent_signaling_sep_found_get_in_use(const uint8_t * event){ 5247 return event[6]; 5248 } 5249 /** 5250 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 5251 * @param event packet 5252 * @return media_type 5253 * @note: btstack_type 1 5254 */ 5255 static inline uint8_t avdtp_subevent_signaling_sep_found_get_media_type(const uint8_t * event){ 5256 return event[7]; 5257 } 5258 /** 5259 * @brief Get field sep_type from event AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 5260 * @param event packet 5261 * @return sep_type 5262 * @note: btstack_type 1 5263 */ 5264 static inline uint8_t avdtp_subevent_signaling_sep_found_get_sep_type(const uint8_t * event){ 5265 return event[8]; 5266 } 5267 5268 /** 5269 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5270 * @param event packet 5271 * @return avdtp_cid 5272 * @note: btstack_type 2 5273 */ 5274 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_capability_get_avdtp_cid(const uint8_t * event){ 5275 return little_endian_read_16(event, 3); 5276 } 5277 /** 5278 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5279 * @param event packet 5280 * @return remote_seid 5281 * @note: btstack_type 1 5282 */ 5283 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 5284 return event[5]; 5285 } 5286 /** 5287 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5288 * @param event packet 5289 * @return media_type 5290 * @note: btstack_type 1 5291 */ 5292 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 5293 return event[6]; 5294 } 5295 /** 5296 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5297 * @param event packet 5298 * @return sampling_frequency_bitmap 5299 * @note: btstack_type 1 5300 */ 5301 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 5302 return event[7]; 5303 } 5304 /** 5305 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5306 * @param event packet 5307 * @return channel_mode_bitmap 5308 * @note: btstack_type 1 5309 */ 5310 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 5311 return event[8]; 5312 } 5313 /** 5314 * @brief Get field block_length_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5315 * @param event packet 5316 * @return block_length_bitmap 5317 * @note: btstack_type 1 5318 */ 5319 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 5320 return event[9]; 5321 } 5322 /** 5323 * @brief Get field subbands_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5324 * @param event packet 5325 * @return subbands_bitmap 5326 * @note: btstack_type 1 5327 */ 5328 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 5329 return event[10]; 5330 } 5331 /** 5332 * @brief Get field allocation_method_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5333 * @param event packet 5334 * @return allocation_method_bitmap 5335 * @note: btstack_type 1 5336 */ 5337 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 5338 return event[11]; 5339 } 5340 /** 5341 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5342 * @param event packet 5343 * @return min_bitpool_value 5344 * @note: btstack_type 1 5345 */ 5346 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 5347 return event[12]; 5348 } 5349 /** 5350 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 5351 * @param event packet 5352 * @return max_bitpool_value 5353 * @note: btstack_type 1 5354 */ 5355 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 5356 return event[13]; 5357 } 5358 5359 /** 5360 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5361 * @param event packet 5362 * @return avdtp_cid 5363 * @note: btstack_type 2 5364 */ 5365 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_avdtp_cid(const uint8_t * event){ 5366 return little_endian_read_16(event, 3); 5367 } 5368 /** 5369 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5370 * @param event packet 5371 * @return remote_seid 5372 * @note: btstack_type 1 5373 */ 5374 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 5375 return event[5]; 5376 } 5377 /** 5378 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5379 * @param event packet 5380 * @return media_type 5381 * @note: btstack_type 1 5382 */ 5383 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 5384 return event[6]; 5385 } 5386 /** 5387 * @brief Get field layer_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5388 * @param event packet 5389 * @return layer_bitmap 5390 * @note: btstack_type 1 5391 */ 5392 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 5393 return event[7]; 5394 } 5395 /** 5396 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5397 * @param event packet 5398 * @return crc 5399 * @note: btstack_type 1 5400 */ 5401 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 5402 return event[8]; 5403 } 5404 /** 5405 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5406 * @param event packet 5407 * @return channel_mode_bitmap 5408 * @note: btstack_type 1 5409 */ 5410 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 5411 return event[9]; 5412 } 5413 /** 5414 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5415 * @param event packet 5416 * @return media_payload_format 5417 * @note: btstack_type 1 5418 */ 5419 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 5420 return event[10]; 5421 } 5422 /** 5423 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5424 * @param event packet 5425 * @return sampling_frequency_bitmap 5426 * @note: btstack_type 1 5427 */ 5428 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 5429 return event[11]; 5430 } 5431 /** 5432 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5433 * @param event packet 5434 * @return vbr 5435 * @note: btstack_type 1 5436 */ 5437 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 5438 return event[12]; 5439 } 5440 /** 5441 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 5442 * @param event packet 5443 * @return bit_rate_index_bitmap 5444 * @note: btstack_type 2 5445 */ 5446 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 5447 return little_endian_read_16(event, 13); 5448 } 5449 5450 /** 5451 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5452 * @param event packet 5453 * @return avdtp_cid 5454 * @note: btstack_type 2 5455 */ 5456 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_avdtp_cid(const uint8_t * event){ 5457 return little_endian_read_16(event, 3); 5458 } 5459 /** 5460 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5461 * @param event packet 5462 * @return remote_seid 5463 * @note: btstack_type 1 5464 */ 5465 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 5466 return event[5]; 5467 } 5468 /** 5469 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5470 * @param event packet 5471 * @return media_type 5472 * @note: btstack_type 1 5473 */ 5474 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 5475 return event[6]; 5476 } 5477 /** 5478 * @brief Get field object_type_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5479 * @param event packet 5480 * @return object_type_bitmap 5481 * @note: btstack_type 1 5482 */ 5483 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 5484 return event[7]; 5485 } 5486 /** 5487 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5488 * @param event packet 5489 * @return sampling_frequency_bitmap 5490 * @note: btstack_type 2 5491 */ 5492 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 5493 return little_endian_read_16(event, 8); 5494 } 5495 /** 5496 * @brief Get field channels_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5497 * @param event packet 5498 * @return channels_bitmap 5499 * @note: btstack_type 1 5500 */ 5501 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 5502 return event[10]; 5503 } 5504 /** 5505 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5506 * @param event packet 5507 * @return bit_rate 5508 * @note: btstack_type 3 5509 */ 5510 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 5511 return little_endian_read_24(event, 11); 5512 } 5513 /** 5514 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 5515 * @param event packet 5516 * @return vbr 5517 * @note: btstack_type 1 5518 */ 5519 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 5520 return event[14]; 5521 } 5522 5523 /** 5524 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5525 * @param event packet 5526 * @return avdtp_cid 5527 * @note: btstack_type 2 5528 */ 5529 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_avdtp_cid(const uint8_t * event){ 5530 return little_endian_read_16(event, 3); 5531 } 5532 /** 5533 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5534 * @param event packet 5535 * @return remote_seid 5536 * @note: btstack_type 1 5537 */ 5538 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 5539 return event[5]; 5540 } 5541 /** 5542 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5543 * @param event packet 5544 * @return media_type 5545 * @note: btstack_type 1 5546 */ 5547 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 5548 return event[6]; 5549 } 5550 /** 5551 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5552 * @param event packet 5553 * @return version 5554 * @note: btstack_type 1 5555 */ 5556 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 5557 return event[7]; 5558 } 5559 /** 5560 * @brief Get field channel_mode_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5561 * @param event packet 5562 * @return channel_mode_bitmap 5563 * @note: btstack_type 1 5564 */ 5565 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 5566 return event[8]; 5567 } 5568 /** 5569 * @brief Get field sampling_frequency_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5570 * @param event packet 5571 * @return sampling_frequency_bitmap 5572 * @note: btstack_type 1 5573 */ 5574 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 5575 return event[9]; 5576 } 5577 /** 5578 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5579 * @param event packet 5580 * @return vbr 5581 * @note: btstack_type 1 5582 */ 5583 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 5584 return event[10]; 5585 } 5586 /** 5587 * @brief Get field bit_rate_index_bitmap from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5588 * @param event packet 5589 * @return bit_rate_index_bitmap 5590 * @note: btstack_type 3 5591 */ 5592 static inline uint32_t avdtp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 5593 return little_endian_read_24(event, 11); 5594 } 5595 /** 5596 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 5597 * @param event packet 5598 * @return maximum_sul 5599 * @note: btstack_type 2 5600 */ 5601 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 5602 return little_endian_read_16(event, 14); 5603 } 5604 5605 /** 5606 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 5607 * @param event packet 5608 * @return avdtp_cid 5609 * @note: btstack_type 2 5610 */ 5611 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_avdtp_cid(const uint8_t * event){ 5612 return little_endian_read_16(event, 3); 5613 } 5614 /** 5615 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 5616 * @param event packet 5617 * @return remote_seid 5618 * @note: btstack_type 1 5619 */ 5620 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 5621 return event[5]; 5622 } 5623 /** 5624 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 5625 * @param event packet 5626 * @return media_type 5627 * @note: btstack_type 1 5628 */ 5629 static inline uint8_t avdtp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 5630 return event[6]; 5631 } 5632 /** 5633 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 5634 * @param event packet 5635 * @return media_codec_type 5636 * @note: btstack_type 2 5637 */ 5638 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 5639 return little_endian_read_16(event, 7); 5640 } 5641 /** 5642 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 5643 * @param event packet 5644 * @return media_codec_information_len 5645 * @note: btstack_type L 5646 */ 5647 static inline uint16_t avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 5648 return little_endian_read_16(event, 9); 5649 } 5650 /** 5651 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 5652 * @param event packet 5653 * @return media_codec_information 5654 * @note: btstack_type V 5655 */ 5656 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 5657 return &event[11]; 5658 } 5659 5660 /** 5661 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 5662 * @param event packet 5663 * @return avdtp_cid 5664 * @note: btstack_type 2 5665 */ 5666 static inline uint16_t avdtp_subevent_signaling_media_transport_capability_get_avdtp_cid(const uint8_t * event){ 5667 return little_endian_read_16(event, 3); 5668 } 5669 /** 5670 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY 5671 * @param event packet 5672 * @return remote_seid 5673 * @note: btstack_type 1 5674 */ 5675 static inline uint8_t avdtp_subevent_signaling_media_transport_capability_get_remote_seid(const uint8_t * event){ 5676 return event[5]; 5677 } 5678 5679 /** 5680 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 5681 * @param event packet 5682 * @return avdtp_cid 5683 * @note: btstack_type 2 5684 */ 5685 static inline uint16_t avdtp_subevent_signaling_reporting_capability_get_avdtp_cid(const uint8_t * event){ 5686 return little_endian_read_16(event, 3); 5687 } 5688 /** 5689 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_REPORTING_CAPABILITY 5690 * @param event packet 5691 * @return remote_seid 5692 * @note: btstack_type 1 5693 */ 5694 static inline uint8_t avdtp_subevent_signaling_reporting_capability_get_remote_seid(const uint8_t * event){ 5695 return event[5]; 5696 } 5697 5698 /** 5699 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 5700 * @param event packet 5701 * @return avdtp_cid 5702 * @note: btstack_type 2 5703 */ 5704 static inline uint16_t avdtp_subevent_signaling_recovery_capability_get_avdtp_cid(const uint8_t * event){ 5705 return little_endian_read_16(event, 3); 5706 } 5707 /** 5708 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 5709 * @param event packet 5710 * @return remote_seid 5711 * @note: btstack_type 1 5712 */ 5713 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_remote_seid(const uint8_t * event){ 5714 return event[5]; 5715 } 5716 /** 5717 * @brief Get field recovery_type from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 5718 * @param event packet 5719 * @return recovery_type 5720 * @note: btstack_type 1 5721 */ 5722 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_recovery_type(const uint8_t * event){ 5723 return event[6]; 5724 } 5725 /** 5726 * @brief Get field maximum_recovery_window_size from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 5727 * @param event packet 5728 * @return maximum_recovery_window_size 5729 * @note: btstack_type 1 5730 */ 5731 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_recovery_window_size(const uint8_t * event){ 5732 return event[7]; 5733 } 5734 /** 5735 * @brief Get field maximum_number_media_packets from event AVDTP_SUBEVENT_SIGNALING_RECOVERY_CAPABILITY 5736 * @param event packet 5737 * @return maximum_number_media_packets 5738 * @note: btstack_type 1 5739 */ 5740 static inline uint8_t avdtp_subevent_signaling_recovery_capability_get_maximum_number_media_packets(const uint8_t * event){ 5741 return event[8]; 5742 } 5743 5744 /** 5745 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 5746 * @param event packet 5747 * @return avdtp_cid 5748 * @note: btstack_type 2 5749 */ 5750 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_avdtp_cid(const uint8_t * event){ 5751 return little_endian_read_16(event, 3); 5752 } 5753 /** 5754 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 5755 * @param event packet 5756 * @return remote_seid 5757 * @note: btstack_type 1 5758 */ 5759 static inline uint8_t avdtp_subevent_signaling_content_protection_capability_get_remote_seid(const uint8_t * event){ 5760 return event[5]; 5761 } 5762 /** 5763 * @brief Get field cp_type from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 5764 * @param event packet 5765 * @return cp_type 5766 * @note: btstack_type 2 5767 */ 5768 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type(const uint8_t * event){ 5769 return little_endian_read_16(event, 6); 5770 } 5771 /** 5772 * @brief Get field cp_type_value_len from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 5773 * @param event packet 5774 * @return cp_type_value_len 5775 * @note: btstack_type L 5776 */ 5777 static inline uint16_t avdtp_subevent_signaling_content_protection_capability_get_cp_type_value_len(const uint8_t * event){ 5778 return little_endian_read_16(event, 8); 5779 } 5780 /** 5781 * @brief Get field cp_type_value from event AVDTP_SUBEVENT_SIGNALING_CONTENT_PROTECTION_CAPABILITY 5782 * @param event packet 5783 * @return cp_type_value 5784 * @note: btstack_type V 5785 */ 5786 static inline const uint8_t * avdtp_subevent_signaling_content_protection_capability_get_cp_type_value(const uint8_t * event){ 5787 return &event[10]; 5788 } 5789 5790 /** 5791 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5792 * @param event packet 5793 * @return avdtp_cid 5794 * @note: btstack_type 2 5795 */ 5796 static inline uint16_t avdtp_subevent_signaling_multiplexing_capability_get_avdtp_cid(const uint8_t * event){ 5797 return little_endian_read_16(event, 3); 5798 } 5799 /** 5800 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5801 * @param event packet 5802 * @return remote_seid 5803 * @note: btstack_type 1 5804 */ 5805 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_remote_seid(const uint8_t * event){ 5806 return event[5]; 5807 } 5808 /** 5809 * @brief Get field fragmentation from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5810 * @param event packet 5811 * @return fragmentation 5812 * @note: btstack_type 1 5813 */ 5814 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_fragmentation(const uint8_t * event){ 5815 return event[6]; 5816 } 5817 /** 5818 * @brief Get field transport_identifiers_num from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5819 * @param event packet 5820 * @return transport_identifiers_num 5821 * @note: btstack_type 1 5822 */ 5823 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_identifiers_num(const uint8_t * event){ 5824 return event[7]; 5825 } 5826 /** 5827 * @brief Get field transport_session_identifier_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5828 * @param event packet 5829 * @return transport_session_identifier_1 5830 * @note: btstack_type 1 5831 */ 5832 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_1(const uint8_t * event){ 5833 return event[8]; 5834 } 5835 /** 5836 * @brief Get field transport_session_identifier_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5837 * @param event packet 5838 * @return transport_session_identifier_2 5839 * @note: btstack_type 1 5840 */ 5841 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_2(const uint8_t * event){ 5842 return event[9]; 5843 } 5844 /** 5845 * @brief Get field transport_session_identifier_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5846 * @param event packet 5847 * @return transport_session_identifier_3 5848 * @note: btstack_type 1 5849 */ 5850 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_transport_session_identifier_3(const uint8_t * event){ 5851 return event[10]; 5852 } 5853 /** 5854 * @brief Get field tcid_1 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5855 * @param event packet 5856 * @return tcid_1 5857 * @note: btstack_type 1 5858 */ 5859 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_1(const uint8_t * event){ 5860 return event[11]; 5861 } 5862 /** 5863 * @brief Get field tcid_2 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5864 * @param event packet 5865 * @return tcid_2 5866 * @note: btstack_type 1 5867 */ 5868 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_2(const uint8_t * event){ 5869 return event[12]; 5870 } 5871 /** 5872 * @brief Get field tcid_3 from event AVDTP_SUBEVENT_SIGNALING_MULTIPLEXING_CAPABILITY 5873 * @param event packet 5874 * @return tcid_3 5875 * @note: btstack_type 1 5876 */ 5877 static inline uint8_t avdtp_subevent_signaling_multiplexing_capability_get_tcid_3(const uint8_t * event){ 5878 return event[13]; 5879 } 5880 5881 /** 5882 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 5883 * @param event packet 5884 * @return avdtp_cid 5885 * @note: btstack_type 2 5886 */ 5887 static inline uint16_t avdtp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){ 5888 return little_endian_read_16(event, 3); 5889 } 5890 /** 5891 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 5892 * @param event packet 5893 * @return remote_seid 5894 * @note: btstack_type 1 5895 */ 5896 static inline uint8_t avdtp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 5897 return event[5]; 5898 } 5899 5900 /** 5901 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 5902 * @param event packet 5903 * @return avdtp_cid 5904 * @note: btstack_type 2 5905 */ 5906 static inline uint16_t avdtp_subevent_signaling_header_compression_capability_get_avdtp_cid(const uint8_t * event){ 5907 return little_endian_read_16(event, 3); 5908 } 5909 /** 5910 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 5911 * @param event packet 5912 * @return remote_seid 5913 * @note: btstack_type 1 5914 */ 5915 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_remote_seid(const uint8_t * event){ 5916 return event[5]; 5917 } 5918 /** 5919 * @brief Get field back_ch from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 5920 * @param event packet 5921 * @return back_ch 5922 * @note: btstack_type 1 5923 */ 5924 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_back_ch(const uint8_t * event){ 5925 return event[6]; 5926 } 5927 /** 5928 * @brief Get field media from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 5929 * @param event packet 5930 * @return media 5931 * @note: btstack_type 1 5932 */ 5933 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_media(const uint8_t * event){ 5934 return event[7]; 5935 } 5936 /** 5937 * @brief Get field recovery from event AVDTP_SUBEVENT_SIGNALING_HEADER_COMPRESSION_CAPABILITY 5938 * @param event packet 5939 * @return recovery 5940 * @note: btstack_type 1 5941 */ 5942 static inline uint8_t avdtp_subevent_signaling_header_compression_capability_get_recovery(const uint8_t * event){ 5943 return event[8]; 5944 } 5945 5946 /** 5947 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 5948 * @param event packet 5949 * @return avdtp_cid 5950 * @note: btstack_type 2 5951 */ 5952 static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){ 5953 return little_endian_read_16(event, 3); 5954 } 5955 /** 5956 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 5957 * @param event packet 5958 * @return remote_seid 5959 * @note: btstack_type 1 5960 */ 5961 static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 5962 return event[5]; 5963 } 5964 5965 /** 5966 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 5967 * @param event packet 5968 * @return avdtp_cid 5969 * @note: btstack_type 2 5970 */ 5971 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_avdtp_cid(const uint8_t * event){ 5972 return little_endian_read_16(event, 3); 5973 } 5974 /** 5975 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 5976 * @param event packet 5977 * @return local_seid 5978 * @note: btstack_type 1 5979 */ 5980 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 5981 return event[5]; 5982 } 5983 /** 5984 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 5985 * @param event packet 5986 * @return remote_seid 5987 * @note: btstack_type 1 5988 */ 5989 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 5990 return event[6]; 5991 } 5992 /** 5993 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 5994 * @param event packet 5995 * @return reconfigure 5996 * @note: btstack_type 1 5997 */ 5998 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 5999 return event[7]; 6000 } 6001 /** 6002 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6003 * @param event packet 6004 * @return media_type 6005 * @note: btstack_type 1 6006 */ 6007 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 6008 return event[8]; 6009 } 6010 /** 6011 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6012 * @param event packet 6013 * @return sampling_frequency 6014 * @note: btstack_type 2 6015 */ 6016 static inline uint16_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 6017 return little_endian_read_16(event, 9); 6018 } 6019 /** 6020 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6021 * @param event packet 6022 * @return channel_mode 6023 * @note: btstack_type 1 6024 */ 6025 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 6026 return event[11]; 6027 } 6028 /** 6029 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6030 * @param event packet 6031 * @return num_channels 6032 * @note: btstack_type 1 6033 */ 6034 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 6035 return event[12]; 6036 } 6037 /** 6038 * @brief Get field block_length from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6039 * @param event packet 6040 * @return block_length 6041 * @note: btstack_type 1 6042 */ 6043 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 6044 return event[13]; 6045 } 6046 /** 6047 * @brief Get field subbands from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6048 * @param event packet 6049 * @return subbands 6050 * @note: btstack_type 1 6051 */ 6052 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 6053 return event[14]; 6054 } 6055 /** 6056 * @brief Get field allocation_method from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6057 * @param event packet 6058 * @return allocation_method 6059 * @note: btstack_type 1 6060 */ 6061 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 6062 return event[15]; 6063 } 6064 /** 6065 * @brief Get field min_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6066 * @param event packet 6067 * @return min_bitpool_value 6068 * @note: btstack_type 1 6069 */ 6070 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 6071 return event[16]; 6072 } 6073 /** 6074 * @brief Get field max_bitpool_value from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6075 * @param event packet 6076 * @return max_bitpool_value 6077 * @note: btstack_type 1 6078 */ 6079 static inline uint8_t avdtp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 6080 return event[17]; 6081 } 6082 6083 /** 6084 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6085 * @param event packet 6086 * @return avdtp_cid 6087 * @note: btstack_type 2 6088 */ 6089 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_avdtp_cid(const uint8_t * event){ 6090 return little_endian_read_16(event, 3); 6091 } 6092 /** 6093 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6094 * @param event packet 6095 * @return local_seid 6096 * @note: btstack_type 1 6097 */ 6098 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 6099 return event[5]; 6100 } 6101 /** 6102 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6103 * @param event packet 6104 * @return remote_seid 6105 * @note: btstack_type 1 6106 */ 6107 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 6108 return event[6]; 6109 } 6110 /** 6111 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6112 * @param event packet 6113 * @return reconfigure 6114 * @note: btstack_type 1 6115 */ 6116 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 6117 return event[7]; 6118 } 6119 /** 6120 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6121 * @param event packet 6122 * @return media_type 6123 * @note: btstack_type 1 6124 */ 6125 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 6126 return event[8]; 6127 } 6128 /** 6129 * @brief Get field layer from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6130 * @param event packet 6131 * @return layer 6132 * @note: btstack_type 1 6133 */ 6134 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 6135 return event[9]; 6136 } 6137 /** 6138 * @brief Get field crc from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6139 * @param event packet 6140 * @return crc 6141 * @note: btstack_type 1 6142 */ 6143 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 6144 return event[10]; 6145 } 6146 /** 6147 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6148 * @param event packet 6149 * @return channel_mode 6150 * @note: btstack_type 1 6151 */ 6152 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 6153 return event[11]; 6154 } 6155 /** 6156 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6157 * @param event packet 6158 * @return num_channels 6159 * @note: btstack_type 1 6160 */ 6161 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 6162 return event[12]; 6163 } 6164 /** 6165 * @brief Get field media_payload_format from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6166 * @param event packet 6167 * @return media_payload_format 6168 * @note: btstack_type 1 6169 */ 6170 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 6171 return event[13]; 6172 } 6173 /** 6174 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6175 * @param event packet 6176 * @return sampling_frequency 6177 * @note: btstack_type 2 6178 */ 6179 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 6180 return little_endian_read_16(event, 14); 6181 } 6182 /** 6183 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6184 * @param event packet 6185 * @return vbr 6186 * @note: btstack_type 1 6187 */ 6188 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 6189 return event[16]; 6190 } 6191 /** 6192 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6193 * @param event packet 6194 * @return bit_rate_index 6195 * @note: btstack_type 1 6196 */ 6197 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 6198 return event[17]; 6199 } 6200 6201 /** 6202 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6203 * @param event packet 6204 * @return avdtp_cid 6205 * @note: btstack_type 2 6206 */ 6207 static inline uint16_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_avdtp_cid(const uint8_t * event){ 6208 return little_endian_read_16(event, 3); 6209 } 6210 /** 6211 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6212 * @param event packet 6213 * @return local_seid 6214 * @note: btstack_type 1 6215 */ 6216 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 6217 return event[5]; 6218 } 6219 /** 6220 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6221 * @param event packet 6222 * @return remote_seid 6223 * @note: btstack_type 1 6224 */ 6225 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 6226 return event[6]; 6227 } 6228 /** 6229 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6230 * @param event packet 6231 * @return reconfigure 6232 * @note: btstack_type 1 6233 */ 6234 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 6235 return event[7]; 6236 } 6237 /** 6238 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6239 * @param event packet 6240 * @return media_type 6241 * @note: btstack_type 1 6242 */ 6243 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 6244 return event[8]; 6245 } 6246 /** 6247 * @brief Get field object_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6248 * @param event packet 6249 * @return object_type 6250 * @note: btstack_type 1 6251 */ 6252 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 6253 return event[9]; 6254 } 6255 /** 6256 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6257 * @param event packet 6258 * @return sampling_frequency 6259 * @note: btstack_type 3 6260 */ 6261 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 6262 return little_endian_read_24(event, 10); 6263 } 6264 /** 6265 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6266 * @param event packet 6267 * @return num_channels 6268 * @note: btstack_type 1 6269 */ 6270 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 6271 return event[13]; 6272 } 6273 /** 6274 * @brief Get field bit_rate from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6275 * @param event packet 6276 * @return bit_rate 6277 * @note: btstack_type 3 6278 */ 6279 static inline uint32_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 6280 return little_endian_read_24(event, 14); 6281 } 6282 /** 6283 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6284 * @param event packet 6285 * @return vbr 6286 * @note: btstack_type 1 6287 */ 6288 static inline uint8_t avdtp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 6289 return event[17]; 6290 } 6291 6292 /** 6293 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6294 * @param event packet 6295 * @return avdtp_cid 6296 * @note: btstack_type 2 6297 */ 6298 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_avdtp_cid(const uint8_t * event){ 6299 return little_endian_read_16(event, 3); 6300 } 6301 /** 6302 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6303 * @param event packet 6304 * @return local_seid 6305 * @note: btstack_type 1 6306 */ 6307 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 6308 return event[5]; 6309 } 6310 /** 6311 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6312 * @param event packet 6313 * @return remote_seid 6314 * @note: btstack_type 1 6315 */ 6316 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 6317 return event[6]; 6318 } 6319 /** 6320 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6321 * @param event packet 6322 * @return reconfigure 6323 * @note: btstack_type 1 6324 */ 6325 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 6326 return event[7]; 6327 } 6328 /** 6329 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6330 * @param event packet 6331 * @return media_type 6332 * @note: btstack_type 1 6333 */ 6334 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 6335 return event[8]; 6336 } 6337 /** 6338 * @brief Get field version from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6339 * @param event packet 6340 * @return version 6341 * @note: btstack_type 1 6342 */ 6343 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 6344 return event[9]; 6345 } 6346 /** 6347 * @brief Get field channel_mode from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6348 * @param event packet 6349 * @return channel_mode 6350 * @note: btstack_type 1 6351 */ 6352 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 6353 return event[10]; 6354 } 6355 /** 6356 * @brief Get field num_channels from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6357 * @param event packet 6358 * @return num_channels 6359 * @note: btstack_type 1 6360 */ 6361 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 6362 return event[11]; 6363 } 6364 /** 6365 * @brief Get field sampling_frequency from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6366 * @param event packet 6367 * @return sampling_frequency 6368 * @note: btstack_type 2 6369 */ 6370 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 6371 return little_endian_read_16(event, 12); 6372 } 6373 /** 6374 * @brief Get field vbr from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6375 * @param event packet 6376 * @return vbr 6377 * @note: btstack_type 1 6378 */ 6379 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 6380 return event[14]; 6381 } 6382 /** 6383 * @brief Get field bit_rate_index from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6384 * @param event packet 6385 * @return bit_rate_index 6386 * @note: btstack_type 1 6387 */ 6388 static inline uint8_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 6389 return event[15]; 6390 } 6391 /** 6392 * @brief Get field maximum_sul from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6393 * @param event packet 6394 * @return maximum_sul 6395 * @note: btstack_type 2 6396 */ 6397 static inline uint16_t avdtp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 6398 return little_endian_read_16(event, 16); 6399 } 6400 6401 /** 6402 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6403 * @param event packet 6404 * @return avdtp_cid 6405 * @note: btstack_type 2 6406 */ 6407 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_avdtp_cid(const uint8_t * event){ 6408 return little_endian_read_16(event, 3); 6409 } 6410 /** 6411 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6412 * @param event packet 6413 * @return local_seid 6414 * @note: btstack_type 1 6415 */ 6416 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 6417 return event[5]; 6418 } 6419 /** 6420 * @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6421 * @param event packet 6422 * @return remote_seid 6423 * @note: btstack_type 1 6424 */ 6425 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 6426 return event[6]; 6427 } 6428 /** 6429 * @brief Get field reconfigure from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6430 * @param event packet 6431 * @return reconfigure 6432 * @note: btstack_type 1 6433 */ 6434 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 6435 return event[7]; 6436 } 6437 /** 6438 * @brief Get field media_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6439 * @param event packet 6440 * @return media_type 6441 * @note: btstack_type 1 6442 */ 6443 static inline uint8_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 6444 return event[8]; 6445 } 6446 /** 6447 * @brief Get field media_codec_type from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6448 * @param event packet 6449 * @return media_codec_type 6450 * @note: btstack_type 2 6451 */ 6452 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 6453 return little_endian_read_16(event, 9); 6454 } 6455 /** 6456 * @brief Get field media_codec_information_len from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6457 * @param event packet 6458 * @return media_codec_information_len 6459 * @note: btstack_type L 6460 */ 6461 static inline uint16_t avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 6462 return little_endian_read_16(event, 11); 6463 } 6464 /** 6465 * @brief Get field media_codec_information from event AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 6466 * @param event packet 6467 * @return media_codec_information 6468 * @note: btstack_type V 6469 */ 6470 static inline const uint8_t * avdtp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 6471 return &event[13]; 6472 } 6473 6474 /** 6475 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 6476 * @param event packet 6477 * @return avdtp_cid 6478 * @note: btstack_type 2 6479 */ 6480 static inline uint16_t avdtp_subevent_streaming_connection_established_get_avdtp_cid(const uint8_t * event){ 6481 return little_endian_read_16(event, 3); 6482 } 6483 /** 6484 * @brief Get field bd_addr from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 6485 * @param event packet 6486 * @param Pointer to storage for bd_addr 6487 * @note: btstack_type B 6488 */ 6489 static inline void avdtp_subevent_streaming_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 6490 reverse_bytes(&event[5], bd_addr, 6); 6491 } 6492 /** 6493 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 6494 * @param event packet 6495 * @return local_seid 6496 * @note: btstack_type 1 6497 */ 6498 static inline uint8_t avdtp_subevent_streaming_connection_established_get_local_seid(const uint8_t * event){ 6499 return event[11]; 6500 } 6501 /** 6502 * @brief Get field remote_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 6503 * @param event packet 6504 * @return remote_seid 6505 * @note: btstack_type 1 6506 */ 6507 static inline uint8_t avdtp_subevent_streaming_connection_established_get_remote_seid(const uint8_t * event){ 6508 return event[12]; 6509 } 6510 /** 6511 * @brief Get field status from event AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 6512 * @param event packet 6513 * @return status 6514 * @note: btstack_type 1 6515 */ 6516 static inline uint8_t avdtp_subevent_streaming_connection_established_get_status(const uint8_t * event){ 6517 return event[13]; 6518 } 6519 6520 /** 6521 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 6522 * @param event packet 6523 * @return avdtp_cid 6524 * @note: btstack_type 2 6525 */ 6526 static inline uint16_t avdtp_subevent_streaming_connection_released_get_avdtp_cid(const uint8_t * event){ 6527 return little_endian_read_16(event, 3); 6528 } 6529 /** 6530 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 6531 * @param event packet 6532 * @return local_seid 6533 * @note: btstack_type 1 6534 */ 6535 static inline uint8_t avdtp_subevent_streaming_connection_released_get_local_seid(const uint8_t * event){ 6536 return event[5]; 6537 } 6538 6539 /** 6540 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 6541 * @param event packet 6542 * @return avdtp_cid 6543 * @note: btstack_type 2 6544 */ 6545 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_avdtp_cid(const uint8_t * event){ 6546 return little_endian_read_16(event, 3); 6547 } 6548 /** 6549 * @brief Get field local_seid from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 6550 * @param event packet 6551 * @return local_seid 6552 * @note: btstack_type 1 6553 */ 6554 static inline uint8_t avdtp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 6555 return event[5]; 6556 } 6557 /** 6558 * @brief Get field sequence_number from event AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 6559 * @param event packet 6560 * @return sequence_number 6561 * @note: btstack_type 2 6562 */ 6563 static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_sequence_number(const uint8_t * event){ 6564 return little_endian_read_16(event, 6); 6565 } 6566 6567 /** 6568 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE 6569 * @param event packet 6570 * @return avdtp_cid 6571 * @note: btstack_type 2 6572 */ 6573 static inline uint16_t avdtp_subevent_signaling_sep_dicovery_done_get_avdtp_cid(const uint8_t * event){ 6574 return little_endian_read_16(event, 3); 6575 } 6576 6577 /** 6578 * @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 6579 * @param event packet 6580 * @return avdtp_cid 6581 * @note: btstack_type 2 6582 */ 6583 static inline uint16_t avdtp_subevent_signaling_delay_report_get_avdtp_cid(const uint8_t * event){ 6584 return little_endian_read_16(event, 3); 6585 } 6586 /** 6587 * @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 6588 * @param event packet 6589 * @return local_seid 6590 * @note: btstack_type 1 6591 */ 6592 static inline uint8_t avdtp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 6593 return event[5]; 6594 } 6595 /** 6596 * @brief Get field delay_100us from event AVDTP_SUBEVENT_SIGNALING_DELAY_REPORT 6597 * @param event packet 6598 * @return delay_100us 6599 * @note: btstack_type 2 6600 */ 6601 static inline uint16_t avdtp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 6602 return little_endian_read_16(event, 6); 6603 } 6604 6605 /** 6606 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 6607 * @param event packet 6608 * @return a2dp_cid 6609 * @note: btstack_type 2 6610 */ 6611 static inline uint16_t a2dp_subevent_streaming_can_send_media_packet_now_get_a2dp_cid(const uint8_t * event){ 6612 return little_endian_read_16(event, 3); 6613 } 6614 /** 6615 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 6616 * @param event packet 6617 * @return local_seid 6618 * @note: btstack_type 1 6619 */ 6620 static inline uint8_t a2dp_subevent_streaming_can_send_media_packet_now_get_local_seid(const uint8_t * event){ 6621 return event[5]; 6622 } 6623 6624 /** 6625 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6626 * @param event packet 6627 * @return a2dp_cid 6628 * @note: btstack_type 2 6629 */ 6630 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_a2dp_cid(const uint8_t * event){ 6631 return little_endian_read_16(event, 3); 6632 } 6633 /** 6634 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6635 * @param event packet 6636 * @return local_seid 6637 * @note: btstack_type 1 6638 */ 6639 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_local_seid(const uint8_t * event){ 6640 return event[5]; 6641 } 6642 /** 6643 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6644 * @param event packet 6645 * @return remote_seid 6646 * @note: btstack_type 1 6647 */ 6648 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_remote_seid(const uint8_t * event){ 6649 return event[6]; 6650 } 6651 /** 6652 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6653 * @param event packet 6654 * @return reconfigure 6655 * @note: btstack_type 1 6656 */ 6657 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_reconfigure(const uint8_t * event){ 6658 return event[7]; 6659 } 6660 /** 6661 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6662 * @param event packet 6663 * @return media_type 6664 * @note: btstack_type 1 6665 */ 6666 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_media_type(const uint8_t * event){ 6667 return event[8]; 6668 } 6669 /** 6670 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6671 * @param event packet 6672 * @return sampling_frequency 6673 * @note: btstack_type 2 6674 */ 6675 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_sampling_frequency(const uint8_t * event){ 6676 return little_endian_read_16(event, 9); 6677 } 6678 /** 6679 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6680 * @param event packet 6681 * @return channel_mode 6682 * @note: btstack_type 1 6683 */ 6684 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_channel_mode(const uint8_t * event){ 6685 return event[11]; 6686 } 6687 /** 6688 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6689 * @param event packet 6690 * @return num_channels 6691 * @note: btstack_type 1 6692 */ 6693 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_num_channels(const uint8_t * event){ 6694 return event[12]; 6695 } 6696 /** 6697 * @brief Get field block_length from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6698 * @param event packet 6699 * @return block_length 6700 * @note: btstack_type 1 6701 */ 6702 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_block_length(const uint8_t * event){ 6703 return event[13]; 6704 } 6705 /** 6706 * @brief Get field subbands from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6707 * @param event packet 6708 * @return subbands 6709 * @note: btstack_type 1 6710 */ 6711 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_subbands(const uint8_t * event){ 6712 return event[14]; 6713 } 6714 /** 6715 * @brief Get field allocation_method from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6716 * @param event packet 6717 * @return allocation_method 6718 * @note: btstack_type 1 6719 */ 6720 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_allocation_method(const uint8_t * event){ 6721 return event[15]; 6722 } 6723 /** 6724 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6725 * @param event packet 6726 * @return min_bitpool_value 6727 * @note: btstack_type 1 6728 */ 6729 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_min_bitpool_value(const uint8_t * event){ 6730 return event[16]; 6731 } 6732 /** 6733 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION 6734 * @param event packet 6735 * @return max_bitpool_value 6736 * @note: btstack_type 1 6737 */ 6738 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_configuration_get_max_bitpool_value(const uint8_t * event){ 6739 return event[17]; 6740 } 6741 6742 /** 6743 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6744 * @param event packet 6745 * @return a2dp_cid 6746 * @note: btstack_type 2 6747 */ 6748 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_a2dp_cid(const uint8_t * event){ 6749 return little_endian_read_16(event, 3); 6750 } 6751 /** 6752 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6753 * @param event packet 6754 * @return local_seid 6755 * @note: btstack_type 1 6756 */ 6757 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_local_seid(const uint8_t * event){ 6758 return event[5]; 6759 } 6760 /** 6761 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6762 * @param event packet 6763 * @return remote_seid 6764 * @note: btstack_type 1 6765 */ 6766 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_remote_seid(const uint8_t * event){ 6767 return event[6]; 6768 } 6769 /** 6770 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6771 * @param event packet 6772 * @return reconfigure 6773 * @note: btstack_type 1 6774 */ 6775 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_reconfigure(const uint8_t * event){ 6776 return event[7]; 6777 } 6778 /** 6779 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6780 * @param event packet 6781 * @return media_type 6782 * @note: btstack_type 1 6783 */ 6784 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_type(const uint8_t * event){ 6785 return event[8]; 6786 } 6787 /** 6788 * @brief Get field layer from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6789 * @param event packet 6790 * @return layer 6791 * @note: btstack_type 1 6792 */ 6793 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_layer(const uint8_t * event){ 6794 return event[9]; 6795 } 6796 /** 6797 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6798 * @param event packet 6799 * @return crc 6800 * @note: btstack_type 1 6801 */ 6802 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_crc(const uint8_t * event){ 6803 return event[10]; 6804 } 6805 /** 6806 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6807 * @param event packet 6808 * @return channel_mode 6809 * @note: btstack_type 1 6810 */ 6811 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_channel_mode(const uint8_t * event){ 6812 return event[11]; 6813 } 6814 /** 6815 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6816 * @param event packet 6817 * @return num_channels 6818 * @note: btstack_type 1 6819 */ 6820 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_num_channels(const uint8_t * event){ 6821 return event[12]; 6822 } 6823 /** 6824 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6825 * @param event packet 6826 * @return media_payload_format 6827 * @note: btstack_type 1 6828 */ 6829 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_media_payload_format(const uint8_t * event){ 6830 return event[13]; 6831 } 6832 /** 6833 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6834 * @param event packet 6835 * @return sampling_frequency 6836 * @note: btstack_type 2 6837 */ 6838 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_sampling_frequency(const uint8_t * event){ 6839 return little_endian_read_16(event, 14); 6840 } 6841 /** 6842 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6843 * @param event packet 6844 * @return vbr 6845 * @note: btstack_type 1 6846 */ 6847 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_vbr(const uint8_t * event){ 6848 return event[16]; 6849 } 6850 /** 6851 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 6852 * @param event packet 6853 * @return bit_rate_index 6854 * @note: btstack_type 1 6855 */ 6856 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_configuration_get_bit_rate_index(const uint8_t * event){ 6857 return event[17]; 6858 } 6859 6860 /** 6861 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6862 * @param event packet 6863 * @return a2dp_cid 6864 * @note: btstack_type 2 6865 */ 6866 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_a2dp_cid(const uint8_t * event){ 6867 return little_endian_read_16(event, 3); 6868 } 6869 /** 6870 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6871 * @param event packet 6872 * @return local_seid 6873 * @note: btstack_type 1 6874 */ 6875 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_local_seid(const uint8_t * event){ 6876 return event[5]; 6877 } 6878 /** 6879 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6880 * @param event packet 6881 * @return remote_seid 6882 * @note: btstack_type 1 6883 */ 6884 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_remote_seid(const uint8_t * event){ 6885 return event[6]; 6886 } 6887 /** 6888 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6889 * @param event packet 6890 * @return reconfigure 6891 * @note: btstack_type 1 6892 */ 6893 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_reconfigure(const uint8_t * event){ 6894 return event[7]; 6895 } 6896 /** 6897 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6898 * @param event packet 6899 * @return media_type 6900 * @note: btstack_type 1 6901 */ 6902 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_media_type(const uint8_t * event){ 6903 return event[8]; 6904 } 6905 /** 6906 * @brief Get field object_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6907 * @param event packet 6908 * @return object_type 6909 * @note: btstack_type 1 6910 */ 6911 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_object_type(const uint8_t * event){ 6912 return event[9]; 6913 } 6914 /** 6915 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6916 * @param event packet 6917 * @return sampling_frequency 6918 * @note: btstack_type 3 6919 */ 6920 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_sampling_frequency(const uint8_t * event){ 6921 return little_endian_read_24(event, 10); 6922 } 6923 /** 6924 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6925 * @param event packet 6926 * @return num_channels 6927 * @note: btstack_type 1 6928 */ 6929 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_num_channels(const uint8_t * event){ 6930 return event[13]; 6931 } 6932 /** 6933 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6934 * @param event packet 6935 * @return bit_rate 6936 * @note: btstack_type 3 6937 */ 6938 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){ 6939 return little_endian_read_24(event, 14); 6940 } 6941 /** 6942 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION 6943 * @param event packet 6944 * @return vbr 6945 * @note: btstack_type 1 6946 */ 6947 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){ 6948 return event[17]; 6949 } 6950 6951 /** 6952 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6953 * @param event packet 6954 * @return a2dp_cid 6955 * @note: btstack_type 2 6956 */ 6957 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_a2dp_cid(const uint8_t * event){ 6958 return little_endian_read_16(event, 3); 6959 } 6960 /** 6961 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6962 * @param event packet 6963 * @return local_seid 6964 * @note: btstack_type 1 6965 */ 6966 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_local_seid(const uint8_t * event){ 6967 return event[5]; 6968 } 6969 /** 6970 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6971 * @param event packet 6972 * @return remote_seid 6973 * @note: btstack_type 1 6974 */ 6975 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_remote_seid(const uint8_t * event){ 6976 return event[6]; 6977 } 6978 /** 6979 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6980 * @param event packet 6981 * @return reconfigure 6982 * @note: btstack_type 1 6983 */ 6984 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_reconfigure(const uint8_t * event){ 6985 return event[7]; 6986 } 6987 /** 6988 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6989 * @param event packet 6990 * @return media_type 6991 * @note: btstack_type 1 6992 */ 6993 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_media_type(const uint8_t * event){ 6994 return event[8]; 6995 } 6996 /** 6997 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 6998 * @param event packet 6999 * @return version 7000 * @note: btstack_type 1 7001 */ 7002 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_version(const uint8_t * event){ 7003 return event[9]; 7004 } 7005 /** 7006 * @brief Get field channel_mode from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 7007 * @param event packet 7008 * @return channel_mode 7009 * @note: btstack_type 1 7010 */ 7011 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_channel_mode(const uint8_t * event){ 7012 return event[10]; 7013 } 7014 /** 7015 * @brief Get field num_channels from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 7016 * @param event packet 7017 * @return num_channels 7018 * @note: btstack_type 1 7019 */ 7020 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_num_channels(const uint8_t * event){ 7021 return event[11]; 7022 } 7023 /** 7024 * @brief Get field sampling_frequency from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 7025 * @param event packet 7026 * @return sampling_frequency 7027 * @note: btstack_type 2 7028 */ 7029 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_sampling_frequency(const uint8_t * event){ 7030 return little_endian_read_16(event, 12); 7031 } 7032 /** 7033 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 7034 * @param event packet 7035 * @return vbr 7036 * @note: btstack_type 1 7037 */ 7038 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_vbr(const uint8_t * event){ 7039 return event[14]; 7040 } 7041 /** 7042 * @brief Get field bit_rate_index from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 7043 * @param event packet 7044 * @return bit_rate_index 7045 * @note: btstack_type 1 7046 */ 7047 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_bit_rate_index(const uint8_t * event){ 7048 return event[15]; 7049 } 7050 /** 7051 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CONFIGURATION 7052 * @param event packet 7053 * @return maximum_sul 7054 * @note: btstack_type 2 7055 */ 7056 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_configuration_get_maximum_sul(const uint8_t * event){ 7057 return little_endian_read_16(event, 16); 7058 } 7059 7060 /** 7061 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7062 * @param event packet 7063 * @return a2dp_cid 7064 * @note: btstack_type 2 7065 */ 7066 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_a2dp_cid(const uint8_t * event){ 7067 return little_endian_read_16(event, 3); 7068 } 7069 /** 7070 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7071 * @param event packet 7072 * @return local_seid 7073 * @note: btstack_type 1 7074 */ 7075 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_local_seid(const uint8_t * event){ 7076 return event[5]; 7077 } 7078 /** 7079 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7080 * @param event packet 7081 * @return remote_seid 7082 * @note: btstack_type 1 7083 */ 7084 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_remote_seid(const uint8_t * event){ 7085 return event[6]; 7086 } 7087 /** 7088 * @brief Get field reconfigure from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7089 * @param event packet 7090 * @return reconfigure 7091 * @note: btstack_type 1 7092 */ 7093 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_reconfigure(const uint8_t * event){ 7094 return event[7]; 7095 } 7096 /** 7097 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7098 * @param event packet 7099 * @return media_type 7100 * @note: btstack_type 1 7101 */ 7102 static inline uint8_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_type(const uint8_t * event){ 7103 return event[8]; 7104 } 7105 /** 7106 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7107 * @param event packet 7108 * @return media_codec_type 7109 * @note: btstack_type 2 7110 */ 7111 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_type(const uint8_t * event){ 7112 return little_endian_read_16(event, 9); 7113 } 7114 /** 7115 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7116 * @param event packet 7117 * @return media_codec_information_len 7118 * @note: btstack_type L 7119 */ 7120 static inline uint16_t a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information_len(const uint8_t * event){ 7121 return little_endian_read_16(event, 11); 7122 } 7123 /** 7124 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 7125 * @param event packet 7126 * @return media_codec_information 7127 * @note: btstack_type V 7128 */ 7129 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_configuration_get_media_codec_information(const uint8_t * event){ 7130 return &event[13]; 7131 } 7132 7133 /** 7134 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 7135 * @param event packet 7136 * @return a2dp_cid 7137 * @note: btstack_type 2 7138 */ 7139 static inline uint16_t a2dp_subevent_stream_established_get_a2dp_cid(const uint8_t * event){ 7140 return little_endian_read_16(event, 3); 7141 } 7142 /** 7143 * @brief Get field bd_addr from event A2DP_SUBEVENT_STREAM_ESTABLISHED 7144 * @param event packet 7145 * @param Pointer to storage for bd_addr 7146 * @note: btstack_type B 7147 */ 7148 static inline void a2dp_subevent_stream_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 7149 reverse_bytes(&event[5], bd_addr, 6); 7150 } 7151 /** 7152 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 7153 * @param event packet 7154 * @return local_seid 7155 * @note: btstack_type 1 7156 */ 7157 static inline uint8_t a2dp_subevent_stream_established_get_local_seid(const uint8_t * event){ 7158 return event[11]; 7159 } 7160 /** 7161 * @brief Get field remote_seid from event A2DP_SUBEVENT_STREAM_ESTABLISHED 7162 * @param event packet 7163 * @return remote_seid 7164 * @note: btstack_type 1 7165 */ 7166 static inline uint8_t a2dp_subevent_stream_established_get_remote_seid(const uint8_t * event){ 7167 return event[12]; 7168 } 7169 /** 7170 * @brief Get field status from event A2DP_SUBEVENT_STREAM_ESTABLISHED 7171 * @param event packet 7172 * @return status 7173 * @note: btstack_type 1 7174 */ 7175 static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 7176 return event[13]; 7177 } 7178 7179 /** 7180 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 7181 * @param event packet 7182 * @return a2dp_cid 7183 * @note: btstack_type 2 7184 */ 7185 static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 7186 return little_endian_read_16(event, 3); 7187 } 7188 /** 7189 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STARTED 7190 * @param event packet 7191 * @return local_seid 7192 * @note: btstack_type 1 7193 */ 7194 static inline uint8_t a2dp_subevent_stream_started_get_local_seid(const uint8_t * event){ 7195 return event[5]; 7196 } 7197 7198 /** 7199 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_SUSPENDED 7200 * @param event packet 7201 * @return a2dp_cid 7202 * @note: btstack_type 2 7203 */ 7204 static inline uint16_t a2dp_subevent_stream_suspended_get_a2dp_cid(const uint8_t * event){ 7205 return little_endian_read_16(event, 3); 7206 } 7207 /** 7208 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_SUSPENDED 7209 * @param event packet 7210 * @return local_seid 7211 * @note: btstack_type 1 7212 */ 7213 static inline uint8_t a2dp_subevent_stream_suspended_get_local_seid(const uint8_t * event){ 7214 return event[5]; 7215 } 7216 7217 /** 7218 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STOPPED 7219 * @param event packet 7220 * @return a2dp_cid 7221 * @note: btstack_type 2 7222 */ 7223 static inline uint16_t a2dp_subevent_stream_stopped_get_a2dp_cid(const uint8_t * event){ 7224 return little_endian_read_16(event, 3); 7225 } 7226 /** 7227 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_STOPPED 7228 * @param event packet 7229 * @return local_seid 7230 * @note: btstack_type 1 7231 */ 7232 static inline uint8_t a2dp_subevent_stream_stopped_get_local_seid(const uint8_t * event){ 7233 return event[5]; 7234 } 7235 7236 /** 7237 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RELEASED 7238 * @param event packet 7239 * @return a2dp_cid 7240 * @note: btstack_type 2 7241 */ 7242 static inline uint16_t a2dp_subevent_stream_released_get_a2dp_cid(const uint8_t * event){ 7243 return little_endian_read_16(event, 3); 7244 } 7245 /** 7246 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RELEASED 7247 * @param event packet 7248 * @return local_seid 7249 * @note: btstack_type 1 7250 */ 7251 static inline uint8_t a2dp_subevent_stream_released_get_local_seid(const uint8_t * event){ 7252 return event[5]; 7253 } 7254 7255 /** 7256 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 7257 * @param event packet 7258 * @return a2dp_cid 7259 * @note: btstack_type 2 7260 */ 7261 static inline uint16_t a2dp_subevent_command_accepted_get_a2dp_cid(const uint8_t * event){ 7262 return little_endian_read_16(event, 3); 7263 } 7264 /** 7265 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_ACCEPTED 7266 * @param event packet 7267 * @return local_seid 7268 * @note: btstack_type 1 7269 */ 7270 static inline uint8_t a2dp_subevent_command_accepted_get_local_seid(const uint8_t * event){ 7271 return event[5]; 7272 } 7273 /** 7274 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_ACCEPTED 7275 * @param event packet 7276 * @return signal_identifier 7277 * @note: btstack_type 1 7278 */ 7279 static inline uint8_t a2dp_subevent_command_accepted_get_signal_identifier(const uint8_t * event){ 7280 return event[6]; 7281 } 7282 7283 /** 7284 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_COMMAND_REJECTED 7285 * @param event packet 7286 * @return a2dp_cid 7287 * @note: btstack_type 2 7288 */ 7289 static inline uint16_t a2dp_subevent_command_rejected_get_a2dp_cid(const uint8_t * event){ 7290 return little_endian_read_16(event, 3); 7291 } 7292 /** 7293 * @brief Get field local_seid from event A2DP_SUBEVENT_COMMAND_REJECTED 7294 * @param event packet 7295 * @return local_seid 7296 * @note: btstack_type 1 7297 */ 7298 static inline uint8_t a2dp_subevent_command_rejected_get_local_seid(const uint8_t * event){ 7299 return event[5]; 7300 } 7301 /** 7302 * @brief Get field is_initiator from event A2DP_SUBEVENT_COMMAND_REJECTED 7303 * @param event packet 7304 * @return is_initiator 7305 * @note: btstack_type 1 7306 */ 7307 static inline uint8_t a2dp_subevent_command_rejected_get_is_initiator(const uint8_t * event){ 7308 return event[6]; 7309 } 7310 /** 7311 * @brief Get field signal_identifier from event A2DP_SUBEVENT_COMMAND_REJECTED 7312 * @param event packet 7313 * @return signal_identifier 7314 * @note: btstack_type 1 7315 */ 7316 static inline uint8_t a2dp_subevent_command_rejected_get_signal_identifier(const uint8_t * event){ 7317 return event[7]; 7318 } 7319 7320 /** 7321 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7322 * @param event packet 7323 * @return a2dp_cid 7324 * @note: btstack_type 2 7325 */ 7326 static inline uint16_t a2dp_subevent_signaling_connection_established_get_a2dp_cid(const uint8_t * event){ 7327 return little_endian_read_16(event, 3); 7328 } 7329 /** 7330 * @brief Get field bd_addr from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7331 * @param event packet 7332 * @param Pointer to storage for bd_addr 7333 * @note: btstack_type B 7334 */ 7335 static inline void a2dp_subevent_signaling_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 7336 reverse_bytes(&event[5], bd_addr, 6); 7337 } 7338 /** 7339 * @brief Get field con_handle from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7340 * @param event packet 7341 * @return con_handle 7342 * @note: btstack_type 2 7343 */ 7344 static inline uint16_t a2dp_subevent_signaling_connection_established_get_con_handle(const uint8_t * event){ 7345 return little_endian_read_16(event, 11); 7346 } 7347 /** 7348 * @brief Get field status from event A2DP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 7349 * @param event packet 7350 * @return status 7351 * @note: btstack_type 1 7352 */ 7353 static inline uint8_t a2dp_subevent_signaling_connection_established_get_status(const uint8_t * event){ 7354 return event[13]; 7355 } 7356 7357 /** 7358 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 7359 * @param event packet 7360 * @return a2dp_cid 7361 * @note: btstack_type 2 7362 */ 7363 static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){ 7364 return little_endian_read_16(event, 3); 7365 } 7366 7367 /** 7368 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 7369 * @param event packet 7370 * @return a2dp_cid 7371 * @note: btstack_type 2 7372 */ 7373 static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){ 7374 return little_endian_read_16(event, 3); 7375 } 7376 /** 7377 * @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED 7378 * @param event packet 7379 * @return local_seid 7380 * @note: btstack_type 1 7381 */ 7382 static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){ 7383 return event[5]; 7384 } 7385 /** 7386 * @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED 7387 * @param event packet 7388 * @return status 7389 * @note: btstack_type 1 7390 */ 7391 static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){ 7392 return event[6]; 7393 } 7394 7395 /** 7396 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7397 * @param event packet 7398 * @return a2dp_cid 7399 * @note: btstack_type 2 7400 */ 7401 static inline uint16_t a2dp_subevent_signaling_media_codec_sbc_capability_get_a2dp_cid(const uint8_t * event){ 7402 return little_endian_read_16(event, 3); 7403 } 7404 /** 7405 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7406 * @param event packet 7407 * @return remote_seid 7408 * @note: btstack_type 1 7409 */ 7410 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_remote_seid(const uint8_t * event){ 7411 return event[5]; 7412 } 7413 /** 7414 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7415 * @param event packet 7416 * @return media_type 7417 * @note: btstack_type 1 7418 */ 7419 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_media_type(const uint8_t * event){ 7420 return event[6]; 7421 } 7422 /** 7423 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7424 * @param event packet 7425 * @return sampling_frequency_bitmap 7426 * @note: btstack_type 1 7427 */ 7428 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7429 return event[7]; 7430 } 7431 /** 7432 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7433 * @param event packet 7434 * @return channel_mode_bitmap 7435 * @note: btstack_type 1 7436 */ 7437 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_channel_mode_bitmap(const uint8_t * event){ 7438 return event[8]; 7439 } 7440 /** 7441 * @brief Get field block_length_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7442 * @param event packet 7443 * @return block_length_bitmap 7444 * @note: btstack_type 1 7445 */ 7446 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_block_length_bitmap(const uint8_t * event){ 7447 return event[9]; 7448 } 7449 /** 7450 * @brief Get field subbands_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7451 * @param event packet 7452 * @return subbands_bitmap 7453 * @note: btstack_type 1 7454 */ 7455 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_subbands_bitmap(const uint8_t * event){ 7456 return event[10]; 7457 } 7458 /** 7459 * @brief Get field allocation_method_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7460 * @param event packet 7461 * @return allocation_method_bitmap 7462 * @note: btstack_type 1 7463 */ 7464 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_allocation_method_bitmap(const uint8_t * event){ 7465 return event[11]; 7466 } 7467 /** 7468 * @brief Get field min_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7469 * @param event packet 7470 * @return min_bitpool_value 7471 * @note: btstack_type 1 7472 */ 7473 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_min_bitpool_value(const uint8_t * event){ 7474 return event[12]; 7475 } 7476 /** 7477 * @brief Get field max_bitpool_value from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY 7478 * @param event packet 7479 * @return max_bitpool_value 7480 * @note: btstack_type 1 7481 */ 7482 static inline uint8_t a2dp_subevent_signaling_media_codec_sbc_capability_get_max_bitpool_value(const uint8_t * event){ 7483 return event[13]; 7484 } 7485 7486 /** 7487 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7488 * @param event packet 7489 * @return a2dp_cid 7490 * @note: btstack_type 2 7491 */ 7492 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_a2dp_cid(const uint8_t * event){ 7493 return little_endian_read_16(event, 3); 7494 } 7495 /** 7496 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7497 * @param event packet 7498 * @return remote_seid 7499 * @note: btstack_type 1 7500 */ 7501 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_remote_seid(const uint8_t * event){ 7502 return event[5]; 7503 } 7504 /** 7505 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7506 * @param event packet 7507 * @return media_type 7508 * @note: btstack_type 1 7509 */ 7510 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_type(const uint8_t * event){ 7511 return event[6]; 7512 } 7513 /** 7514 * @brief Get field layer_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7515 * @param event packet 7516 * @return layer_bitmap 7517 * @note: btstack_type 1 7518 */ 7519 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_layer_bitmap(const uint8_t * event){ 7520 return event[7]; 7521 } 7522 /** 7523 * @brief Get field crc from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7524 * @param event packet 7525 * @return crc 7526 * @note: btstack_type 1 7527 */ 7528 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_crc(const uint8_t * event){ 7529 return event[8]; 7530 } 7531 /** 7532 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7533 * @param event packet 7534 * @return channel_mode_bitmap 7535 * @note: btstack_type 1 7536 */ 7537 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_channel_mode_bitmap(const uint8_t * event){ 7538 return event[9]; 7539 } 7540 /** 7541 * @brief Get field media_payload_format from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7542 * @param event packet 7543 * @return media_payload_format 7544 * @note: btstack_type 1 7545 */ 7546 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_media_payload_format(const uint8_t * event){ 7547 return event[10]; 7548 } 7549 /** 7550 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7551 * @param event packet 7552 * @return sampling_frequency_bitmap 7553 * @note: btstack_type 1 7554 */ 7555 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7556 return event[11]; 7557 } 7558 /** 7559 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7560 * @param event packet 7561 * @return vbr 7562 * @note: btstack_type 1 7563 */ 7564 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_vbr(const uint8_t * event){ 7565 return event[12]; 7566 } 7567 /** 7568 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CAPABILITY 7569 * @param event packet 7570 * @return bit_rate_index_bitmap 7571 * @note: btstack_type 2 7572 */ 7573 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_audio_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7574 return little_endian_read_16(event, 13); 7575 } 7576 7577 /** 7578 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7579 * @param event packet 7580 * @return a2dp_cid 7581 * @note: btstack_type 2 7582 */ 7583 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_a2dp_cid(const uint8_t * event){ 7584 return little_endian_read_16(event, 3); 7585 } 7586 /** 7587 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7588 * @param event packet 7589 * @return remote_seid 7590 * @note: btstack_type 1 7591 */ 7592 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_remote_seid(const uint8_t * event){ 7593 return event[5]; 7594 } 7595 /** 7596 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7597 * @param event packet 7598 * @return media_type 7599 * @note: btstack_type 1 7600 */ 7601 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_media_type(const uint8_t * event){ 7602 return event[6]; 7603 } 7604 /** 7605 * @brief Get field object_type_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7606 * @param event packet 7607 * @return object_type_bitmap 7608 * @note: btstack_type 1 7609 */ 7610 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_object_type_bitmap(const uint8_t * event){ 7611 return event[7]; 7612 } 7613 /** 7614 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7615 * @param event packet 7616 * @return sampling_frequency_bitmap 7617 * @note: btstack_type 2 7618 */ 7619 static inline uint16_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7620 return little_endian_read_16(event, 8); 7621 } 7622 /** 7623 * @brief Get field channels_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7624 * @param event packet 7625 * @return channels_bitmap 7626 * @note: btstack_type 1 7627 */ 7628 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_channels_bitmap(const uint8_t * event){ 7629 return event[10]; 7630 } 7631 /** 7632 * @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7633 * @param event packet 7634 * @return bit_rate 7635 * @note: btstack_type 3 7636 */ 7637 static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_bit_rate(const uint8_t * event){ 7638 return little_endian_read_24(event, 11); 7639 } 7640 /** 7641 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CAPABILITY 7642 * @param event packet 7643 * @return vbr 7644 * @note: btstack_type 1 7645 */ 7646 static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_capability_get_vbr(const uint8_t * event){ 7647 return event[14]; 7648 } 7649 7650 /** 7651 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7652 * @param event packet 7653 * @return a2dp_cid 7654 * @note: btstack_type 2 7655 */ 7656 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_a2dp_cid(const uint8_t * event){ 7657 return little_endian_read_16(event, 3); 7658 } 7659 /** 7660 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7661 * @param event packet 7662 * @return remote_seid 7663 * @note: btstack_type 1 7664 */ 7665 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_remote_seid(const uint8_t * event){ 7666 return event[5]; 7667 } 7668 /** 7669 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7670 * @param event packet 7671 * @return media_type 7672 * @note: btstack_type 1 7673 */ 7674 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_media_type(const uint8_t * event){ 7675 return event[6]; 7676 } 7677 /** 7678 * @brief Get field version from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7679 * @param event packet 7680 * @return version 7681 * @note: btstack_type 1 7682 */ 7683 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_version(const uint8_t * event){ 7684 return event[7]; 7685 } 7686 /** 7687 * @brief Get field channel_mode_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7688 * @param event packet 7689 * @return channel_mode_bitmap 7690 * @note: btstack_type 1 7691 */ 7692 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_channel_mode_bitmap(const uint8_t * event){ 7693 return event[8]; 7694 } 7695 /** 7696 * @brief Get field sampling_frequency_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7697 * @param event packet 7698 * @return sampling_frequency_bitmap 7699 * @note: btstack_type 1 7700 */ 7701 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_sampling_frequency_bitmap(const uint8_t * event){ 7702 return event[9]; 7703 } 7704 /** 7705 * @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7706 * @param event packet 7707 * @return vbr 7708 * @note: btstack_type 1 7709 */ 7710 static inline uint8_t a2dp_subevent_signaling_media_codec_atrac_capability_get_vbr(const uint8_t * event){ 7711 return event[10]; 7712 } 7713 /** 7714 * @brief Get field bit_rate_index_bitmap from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7715 * @param event packet 7716 * @return bit_rate_index_bitmap 7717 * @note: btstack_type 3 7718 */ 7719 static inline uint32_t a2dp_subevent_signaling_media_codec_atrac_capability_get_bit_rate_index_bitmap(const uint8_t * event){ 7720 return little_endian_read_24(event, 11); 7721 } 7722 /** 7723 * @brief Get field maximum_sul from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_ATRAC_CAPABILITY 7724 * @param event packet 7725 * @return maximum_sul 7726 * @note: btstack_type 2 7727 */ 7728 static inline uint16_t a2dp_subevent_signaling_media_codec_atrac_capability_get_maximum_sul(const uint8_t * event){ 7729 return little_endian_read_16(event, 14); 7730 } 7731 7732 /** 7733 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7734 * @param event packet 7735 * @return a2dp_cid 7736 * @note: btstack_type 2 7737 */ 7738 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_a2dp_cid(const uint8_t * event){ 7739 return little_endian_read_16(event, 3); 7740 } 7741 /** 7742 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7743 * @param event packet 7744 * @return remote_seid 7745 * @note: btstack_type 1 7746 */ 7747 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_remote_seid(const uint8_t * event){ 7748 return event[5]; 7749 } 7750 /** 7751 * @brief Get field media_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7752 * @param event packet 7753 * @return media_type 7754 * @note: btstack_type 1 7755 */ 7756 static inline uint8_t a2dp_subevent_signaling_media_codec_other_capability_get_media_type(const uint8_t * event){ 7757 return event[6]; 7758 } 7759 /** 7760 * @brief Get field media_codec_type from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7761 * @param event packet 7762 * @return media_codec_type 7763 * @note: btstack_type 2 7764 */ 7765 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_type(const uint8_t * event){ 7766 return little_endian_read_16(event, 7); 7767 } 7768 /** 7769 * @brief Get field media_codec_information_len from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7770 * @param event packet 7771 * @return media_codec_information_len 7772 * @note: btstack_type L 7773 */ 7774 static inline uint16_t a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information_len(const uint8_t * event){ 7775 return little_endian_read_16(event, 9); 7776 } 7777 /** 7778 * @brief Get field media_codec_information from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 7779 * @param event packet 7780 * @return media_codec_information 7781 * @note: btstack_type V 7782 */ 7783 static inline const uint8_t * a2dp_subevent_signaling_media_codec_other_capability_get_media_codec_information(const uint8_t * event){ 7784 return &event[11]; 7785 } 7786 7787 /** 7788 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7789 * @param event packet 7790 * @return a2dp_cid 7791 * @note: btstack_type 2 7792 */ 7793 static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_a2dp_cid(const uint8_t * event){ 7794 return little_endian_read_16(event, 3); 7795 } 7796 /** 7797 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 7798 * @param event packet 7799 * @return remote_seid 7800 * @note: btstack_type 1 7801 */ 7802 static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){ 7803 return event[5]; 7804 } 7805 7806 /** 7807 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 7808 * @param event packet 7809 * @return a2dp_cid 7810 * @note: btstack_type 2 7811 */ 7812 static inline uint16_t a2dp_subevent_signaling_delay_report_get_a2dp_cid(const uint8_t * event){ 7813 return little_endian_read_16(event, 3); 7814 } 7815 /** 7816 * @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 7817 * @param event packet 7818 * @return local_seid 7819 * @note: btstack_type 1 7820 */ 7821 static inline uint8_t a2dp_subevent_signaling_delay_report_get_local_seid(const uint8_t * event){ 7822 return event[5]; 7823 } 7824 /** 7825 * @brief Get field delay_100us from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 7826 * @param event packet 7827 * @return delay_100us 7828 * @note: btstack_type 2 7829 */ 7830 static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(const uint8_t * event){ 7831 return little_endian_read_16(event, 6); 7832 } 7833 7834 /** 7835 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7836 * @param event packet 7837 * @return a2dp_cid 7838 * @note: btstack_type 2 7839 */ 7840 static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_a2dp_cid(const uint8_t * event){ 7841 return little_endian_read_16(event, 3); 7842 } 7843 /** 7844 * @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 7845 * @param event packet 7846 * @return remote_seid 7847 * @note: btstack_type 1 7848 */ 7849 static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){ 7850 return event[5]; 7851 } 7852 7853 /** 7854 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE 7855 * @param event packet 7856 * @return a2dp_cid 7857 * @note: btstack_type 2 7858 */ 7859 static inline uint16_t a2dp_subevent_signaling_capabilities_complete_get_a2dp_cid(const uint8_t * event){ 7860 return little_endian_read_16(event, 3); 7861 } 7862 7863 /** 7864 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 7865 * @param event packet 7866 * @return avrcp_cid 7867 * @note: btstack_type 2 7868 */ 7869 static inline uint16_t avrcp_subevent_notification_playback_status_changed_get_avrcp_cid(const uint8_t * event){ 7870 return little_endian_read_16(event, 3); 7871 } 7872 /** 7873 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 7874 * @param event packet 7875 * @return command_type 7876 * @note: btstack_type 1 7877 */ 7878 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_command_type(const uint8_t * event){ 7879 return event[5]; 7880 } 7881 /** 7882 * @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 7883 * @param event packet 7884 * @return play_status 7885 * @note: btstack_type 1 7886 */ 7887 static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){ 7888 return event[6]; 7889 } 7890 7891 /** 7892 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 7893 * @param event packet 7894 * @return avrcp_cid 7895 * @note: btstack_type 2 7896 */ 7897 static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(const uint8_t * event){ 7898 return little_endian_read_16(event, 3); 7899 } 7900 /** 7901 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 7902 * @param event packet 7903 * @return command_type 7904 * @note: btstack_type 1 7905 */ 7906 static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){ 7907 return event[5]; 7908 } 7909 7910 /** 7911 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 7912 * @param event packet 7913 * @return avrcp_cid 7914 * @note: btstack_type 2 7915 */ 7916 static inline uint16_t avrcp_subevent_notification_event_track_reached_end_get_avrcp_cid(const uint8_t * event){ 7917 return little_endian_read_16(event, 3); 7918 } 7919 /** 7920 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_END 7921 * @param event packet 7922 * @return command_type 7923 * @note: btstack_type 1 7924 */ 7925 static inline uint8_t avrcp_subevent_notification_event_track_reached_end_get_command_type(const uint8_t * event){ 7926 return event[5]; 7927 } 7928 7929 /** 7930 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 7931 * @param event packet 7932 * @return avrcp_cid 7933 * @note: btstack_type 2 7934 */ 7935 static inline uint16_t avrcp_subevent_notification_event_track_reached_start_get_avrcp_cid(const uint8_t * event){ 7936 return little_endian_read_16(event, 3); 7937 } 7938 /** 7939 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_TRACK_REACHED_START 7940 * @param event packet 7941 * @return command_type 7942 * @note: btstack_type 1 7943 */ 7944 static inline uint8_t avrcp_subevent_notification_event_track_reached_start_get_command_type(const uint8_t * event){ 7945 return event[5]; 7946 } 7947 7948 /** 7949 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 7950 * @param event packet 7951 * @return avrcp_cid 7952 * @note: btstack_type 2 7953 */ 7954 static inline uint16_t avrcp_subevent_notification_event_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 7955 return little_endian_read_16(event, 3); 7956 } 7957 /** 7958 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 7959 * @param event packet 7960 * @return command_type 7961 * @note: btstack_type 1 7962 */ 7963 static inline uint8_t avrcp_subevent_notification_event_playback_pos_changed_get_command_type(const uint8_t * event){ 7964 return event[5]; 7965 } 7966 /** 7967 * @brief Get field playback_position from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_PLAYBACK_POS_CHANGED 7968 * @param event packet 7969 * @return playback_position 7970 * @note: btstack_type 4 7971 */ 7972 static inline uint32_t avrcp_subevent_notification_event_playback_pos_changed_get_playback_position(const uint8_t * event){ 7973 return little_endian_read_32(event, 6); 7974 } 7975 7976 /** 7977 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 7978 * @param event packet 7979 * @return avrcp_cid 7980 * @note: btstack_type 2 7981 */ 7982 static inline uint16_t avrcp_subevent_notification_event_batt_status_changed_get_avrcp_cid(const uint8_t * event){ 7983 return little_endian_read_16(event, 3); 7984 } 7985 /** 7986 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 7987 * @param event packet 7988 * @return command_type 7989 * @note: btstack_type 1 7990 */ 7991 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_command_type(const uint8_t * event){ 7992 return event[5]; 7993 } 7994 /** 7995 * @brief Get field battery_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_BATT_STATUS_CHANGED 7996 * @param event packet 7997 * @return battery_status 7998 * @note: btstack_type 1 7999 */ 8000 static inline uint8_t avrcp_subevent_notification_event_batt_status_changed_get_battery_status(const uint8_t * event){ 8001 return event[6]; 8002 } 8003 8004 /** 8005 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 8006 * @param event packet 8007 * @return avrcp_cid 8008 * @note: btstack_type 2 8009 */ 8010 static inline uint16_t avrcp_subevent_notification_event_system_status_changed_get_avrcp_cid(const uint8_t * event){ 8011 return little_endian_read_16(event, 3); 8012 } 8013 /** 8014 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 8015 * @param event packet 8016 * @return command_type 8017 * @note: btstack_type 1 8018 */ 8019 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_command_type(const uint8_t * event){ 8020 return event[5]; 8021 } 8022 /** 8023 * @brief Get field system_status from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_SYSTEM_STATUS_CHANGED 8024 * @param event packet 8025 * @return system_status 8026 * @note: btstack_type 1 8027 */ 8028 static inline uint8_t avrcp_subevent_notification_event_system_status_changed_get_system_status(const uint8_t * event){ 8029 return event[6]; 8030 } 8031 8032 /** 8033 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 8034 * @param event packet 8035 * @return avrcp_cid 8036 * @note: btstack_type 2 8037 */ 8038 static inline uint16_t avrcp_subevent_notification_now_playing_content_changed_get_avrcp_cid(const uint8_t * event){ 8039 return little_endian_read_16(event, 3); 8040 } 8041 /** 8042 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 8043 * @param event packet 8044 * @return command_type 8045 * @note: btstack_type 1 8046 */ 8047 static inline uint8_t avrcp_subevent_notification_now_playing_content_changed_get_command_type(const uint8_t * event){ 8048 return event[5]; 8049 } 8050 8051 /** 8052 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 8053 * @param event packet 8054 * @return avrcp_cid 8055 * @note: btstack_type 2 8056 */ 8057 static inline uint16_t avrcp_subevent_notification_available_players_changed_get_avrcp_cid(const uint8_t * event){ 8058 return little_endian_read_16(event, 3); 8059 } 8060 /** 8061 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 8062 * @param event packet 8063 * @return command_type 8064 * @note: btstack_type 1 8065 */ 8066 static inline uint8_t avrcp_subevent_notification_available_players_changed_get_command_type(const uint8_t * event){ 8067 return event[5]; 8068 } 8069 8070 /** 8071 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 8072 * @param event packet 8073 * @return avrcp_cid 8074 * @note: btstack_type 2 8075 */ 8076 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_avrcp_cid(const uint8_t * event){ 8077 return little_endian_read_16(event, 3); 8078 } 8079 /** 8080 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 8081 * @param event packet 8082 * @return command_type 8083 * @note: btstack_type 1 8084 */ 8085 static inline uint8_t avrcp_subevent_notification_event_uids_changed_get_command_type(const uint8_t * event){ 8086 return event[5]; 8087 } 8088 /** 8089 * @brief Get field uid_counter from event AVRCP_SUBEVENT_NOTIFICATION_EVENT_UIDS_CHANGED 8090 * @param event packet 8091 * @return uid_counter 8092 * @note: btstack_type 2 8093 */ 8094 static inline uint16_t avrcp_subevent_notification_event_uids_changed_get_uid_counter(const uint8_t * event){ 8095 return little_endian_read_16(event, 6); 8096 } 8097 8098 /** 8099 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 8100 * @param event packet 8101 * @return avrcp_cid 8102 * @note: btstack_type 2 8103 */ 8104 static inline uint16_t avrcp_subevent_notification_volume_changed_get_avrcp_cid(const uint8_t * event){ 8105 return little_endian_read_16(event, 3); 8106 } 8107 /** 8108 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 8109 * @param event packet 8110 * @return command_type 8111 * @note: btstack_type 1 8112 */ 8113 static inline uint8_t avrcp_subevent_notification_volume_changed_get_command_type(const uint8_t * event){ 8114 return event[5]; 8115 } 8116 /** 8117 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 8118 * @param event packet 8119 * @return absolute_volume 8120 * @note: btstack_type 1 8121 */ 8122 static inline uint8_t avrcp_subevent_notification_volume_changed_get_absolute_volume(const uint8_t * event){ 8123 return event[6]; 8124 } 8125 8126 /** 8127 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 8128 * @param event packet 8129 * @return avrcp_cid 8130 * @note: btstack_type 2 8131 */ 8132 static inline uint16_t avrcp_subevent_set_absolute_volume_response_get_avrcp_cid(const uint8_t * event){ 8133 return little_endian_read_16(event, 3); 8134 } 8135 /** 8136 * @brief Get field command_type from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 8137 * @param event packet 8138 * @return command_type 8139 * @note: btstack_type 1 8140 */ 8141 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_command_type(const uint8_t * event){ 8142 return event[5]; 8143 } 8144 /** 8145 * @brief Get field absolute_volume from event AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 8146 * @param event packet 8147 * @return absolute_volume 8148 * @note: btstack_type 1 8149 */ 8150 static inline uint8_t avrcp_subevent_set_absolute_volume_response_get_absolute_volume(const uint8_t * event){ 8151 return event[6]; 8152 } 8153 8154 /** 8155 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE 8156 * @param event packet 8157 * @return avrcp_cid 8158 * @note: btstack_type 2 8159 */ 8160 static inline uint16_t avrcp_subevent_enable_notification_complete_get_avrcp_cid(const uint8_t * event){ 8161 return little_endian_read_16(event, 3); 8162 } 8163 /** 8164 * @brief Get field command_type from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE 8165 * @param event packet 8166 * @return command_type 8167 * @note: btstack_type 1 8168 */ 8169 static inline uint8_t avrcp_subevent_enable_notification_complete_get_command_type(const uint8_t * event){ 8170 return event[5]; 8171 } 8172 /** 8173 * @brief Get field notification_id from event AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE 8174 * @param event packet 8175 * @return notification_id 8176 * @note: btstack_type 1 8177 */ 8178 static inline uint8_t avrcp_subevent_enable_notification_complete_get_notification_id(const uint8_t * event){ 8179 return event[6]; 8180 } 8181 8182 /** 8183 * @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 8184 * @param event packet 8185 * @return status 8186 * @note: btstack_type 1 8187 */ 8188 static inline uint8_t avrcp_subevent_connection_established_get_status(const uint8_t * event){ 8189 return event[3]; 8190 } 8191 /** 8192 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 8193 * @param event packet 8194 * @return avrcp_cid 8195 * @note: btstack_type 2 8196 */ 8197 static inline uint16_t avrcp_subevent_connection_established_get_avrcp_cid(const uint8_t * event){ 8198 return little_endian_read_16(event, 4); 8199 } 8200 /** 8201 * @brief Get field bd_addr from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 8202 * @param event packet 8203 * @param Pointer to storage for bd_addr 8204 * @note: btstack_type B 8205 */ 8206 static inline void avrcp_subevent_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8207 reverse_bytes(&event[6], bd_addr, 6); 8208 } 8209 /** 8210 * @brief Get field con_handle from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 8211 * @param event packet 8212 * @return con_handle 8213 * @note: btstack_type 2 8214 */ 8215 static inline uint16_t avrcp_subevent_connection_established_get_con_handle(const uint8_t * event){ 8216 return little_endian_read_16(event, 12); 8217 } 8218 8219 /** 8220 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_CONNECTION_RELEASED 8221 * @param event packet 8222 * @return avrcp_cid 8223 * @note: btstack_type 2 8224 */ 8225 static inline uint16_t avrcp_subevent_connection_released_get_avrcp_cid(const uint8_t * event){ 8226 return little_endian_read_16(event, 3); 8227 } 8228 8229 /** 8230 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 8231 * @param event packet 8232 * @return avrcp_cid 8233 * @note: btstack_type 2 8234 */ 8235 static inline uint16_t avrcp_subevent_shuffle_and_repeat_mode_get_avrcp_cid(const uint8_t * event){ 8236 return little_endian_read_16(event, 3); 8237 } 8238 /** 8239 * @brief Get field command_type from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 8240 * @param event packet 8241 * @return command_type 8242 * @note: btstack_type 1 8243 */ 8244 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_command_type(const uint8_t * event){ 8245 return event[5]; 8246 } 8247 /** 8248 * @brief Get field repeat_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 8249 * @param event packet 8250 * @return repeat_mode 8251 * @note: btstack_type 1 8252 */ 8253 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_repeat_mode(const uint8_t * event){ 8254 return event[6]; 8255 } 8256 /** 8257 * @brief Get field shuffle_mode from event AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 8258 * @param event packet 8259 * @return shuffle_mode 8260 * @note: btstack_type 1 8261 */ 8262 static inline uint8_t avrcp_subevent_shuffle_and_repeat_mode_get_shuffle_mode(const uint8_t * event){ 8263 return event[7]; 8264 } 8265 8266 /** 8267 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS 8268 * @param event packet 8269 * @return avrcp_cid 8270 * @note: btstack_type 2 8271 */ 8272 static inline uint16_t avrcp_subevent_play_status_get_avrcp_cid(const uint8_t * event){ 8273 return little_endian_read_16(event, 3); 8274 } 8275 /** 8276 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAY_STATUS 8277 * @param event packet 8278 * @return command_type 8279 * @note: btstack_type 1 8280 */ 8281 static inline uint8_t avrcp_subevent_play_status_get_command_type(const uint8_t * event){ 8282 return event[5]; 8283 } 8284 /** 8285 * @brief Get field song_length from event AVRCP_SUBEVENT_PLAY_STATUS 8286 * @param event packet 8287 * @return song_length 8288 * @note: btstack_type 4 8289 */ 8290 static inline uint32_t avrcp_subevent_play_status_get_song_length(const uint8_t * event){ 8291 return little_endian_read_32(event, 6); 8292 } 8293 /** 8294 * @brief Get field song_position from event AVRCP_SUBEVENT_PLAY_STATUS 8295 * @param event packet 8296 * @return song_position 8297 * @note: btstack_type 4 8298 */ 8299 static inline uint32_t avrcp_subevent_play_status_get_song_position(const uint8_t * event){ 8300 return little_endian_read_32(event, 10); 8301 } 8302 /** 8303 * @brief Get field play_status from event AVRCP_SUBEVENT_PLAY_STATUS 8304 * @param event packet 8305 * @return play_status 8306 * @note: btstack_type 1 8307 */ 8308 static inline uint8_t avrcp_subevent_play_status_get_play_status(const uint8_t * event){ 8309 return event[14]; 8310 } 8311 8312 /** 8313 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_START 8314 * @param event packet 8315 * @return avrcp_cid 8316 * @note: btstack_type 2 8317 */ 8318 static inline uint16_t avrcp_subevent_operation_start_get_avrcp_cid(const uint8_t * event){ 8319 return little_endian_read_16(event, 3); 8320 } 8321 /** 8322 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_START 8323 * @param event packet 8324 * @return command_type 8325 * @note: btstack_type 1 8326 */ 8327 static inline uint8_t avrcp_subevent_operation_start_get_command_type(const uint8_t * event){ 8328 return event[5]; 8329 } 8330 /** 8331 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_START 8332 * @param event packet 8333 * @return operation_id 8334 * @note: btstack_type 1 8335 */ 8336 static inline uint8_t avrcp_subevent_operation_start_get_operation_id(const uint8_t * event){ 8337 return event[6]; 8338 } 8339 8340 /** 8341 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION_COMPLETE 8342 * @param event packet 8343 * @return avrcp_cid 8344 * @note: btstack_type 2 8345 */ 8346 static inline uint16_t avrcp_subevent_operation_complete_get_avrcp_cid(const uint8_t * event){ 8347 return little_endian_read_16(event, 3); 8348 } 8349 /** 8350 * @brief Get field command_type from event AVRCP_SUBEVENT_OPERATION_COMPLETE 8351 * @param event packet 8352 * @return command_type 8353 * @note: btstack_type 1 8354 */ 8355 static inline uint8_t avrcp_subevent_operation_complete_get_command_type(const uint8_t * event){ 8356 return event[5]; 8357 } 8358 /** 8359 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION_COMPLETE 8360 * @param event packet 8361 * @return operation_id 8362 * @note: btstack_type 1 8363 */ 8364 static inline uint8_t avrcp_subevent_operation_complete_get_operation_id(const uint8_t * event){ 8365 return event[6]; 8366 } 8367 8368 /** 8369 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 8370 * @param event packet 8371 * @return avrcp_cid 8372 * @note: btstack_type 2 8373 */ 8374 static inline uint16_t avrcp_subevent_player_application_value_response_get_avrcp_cid(const uint8_t * event){ 8375 return little_endian_read_16(event, 3); 8376 } 8377 /** 8378 * @brief Get field command_type from event AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 8379 * @param event packet 8380 * @return command_type 8381 * @note: btstack_type 1 8382 */ 8383 static inline uint8_t avrcp_subevent_player_application_value_response_get_command_type(const uint8_t * event){ 8384 return event[5]; 8385 } 8386 8387 /** 8388 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_COMPANY_IDS_QUERY 8389 * @param event packet 8390 * @return avrcp_cid 8391 * @note: btstack_type 2 8392 */ 8393 static inline uint16_t avrcp_subevent_company_ids_query_get_avrcp_cid(const uint8_t * event){ 8394 return little_endian_read_16(event, 3); 8395 } 8396 8397 /** 8398 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_EVENT_IDS_QUERY 8399 * @param event packet 8400 * @return avrcp_cid 8401 * @note: btstack_type 2 8402 */ 8403 static inline uint16_t avrcp_subevent_event_ids_query_get_avrcp_cid(const uint8_t * event){ 8404 return little_endian_read_16(event, 3); 8405 } 8406 8407 /** 8408 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_PLAY_STATUS_QUERY 8409 * @param event packet 8410 * @return avrcp_cid 8411 * @note: btstack_type 2 8412 */ 8413 static inline uint16_t avrcp_subevent_play_status_query_get_avrcp_cid(const uint8_t * event){ 8414 return little_endian_read_16(event, 3); 8415 } 8416 8417 /** 8418 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_OPERATION 8419 * @param event packet 8420 * @return avrcp_cid 8421 * @note: btstack_type 2 8422 */ 8423 static inline uint16_t avrcp_subevent_operation_get_avrcp_cid(const uint8_t * event){ 8424 return little_endian_read_16(event, 3); 8425 } 8426 /** 8427 * @brief Get field operation_id from event AVRCP_SUBEVENT_OPERATION 8428 * @param event packet 8429 * @return operation_id 8430 * @note: btstack_type 1 8431 */ 8432 static inline uint8_t avrcp_subevent_operation_get_operation_id(const uint8_t * event){ 8433 return event[5]; 8434 } 8435 /** 8436 * @brief Get field button_pressed from event AVRCP_SUBEVENT_OPERATION 8437 * @param event packet 8438 * @return button_pressed 8439 * @note: btstack_type 1 8440 */ 8441 static inline uint8_t avrcp_subevent_operation_get_button_pressed(const uint8_t * event){ 8442 return event[6]; 8443 } 8444 /** 8445 * @brief Get field operands_length from event AVRCP_SUBEVENT_OPERATION 8446 * @param event packet 8447 * @return operands_length 8448 * @note: btstack_type 1 8449 */ 8450 static inline uint8_t avrcp_subevent_operation_get_operands_length(const uint8_t * event){ 8451 return event[7]; 8452 } 8453 /** 8454 * @brief Get field operand from event AVRCP_SUBEVENT_OPERATION 8455 * @param event packet 8456 * @return operand 8457 * @note: btstack_type 1 8458 */ 8459 static inline uint8_t avrcp_subevent_operation_get_operand(const uint8_t * event){ 8460 return event[8]; 8461 } 8462 8463 /** 8464 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 8465 * @param event packet 8466 * @return avrcp_cid 8467 * @note: btstack_type 2 8468 */ 8469 static inline uint16_t avrcp_subevent_now_playing_track_info_get_avrcp_cid(const uint8_t * event){ 8470 return little_endian_read_16(event, 3); 8471 } 8472 /** 8473 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 8474 * @param event packet 8475 * @return command_type 8476 * @note: btstack_type 1 8477 */ 8478 static inline uint8_t avrcp_subevent_now_playing_track_info_get_command_type(const uint8_t * event){ 8479 return event[5]; 8480 } 8481 /** 8482 * @brief Get field track from event AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 8483 * @param event packet 8484 * @return track 8485 * @note: btstack_type 1 8486 */ 8487 static inline uint8_t avrcp_subevent_now_playing_track_info_get_track(const uint8_t * event){ 8488 return event[6]; 8489 } 8490 8491 /** 8492 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 8493 * @param event packet 8494 * @return avrcp_cid 8495 * @note: btstack_type 2 8496 */ 8497 static inline uint16_t avrcp_subevent_now_playing_total_tracks_info_get_avrcp_cid(const uint8_t * event){ 8498 return little_endian_read_16(event, 3); 8499 } 8500 /** 8501 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 8502 * @param event packet 8503 * @return command_type 8504 * @note: btstack_type 1 8505 */ 8506 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_command_type(const uint8_t * event){ 8507 return event[5]; 8508 } 8509 /** 8510 * @brief Get field total_tracks from event AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 8511 * @param event packet 8512 * @return total_tracks 8513 * @note: btstack_type 1 8514 */ 8515 static inline uint8_t avrcp_subevent_now_playing_total_tracks_info_get_total_tracks(const uint8_t * event){ 8516 return event[6]; 8517 } 8518 8519 /** 8520 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 8521 * @param event packet 8522 * @return avrcp_cid 8523 * @note: btstack_type 2 8524 */ 8525 static inline uint16_t avrcp_subevent_now_playing_song_length_ms_info_get_avrcp_cid(const uint8_t * event){ 8526 return little_endian_read_16(event, 3); 8527 } 8528 /** 8529 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 8530 * @param event packet 8531 * @return command_type 8532 * @note: btstack_type 1 8533 */ 8534 static inline uint8_t avrcp_subevent_now_playing_song_length_ms_info_get_command_type(const uint8_t * event){ 8535 return event[5]; 8536 } 8537 /** 8538 * @brief Get field song_length from event AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO 8539 * @param event packet 8540 * @return song_length 8541 * @note: btstack_type 4 8542 */ 8543 static inline uint32_t avrcp_subevent_now_playing_song_length_ms_info_get_song_length(const uint8_t * event){ 8544 return little_endian_read_32(event, 6); 8545 } 8546 8547 /** 8548 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 8549 * @param event packet 8550 * @return avrcp_cid 8551 * @note: btstack_type 2 8552 */ 8553 static inline uint16_t avrcp_subevent_now_playing_title_info_get_avrcp_cid(const uint8_t * event){ 8554 return little_endian_read_16(event, 3); 8555 } 8556 /** 8557 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 8558 * @param event packet 8559 * @return command_type 8560 * @note: btstack_type 1 8561 */ 8562 static inline uint8_t avrcp_subevent_now_playing_title_info_get_command_type(const uint8_t * event){ 8563 return event[5]; 8564 } 8565 /** 8566 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 8567 * @param event packet 8568 * @return value_len 8569 * @note: btstack_type J 8570 */ 8571 static inline uint8_t avrcp_subevent_now_playing_title_info_get_value_len(const uint8_t * event){ 8572 return event[6]; 8573 } 8574 /** 8575 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 8576 * @param event packet 8577 * @return value 8578 * @note: btstack_type V 8579 */ 8580 static inline const uint8_t * avrcp_subevent_now_playing_title_info_get_value(const uint8_t * event){ 8581 return &event[7]; 8582 } 8583 8584 /** 8585 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 8586 * @param event packet 8587 * @return avrcp_cid 8588 * @note: btstack_type 2 8589 */ 8590 static inline uint16_t avrcp_subevent_now_playing_artist_info_get_avrcp_cid(const uint8_t * event){ 8591 return little_endian_read_16(event, 3); 8592 } 8593 /** 8594 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 8595 * @param event packet 8596 * @return command_type 8597 * @note: btstack_type 1 8598 */ 8599 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_command_type(const uint8_t * event){ 8600 return event[5]; 8601 } 8602 /** 8603 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 8604 * @param event packet 8605 * @return value_len 8606 * @note: btstack_type J 8607 */ 8608 static inline uint8_t avrcp_subevent_now_playing_artist_info_get_value_len(const uint8_t * event){ 8609 return event[6]; 8610 } 8611 /** 8612 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO 8613 * @param event packet 8614 * @return value 8615 * @note: btstack_type V 8616 */ 8617 static inline const uint8_t * avrcp_subevent_now_playing_artist_info_get_value(const uint8_t * event){ 8618 return &event[7]; 8619 } 8620 8621 /** 8622 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 8623 * @param event packet 8624 * @return avrcp_cid 8625 * @note: btstack_type 2 8626 */ 8627 static inline uint16_t avrcp_subevent_now_playing_album_info_get_avrcp_cid(const uint8_t * event){ 8628 return little_endian_read_16(event, 3); 8629 } 8630 /** 8631 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 8632 * @param event packet 8633 * @return command_type 8634 * @note: btstack_type 1 8635 */ 8636 static inline uint8_t avrcp_subevent_now_playing_album_info_get_command_type(const uint8_t * event){ 8637 return event[5]; 8638 } 8639 /** 8640 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 8641 * @param event packet 8642 * @return value_len 8643 * @note: btstack_type J 8644 */ 8645 static inline uint8_t avrcp_subevent_now_playing_album_info_get_value_len(const uint8_t * event){ 8646 return event[6]; 8647 } 8648 /** 8649 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO 8650 * @param event packet 8651 * @return value 8652 * @note: btstack_type V 8653 */ 8654 static inline const uint8_t * avrcp_subevent_now_playing_album_info_get_value(const uint8_t * event){ 8655 return &event[7]; 8656 } 8657 8658 /** 8659 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 8660 * @param event packet 8661 * @return avrcp_cid 8662 * @note: btstack_type 2 8663 */ 8664 static inline uint16_t avrcp_subevent_now_playing_genre_info_get_avrcp_cid(const uint8_t * event){ 8665 return little_endian_read_16(event, 3); 8666 } 8667 /** 8668 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 8669 * @param event packet 8670 * @return command_type 8671 * @note: btstack_type 1 8672 */ 8673 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_command_type(const uint8_t * event){ 8674 return event[5]; 8675 } 8676 /** 8677 * @brief Get field value_len from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 8678 * @param event packet 8679 * @return value_len 8680 * @note: btstack_type J 8681 */ 8682 static inline uint8_t avrcp_subevent_now_playing_genre_info_get_value_len(const uint8_t * event){ 8683 return event[6]; 8684 } 8685 /** 8686 * @brief Get field value from event AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO 8687 * @param event packet 8688 * @return value 8689 * @note: btstack_type V 8690 */ 8691 static inline const uint8_t * avrcp_subevent_now_playing_genre_info_get_value(const uint8_t * event){ 8692 return &event[7]; 8693 } 8694 8695 /** 8696 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 8697 * @param event packet 8698 * @return avrcp_cid 8699 * @note: btstack_type 2 8700 */ 8701 static inline uint16_t avrcp_subevent_now_playing_info_done_get_avrcp_cid(const uint8_t * event){ 8702 return little_endian_read_16(event, 3); 8703 } 8704 /** 8705 * @brief Get field command_type from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 8706 * @param event packet 8707 * @return command_type 8708 * @note: btstack_type 1 8709 */ 8710 static inline uint8_t avrcp_subevent_now_playing_info_done_get_command_type(const uint8_t * event){ 8711 return event[5]; 8712 } 8713 /** 8714 * @brief Get field status from event AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 8715 * @param event packet 8716 * @return status 8717 * @note: btstack_type 1 8718 */ 8719 static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint8_t * event){ 8720 return event[6]; 8721 } 8722 8723 /** 8724 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 8725 * @param event packet 8726 * @return avrcp_cid 8727 * @note: btstack_type 2 8728 */ 8729 static inline uint16_t avrcp_subevent_notification_playback_pos_changed_get_avrcp_cid(const uint8_t * event){ 8730 return little_endian_read_16(event, 3); 8731 } 8732 /** 8733 * @brief Get field command_type from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 8734 * @param event packet 8735 * @return command_type 8736 * @note: btstack_type 1 8737 */ 8738 static inline uint8_t avrcp_subevent_notification_playback_pos_changed_get_command_type(const uint8_t * event){ 8739 return event[5]; 8740 } 8741 /** 8742 * @brief Get field playback_position_ms from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_POS_CHANGED 8743 * @param event packet 8744 * @return playback_position_ms 8745 * @note: btstack_type 4 8746 */ 8747 static inline uint32_t avrcp_subevent_notification_playback_pos_changed_get_playback_position_ms(const uint8_t * event){ 8748 return little_endian_read_32(event, 6); 8749 } 8750 8751 /** 8752 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 8753 * @param event packet 8754 * @return avrcp_cid 8755 * @note: btstack_type 2 8756 */ 8757 static inline uint16_t avrcp_subevent_get_capability_event_id_get_avrcp_cid(const uint8_t * event){ 8758 return little_endian_read_16(event, 3); 8759 } 8760 /** 8761 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 8762 * @param event packet 8763 * @return command_type 8764 * @note: btstack_type 1 8765 */ 8766 static inline uint8_t avrcp_subevent_get_capability_event_id_get_command_type(const uint8_t * event){ 8767 return event[5]; 8768 } 8769 /** 8770 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 8771 * @param event packet 8772 * @return status 8773 * @note: btstack_type 1 8774 */ 8775 static inline uint8_t avrcp_subevent_get_capability_event_id_get_status(const uint8_t * event){ 8776 return event[6]; 8777 } 8778 /** 8779 * @brief Get field event_id from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID 8780 * @param event packet 8781 * @return event_id 8782 * @note: btstack_type 1 8783 */ 8784 static inline uint8_t avrcp_subevent_get_capability_event_id_get_event_id(const uint8_t * event){ 8785 return event[7]; 8786 } 8787 8788 /** 8789 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 8790 * @param event packet 8791 * @return avrcp_cid 8792 * @note: btstack_type 2 8793 */ 8794 static inline uint16_t avrcp_subevent_get_capability_event_id_done_get_avrcp_cid(const uint8_t * event){ 8795 return little_endian_read_16(event, 3); 8796 } 8797 /** 8798 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 8799 * @param event packet 8800 * @return command_type 8801 * @note: btstack_type 1 8802 */ 8803 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_command_type(const uint8_t * event){ 8804 return event[5]; 8805 } 8806 /** 8807 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_EVENT_ID_DONE 8808 * @param event packet 8809 * @return status 8810 * @note: btstack_type 1 8811 */ 8812 static inline uint8_t avrcp_subevent_get_capability_event_id_done_get_status(const uint8_t * event){ 8813 return event[6]; 8814 } 8815 8816 /** 8817 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 8818 * @param event packet 8819 * @return avrcp_cid 8820 * @note: btstack_type 2 8821 */ 8822 static inline uint16_t avrcp_subevent_get_capability_company_id_get_avrcp_cid(const uint8_t * event){ 8823 return little_endian_read_16(event, 3); 8824 } 8825 /** 8826 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 8827 * @param event packet 8828 * @return command_type 8829 * @note: btstack_type 1 8830 */ 8831 static inline uint8_t avrcp_subevent_get_capability_company_id_get_command_type(const uint8_t * event){ 8832 return event[5]; 8833 } 8834 /** 8835 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 8836 * @param event packet 8837 * @return status 8838 * @note: btstack_type 1 8839 */ 8840 static inline uint8_t avrcp_subevent_get_capability_company_id_get_status(const uint8_t * event){ 8841 return event[6]; 8842 } 8843 /** 8844 * @brief Get field company_id from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID 8845 * @param event packet 8846 * @return company_id 8847 * @note: btstack_type 3 8848 */ 8849 static inline uint32_t avrcp_subevent_get_capability_company_id_get_company_id(const uint8_t * event){ 8850 return little_endian_read_24(event, 7); 8851 } 8852 8853 /** 8854 * @brief Get field avrcp_cid from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 8855 * @param event packet 8856 * @return avrcp_cid 8857 * @note: btstack_type 2 8858 */ 8859 static inline uint16_t avrcp_subevent_get_capability_company_id_done_get_avrcp_cid(const uint8_t * event){ 8860 return little_endian_read_16(event, 3); 8861 } 8862 /** 8863 * @brief Get field command_type from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 8864 * @param event packet 8865 * @return command_type 8866 * @note: btstack_type 1 8867 */ 8868 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_command_type(const uint8_t * event){ 8869 return event[5]; 8870 } 8871 /** 8872 * @brief Get field status from event AVRCP_SUBEVENT_GET_CAPABILITY_COMPANY_ID_DONE 8873 * @param event packet 8874 * @return status 8875 * @note: btstack_type 1 8876 */ 8877 static inline uint8_t avrcp_subevent_get_capability_company_id_done_get_status(const uint8_t * event){ 8878 return event[6]; 8879 } 8880 8881 /** 8882 * @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 8883 * @param event packet 8884 * @param Pointer to storage for bd_addr 8885 * @note: btstack_type B 8886 */ 8887 static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8888 reverse_bytes(&event[3], bd_addr, 6); 8889 } 8890 /** 8891 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 8892 * @param event packet 8893 * @return browsing_cid 8894 * @note: btstack_type 2 8895 */ 8896 static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){ 8897 return little_endian_read_16(event, 9); 8898 } 8899 8900 /** 8901 * @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 8902 * @param event packet 8903 * @return status 8904 * @note: btstack_type 1 8905 */ 8906 static inline uint8_t avrcp_subevent_browsing_connection_established_get_status(const uint8_t * event){ 8907 return event[3]; 8908 } 8909 /** 8910 * @brief Get field bd_addr from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 8911 * @param event packet 8912 * @param Pointer to storage for bd_addr 8913 * @note: btstack_type B 8914 */ 8915 static inline void avrcp_subevent_browsing_connection_established_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 8916 reverse_bytes(&event[4], bd_addr, 6); 8917 } 8918 /** 8919 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 8920 * @param event packet 8921 * @return browsing_cid 8922 * @note: btstack_type 2 8923 */ 8924 static inline uint16_t avrcp_subevent_browsing_connection_established_get_browsing_cid(const uint8_t * event){ 8925 return little_endian_read_16(event, 10); 8926 } 8927 8928 /** 8929 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 8930 * @param event packet 8931 * @return browsing_cid 8932 * @note: btstack_type 2 8933 */ 8934 static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_cid(const uint8_t * event){ 8935 return little_endian_read_16(event, 3); 8936 } 8937 8938 /** 8939 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE 8940 * @param event packet 8941 * @return browsing_cid 8942 * @note: btstack_type 2 8943 */ 8944 static inline uint16_t avrcp_subevent_browsing_done_get_browsing_cid(const uint8_t * event){ 8945 return little_endian_read_16(event, 3); 8946 } 8947 /** 8948 * @brief Get field uid_counter from event AVRCP_SUBEVENT_BROWSING_DONE 8949 * @param event packet 8950 * @return uid_counter 8951 * @note: btstack_type 2 8952 */ 8953 static inline uint16_t avrcp_subevent_browsing_done_get_uid_counter(const uint8_t * event){ 8954 return little_endian_read_16(event, 5); 8955 } 8956 /** 8957 * @brief Get field browsing_status from event AVRCP_SUBEVENT_BROWSING_DONE 8958 * @param event packet 8959 * @return browsing_status 8960 * @note: btstack_type 1 8961 */ 8962 static inline uint8_t avrcp_subevent_browsing_done_get_browsing_status(const uint8_t * event){ 8963 return event[7]; 8964 } 8965 /** 8966 * @brief Get field bluetooth_status from event AVRCP_SUBEVENT_BROWSING_DONE 8967 * @param event packet 8968 * @return bluetooth_status 8969 * @note: btstack_type 1 8970 */ 8971 static inline uint8_t avrcp_subevent_browsing_done_get_bluetooth_status(const uint8_t * event){ 8972 return event[8]; 8973 } 8974 8975 /** 8976 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 8977 * @param event packet 8978 * @return browsing_cid 8979 * @note: btstack_type 2 8980 */ 8981 static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){ 8982 return little_endian_read_16(event, 3); 8983 } 8984 /** 8985 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 8986 * @param event packet 8987 * @return scope 8988 * @note: btstack_type 1 8989 */ 8990 static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){ 8991 return event[5]; 8992 } 8993 /** 8994 * @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 8995 * @param event packet 8996 * @return attr_bitmap 8997 * @note: btstack_type 4 8998 */ 8999 static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){ 9000 return little_endian_read_32(event, 6); 9001 } 9002 9003 /** 9004 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 9005 * @param event packet 9006 * @return browsing_cid 9007 * @note: btstack_type 2 9008 */ 9009 static inline uint16_t avrcp_subevent_browsing_get_total_num_items_get_browsing_cid(const uint8_t * event){ 9010 return little_endian_read_16(event, 3); 9011 } 9012 /** 9013 * @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 9014 * @param event packet 9015 * @return scope 9016 * @note: btstack_type 1 9017 */ 9018 static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(const uint8_t * event){ 9019 return event[5]; 9020 } 9021 9022 /** 9023 * @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 9024 * @param event packet 9025 * @return browsing_cid 9026 * @note: btstack_type 2 9027 */ 9028 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){ 9029 return little_endian_read_16(event, 3); 9030 } 9031 /** 9032 * @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 9033 * @param event packet 9034 * @return player_id 9035 * @note: btstack_type 2 9036 */ 9037 static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){ 9038 return little_endian_read_16(event, 5); 9039 } 9040 9041 /** 9042 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED 9043 * @param event packet 9044 * @return goep_cid 9045 * @note: btstack_type 2 9046 */ 9047 static inline uint16_t goep_subevent_connection_opened_get_goep_cid(const uint8_t * event){ 9048 return little_endian_read_16(event, 3); 9049 } 9050 /** 9051 * @brief Get field status from event GOEP_SUBEVENT_CONNECTION_OPENED 9052 * @param event packet 9053 * @return status 9054 * @note: btstack_type 1 9055 */ 9056 static inline uint8_t goep_subevent_connection_opened_get_status(const uint8_t * event){ 9057 return event[5]; 9058 } 9059 /** 9060 * @brief Get field bd_addr from event GOEP_SUBEVENT_CONNECTION_OPENED 9061 * @param event packet 9062 * @param Pointer to storage for bd_addr 9063 * @note: btstack_type B 9064 */ 9065 static inline void goep_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9066 reverse_bytes(&event[6], bd_addr, 6); 9067 } 9068 /** 9069 * @brief Get field con_handle from event GOEP_SUBEVENT_CONNECTION_OPENED 9070 * @param event packet 9071 * @return con_handle 9072 * @note: btstack_type H 9073 */ 9074 static inline hci_con_handle_t goep_subevent_connection_opened_get_con_handle(const uint8_t * event){ 9075 return little_endian_read_16(event, 12); 9076 } 9077 /** 9078 * @brief Get field incoming from event GOEP_SUBEVENT_CONNECTION_OPENED 9079 * @param event packet 9080 * @return incoming 9081 * @note: btstack_type 1 9082 */ 9083 static inline uint8_t goep_subevent_connection_opened_get_incoming(const uint8_t * event){ 9084 return event[14]; 9085 } 9086 9087 /** 9088 * @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_CLOSED 9089 * @param event packet 9090 * @return goep_cid 9091 * @note: btstack_type 2 9092 */ 9093 static inline uint16_t goep_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 9094 return little_endian_read_16(event, 3); 9095 } 9096 9097 /** 9098 * @brief Get field goep_cid from event GOEP_SUBEVENT_CAN_SEND_NOW 9099 * @param event packet 9100 * @return goep_cid 9101 * @note: btstack_type 2 9102 */ 9103 static inline uint16_t goep_subevent_can_send_now_get_goep_cid(const uint8_t * event){ 9104 return little_endian_read_16(event, 3); 9105 } 9106 9107 /** 9108 * @brief Get field pbap_cid from event PBAP_SUBEVENT_CONNECTION_OPENED 9109 * @param event packet 9110 * @return pbap_cid 9111 * @note: btstack_type 2 9112 */ 9113 static inline uint16_t pbap_subevent_connection_opened_get_pbap_cid(const uint8_t * event){ 9114 return little_endian_read_16(event, 3); 9115 } 9116 /** 9117 * @brief Get field status from event PBAP_SUBEVENT_CONNECTION_OPENED 9118 * @param event packet 9119 * @return status 9120 * @note: btstack_type 1 9121 */ 9122 static inline uint8_t pbap_subevent_connection_opened_get_status(const uint8_t * event){ 9123 return event[5]; 9124 } 9125 /** 9126 * @brief Get field bd_addr from event PBAP_SUBEVENT_CONNECTION_OPENED 9127 * @param event packet 9128 * @param Pointer to storage for bd_addr 9129 * @note: btstack_type B 9130 */ 9131 static inline void pbap_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9132 reverse_bytes(&event[6], bd_addr, 6); 9133 } 9134 /** 9135 * @brief Get field con_handle from event PBAP_SUBEVENT_CONNECTION_OPENED 9136 * @param event packet 9137 * @return con_handle 9138 * @note: btstack_type H 9139 */ 9140 static inline hci_con_handle_t pbap_subevent_connection_opened_get_con_handle(const uint8_t * event){ 9141 return little_endian_read_16(event, 12); 9142 } 9143 /** 9144 * @brief Get field incoming from event PBAP_SUBEVENT_CONNECTION_OPENED 9145 * @param event packet 9146 * @return incoming 9147 * @note: btstack_type 1 9148 */ 9149 static inline uint8_t pbap_subevent_connection_opened_get_incoming(const uint8_t * event){ 9150 return event[14]; 9151 } 9152 9153 /** 9154 * @brief Get field goep_cid from event PBAP_SUBEVENT_CONNECTION_CLOSED 9155 * @param event packet 9156 * @return goep_cid 9157 * @note: btstack_type 2 9158 */ 9159 static inline uint16_t pbap_subevent_connection_closed_get_goep_cid(const uint8_t * event){ 9160 return little_endian_read_16(event, 3); 9161 } 9162 9163 /** 9164 * @brief Get field goep_cid from event PBAP_SUBEVENT_OPERATION_COMPLETED 9165 * @param event packet 9166 * @return goep_cid 9167 * @note: btstack_type 2 9168 */ 9169 static inline uint16_t pbap_subevent_operation_completed_get_goep_cid(const uint8_t * event){ 9170 return little_endian_read_16(event, 3); 9171 } 9172 /** 9173 * @brief Get field status from event PBAP_SUBEVENT_OPERATION_COMPLETED 9174 * @param event packet 9175 * @return status 9176 * @note: btstack_type 1 9177 */ 9178 static inline uint8_t pbap_subevent_operation_completed_get_status(const uint8_t * event){ 9179 return event[5]; 9180 } 9181 9182 /** 9183 * @brief Get field goep_cid from event PBAP_SUBEVENT_PHONEBOOK_SIZE 9184 * @param event packet 9185 * @return goep_cid 9186 * @note: btstack_type 2 9187 */ 9188 static inline uint16_t pbap_subevent_phonebook_size_get_goep_cid(const uint8_t * event){ 9189 return little_endian_read_16(event, 3); 9190 } 9191 /** 9192 * @brief Get field status from event PBAP_SUBEVENT_PHONEBOOK_SIZE 9193 * @param event packet 9194 * @return status 9195 * @note: btstack_type 1 9196 */ 9197 static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * event){ 9198 return event[5]; 9199 } 9200 /** 9201 * @brief Get field phoneboook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE 9202 * @param event packet 9203 * @return phoneboook_size 9204 * @note: btstack_type 2 9205 */ 9206 static inline uint16_t pbap_subevent_phonebook_size_get_phoneboook_size(const uint8_t * event){ 9207 return little_endian_read_16(event, 6); 9208 } 9209 9210 /** 9211 * @brief Get field goep_cid from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 9212 * @param event packet 9213 * @return goep_cid 9214 * @note: btstack_type 2 9215 */ 9216 static inline uint16_t pbap_subevent_authentication_request_get_goep_cid(const uint8_t * event){ 9217 return little_endian_read_16(event, 3); 9218 } 9219 /** 9220 * @brief Get field user_id_required from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 9221 * @param event packet 9222 * @return user_id_required 9223 * @note: btstack_type 1 9224 */ 9225 static inline uint8_t pbap_subevent_authentication_request_get_user_id_required(const uint8_t * event){ 9226 return event[5]; 9227 } 9228 /** 9229 * @brief Get field full_access from event PBAP_SUBEVENT_AUTHENTICATION_REQUEST 9230 * @param event packet 9231 * @return full_access 9232 * @note: btstack_type 1 9233 */ 9234 static inline uint8_t pbap_subevent_authentication_request_get_full_access(const uint8_t * event){ 9235 return event[6]; 9236 } 9237 9238 /** 9239 * @brief Get field goep_cid from event PBAP_SUBEVENT_CARD_RESULT 9240 * @param event packet 9241 * @return goep_cid 9242 * @note: btstack_type 2 9243 */ 9244 static inline uint16_t pbap_subevent_card_result_get_goep_cid(const uint8_t * event){ 9245 return little_endian_read_16(event, 3); 9246 } 9247 /** 9248 * @brief Get field name_len from event PBAP_SUBEVENT_CARD_RESULT 9249 * @param event packet 9250 * @return name_len 9251 * @note: btstack_type J 9252 */ 9253 static inline uint8_t pbap_subevent_card_result_get_name_len(const uint8_t * event){ 9254 return event[5]; 9255 } 9256 /** 9257 * @brief Get field name from event PBAP_SUBEVENT_CARD_RESULT 9258 * @param event packet 9259 * @return name 9260 * @note: btstack_type V 9261 */ 9262 static inline const uint8_t * pbap_subevent_card_result_get_name(const uint8_t * event){ 9263 return &event[6]; 9264 } 9265 /** 9266 * @brief Get field handle_len from event PBAP_SUBEVENT_CARD_RESULT 9267 * @param event packet 9268 * @return handle_len 9269 * @note: btstack_type J 9270 */ 9271 static inline uint8_t pbap_subevent_card_result_get_handle_len(const uint8_t * event){ 9272 return event[6u + event[5]]; 9273 } 9274 /** 9275 * @brief Get field handle from event PBAP_SUBEVENT_CARD_RESULT 9276 * @param event packet 9277 * @return handle 9278 * @note: btstack_type V 9279 */ 9280 static inline const uint8_t * pbap_subevent_card_result_get_handle(const uint8_t * event){ 9281 return &event[6u + event[5] + 1u]; 9282 } 9283 9284 /** 9285 * @brief Get field hid_cid from event HID_SUBEVENT_INCOMING_CONNECTION 9286 * @param event packet 9287 * @return hid_cid 9288 * @note: btstack_type 2 9289 */ 9290 static inline uint16_t hid_subevent_incoming_connection_get_hid_cid(const uint8_t * event){ 9291 return little_endian_read_16(event, 3); 9292 } 9293 /** 9294 * @brief Get field address from event HID_SUBEVENT_INCOMING_CONNECTION 9295 * @param event packet 9296 * @param Pointer to storage for address 9297 * @note: btstack_type B 9298 */ 9299 static inline void hid_subevent_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 9300 reverse_bytes(&event[5], address, 6); 9301 } 9302 /** 9303 * @brief Get field handle from event HID_SUBEVENT_INCOMING_CONNECTION 9304 * @param event packet 9305 * @return handle 9306 * @note: btstack_type H 9307 */ 9308 static inline hci_con_handle_t hid_subevent_incoming_connection_get_handle(const uint8_t * event){ 9309 return little_endian_read_16(event, 11); 9310 } 9311 9312 /** 9313 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_OPENED 9314 * @param event packet 9315 * @return hid_cid 9316 * @note: btstack_type 2 9317 */ 9318 static inline uint16_t hid_subevent_connection_opened_get_hid_cid(const uint8_t * event){ 9319 return little_endian_read_16(event, 3); 9320 } 9321 /** 9322 * @brief Get field status from event HID_SUBEVENT_CONNECTION_OPENED 9323 * @param event packet 9324 * @return status 9325 * @note: btstack_type 1 9326 */ 9327 static inline uint8_t hid_subevent_connection_opened_get_status(const uint8_t * event){ 9328 return event[5]; 9329 } 9330 /** 9331 * @brief Get field bd_addr from event HID_SUBEVENT_CONNECTION_OPENED 9332 * @param event packet 9333 * @param Pointer to storage for bd_addr 9334 * @note: btstack_type B 9335 */ 9336 static inline void hid_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 9337 reverse_bytes(&event[6], bd_addr, 6); 9338 } 9339 /** 9340 * @brief Get field con_handle from event HID_SUBEVENT_CONNECTION_OPENED 9341 * @param event packet 9342 * @return con_handle 9343 * @note: btstack_type H 9344 */ 9345 static inline hci_con_handle_t hid_subevent_connection_opened_get_con_handle(const uint8_t * event){ 9346 return little_endian_read_16(event, 12); 9347 } 9348 /** 9349 * @brief Get field incoming from event HID_SUBEVENT_CONNECTION_OPENED 9350 * @param event packet 9351 * @return incoming 9352 * @note: btstack_type 1 9353 */ 9354 static inline uint8_t hid_subevent_connection_opened_get_incoming(const uint8_t * event){ 9355 return event[14]; 9356 } 9357 9358 /** 9359 * @brief Get field hid_cid from event HID_SUBEVENT_CONNECTION_CLOSED 9360 * @param event packet 9361 * @return hid_cid 9362 * @note: btstack_type 2 9363 */ 9364 static inline uint16_t hid_subevent_connection_closed_get_hid_cid(const uint8_t * event){ 9365 return little_endian_read_16(event, 3); 9366 } 9367 9368 /** 9369 * @brief Get field hid_cid from event HID_SUBEVENT_CAN_SEND_NOW 9370 * @param event packet 9371 * @return hid_cid 9372 * @note: btstack_type 2 9373 */ 9374 static inline uint16_t hid_subevent_can_send_now_get_hid_cid(const uint8_t * event){ 9375 return little_endian_read_16(event, 3); 9376 } 9377 9378 /** 9379 * @brief Get field hid_cid from event HID_SUBEVENT_SUSPEND 9380 * @param event packet 9381 * @return hid_cid 9382 * @note: btstack_type 2 9383 */ 9384 static inline uint16_t hid_subevent_suspend_get_hid_cid(const uint8_t * event){ 9385 return little_endian_read_16(event, 3); 9386 } 9387 9388 /** 9389 * @brief Get field hid_cid from event HID_SUBEVENT_EXIT_SUSPEND 9390 * @param event packet 9391 * @return hid_cid 9392 * @note: btstack_type 2 9393 */ 9394 static inline uint16_t hid_subevent_exit_suspend_get_hid_cid(const uint8_t * event){ 9395 return little_endian_read_16(event, 3); 9396 } 9397 9398 /** 9399 * @brief Get field hid_cid from event HID_SUBEVENT_VIRTUAL_CABLE_UNPLUG 9400 * @param event packet 9401 * @return hid_cid 9402 * @note: btstack_type 2 9403 */ 9404 static inline uint16_t hid_subevent_virtual_cable_unplug_get_hid_cid(const uint8_t * event){ 9405 return little_endian_read_16(event, 3); 9406 } 9407 9408 /** 9409 * @brief Get field hid_cid from event HID_SUBEVENT_GET_REPORT_RESPONSE 9410 * @param event packet 9411 * @return hid_cid 9412 * @note: btstack_type 2 9413 */ 9414 static inline uint16_t hid_subevent_get_report_response_get_hid_cid(const uint8_t * event){ 9415 return little_endian_read_16(event, 3); 9416 } 9417 /** 9418 * @brief Get field handshake_status from event HID_SUBEVENT_GET_REPORT_RESPONSE 9419 * @param event packet 9420 * @return handshake_status 9421 * @note: btstack_type 1 9422 */ 9423 static inline uint8_t hid_subevent_get_report_response_get_handshake_status(const uint8_t * event){ 9424 return event[5]; 9425 } 9426 /** 9427 * @brief Get field report_len from event HID_SUBEVENT_GET_REPORT_RESPONSE 9428 * @param event packet 9429 * @return report_len 9430 * @note: btstack_type L 9431 */ 9432 static inline uint16_t hid_subevent_get_report_response_get_report_len(const uint8_t * event){ 9433 return little_endian_read_16(event, 6); 9434 } 9435 /** 9436 * @brief Get field report from event HID_SUBEVENT_GET_REPORT_RESPONSE 9437 * @param event packet 9438 * @return report 9439 * @note: btstack_type V 9440 */ 9441 static inline const uint8_t * hid_subevent_get_report_response_get_report(const uint8_t * event){ 9442 return &event[8]; 9443 } 9444 9445 /** 9446 * @brief Get field hid_cid from event HID_SUBEVENT_SET_REPORT_RESPONSE 9447 * @param event packet 9448 * @return hid_cid 9449 * @note: btstack_type 2 9450 */ 9451 static inline uint16_t hid_subevent_set_report_response_get_hid_cid(const uint8_t * event){ 9452 return little_endian_read_16(event, 3); 9453 } 9454 /** 9455 * @brief Get field handshake_status from event HID_SUBEVENT_SET_REPORT_RESPONSE 9456 * @param event packet 9457 * @return handshake_status 9458 * @note: btstack_type 1 9459 */ 9460 static inline uint8_t hid_subevent_set_report_response_get_handshake_status(const uint8_t * event){ 9461 return event[5]; 9462 } 9463 9464 /** 9465 * @brief Get field hid_cid from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 9466 * @param event packet 9467 * @return hid_cid 9468 * @note: btstack_type 2 9469 */ 9470 static inline uint16_t hid_subevent_get_protocol_response_get_hid_cid(const uint8_t * event){ 9471 return little_endian_read_16(event, 3); 9472 } 9473 /** 9474 * @brief Get field handshake_status from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 9475 * @param event packet 9476 * @return handshake_status 9477 * @note: btstack_type 1 9478 */ 9479 static inline uint8_t hid_subevent_get_protocol_response_get_handshake_status(const uint8_t * event){ 9480 return event[5]; 9481 } 9482 /** 9483 * @brief Get field protocol_mode from event HID_SUBEVENT_GET_PROTOCOL_RESPONSE 9484 * @param event packet 9485 * @return protocol_mode 9486 * @note: btstack_type 1 9487 */ 9488 static inline uint8_t hid_subevent_get_protocol_response_get_protocol_mode(const uint8_t * event){ 9489 return event[6]; 9490 } 9491 9492 /** 9493 * @brief Get field hid_cid from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 9494 * @param event packet 9495 * @return hid_cid 9496 * @note: btstack_type 2 9497 */ 9498 static inline uint16_t hid_subevent_set_protocol_response_get_hid_cid(const uint8_t * event){ 9499 return little_endian_read_16(event, 3); 9500 } 9501 /** 9502 * @brief Get field handshake_status from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 9503 * @param event packet 9504 * @return handshake_status 9505 * @note: btstack_type 1 9506 */ 9507 static inline uint8_t hid_subevent_set_protocol_response_get_handshake_status(const uint8_t * event){ 9508 return event[5]; 9509 } 9510 /** 9511 * @brief Get field protocol_mode from event HID_SUBEVENT_SET_PROTOCOL_RESPONSE 9512 * @param event packet 9513 * @return protocol_mode 9514 * @note: btstack_type 1 9515 */ 9516 static inline uint8_t hid_subevent_set_protocol_response_get_protocol_mode(const uint8_t * event){ 9517 return event[6]; 9518 } 9519 9520 /** 9521 * @brief Get field hid_cid from event HID_SUBEVENT_REPORT 9522 * @param event packet 9523 * @return hid_cid 9524 * @note: btstack_type 2 9525 */ 9526 static inline uint16_t hid_subevent_report_get_hid_cid(const uint8_t * event){ 9527 return little_endian_read_16(event, 3); 9528 } 9529 /** 9530 * @brief Get field report_len from event HID_SUBEVENT_REPORT 9531 * @param event packet 9532 * @return report_len 9533 * @note: btstack_type L 9534 */ 9535 static inline uint16_t hid_subevent_report_get_report_len(const uint8_t * event){ 9536 return little_endian_read_16(event, 5); 9537 } 9538 /** 9539 * @brief Get field report from event HID_SUBEVENT_REPORT 9540 * @param event packet 9541 * @return report 9542 * @note: btstack_type V 9543 */ 9544 static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * event){ 9545 return &event[7]; 9546 } 9547 9548 /** 9549 * @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 9550 * @param event packet 9551 * @return hid_cid 9552 * @note: btstack_type 2 9553 */ 9554 static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){ 9555 return little_endian_read_16(event, 3); 9556 } 9557 /** 9558 * @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE 9559 * @param event packet 9560 * @return status 9561 * @note: btstack_type 1 9562 */ 9563 static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){ 9564 return event[5]; 9565 } 9566 9567 /** 9568 * @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 9569 * @param event packet 9570 * @return hid_cid 9571 * @note: btstack_type 2 9572 */ 9573 static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){ 9574 return little_endian_read_16(event, 3); 9575 } 9576 /** 9577 * @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 9578 * @param event packet 9579 * @return host_max_latency 9580 * @note: btstack_type 2 9581 */ 9582 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){ 9583 return little_endian_read_16(event, 5); 9584 } 9585 /** 9586 * @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 9587 * @param event packet 9588 * @return host_min_timeout 9589 * @note: btstack_type 2 9590 */ 9591 static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){ 9592 return little_endian_read_16(event, 7); 9593 } 9594 9595 /** 9596 * @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW 9597 * @param event packet 9598 * @return con_handle 9599 * @note: btstack_type 2 9600 */ 9601 static inline uint16_t hids_subevent_can_send_now_get_con_handle(const uint8_t * event){ 9602 return little_endian_read_16(event, 3); 9603 } 9604 9605 /** 9606 * @brief Get field con_handle from event HIDS_SUBEVENT_PROTOCOL_MODE 9607 * @param event packet 9608 * @return con_handle 9609 * @note: btstack_type 2 9610 */ 9611 static inline uint16_t hids_subevent_protocol_mode_get_con_handle(const uint8_t * event){ 9612 return little_endian_read_16(event, 3); 9613 } 9614 /** 9615 * @brief Get field protocol_mode from event HIDS_SUBEVENT_PROTOCOL_MODE 9616 * @param event packet 9617 * @return protocol_mode 9618 * @note: btstack_type 1 9619 */ 9620 static inline uint8_t hids_subevent_protocol_mode_get_protocol_mode(const uint8_t * event){ 9621 return event[5]; 9622 } 9623 9624 /** 9625 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 9626 * @param event packet 9627 * @return con_handle 9628 * @note: btstack_type 2 9629 */ 9630 static inline uint16_t hids_subevent_boot_mouse_input_report_enable_get_con_handle(const uint8_t * event){ 9631 return little_endian_read_16(event, 3); 9632 } 9633 /** 9634 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 9635 * @param event packet 9636 * @return enable 9637 * @note: btstack_type 1 9638 */ 9639 static inline uint8_t hids_subevent_boot_mouse_input_report_enable_get_enable(const uint8_t * event){ 9640 return event[5]; 9641 } 9642 9643 /** 9644 * @brief Get field con_handle from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 9645 * @param event packet 9646 * @return con_handle 9647 * @note: btstack_type 2 9648 */ 9649 static inline uint16_t hids_subevent_boot_keyboard_input_report_enable_get_con_handle(const uint8_t * event){ 9650 return little_endian_read_16(event, 3); 9651 } 9652 /** 9653 * @brief Get field enable from event HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 9654 * @param event packet 9655 * @return enable 9656 * @note: btstack_type 1 9657 */ 9658 static inline uint8_t hids_subevent_boot_keyboard_input_report_enable_get_enable(const uint8_t * event){ 9659 return event[5]; 9660 } 9661 9662 /** 9663 * @brief Get field con_handle from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 9664 * @param event packet 9665 * @return con_handle 9666 * @note: btstack_type 2 9667 */ 9668 static inline uint16_t hids_subevent_input_report_enable_get_con_handle(const uint8_t * event){ 9669 return little_endian_read_16(event, 3); 9670 } 9671 /** 9672 * @brief Get field enable from event HIDS_SUBEVENT_INPUT_REPORT_ENABLE 9673 * @param event packet 9674 * @return enable 9675 * @note: btstack_type 1 9676 */ 9677 static inline uint8_t hids_subevent_input_report_enable_get_enable(const uint8_t * event){ 9678 return event[5]; 9679 } 9680 9681 /** 9682 * @brief Get field con_handle from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 9683 * @param event packet 9684 * @return con_handle 9685 * @note: btstack_type 2 9686 */ 9687 static inline uint16_t hids_subevent_output_report_enable_get_con_handle(const uint8_t * event){ 9688 return little_endian_read_16(event, 3); 9689 } 9690 /** 9691 * @brief Get field enable from event HIDS_SUBEVENT_OUTPUT_REPORT_ENABLE 9692 * @param event packet 9693 * @return enable 9694 * @note: btstack_type 1 9695 */ 9696 static inline uint8_t hids_subevent_output_report_enable_get_enable(const uint8_t * event){ 9697 return event[5]; 9698 } 9699 9700 /** 9701 * @brief Get field con_handle from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 9702 * @param event packet 9703 * @return con_handle 9704 * @note: btstack_type 2 9705 */ 9706 static inline uint16_t hids_subevent_feature_report_enable_get_con_handle(const uint8_t * event){ 9707 return little_endian_read_16(event, 3); 9708 } 9709 /** 9710 * @brief Get field enable from event HIDS_SUBEVENT_FEATURE_REPORT_ENABLE 9711 * @param event packet 9712 * @return enable 9713 * @note: btstack_type 1 9714 */ 9715 static inline uint8_t hids_subevent_feature_report_enable_get_enable(const uint8_t * event){ 9716 return event[5]; 9717 } 9718 9719 /** 9720 * @brief Get field con_handle from event HIDS_SUBEVENT_SUSPEND 9721 * @param event packet 9722 * @return con_handle 9723 * @note: btstack_type 2 9724 */ 9725 static inline uint16_t hids_subevent_suspend_get_con_handle(const uint8_t * event){ 9726 return little_endian_read_16(event, 3); 9727 } 9728 9729 /** 9730 * @brief Get field con_handle from event HIDS_SUBEVENT_EXIT_SUSPEND 9731 * @param event packet 9732 * @return con_handle 9733 * @note: btstack_type 2 9734 */ 9735 static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t * event){ 9736 return little_endian_read_16(event, 3); 9737 } 9738 9739 /** 9740 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 9741 * @param event packet 9742 * @return con_handle 9743 * @note: btstack_type 2 9744 */ 9745 static inline uint16_t gattservice_subevent_cycling_power_start_calibration_get_con_handle(const uint8_t * event){ 9746 return little_endian_read_16(event, 3); 9747 } 9748 /** 9749 * @brief Get field measurement_type from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 9750 * @param event packet 9751 * @return measurement_type 9752 * @note: btstack_type 1 9753 */ 9754 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_measurement_type(const uint8_t * event){ 9755 return event[5]; 9756 } 9757 /** 9758 * @brief Get field is_enhanced from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION 9759 * @param event packet 9760 * @return is_enhanced 9761 * @note: btstack_type 1 9762 */ 9763 static inline uint8_t gattservice_subevent_cycling_power_start_calibration_get_is_enhanced(const uint8_t * event){ 9764 return event[6]; 9765 } 9766 9767 /** 9768 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_START 9769 * @param event packet 9770 * @return con_handle 9771 * @note: btstack_type 2 9772 */ 9773 static inline uint16_t gattservice_subevent_cycling_power_broadcast_start_get_con_handle(const uint8_t * event){ 9774 return little_endian_read_16(event, 3); 9775 } 9776 9777 /** 9778 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_BROADCAST_STOP 9779 * @param event packet 9780 * @return con_handle 9781 * @note: btstack_type 2 9782 */ 9783 static inline uint16_t gattservice_subevent_cycling_power_broadcast_stop_get_con_handle(const uint8_t * event){ 9784 return little_endian_read_16(event, 3); 9785 } 9786 9787 /** 9788 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 9789 * @param event packet 9790 * @return hids_cid 9791 * @note: btstack_type 2 9792 */ 9793 static inline uint16_t gattservice_subevent_battery_service_connected_get_hids_cid(const uint8_t * event){ 9794 return little_endian_read_16(event, 3); 9795 } 9796 /** 9797 * @brief Get field status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 9798 * @param event packet 9799 * @return status 9800 * @note: btstack_type 1 9801 */ 9802 static inline uint8_t gattservice_subevent_battery_service_connected_get_status(const uint8_t * event){ 9803 return event[5]; 9804 } 9805 /** 9806 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 9807 * @param event packet 9808 * @return num_instances 9809 * @note: btstack_type 1 9810 */ 9811 static inline uint8_t gattservice_subevent_battery_service_connected_get_num_instances(const uint8_t * event){ 9812 return event[6]; 9813 } 9814 /** 9815 * @brief Get field poll_bitmap from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_CONNECTED 9816 * @param event packet 9817 * @return poll_bitmap 9818 * @note: btstack_type 1 9819 */ 9820 static inline uint8_t gattservice_subevent_battery_service_connected_get_poll_bitmap(const uint8_t * event){ 9821 return event[7]; 9822 } 9823 9824 /** 9825 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 9826 * @param event packet 9827 * @return hids_cid 9828 * @note: btstack_type 2 9829 */ 9830 static inline uint16_t gattservice_subevent_battery_service_level_get_hids_cid(const uint8_t * event){ 9831 return little_endian_read_16(event, 3); 9832 } 9833 /** 9834 * @brief Get field sevice_index from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 9835 * @param event packet 9836 * @return sevice_index 9837 * @note: btstack_type 1 9838 */ 9839 static inline uint8_t gattservice_subevent_battery_service_level_get_sevice_index(const uint8_t * event){ 9840 return event[5]; 9841 } 9842 /** 9843 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 9844 * @param event packet 9845 * @return att_status 9846 * @note: btstack_type 1 9847 */ 9848 static inline uint8_t gattservice_subevent_battery_service_level_get_att_status(const uint8_t * event){ 9849 return event[6]; 9850 } 9851 /** 9852 * @brief Get field level from event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL 9853 * @param event packet 9854 * @return level 9855 * @note: btstack_type 1 9856 */ 9857 static inline uint8_t gattservice_subevent_battery_service_level_get_level(const uint8_t * event){ 9858 return event[7]; 9859 } 9860 9861 /** 9862 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 9863 * @param event packet 9864 * @return con_handle 9865 * @note: btstack_type H 9866 */ 9867 static inline hci_con_handle_t gattservice_subevent_device_information_done_get_con_handle(const uint8_t * event){ 9868 return little_endian_read_16(event, 3); 9869 } 9870 /** 9871 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE 9872 * @param event packet 9873 * @return att_status 9874 * @note: btstack_type 1 9875 */ 9876 static inline uint8_t gattservice_subevent_device_information_done_get_att_status(const uint8_t * event){ 9877 return event[5]; 9878 } 9879 9880 /** 9881 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 9882 * @param event packet 9883 * @return con_handle 9884 * @note: btstack_type H 9885 */ 9886 static inline hci_con_handle_t gattservice_subevent_device_information_manufacturer_name_get_con_handle(const uint8_t * event){ 9887 return little_endian_read_16(event, 3); 9888 } 9889 /** 9890 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 9891 * @param event packet 9892 * @return att_status 9893 * @note: btstack_type 1 9894 */ 9895 static inline uint8_t gattservice_subevent_device_information_manufacturer_name_get_att_status(const uint8_t * event){ 9896 return event[5]; 9897 } 9898 /** 9899 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MANUFACTURER_NAME 9900 * @param event packet 9901 * @return value 9902 * @note: btstack_type T 9903 */ 9904 static inline const char * gattservice_subevent_device_information_manufacturer_name_get_value(const uint8_t * event){ 9905 return (const char *) &event[6]; 9906 } 9907 9908 /** 9909 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 9910 * @param event packet 9911 * @return con_handle 9912 * @note: btstack_type H 9913 */ 9914 static inline hci_con_handle_t gattservice_subevent_device_information_model_number_get_con_handle(const uint8_t * event){ 9915 return little_endian_read_16(event, 3); 9916 } 9917 /** 9918 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 9919 * @param event packet 9920 * @return att_status 9921 * @note: btstack_type 1 9922 */ 9923 static inline uint8_t gattservice_subevent_device_information_model_number_get_att_status(const uint8_t * event){ 9924 return event[5]; 9925 } 9926 /** 9927 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_MODEL_NUMBER 9928 * @param event packet 9929 * @return value 9930 * @note: btstack_type T 9931 */ 9932 static inline const char * gattservice_subevent_device_information_model_number_get_value(const uint8_t * event){ 9933 return (const char *) &event[6]; 9934 } 9935 9936 /** 9937 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 9938 * @param event packet 9939 * @return con_handle 9940 * @note: btstack_type H 9941 */ 9942 static inline hci_con_handle_t gattservice_subevent_device_information_serial_number_get_con_handle(const uint8_t * event){ 9943 return little_endian_read_16(event, 3); 9944 } 9945 /** 9946 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 9947 * @param event packet 9948 * @return att_status 9949 * @note: btstack_type 1 9950 */ 9951 static inline uint8_t gattservice_subevent_device_information_serial_number_get_att_status(const uint8_t * event){ 9952 return event[5]; 9953 } 9954 /** 9955 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SERIAL_NUMBER 9956 * @param event packet 9957 * @return value 9958 * @note: btstack_type T 9959 */ 9960 static inline const char * gattservice_subevent_device_information_serial_number_get_value(const uint8_t * event){ 9961 return (const char *) &event[6]; 9962 } 9963 9964 /** 9965 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 9966 * @param event packet 9967 * @return con_handle 9968 * @note: btstack_type H 9969 */ 9970 static inline hci_con_handle_t gattservice_subevent_device_information_hardware_revision_get_con_handle(const uint8_t * event){ 9971 return little_endian_read_16(event, 3); 9972 } 9973 /** 9974 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 9975 * @param event packet 9976 * @return att_status 9977 * @note: btstack_type 1 9978 */ 9979 static inline uint8_t gattservice_subevent_device_information_hardware_revision_get_att_status(const uint8_t * event){ 9980 return event[5]; 9981 } 9982 /** 9983 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_HARDWARE_REVISION 9984 * @param event packet 9985 * @return value 9986 * @note: btstack_type T 9987 */ 9988 static inline const char * gattservice_subevent_device_information_hardware_revision_get_value(const uint8_t * event){ 9989 return (const char *) &event[6]; 9990 } 9991 9992 /** 9993 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 9994 * @param event packet 9995 * @return con_handle 9996 * @note: btstack_type H 9997 */ 9998 static inline hci_con_handle_t gattservice_subevent_device_information_firmware_revision_get_con_handle(const uint8_t * event){ 9999 return little_endian_read_16(event, 3); 10000 } 10001 /** 10002 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 10003 * @param event packet 10004 * @return att_status 10005 * @note: btstack_type 1 10006 */ 10007 static inline uint8_t gattservice_subevent_device_information_firmware_revision_get_att_status(const uint8_t * event){ 10008 return event[5]; 10009 } 10010 /** 10011 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_FIRMWARE_REVISION 10012 * @param event packet 10013 * @return value 10014 * @note: btstack_type T 10015 */ 10016 static inline const char * gattservice_subevent_device_information_firmware_revision_get_value(const uint8_t * event){ 10017 return (const char *) &event[6]; 10018 } 10019 10020 /** 10021 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 10022 * @param event packet 10023 * @return con_handle 10024 * @note: btstack_type H 10025 */ 10026 static inline hci_con_handle_t gattservice_subevent_device_information_software_revision_get_con_handle(const uint8_t * event){ 10027 return little_endian_read_16(event, 3); 10028 } 10029 /** 10030 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 10031 * @param event packet 10032 * @return att_status 10033 * @note: btstack_type 1 10034 */ 10035 static inline uint8_t gattservice_subevent_device_information_software_revision_get_att_status(const uint8_t * event){ 10036 return event[5]; 10037 } 10038 /** 10039 * @brief Get field value from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SOFTWARE_REVISION 10040 * @param event packet 10041 * @return value 10042 * @note: btstack_type T 10043 */ 10044 static inline const char * gattservice_subevent_device_information_software_revision_get_value(const uint8_t * event){ 10045 return (const char *) &event[6]; 10046 } 10047 10048 /** 10049 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 10050 * @param event packet 10051 * @return con_handle 10052 * @note: btstack_type H 10053 */ 10054 static inline hci_con_handle_t gattservice_subevent_device_information_system_id_get_con_handle(const uint8_t * event){ 10055 return little_endian_read_16(event, 3); 10056 } 10057 /** 10058 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 10059 * @param event packet 10060 * @return att_status 10061 * @note: btstack_type 1 10062 */ 10063 static inline uint8_t gattservice_subevent_device_information_system_id_get_att_status(const uint8_t * event){ 10064 return event[5]; 10065 } 10066 /** 10067 * @brief Get field manufacturer_id_low from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 10068 * @param event packet 10069 * @return manufacturer_id_low 10070 * @note: btstack_type 4 10071 */ 10072 static inline uint32_t gattservice_subevent_device_information_system_id_get_manufacturer_id_low(const uint8_t * event){ 10073 return little_endian_read_32(event, 6); 10074 } 10075 /** 10076 * @brief Get field manufacturer_id_high from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 10077 * @param event packet 10078 * @return manufacturer_id_high 10079 * @note: btstack_type 1 10080 */ 10081 static inline uint8_t gattservice_subevent_device_information_system_id_get_manufacturer_id_high(const uint8_t * event){ 10082 return event[10]; 10083 } 10084 /** 10085 * @brief Get field organizationally_unique_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_SYSTEM_ID 10086 * @param event packet 10087 * @return organizationally_unique_id 10088 * @note: btstack_type 3 10089 */ 10090 static inline uint32_t gattservice_subevent_device_information_system_id_get_organizationally_unique_id(const uint8_t * event){ 10091 return little_endian_read_24(event, 11); 10092 } 10093 10094 /** 10095 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 10096 * @param event packet 10097 * @return con_handle 10098 * @note: btstack_type H 10099 */ 10100 static inline hci_con_handle_t gattservice_subevent_device_information_ieee_regulatory_certification_get_con_handle(const uint8_t * event){ 10101 return little_endian_read_16(event, 3); 10102 } 10103 /** 10104 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 10105 * @param event packet 10106 * @return att_status 10107 * @note: btstack_type 1 10108 */ 10109 static inline uint8_t gattservice_subevent_device_information_ieee_regulatory_certification_get_att_status(const uint8_t * event){ 10110 return event[5]; 10111 } 10112 /** 10113 * @brief Get field value_a from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 10114 * @param event packet 10115 * @return value_a 10116 * @note: btstack_type 2 10117 */ 10118 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_a(const uint8_t * event){ 10119 return little_endian_read_16(event, 6); 10120 } 10121 /** 10122 * @brief Get field value_b from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_IEEE_REGULATORY_CERTIFICATION 10123 * @param event packet 10124 * @return value_b 10125 * @note: btstack_type 2 10126 */ 10127 static inline uint16_t gattservice_subevent_device_information_ieee_regulatory_certification_get_value_b(const uint8_t * event){ 10128 return little_endian_read_16(event, 8); 10129 } 10130 10131 /** 10132 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 10133 * @param event packet 10134 * @return con_handle 10135 * @note: btstack_type H 10136 */ 10137 static inline hci_con_handle_t gattservice_subevent_device_information_pnp_id_get_con_handle(const uint8_t * event){ 10138 return little_endian_read_16(event, 3); 10139 } 10140 /** 10141 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 10142 * @param event packet 10143 * @return att_status 10144 * @note: btstack_type 1 10145 */ 10146 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_att_status(const uint8_t * event){ 10147 return event[5]; 10148 } 10149 /** 10150 * @brief Get field vendor_source_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 10151 * @param event packet 10152 * @return vendor_source_id 10153 * @note: btstack_type 1 10154 */ 10155 static inline uint8_t gattservice_subevent_device_information_pnp_id_get_vendor_source_id(const uint8_t * event){ 10156 return event[6]; 10157 } 10158 /** 10159 * @brief Get field vendor_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 10160 * @param event packet 10161 * @return vendor_id 10162 * @note: btstack_type 2 10163 */ 10164 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_vendor_id(const uint8_t * event){ 10165 return little_endian_read_16(event, 7); 10166 } 10167 /** 10168 * @brief Get field product_id from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 10169 * @param event packet 10170 * @return product_id 10171 * @note: btstack_type 2 10172 */ 10173 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_id(const uint8_t * event){ 10174 return little_endian_read_16(event, 9); 10175 } 10176 /** 10177 * @brief Get field product_version from event GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_PNP_ID 10178 * @param event packet 10179 * @return product_version 10180 * @note: btstack_type 2 10181 */ 10182 static inline uint16_t gattservice_subevent_device_information_pnp_id_get_product_version(const uint8_t * event){ 10183 return little_endian_read_16(event, 11); 10184 } 10185 10186 /** 10187 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 10188 * @param event packet 10189 * @return con_handle 10190 * @note: btstack_type H 10191 */ 10192 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_connected_get_con_handle(const uint8_t * event){ 10193 return little_endian_read_16(event, 3); 10194 } 10195 /** 10196 * @brief Get field att_status from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_CONNECTED 10197 * @param event packet 10198 * @return att_status 10199 * @note: btstack_type 1 10200 */ 10201 static inline uint8_t gattservice_subevent_scan_parameters_service_connected_get_att_status(const uint8_t * event){ 10202 return event[5]; 10203 } 10204 10205 /** 10206 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_CONNECTED 10207 * @param event packet 10208 * @return con_handle 10209 * @note: btstack_type H 10210 */ 10211 static inline hci_con_handle_t gattservice_subevent_spp_service_connected_get_con_handle(const uint8_t * event){ 10212 return little_endian_read_16(event, 3); 10213 } 10214 10215 /** 10216 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SPP_SERVICE_DISCONNECTED 10217 * @param event packet 10218 * @return con_handle 10219 * @note: btstack_type H 10220 */ 10221 static inline hci_con_handle_t gattservice_subevent_spp_service_disconnected_get_con_handle(const uint8_t * event){ 10222 return little_endian_read_16(event, 3); 10223 } 10224 10225 /** 10226 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 10227 * @param event packet 10228 * @return hids_cid 10229 * @note: btstack_type 2 10230 */ 10231 static inline uint16_t gattservice_subevent_hid_service_connected_get_hids_cid(const uint8_t * event){ 10232 return little_endian_read_16(event, 3); 10233 } 10234 /** 10235 * @brief Get field status from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 10236 * @param event packet 10237 * @return status 10238 * @note: btstack_type 1 10239 */ 10240 static inline uint8_t gattservice_subevent_hid_service_connected_get_status(const uint8_t * event){ 10241 return event[5]; 10242 } 10243 /** 10244 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 10245 * @param event packet 10246 * @return protocol_mode 10247 * @note: btstack_type 1 10248 */ 10249 static inline uint8_t gattservice_subevent_hid_service_connected_get_protocol_mode(const uint8_t * event){ 10250 return event[6]; 10251 } 10252 /** 10253 * @brief Get field num_instances from event GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED 10254 * @param event packet 10255 * @return num_instances 10256 * @note: btstack_type 1 10257 */ 10258 static inline uint8_t gattservice_subevent_hid_service_connected_get_num_instances(const uint8_t * event){ 10259 return event[7]; 10260 } 10261 10262 /** 10263 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_REPORT 10264 * @param event packet 10265 * @return hids_cid 10266 * @note: btstack_type 2 10267 */ 10268 static inline uint16_t gattservice_subevent_hid_report_get_hids_cid(const uint8_t * event){ 10269 return little_endian_read_16(event, 3); 10270 } 10271 /** 10272 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_REPORT 10273 * @param event packet 10274 * @return service_index 10275 * @note: btstack_type 1 10276 */ 10277 static inline uint8_t gattservice_subevent_hid_report_get_service_index(const uint8_t * event){ 10278 return event[5]; 10279 } 10280 /** 10281 * @brief Get field report_id from event GATTSERVICE_SUBEVENT_HID_REPORT 10282 * @param event packet 10283 * @return report_id 10284 * @note: btstack_type 1 10285 */ 10286 static inline uint8_t gattservice_subevent_hid_report_get_report_id(const uint8_t * event){ 10287 return event[6]; 10288 } 10289 /** 10290 * @brief Get field report_len from event GATTSERVICE_SUBEVENT_HID_REPORT 10291 * @param event packet 10292 * @return report_len 10293 * @note: btstack_type L 10294 */ 10295 static inline uint16_t gattservice_subevent_hid_report_get_report_len(const uint8_t * event){ 10296 return little_endian_read_16(event, 7); 10297 } 10298 /** 10299 * @brief Get field report from event GATTSERVICE_SUBEVENT_HID_REPORT 10300 * @param event packet 10301 * @return report 10302 * @note: btstack_type V 10303 */ 10304 static inline const uint8_t * gattservice_subevent_hid_report_get_report(const uint8_t * event){ 10305 return &event[9]; 10306 } 10307 10308 /** 10309 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_INFORMATION 10310 * @param event packet 10311 * @return hids_cid 10312 * @note: btstack_type 2 10313 */ 10314 static inline uint16_t gattservice_subevent_hid_information_get_hids_cid(const uint8_t * event){ 10315 return little_endian_read_16(event, 3); 10316 } 10317 /** 10318 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_INFORMATION 10319 * @param event packet 10320 * @return service_index 10321 * @note: btstack_type 1 10322 */ 10323 static inline uint8_t gattservice_subevent_hid_information_get_service_index(const uint8_t * event){ 10324 return event[5]; 10325 } 10326 /** 10327 * @brief Get field base_usb_hid_version from event GATTSERVICE_SUBEVENT_HID_INFORMATION 10328 * @param event packet 10329 * @return base_usb_hid_version 10330 * @note: btstack_type 2 10331 */ 10332 static inline uint16_t gattservice_subevent_hid_information_get_base_usb_hid_version(const uint8_t * event){ 10333 return little_endian_read_16(event, 6); 10334 } 10335 /** 10336 * @brief Get field country_code from event GATTSERVICE_SUBEVENT_HID_INFORMATION 10337 * @param event packet 10338 * @return country_code 10339 * @note: btstack_type 1 10340 */ 10341 static inline uint8_t gattservice_subevent_hid_information_get_country_code(const uint8_t * event){ 10342 return event[8]; 10343 } 10344 /** 10345 * @brief Get field remote_wake from event GATTSERVICE_SUBEVENT_HID_INFORMATION 10346 * @param event packet 10347 * @return remote_wake 10348 * @note: btstack_type 1 10349 */ 10350 static inline uint8_t gattservice_subevent_hid_information_get_remote_wake(const uint8_t * event){ 10351 return event[9]; 10352 } 10353 /** 10354 * @brief Get field normally_connectable from event GATTSERVICE_SUBEVENT_HID_INFORMATION 10355 * @param event packet 10356 * @return normally_connectable 10357 * @note: btstack_type 1 10358 */ 10359 static inline uint8_t gattservice_subevent_hid_information_get_normally_connectable(const uint8_t * event){ 10360 return event[10]; 10361 } 10362 10363 /** 10364 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 10365 * @param event packet 10366 * @return hids_cid 10367 * @note: btstack_type 2 10368 */ 10369 static inline uint16_t gattservice_subevent_hid_protocol_mode_get_hids_cid(const uint8_t * event){ 10370 return little_endian_read_16(event, 3); 10371 } 10372 /** 10373 * @brief Get field service_index from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 10374 * @param event packet 10375 * @return service_index 10376 * @note: btstack_type 1 10377 */ 10378 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_service_index(const uint8_t * event){ 10379 return event[5]; 10380 } 10381 /** 10382 * @brief Get field protocol_mode from event GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 10383 * @param event packet 10384 * @return protocol_mode 10385 * @note: btstack_type 1 10386 */ 10387 static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(const uint8_t * event){ 10388 return event[6]; 10389 } 10390 10391 /** 10392 * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 10393 * @param event packet 10394 * @return hids_cid 10395 * @note: btstack_type 2 10396 */ 10397 static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){ 10398 return little_endian_read_16(event, 3); 10399 } 10400 /** 10401 * @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 10402 * @param event packet 10403 * @return configuration 10404 * @note: btstack_type 1 10405 */ 10406 static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 10407 return event[5]; 10408 } 10409 10410 /** 10411 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 10412 * @param event packet 10413 * @return con_handle 10414 * @note: btstack_type H 10415 */ 10416 static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){ 10417 return little_endian_read_16(event, 3); 10418 } 10419 /** 10420 * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 10421 * @param event packet 10422 * @return max_scan_interval 10423 * @note: btstack_type 2 10424 */ 10425 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){ 10426 return little_endian_read_16(event, 5); 10427 } 10428 /** 10429 * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 10430 * @param event packet 10431 * @return min_scan_window 10432 * @note: btstack_type 2 10433 */ 10434 static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){ 10435 return little_endian_read_16(event, 7); 10436 } 10437 10438 /** 10439 * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED 10440 * @param event packet 10441 * @return map_cid 10442 * @note: btstack_type 2 10443 */ 10444 static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){ 10445 return little_endian_read_16(event, 3); 10446 } 10447 /** 10448 * @brief Get field status from event MAP_SUBEVENT_CONNECTION_OPENED 10449 * @param event packet 10450 * @return status 10451 * @note: btstack_type 1 10452 */ 10453 static inline uint8_t map_subevent_connection_opened_get_status(const uint8_t * event){ 10454 return event[5]; 10455 } 10456 /** 10457 * @brief Get field bd_addr from event MAP_SUBEVENT_CONNECTION_OPENED 10458 * @param event packet 10459 * @param Pointer to storage for bd_addr 10460 * @note: btstack_type B 10461 */ 10462 static inline void map_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){ 10463 reverse_bytes(&event[6], bd_addr, 6); 10464 } 10465 /** 10466 * @brief Get field con_handle from event MAP_SUBEVENT_CONNECTION_OPENED 10467 * @param event packet 10468 * @return con_handle 10469 * @note: btstack_type H 10470 */ 10471 static inline hci_con_handle_t map_subevent_connection_opened_get_con_handle(const uint8_t * event){ 10472 return little_endian_read_16(event, 12); 10473 } 10474 /** 10475 * @brief Get field incoming from event MAP_SUBEVENT_CONNECTION_OPENED 10476 * @param event packet 10477 * @return incoming 10478 * @note: btstack_type 1 10479 */ 10480 static inline uint8_t map_subevent_connection_opened_get_incoming(const uint8_t * event){ 10481 return event[14]; 10482 } 10483 10484 /** 10485 * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_CLOSED 10486 * @param event packet 10487 * @return map_cid 10488 * @note: btstack_type 2 10489 */ 10490 static inline uint16_t map_subevent_connection_closed_get_map_cid(const uint8_t * event){ 10491 return little_endian_read_16(event, 3); 10492 } 10493 10494 /** 10495 * @brief Get field map_cid from event MAP_SUBEVENT_OPERATION_COMPLETED 10496 * @param event packet 10497 * @return map_cid 10498 * @note: btstack_type 2 10499 */ 10500 static inline uint16_t map_subevent_operation_completed_get_map_cid(const uint8_t * event){ 10501 return little_endian_read_16(event, 3); 10502 } 10503 /** 10504 * @brief Get field status from event MAP_SUBEVENT_OPERATION_COMPLETED 10505 * @param event packet 10506 * @return status 10507 * @note: btstack_type 1 10508 */ 10509 static inline uint8_t map_subevent_operation_completed_get_status(const uint8_t * event){ 10510 return event[5]; 10511 } 10512 10513 /** 10514 * @brief Get field map_cid from event MAP_SUBEVENT_FOLDER_LISTING_ITEM 10515 * @param event packet 10516 * @return map_cid 10517 * @note: btstack_type 2 10518 */ 10519 static inline uint16_t map_subevent_folder_listing_item_get_map_cid(const uint8_t * event){ 10520 return little_endian_read_16(event, 3); 10521 } 10522 /** 10523 * @brief Get field name_len from event MAP_SUBEVENT_FOLDER_LISTING_ITEM 10524 * @param event packet 10525 * @return name_len 10526 * @note: btstack_type L 10527 */ 10528 static inline uint16_t map_subevent_folder_listing_item_get_name_len(const uint8_t * event){ 10529 return little_endian_read_16(event, 5); 10530 } 10531 /** 10532 * @brief Get field name from event MAP_SUBEVENT_FOLDER_LISTING_ITEM 10533 * @param event packet 10534 * @return name 10535 * @note: btstack_type V 10536 */ 10537 static inline const uint8_t * map_subevent_folder_listing_item_get_name(const uint8_t * event){ 10538 return &event[7]; 10539 } 10540 10541 /** 10542 * @brief Get field map_cid from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM 10543 * @param event packet 10544 * @return map_cid 10545 * @note: btstack_type 2 10546 */ 10547 static inline uint16_t map_subevent_message_listing_item_get_map_cid(const uint8_t * event){ 10548 return little_endian_read_16(event, 3); 10549 } 10550 /** 10551 * @brief Get field handle from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM 10552 * @param event packet 10553 * @return handle 10554 * @note: btstack_type D 10555 */ 10556 static inline const uint8_t * map_subevent_message_listing_item_get_handle(const uint8_t * event){ 10557 return (const uint8_t *) &event[5]; 10558 } 10559 10560 /** 10561 * @brief Get field map_cid from event MAP_SUBEVENT_PARSING_DONE 10562 * @param event packet 10563 * @return map_cid 10564 * @note: btstack_type 2 10565 */ 10566 static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * event){ 10567 return little_endian_read_16(event, 3); 10568 } 10569 10570 10571 /** 10572 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT 10573 * @param event packet 10574 * @return status 10575 * @note: btstack_type 1 10576 */ 10577 static inline uint8_t mesh_subevent_pb_transport_pdu_sent_get_status(const uint8_t * event){ 10578 return event[3]; 10579 } 10580 10581 /** 10582 * @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 10583 * @param event packet 10584 * @return status 10585 * @note: btstack_type 1 10586 */ 10587 static inline uint8_t mesh_subevent_pb_transport_link_open_get_status(const uint8_t * event){ 10588 return event[3]; 10589 } 10590 /** 10591 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 10592 * @param event packet 10593 * @return pb_transport_cid 10594 * @note: btstack_type 2 10595 */ 10596 static inline uint16_t mesh_subevent_pb_transport_link_open_get_pb_transport_cid(const uint8_t * event){ 10597 return little_endian_read_16(event, 4); 10598 } 10599 /** 10600 * @brief Get field pb_type from event MESH_SUBEVENT_PB_TRANSPORT_LINK_OPEN 10601 * @param event packet 10602 * @return pb_type 10603 * @note: btstack_type 1 10604 */ 10605 static inline uint8_t mesh_subevent_pb_transport_link_open_get_pb_type(const uint8_t * event){ 10606 return event[6]; 10607 } 10608 10609 /** 10610 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 10611 * @param event packet 10612 * @return pb_transport_cid 10613 * @note: btstack_type 1 10614 */ 10615 static inline uint8_t mesh_subevent_pb_transport_link_closed_get_pb_transport_cid(const uint8_t * event){ 10616 return event[3]; 10617 } 10618 /** 10619 * @brief Get field reason from event MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED 10620 * @param event packet 10621 * @return reason 10622 * @note: btstack_type 2 10623 */ 10624 static inline uint16_t mesh_subevent_pb_transport_link_closed_get_reason(const uint8_t * event){ 10625 return little_endian_read_16(event, 4); 10626 } 10627 10628 /** 10629 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 10630 * @param event packet 10631 * @return pb_transport_cid 10632 * @note: btstack_type 2 10633 */ 10634 static inline uint16_t mesh_subevent_pb_prov_attention_timer_get_pb_transport_cid(const uint8_t * event){ 10635 return little_endian_read_16(event, 3); 10636 } 10637 /** 10638 * @brief Get field attention_time from event MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER 10639 * @param event packet 10640 * @return attention_time 10641 * @note: btstack_type 1 10642 */ 10643 static inline uint8_t mesh_subevent_pb_prov_attention_timer_get_attention_time(const uint8_t * event){ 10644 return event[5]; 10645 } 10646 10647 /** 10648 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_PUBLIC_KEY_OOB 10649 * @param event packet 10650 * @return pb_transport_cid 10651 * @note: btstack_type 2 10652 */ 10653 static inline uint16_t mesh_subevent_pb_prov_start_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 10654 return little_endian_read_16(event, 3); 10655 } 10656 10657 /** 10658 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_PUBLIC_KEY_OOB 10659 * @param event packet 10660 * @return pb_transport_cid 10661 * @note: btstack_type 2 10662 */ 10663 static inline uint16_t mesh_subevent_pb_prov_stop_emit_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 10664 return little_endian_read_16(event, 3); 10665 } 10666 10667 /** 10668 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST 10669 * @param event packet 10670 * @return pb_transport_cid 10671 * @note: btstack_type 2 10672 */ 10673 static inline uint16_t mesh_subevent_pb_prov_input_oob_request_get_pb_transport_cid(const uint8_t * event){ 10674 return little_endian_read_16(event, 3); 10675 } 10676 10677 /** 10678 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 10679 * @param event packet 10680 * @return pb_transport_cid 10681 * @note: btstack_type 2 10682 */ 10683 static inline uint16_t mesh_subevent_pb_prov_start_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 10684 return little_endian_read_16(event, 3); 10685 } 10686 /** 10687 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_OUTPUT_OOB 10688 * @param event packet 10689 * @return output_oob 10690 * @note: btstack_type 4 10691 */ 10692 static inline uint32_t mesh_subevent_pb_prov_start_emit_output_oob_get_output_oob(const uint8_t * event){ 10693 return little_endian_read_32(event, 5); 10694 } 10695 10696 /** 10697 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_OUTPUT_OOB 10698 * @param event packet 10699 * @return pb_transport_cid 10700 * @note: btstack_type 2 10701 */ 10702 static inline uint16_t mesh_subevent_pb_prov_stop_emit_output_oob_get_pb_transport_cid(const uint8_t * event){ 10703 return little_endian_read_16(event, 3); 10704 } 10705 10706 /** 10707 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_RECEIVE_PUBLIC_KEY_OOB 10708 * @param event packet 10709 * @return pb_transport_cid 10710 * @note: btstack_type 2 10711 */ 10712 static inline uint16_t mesh_subevent_pb_prov_start_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 10713 return little_endian_read_16(event, 3); 10714 } 10715 10716 /** 10717 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_RECEIVE_PUBLIC_KEY_OOB 10718 * @param event packet 10719 * @return pb_transport_cid 10720 * @note: btstack_type 2 10721 */ 10722 static inline uint16_t mesh_subevent_pb_prov_stop_receive_public_key_oob_get_pb_transport_cid(const uint8_t * event){ 10723 return little_endian_read_16(event, 3); 10724 } 10725 10726 /** 10727 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_OUTPUT_OOB_REQUEST 10728 * @param event packet 10729 * @return pb_transport_cid 10730 * @note: btstack_type 2 10731 */ 10732 static inline uint16_t mesh_subevent_pb_prov_output_oob_request_get_pb_transport_cid(const uint8_t * event){ 10733 return little_endian_read_16(event, 3); 10734 } 10735 10736 /** 10737 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 10738 * @param event packet 10739 * @return pb_transport_cid 10740 * @note: btstack_type 2 10741 */ 10742 static inline uint16_t mesh_subevent_pb_prov_start_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 10743 return little_endian_read_16(event, 3); 10744 } 10745 /** 10746 * @brief Get field output_oob from event MESH_SUBEVENT_PB_PROV_START_EMIT_INPUT_OOB 10747 * @param event packet 10748 * @return output_oob 10749 * @note: btstack_type 4 10750 */ 10751 static inline uint32_t mesh_subevent_pb_prov_start_emit_input_oob_get_output_oob(const uint8_t * event){ 10752 return little_endian_read_32(event, 5); 10753 } 10754 10755 /** 10756 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_STOP_EMIT_INPUT_OOB 10757 * @param event packet 10758 * @return pb_transport_cid 10759 * @note: btstack_type 2 10760 */ 10761 static inline uint16_t mesh_subevent_pb_prov_stop_emit_input_oob_get_pb_transport_cid(const uint8_t * event){ 10762 return little_endian_read_16(event, 3); 10763 } 10764 10765 /** 10766 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10767 * @param event packet 10768 * @return pb_transport_cid 10769 * @note: btstack_type 2 10770 */ 10771 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_pb_transport_cid(const uint8_t * event){ 10772 return little_endian_read_16(event, 3); 10773 } 10774 /** 10775 * @brief Get field num_elements from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10776 * @param event packet 10777 * @return num_elements 10778 * @note: btstack_type 1 10779 */ 10780 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_num_elements(const uint8_t * event){ 10781 return event[5]; 10782 } 10783 /** 10784 * @brief Get field algorithms from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10785 * @param event packet 10786 * @return algorithms 10787 * @note: btstack_type 2 10788 */ 10789 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_algorithms(const uint8_t * event){ 10790 return little_endian_read_16(event, 6); 10791 } 10792 /** 10793 * @brief Get field public_key from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10794 * @param event packet 10795 * @return public_key 10796 * @note: btstack_type 1 10797 */ 10798 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_public_key(const uint8_t * event){ 10799 return event[8]; 10800 } 10801 /** 10802 * @brief Get field static_oob_type from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10803 * @param event packet 10804 * @return static_oob_type 10805 * @note: btstack_type 1 10806 */ 10807 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_static_oob_type(const uint8_t * event){ 10808 return event[9]; 10809 } 10810 /** 10811 * @brief Get field output_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10812 * @param event packet 10813 * @return output_oob_size 10814 * @note: btstack_type 1 10815 */ 10816 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_output_oob_size(const uint8_t * event){ 10817 return event[10]; 10818 } 10819 /** 10820 * @brief Get field output_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10821 * @param event packet 10822 * @return output_oob_action 10823 * @note: btstack_type 2 10824 */ 10825 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_output_oob_action(const uint8_t * event){ 10826 return little_endian_read_16(event, 11); 10827 } 10828 /** 10829 * @brief Get field input_oob_size from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10830 * @param event packet 10831 * @return input_oob_size 10832 * @note: btstack_type 1 10833 */ 10834 static inline uint8_t mesh_subevent_pb_prov_capabilities_get_input_oob_size(const uint8_t * event){ 10835 return event[13]; 10836 } 10837 /** 10838 * @brief Get field input_oob_action from event MESH_SUBEVENT_PB_PROV_CAPABILITIES 10839 * @param event packet 10840 * @return input_oob_action 10841 * @note: btstack_type 2 10842 */ 10843 static inline uint16_t mesh_subevent_pb_prov_capabilities_get_input_oob_action(const uint8_t * event){ 10844 return little_endian_read_16(event, 14); 10845 } 10846 10847 /** 10848 * @brief Get field pb_transport_cid from event MESH_SUBEVENT_PB_PROV_COMPLETE 10849 * @param event packet 10850 * @return pb_transport_cid 10851 * @note: btstack_type 2 10852 */ 10853 static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const uint8_t * event){ 10854 return little_endian_read_16(event, 3); 10855 } 10856 10857 /** 10858 * @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER 10859 * @param event packet 10860 * @return attention_time 10861 * @note: btstack_type 1 10862 */ 10863 static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 10864 return event[3]; 10865 } 10866 10867 /** 10868 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 10869 * @param event packet 10870 * @return con_handle 10871 * @note: btstack_type H 10872 */ 10873 static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ 10874 return little_endian_read_16(event, 3); 10875 } 10876 10877 /** 10878 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 10879 * @param event packet 10880 * @return con_handle 10881 * @note: btstack_type H 10882 */ 10883 static inline hci_con_handle_t mesh_subevent_proxy_pdu_sent_get_con_handle(const uint8_t * event){ 10884 return little_endian_read_16(event, 3); 10885 } 10886 10887 /** 10888 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_DISCONNECTED 10889 * @param event packet 10890 * @return con_handle 10891 * @note: btstack_type H 10892 */ 10893 static inline hci_con_handle_t mesh_subevent_proxy_disconnected_get_con_handle(const uint8_t * event){ 10894 return little_endian_read_16(event, 3); 10895 } 10896 10897 /** 10898 * @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT 10899 * @param event packet 10900 * @return con_handle 10901 * @note: btstack_type H 10902 */ 10903 static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){ 10904 return little_endian_read_16(event, 3); 10905 } 10906 10907 /** 10908 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_BOOL 10909 * @param event packet 10910 * @return element_index 10911 * @note: btstack_type 1 10912 */ 10913 static inline uint8_t mesh_subevent_state_update_bool_get_element_index(const uint8_t * event){ 10914 return event[3]; 10915 } 10916 /** 10917 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 10918 * @param event packet 10919 * @return model_identifier 10920 * @note: btstack_type 4 10921 */ 10922 static inline uint32_t mesh_subevent_state_update_bool_get_model_identifier(const uint8_t * event){ 10923 return little_endian_read_32(event, 4); 10924 } 10925 /** 10926 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_BOOL 10927 * @param event packet 10928 * @return state_identifier 10929 * @note: btstack_type 4 10930 */ 10931 static inline uint32_t mesh_subevent_state_update_bool_get_state_identifier(const uint8_t * event){ 10932 return little_endian_read_32(event, 8); 10933 } 10934 /** 10935 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_BOOL 10936 * @param event packet 10937 * @return reason 10938 * @note: btstack_type 1 10939 */ 10940 static inline uint8_t mesh_subevent_state_update_bool_get_reason(const uint8_t * event){ 10941 return event[12]; 10942 } 10943 /** 10944 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_BOOL 10945 * @param event packet 10946 * @return value 10947 * @note: btstack_type 1 10948 */ 10949 static inline uint8_t mesh_subevent_state_update_bool_get_value(const uint8_t * event){ 10950 return event[13]; 10951 } 10952 10953 /** 10954 * @brief Get field element_index from event MESH_SUBEVENT_STATE_UPDATE_INT16 10955 * @param event packet 10956 * @return element_index 10957 * @note: btstack_type 1 10958 */ 10959 static inline uint8_t mesh_subevent_state_update_int16_get_element_index(const uint8_t * event){ 10960 return event[3]; 10961 } 10962 /** 10963 * @brief Get field model_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 10964 * @param event packet 10965 * @return model_identifier 10966 * @note: btstack_type 4 10967 */ 10968 static inline uint32_t mesh_subevent_state_update_int16_get_model_identifier(const uint8_t * event){ 10969 return little_endian_read_32(event, 4); 10970 } 10971 /** 10972 * @brief Get field state_identifier from event MESH_SUBEVENT_STATE_UPDATE_INT16 10973 * @param event packet 10974 * @return state_identifier 10975 * @note: btstack_type 4 10976 */ 10977 static inline uint32_t mesh_subevent_state_update_int16_get_state_identifier(const uint8_t * event){ 10978 return little_endian_read_32(event, 8); 10979 } 10980 /** 10981 * @brief Get field reason from event MESH_SUBEVENT_STATE_UPDATE_INT16 10982 * @param event packet 10983 * @return reason 10984 * @note: btstack_type 1 10985 */ 10986 static inline uint8_t mesh_subevent_state_update_int16_get_reason(const uint8_t * event){ 10987 return event[12]; 10988 } 10989 /** 10990 * @brief Get field value from event MESH_SUBEVENT_STATE_UPDATE_INT16 10991 * @param event packet 10992 * @return value 10993 * @note: btstack_type 2 10994 */ 10995 static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t * event){ 10996 return little_endian_read_16(event, 13); 10997 } 10998 10999 /** 11000 * @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 11001 * @param event packet 11002 * @return element_index 11003 * @note: btstack_type 1 11004 */ 11005 static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){ 11006 return event[3]; 11007 } 11008 /** 11009 * @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 11010 * @param event packet 11011 * @return model_identifier 11012 * @note: btstack_type 4 11013 */ 11014 static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){ 11015 return little_endian_read_32(event, 4); 11016 } 11017 /** 11018 * @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 11019 * @param event packet 11020 * @return opcode 11021 * @note: btstack_type 4 11022 */ 11023 static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){ 11024 return little_endian_read_32(event, 8); 11025 } 11026 /** 11027 * @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 11028 * @param event packet 11029 * @return dest 11030 * @note: btstack_type 2 11031 */ 11032 static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){ 11033 return little_endian_read_16(event, 12); 11034 } 11035 11036 /** 11037 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_ON_OFF 11038 * @param event packet 11039 * @return dest 11040 * @note: btstack_type 2 11041 */ 11042 static inline uint16_t mesh_subevent_generic_on_off_get_dest(const uint8_t * event){ 11043 return little_endian_read_16(event, 3); 11044 } 11045 /** 11046 * @brief Get field status from event MESH_SUBEVENT_GENERIC_ON_OFF 11047 * @param event packet 11048 * @return status 11049 * @note: btstack_type 1 11050 */ 11051 static inline uint8_t mesh_subevent_generic_on_off_get_status(const uint8_t * event){ 11052 return event[5]; 11053 } 11054 /** 11055 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_ON_OFF 11056 * @param event packet 11057 * @return present_value 11058 * @note: btstack_type 1 11059 */ 11060 static inline uint8_t mesh_subevent_generic_on_off_get_present_value(const uint8_t * event){ 11061 return event[6]; 11062 } 11063 /** 11064 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_ON_OFF 11065 * @param event packet 11066 * @return target_value 11067 * @note: btstack_type 1 11068 */ 11069 static inline uint8_t mesh_subevent_generic_on_off_get_target_value(const uint8_t * event){ 11070 return event[7]; 11071 } 11072 /** 11073 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_ON_OFF 11074 * @param event packet 11075 * @return remaining_time_ms 11076 * @note: btstack_type 4 11077 */ 11078 static inline uint32_t mesh_subevent_generic_on_off_get_remaining_time_ms(const uint8_t * event){ 11079 return little_endian_read_32(event, 8); 11080 } 11081 11082 /** 11083 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_LEVEL 11084 * @param event packet 11085 * @return dest 11086 * @note: btstack_type 2 11087 */ 11088 static inline uint16_t mesh_subevent_generic_level_get_dest(const uint8_t * event){ 11089 return little_endian_read_16(event, 3); 11090 } 11091 /** 11092 * @brief Get field status from event MESH_SUBEVENT_GENERIC_LEVEL 11093 * @param event packet 11094 * @return status 11095 * @note: btstack_type 1 11096 */ 11097 static inline uint8_t mesh_subevent_generic_level_get_status(const uint8_t * event){ 11098 return event[5]; 11099 } 11100 /** 11101 * @brief Get field present_value from event MESH_SUBEVENT_GENERIC_LEVEL 11102 * @param event packet 11103 * @return present_value 11104 * @note: btstack_type 2 11105 */ 11106 static inline uint16_t mesh_subevent_generic_level_get_present_value(const uint8_t * event){ 11107 return little_endian_read_16(event, 6); 11108 } 11109 /** 11110 * @brief Get field target_value from event MESH_SUBEVENT_GENERIC_LEVEL 11111 * @param event packet 11112 * @return target_value 11113 * @note: btstack_type 2 11114 */ 11115 static inline uint16_t mesh_subevent_generic_level_get_target_value(const uint8_t * event){ 11116 return little_endian_read_16(event, 8); 11117 } 11118 /** 11119 * @brief Get field remaining_time_ms from event MESH_SUBEVENT_GENERIC_LEVEL 11120 * @param event packet 11121 * @return remaining_time_ms 11122 * @note: btstack_type 4 11123 */ 11124 static inline uint32_t mesh_subevent_generic_level_get_remaining_time_ms(const uint8_t * event){ 11125 return little_endian_read_32(event, 10); 11126 } 11127 11128 /** 11129 * @brief Get field dest from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 11130 * @param event packet 11131 * @return dest 11132 * @note: btstack_type 2 11133 */ 11134 static inline uint16_t mesh_subevent_health_perform_test_get_dest(const uint8_t * event){ 11135 return little_endian_read_16(event, 3); 11136 } 11137 /** 11138 * @brief Get field netkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 11139 * @param event packet 11140 * @return netkey_index 11141 * @note: btstack_type 2 11142 */ 11143 static inline uint16_t mesh_subevent_health_perform_test_get_netkey_index(const uint8_t * event){ 11144 return little_endian_read_16(event, 5); 11145 } 11146 /** 11147 * @brief Get field appkey_index from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 11148 * @param event packet 11149 * @return appkey_index 11150 * @note: btstack_type 2 11151 */ 11152 static inline uint16_t mesh_subevent_health_perform_test_get_appkey_index(const uint8_t * event){ 11153 return little_endian_read_16(event, 7); 11154 } 11155 /** 11156 * @brief Get field company_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 11157 * @param event packet 11158 * @return company_id 11159 * @note: btstack_type 2 11160 */ 11161 static inline uint16_t mesh_subevent_health_perform_test_get_company_id(const uint8_t * event){ 11162 return little_endian_read_16(event, 9); 11163 } 11164 /** 11165 * @brief Get field test_id from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 11166 * @param event packet 11167 * @return test_id 11168 * @note: btstack_type 1 11169 */ 11170 static inline uint8_t mesh_subevent_health_perform_test_get_test_id(const uint8_t * event){ 11171 return event[11]; 11172 } 11173 /** 11174 * @brief Get field acknowledged from event MESH_SUBEVENT_HEALTH_PERFORM_TEST 11175 * @param event packet 11176 * @return acknowledged 11177 * @note: btstack_type 1 11178 */ 11179 static inline uint8_t mesh_subevent_health_perform_test_get_acknowledged(const uint8_t * event){ 11180 return event[12]; 11181 } 11182 11183 /** 11184 * @brief Get field element_index from event MESH_SUBEVENT_HEALTH_ATTENTION_TIMER_CHANGED 11185 * @param event packet 11186 * @return element_index 11187 * @note: btstack_type 1 11188 */ 11189 static inline uint8_t mesh_subevent_health_attention_timer_changed_get_element_index(const uint8_t * event){ 11190 return event[3]; 11191 } 11192 11193 /** 11194 * @brief Get field dest from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 11195 * @param event packet 11196 * @return dest 11197 * @note: btstack_type 2 11198 */ 11199 static inline uint16_t mesh_subevent_generic_default_transition_time_get_dest(const uint8_t * event){ 11200 return little_endian_read_16(event, 3); 11201 } 11202 /** 11203 * @brief Get field status from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 11204 * @param event packet 11205 * @return status 11206 * @note: btstack_type 1 11207 */ 11208 static inline uint8_t mesh_subevent_generic_default_transition_time_get_status(const uint8_t * event){ 11209 return event[5]; 11210 } 11211 /** 11212 * @brief Get field transition_time_gdtt from event MESH_SUBEVENT_GENERIC_DEFAULT_TRANSITION_TIME 11213 * @param event packet 11214 * @return transition_time_gdtt 11215 * @note: btstack_type 1 11216 */ 11217 static inline uint8_t mesh_subevent_generic_default_transition_time_get_transition_time_gdtt(const uint8_t * event){ 11218 return event[6]; 11219 } 11220 11221 /** 11222 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_BEACON 11223 * @param event packet 11224 * @return dest 11225 * @note: btstack_type 2 11226 */ 11227 static inline uint16_t mesh_subevent_configuration_beacon_get_dest(const uint8_t * event){ 11228 return little_endian_read_16(event, 3); 11229 } 11230 /** 11231 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_BEACON 11232 * @param event packet 11233 * @return foundation_status 11234 * @note: btstack_type 1 11235 */ 11236 static inline uint8_t mesh_subevent_configuration_beacon_get_foundation_status(const uint8_t * event){ 11237 return event[5]; 11238 } 11239 /** 11240 * @brief Get field secure_network_beacon_state from event MESH_SUBEVENT_CONFIGURATION_BEACON 11241 * @param event packet 11242 * @return secure_network_beacon_state 11243 * @note: btstack_type 1 11244 */ 11245 static inline uint8_t mesh_subevent_configuration_beacon_get_secure_network_beacon_state(const uint8_t * event){ 11246 return event[6]; 11247 } 11248 11249 /** 11250 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 11251 * @param event packet 11252 * @return dest 11253 * @note: btstack_type 2 11254 */ 11255 static inline uint16_t mesh_subevent_configuration_default_ttl_get_dest(const uint8_t * event){ 11256 return little_endian_read_16(event, 3); 11257 } 11258 /** 11259 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 11260 * @param event packet 11261 * @return foundation_status 11262 * @note: btstack_type 1 11263 */ 11264 static inline uint8_t mesh_subevent_configuration_default_ttl_get_foundation_status(const uint8_t * event){ 11265 return event[5]; 11266 } 11267 /** 11268 * @brief Get field default_ttl from event MESH_SUBEVENT_CONFIGURATION_DEFAULT_TTL 11269 * @param event packet 11270 * @return default_ttl 11271 * @note: btstack_type 1 11272 */ 11273 static inline uint8_t mesh_subevent_configuration_default_ttl_get_default_ttl(const uint8_t * event){ 11274 return event[6]; 11275 } 11276 11277 /** 11278 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 11279 * @param event packet 11280 * @return dest 11281 * @note: btstack_type 2 11282 */ 11283 static inline uint16_t mesh_subevent_configuration_gatt_proxy_get_dest(const uint8_t * event){ 11284 return little_endian_read_16(event, 3); 11285 } 11286 /** 11287 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 11288 * @param event packet 11289 * @return foundation_status 11290 * @note: btstack_type 1 11291 */ 11292 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_foundation_status(const uint8_t * event){ 11293 return event[5]; 11294 } 11295 /** 11296 * @brief Get field gatt_proxy_state from event MESH_SUBEVENT_CONFIGURATION_GATT_PROXY 11297 * @param event packet 11298 * @return gatt_proxy_state 11299 * @note: btstack_type 1 11300 */ 11301 static inline uint8_t mesh_subevent_configuration_gatt_proxy_get_gatt_proxy_state(const uint8_t * event){ 11302 return event[6]; 11303 } 11304 11305 /** 11306 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_RELAY 11307 * @param event packet 11308 * @return dest 11309 * @note: btstack_type 2 11310 */ 11311 static inline uint16_t mesh_subevent_configuration_relay_get_dest(const uint8_t * event){ 11312 return little_endian_read_16(event, 3); 11313 } 11314 /** 11315 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_RELAY 11316 * @param event packet 11317 * @return foundation_status 11318 * @note: btstack_type 1 11319 */ 11320 static inline uint8_t mesh_subevent_configuration_relay_get_foundation_status(const uint8_t * event){ 11321 return event[5]; 11322 } 11323 /** 11324 * @brief Get field relay from event MESH_SUBEVENT_CONFIGURATION_RELAY 11325 * @param event packet 11326 * @return relay 11327 * @note: btstack_type 1 11328 */ 11329 static inline uint8_t mesh_subevent_configuration_relay_get_relay(const uint8_t * event){ 11330 return event[6]; 11331 } 11332 /** 11333 * @brief Get field retransmit_count from event MESH_SUBEVENT_CONFIGURATION_RELAY 11334 * @param event packet 11335 * @return retransmit_count 11336 * @note: btstack_type 1 11337 */ 11338 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_count(const uint8_t * event){ 11339 return event[7]; 11340 } 11341 /** 11342 * @brief Get field retransmit_interval_ms from event MESH_SUBEVENT_CONFIGURATION_RELAY 11343 * @param event packet 11344 * @return retransmit_interval_ms 11345 * @note: btstack_type 1 11346 */ 11347 static inline uint8_t mesh_subevent_configuration_relay_get_retransmit_interval_ms(const uint8_t * event){ 11348 return event[8]; 11349 } 11350 11351 /** 11352 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11353 * @param event packet 11354 * @return dest 11355 * @note: btstack_type 2 11356 */ 11357 static inline uint16_t mesh_subevent_configuration_model_publication_get_dest(const uint8_t * event){ 11358 return little_endian_read_16(event, 3); 11359 } 11360 /** 11361 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11362 * @param event packet 11363 * @return foundation_status 11364 * @note: btstack_type 1 11365 */ 11366 static inline uint8_t mesh_subevent_configuration_model_publication_get_foundation_status(const uint8_t * event){ 11367 return event[5]; 11368 } 11369 /** 11370 * @brief Get field publish_address from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11371 * @param event packet 11372 * @return publish_address 11373 * @note: btstack_type 2 11374 */ 11375 static inline uint16_t mesh_subevent_configuration_model_publication_get_publish_address(const uint8_t * event){ 11376 return little_endian_read_16(event, 6); 11377 } 11378 /** 11379 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11380 * @param event packet 11381 * @return appkey_index 11382 * @note: btstack_type 2 11383 */ 11384 static inline uint16_t mesh_subevent_configuration_model_publication_get_appkey_index(const uint8_t * event){ 11385 return little_endian_read_16(event, 8); 11386 } 11387 /** 11388 * @brief Get field credential_flag from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11389 * @param event packet 11390 * @return credential_flag 11391 * @note: btstack_type 1 11392 */ 11393 static inline uint8_t mesh_subevent_configuration_model_publication_get_credential_flag(const uint8_t * event){ 11394 return event[10]; 11395 } 11396 /** 11397 * @brief Get field publish_ttl from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11398 * @param event packet 11399 * @return publish_ttl 11400 * @note: btstack_type 1 11401 */ 11402 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_ttl(const uint8_t * event){ 11403 return event[11]; 11404 } 11405 /** 11406 * @brief Get field publish_period from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11407 * @param event packet 11408 * @return publish_period 11409 * @note: btstack_type 1 11410 */ 11411 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_period(const uint8_t * event){ 11412 return event[12]; 11413 } 11414 /** 11415 * @brief Get field publish_retransmit_count from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11416 * @param event packet 11417 * @return publish_retransmit_count 11418 * @note: btstack_type 1 11419 */ 11420 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_count(const uint8_t * event){ 11421 return event[13]; 11422 } 11423 /** 11424 * @brief Get field publish_retransmit_interval_steps from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11425 * @param event packet 11426 * @return publish_retransmit_interval_steps 11427 * @note: btstack_type 1 11428 */ 11429 static inline uint8_t mesh_subevent_configuration_model_publication_get_publish_retransmit_interval_steps(const uint8_t * event){ 11430 return event[14]; 11431 } 11432 /** 11433 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_PUBLICATION 11434 * @param event packet 11435 * @return model_identifier 11436 * @note: btstack_type 4 11437 */ 11438 static inline uint32_t mesh_subevent_configuration_model_publication_get_model_identifier(const uint8_t * event){ 11439 return little_endian_read_32(event, 15); 11440 } 11441 11442 /** 11443 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 11444 * @param event packet 11445 * @return dest 11446 * @note: btstack_type 2 11447 */ 11448 static inline uint16_t mesh_subevent_configuration_model_subscription_get_dest(const uint8_t * event){ 11449 return little_endian_read_16(event, 3); 11450 } 11451 /** 11452 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 11453 * @param event packet 11454 * @return foundation_status 11455 * @note: btstack_type 1 11456 */ 11457 static inline uint8_t mesh_subevent_configuration_model_subscription_get_foundation_status(const uint8_t * event){ 11458 return event[5]; 11459 } 11460 /** 11461 * @brief Get field address from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 11462 * @param event packet 11463 * @return address 11464 * @note: btstack_type 2 11465 */ 11466 static inline uint16_t mesh_subevent_configuration_model_subscription_get_address(const uint8_t * event){ 11467 return little_endian_read_16(event, 6); 11468 } 11469 /** 11470 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION 11471 * @param event packet 11472 * @return model_identifier 11473 * @note: btstack_type 4 11474 */ 11475 static inline uint32_t mesh_subevent_configuration_model_subscription_get_model_identifier(const uint8_t * event){ 11476 return little_endian_read_32(event, 8); 11477 } 11478 11479 /** 11480 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 11481 * @param event packet 11482 * @return dest 11483 * @note: btstack_type 2 11484 */ 11485 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_dest(const uint8_t * event){ 11486 return little_endian_read_16(event, 3); 11487 } 11488 /** 11489 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 11490 * @param event packet 11491 * @return foundation_status 11492 * @note: btstack_type 1 11493 */ 11494 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_foundation_status(const uint8_t * event){ 11495 return event[5]; 11496 } 11497 /** 11498 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 11499 * @param event packet 11500 * @return model_identifier 11501 * @note: btstack_type 4 11502 */ 11503 static inline uint32_t mesh_subevent_configuration_model_subscription_list_item_get_model_identifier(const uint8_t * event){ 11504 return little_endian_read_32(event, 6); 11505 } 11506 /** 11507 * @brief Get field num_subscription_addresses from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 11508 * @param event packet 11509 * @return num_subscription_addresses 11510 * @note: btstack_type 1 11511 */ 11512 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_num_subscription_addresses(const uint8_t * event){ 11513 return event[10]; 11514 } 11515 /** 11516 * @brief Get field subscription_address_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 11517 * @param event packet 11518 * @return subscription_address_pos 11519 * @note: btstack_type 1 11520 */ 11521 static inline uint8_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_pos(const uint8_t * event){ 11522 return event[11]; 11523 } 11524 /** 11525 * @brief Get field subscription_address_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_SUBSCRIPTION_LIST_ITEM 11526 * @param event packet 11527 * @return subscription_address_item 11528 * @note: btstack_type 2 11529 */ 11530 static inline uint16_t mesh_subevent_configuration_model_subscription_list_item_get_subscription_address_item(const uint8_t * event){ 11531 return little_endian_read_16(event, 12); 11532 } 11533 11534 /** 11535 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 11536 * @param event packet 11537 * @return dest 11538 * @note: btstack_type 2 11539 */ 11540 static inline uint16_t mesh_subevent_configuration_netkey_index_get_dest(const uint8_t * event){ 11541 return little_endian_read_16(event, 3); 11542 } 11543 /** 11544 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX 11545 * @param event packet 11546 * @return foundation_status 11547 * @note: btstack_type 1 11548 */ 11549 static inline uint8_t mesh_subevent_configuration_netkey_index_get_foundation_status(const uint8_t * event){ 11550 return event[5]; 11551 } 11552 11553 /** 11554 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 11555 * @param event packet 11556 * @return dest 11557 * @note: btstack_type 2 11558 */ 11559 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_dest(const uint8_t * event){ 11560 return little_endian_read_16(event, 3); 11561 } 11562 /** 11563 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 11564 * @param event packet 11565 * @return foundation_status 11566 * @note: btstack_type 1 11567 */ 11568 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_foundation_status(const uint8_t * event){ 11569 return event[5]; 11570 } 11571 /** 11572 * @brief Get field num_netkey_indexes from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 11573 * @param event packet 11574 * @return num_netkey_indexes 11575 * @note: btstack_type 1 11576 */ 11577 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_num_netkey_indexes(const uint8_t * event){ 11578 return event[6]; 11579 } 11580 /** 11581 * @brief Get field netkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 11582 * @param event packet 11583 * @return netkey_index_pos 11584 * @note: btstack_type 1 11585 */ 11586 static inline uint8_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_pos(const uint8_t * event){ 11587 return event[7]; 11588 } 11589 /** 11590 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NETKEY_INDEX_LIST_ITEM 11591 * @param event packet 11592 * @return netkey_index_item 11593 * @note: btstack_type 2 11594 */ 11595 static inline uint16_t mesh_subevent_configuration_netkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 11596 return little_endian_read_16(event, 8); 11597 } 11598 11599 /** 11600 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 11601 * @param event packet 11602 * @return dest 11603 * @note: btstack_type 2 11604 */ 11605 static inline uint16_t mesh_subevent_configuration_appkey_index_get_dest(const uint8_t * event){ 11606 return little_endian_read_16(event, 3); 11607 } 11608 /** 11609 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 11610 * @param event packet 11611 * @return foundation_status 11612 * @note: btstack_type 1 11613 */ 11614 static inline uint8_t mesh_subevent_configuration_appkey_index_get_foundation_status(const uint8_t * event){ 11615 return event[5]; 11616 } 11617 /** 11618 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 11619 * @param event packet 11620 * @return netkey_index_item 11621 * @note: btstack_type 2 11622 */ 11623 static inline uint16_t mesh_subevent_configuration_appkey_index_get_netkey_index_item(const uint8_t * event){ 11624 return little_endian_read_16(event, 6); 11625 } 11626 /** 11627 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX 11628 * @param event packet 11629 * @return appkey_index_item 11630 * @note: btstack_type 2 11631 */ 11632 static inline uint16_t mesh_subevent_configuration_appkey_index_get_appkey_index_item(const uint8_t * event){ 11633 return little_endian_read_16(event, 8); 11634 } 11635 11636 /** 11637 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11638 * @param event packet 11639 * @return dest 11640 * @note: btstack_type 2 11641 */ 11642 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_dest(const uint8_t * event){ 11643 return little_endian_read_16(event, 3); 11644 } 11645 /** 11646 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11647 * @param event packet 11648 * @return foundation_status 11649 * @note: btstack_type 1 11650 */ 11651 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_foundation_status(const uint8_t * event){ 11652 return event[5]; 11653 } 11654 /** 11655 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11656 * @param event packet 11657 * @return netkey_index 11658 * @note: btstack_type 2 11659 */ 11660 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index(const uint8_t * event){ 11661 return little_endian_read_16(event, 6); 11662 } 11663 /** 11664 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11665 * @param event packet 11666 * @return num_appkey_indexes 11667 * @note: btstack_type 1 11668 */ 11669 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_num_appkey_indexes(const uint8_t * event){ 11670 return event[8]; 11671 } 11672 /** 11673 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11674 * @param event packet 11675 * @return appkey_index_pos 11676 * @note: btstack_type 1 11677 */ 11678 static inline uint8_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_pos(const uint8_t * event){ 11679 return event[9]; 11680 } 11681 /** 11682 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11683 * @param event packet 11684 * @return netkey_index_item 11685 * @note: btstack_type 2 11686 */ 11687 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_netkey_index_item(const uint8_t * event){ 11688 return little_endian_read_16(event, 10); 11689 } 11690 /** 11691 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_APPKEY_INDEX_LIST_ITEM 11692 * @param event packet 11693 * @return appkey_index_item 11694 * @note: btstack_type 2 11695 */ 11696 static inline uint16_t mesh_subevent_configuration_appkey_index_list_item_get_appkey_index_item(const uint8_t * event){ 11697 return little_endian_read_16(event, 12); 11698 } 11699 11700 /** 11701 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 11702 * @param event packet 11703 * @return dest 11704 * @note: btstack_type 2 11705 */ 11706 static inline uint16_t mesh_subevent_configuration_node_identity_get_dest(const uint8_t * event){ 11707 return little_endian_read_16(event, 3); 11708 } 11709 /** 11710 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 11711 * @param event packet 11712 * @return foundation_status 11713 * @note: btstack_type 1 11714 */ 11715 static inline uint8_t mesh_subevent_configuration_node_identity_get_foundation_status(const uint8_t * event){ 11716 return event[5]; 11717 } 11718 /** 11719 * @brief Get field netkey_index_item from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 11720 * @param event packet 11721 * @return netkey_index_item 11722 * @note: btstack_type 2 11723 */ 11724 static inline uint16_t mesh_subevent_configuration_node_identity_get_netkey_index_item(const uint8_t * event){ 11725 return little_endian_read_16(event, 6); 11726 } 11727 /** 11728 * @brief Get field identity_status from event MESH_SUBEVENT_CONFIGURATION_NODE_IDENTITY 11729 * @param event packet 11730 * @return identity_status 11731 * @note: btstack_type 1 11732 */ 11733 static inline uint8_t mesh_subevent_configuration_node_identity_get_identity_status(const uint8_t * event){ 11734 return event[8]; 11735 } 11736 11737 /** 11738 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 11739 * @param event packet 11740 * @return dest 11741 * @note: btstack_type 2 11742 */ 11743 static inline uint16_t mesh_subevent_configuration_model_app_get_dest(const uint8_t * event){ 11744 return little_endian_read_16(event, 3); 11745 } 11746 /** 11747 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 11748 * @param event packet 11749 * @return foundation_status 11750 * @note: btstack_type 1 11751 */ 11752 static inline uint8_t mesh_subevent_configuration_model_app_get_foundation_status(const uint8_t * event){ 11753 return event[5]; 11754 } 11755 /** 11756 * @brief Get field appkey_index from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 11757 * @param event packet 11758 * @return appkey_index 11759 * @note: btstack_type 2 11760 */ 11761 static inline uint16_t mesh_subevent_configuration_model_app_get_appkey_index(const uint8_t * event){ 11762 return little_endian_read_16(event, 6); 11763 } 11764 /** 11765 * @brief Get field model_identifier from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP 11766 * @param event packet 11767 * @return model_identifier 11768 * @note: btstack_type 4 11769 */ 11770 static inline uint32_t mesh_subevent_configuration_model_app_get_model_identifier(const uint8_t * event){ 11771 return little_endian_read_32(event, 8); 11772 } 11773 11774 /** 11775 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 11776 * @param event packet 11777 * @return dest 11778 * @note: btstack_type 2 11779 */ 11780 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_dest(const uint8_t * event){ 11781 return little_endian_read_16(event, 3); 11782 } 11783 /** 11784 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 11785 * @param event packet 11786 * @return foundation_status 11787 * @note: btstack_type 1 11788 */ 11789 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_foundation_status(const uint8_t * event){ 11790 return event[5]; 11791 } 11792 /** 11793 * @brief Get field model_id from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 11794 * @param event packet 11795 * @return model_id 11796 * @note: btstack_type 4 11797 */ 11798 static inline uint32_t mesh_subevent_configuration_model_app_list_item_get_model_id(const uint8_t * event){ 11799 return little_endian_read_32(event, 6); 11800 } 11801 /** 11802 * @brief Get field num_appkey_indexes from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 11803 * @param event packet 11804 * @return num_appkey_indexes 11805 * @note: btstack_type 1 11806 */ 11807 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_num_appkey_indexes(const uint8_t * event){ 11808 return event[10]; 11809 } 11810 /** 11811 * @brief Get field appkey_index_pos from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 11812 * @param event packet 11813 * @return appkey_index_pos 11814 * @note: btstack_type 1 11815 */ 11816 static inline uint8_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_pos(const uint8_t * event){ 11817 return event[11]; 11818 } 11819 /** 11820 * @brief Get field appkey_index_item from event MESH_SUBEVENT_CONFIGURATION_MODEL_APP_LIST_ITEM 11821 * @param event packet 11822 * @return appkey_index_item 11823 * @note: btstack_type 2 11824 */ 11825 static inline uint16_t mesh_subevent_configuration_model_app_list_item_get_appkey_index_item(const uint8_t * event){ 11826 return little_endian_read_16(event, 12); 11827 } 11828 11829 /** 11830 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 11831 * @param event packet 11832 * @return dest 11833 * @note: btstack_type 2 11834 */ 11835 static inline uint16_t mesh_subevent_configuration_node_reset_get_dest(const uint8_t * event){ 11836 return little_endian_read_16(event, 3); 11837 } 11838 /** 11839 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NODE_RESET 11840 * @param event packet 11841 * @return foundation_status 11842 * @note: btstack_type 1 11843 */ 11844 static inline uint8_t mesh_subevent_configuration_node_reset_get_foundation_status(const uint8_t * event){ 11845 return event[5]; 11846 } 11847 11848 /** 11849 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_FRIEND 11850 * @param event packet 11851 * @return dest 11852 * @note: btstack_type 2 11853 */ 11854 static inline uint16_t mesh_subevent_configuration_friend_get_dest(const uint8_t * event){ 11855 return little_endian_read_16(event, 3); 11856 } 11857 /** 11858 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_FRIEND 11859 * @param event packet 11860 * @return foundation_status 11861 * @note: btstack_type 1 11862 */ 11863 static inline uint8_t mesh_subevent_configuration_friend_get_foundation_status(const uint8_t * event){ 11864 return event[5]; 11865 } 11866 /** 11867 * @brief Get field friend_state from event MESH_SUBEVENT_CONFIGURATION_FRIEND 11868 * @param event packet 11869 * @return friend_state 11870 * @note: btstack_type 1 11871 */ 11872 static inline uint8_t mesh_subevent_configuration_friend_get_friend_state(const uint8_t * event){ 11873 return event[6]; 11874 } 11875 11876 /** 11877 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 11878 * @param event packet 11879 * @return dest 11880 * @note: btstack_type 2 11881 */ 11882 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_dest(const uint8_t * event){ 11883 return little_endian_read_16(event, 3); 11884 } 11885 /** 11886 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 11887 * @param event packet 11888 * @return foundation_status 11889 * @note: btstack_type 1 11890 */ 11891 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_foundation_status(const uint8_t * event){ 11892 return event[5]; 11893 } 11894 /** 11895 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 11896 * @param event packet 11897 * @return netkey_index 11898 * @note: btstack_type 2 11899 */ 11900 static inline uint16_t mesh_subevent_configuration_key_refresh_phase_get_netkey_index(const uint8_t * event){ 11901 return little_endian_read_16(event, 6); 11902 } 11903 /** 11904 * @brief Get field phase from event MESH_SUBEVENT_CONFIGURATION_KEY_REFRESH_PHASE 11905 * @param event packet 11906 * @return phase 11907 * @note: btstack_type 1 11908 */ 11909 static inline uint8_t mesh_subevent_configuration_key_refresh_phase_get_phase(const uint8_t * event){ 11910 return event[8]; 11911 } 11912 11913 /** 11914 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11915 * @param event packet 11916 * @return dest 11917 * @note: btstack_type 2 11918 */ 11919 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_dest(const uint8_t * event){ 11920 return little_endian_read_16(event, 3); 11921 } 11922 /** 11923 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11924 * @param event packet 11925 * @return foundation_status 11926 * @note: btstack_type 1 11927 */ 11928 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_foundation_status(const uint8_t * event){ 11929 return event[5]; 11930 } 11931 /** 11932 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11933 * @param event packet 11934 * @return heartbeat_destination 11935 * @note: btstack_type 2 11936 */ 11937 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_heartbeat_destination(const uint8_t * event){ 11938 return little_endian_read_16(event, 6); 11939 } 11940 /** 11941 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11942 * @param event packet 11943 * @return count_S 11944 * @note: btstack_type 2 11945 */ 11946 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_count_S(const uint8_t * event){ 11947 return little_endian_read_16(event, 8); 11948 } 11949 /** 11950 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11951 * @param event packet 11952 * @return period_S 11953 * @note: btstack_type 2 11954 */ 11955 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_period_S(const uint8_t * event){ 11956 return little_endian_read_16(event, 10); 11957 } 11958 /** 11959 * @brief Get field ttl from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11960 * @param event packet 11961 * @return ttl 11962 * @note: btstack_type 1 11963 */ 11964 static inline uint8_t mesh_subevent_configuration_heartbeat_publication_get_ttl(const uint8_t * event){ 11965 return event[12]; 11966 } 11967 /** 11968 * @brief Get field features from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11969 * @param event packet 11970 * @return features 11971 * @note: btstack_type 2 11972 */ 11973 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_features(const uint8_t * event){ 11974 return little_endian_read_16(event, 13); 11975 } 11976 /** 11977 * @brief Get field netkey_index from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_PUBLICATION 11978 * @param event packet 11979 * @return netkey_index 11980 * @note: btstack_type 2 11981 */ 11982 static inline uint16_t mesh_subevent_configuration_heartbeat_publication_get_netkey_index(const uint8_t * event){ 11983 return little_endian_read_16(event, 15); 11984 } 11985 11986 /** 11987 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 11988 * @param event packet 11989 * @return dest 11990 * @note: btstack_type 2 11991 */ 11992 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_dest(const uint8_t * event){ 11993 return little_endian_read_16(event, 3); 11994 } 11995 /** 11996 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 11997 * @param event packet 11998 * @return foundation_status 11999 * @note: btstack_type 1 12000 */ 12001 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_foundation_status(const uint8_t * event){ 12002 return event[5]; 12003 } 12004 /** 12005 * @brief Get field heartbeat_destination from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 12006 * @param event packet 12007 * @return heartbeat_destination 12008 * @note: btstack_type 2 12009 */ 12010 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_destination(const uint8_t * event){ 12011 return little_endian_read_16(event, 6); 12012 } 12013 /** 12014 * @brief Get field heartbeat_source from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 12015 * @param event packet 12016 * @return heartbeat_source 12017 * @note: btstack_type 2 12018 */ 12019 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_heartbeat_source(const uint8_t * event){ 12020 return little_endian_read_16(event, 8); 12021 } 12022 /** 12023 * @brief Get field count_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 12024 * @param event packet 12025 * @return count_S 12026 * @note: btstack_type 2 12027 */ 12028 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_count_S(const uint8_t * event){ 12029 return little_endian_read_16(event, 10); 12030 } 12031 /** 12032 * @brief Get field period_S from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 12033 * @param event packet 12034 * @return period_S 12035 * @note: btstack_type 2 12036 */ 12037 static inline uint16_t mesh_subevent_configuration_heartbeat_subscription_get_period_S(const uint8_t * event){ 12038 return little_endian_read_16(event, 12); 12039 } 12040 /** 12041 * @brief Get field min_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 12042 * @param event packet 12043 * @return min_hops 12044 * @note: btstack_type 1 12045 */ 12046 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_min_hops(const uint8_t * event){ 12047 return event[14]; 12048 } 12049 /** 12050 * @brief Get field max_hops from event MESH_SUBEVENT_CONFIGURATION_HEARTBEAT_SUBSCRIPTION 12051 * @param event packet 12052 * @return max_hops 12053 * @note: btstack_type 1 12054 */ 12055 static inline uint8_t mesh_subevent_configuration_heartbeat_subscription_get_max_hops(const uint8_t * event){ 12056 return event[15]; 12057 } 12058 12059 /** 12060 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 12061 * @param event packet 12062 * @return dest 12063 * @note: btstack_type 2 12064 */ 12065 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_dest(const uint8_t * event){ 12066 return little_endian_read_16(event, 3); 12067 } 12068 /** 12069 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 12070 * @param event packet 12071 * @return foundation_status 12072 * @note: btstack_type 1 12073 */ 12074 static inline uint8_t mesh_subevent_configuration_low_power_node_poll_timeout_get_foundation_status(const uint8_t * event){ 12075 return event[5]; 12076 } 12077 /** 12078 * @brief Get field lpn_address from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 12079 * @param event packet 12080 * @return lpn_address 12081 * @note: btstack_type 2 12082 */ 12083 static inline uint16_t mesh_subevent_configuration_low_power_node_poll_timeout_get_lpn_address(const uint8_t * event){ 12084 return little_endian_read_16(event, 6); 12085 } 12086 /** 12087 * @brief Get field poll_timeout from event MESH_SUBEVENT_CONFIGURATION_LOW_POWER_NODE_POLL_TIMEOUT 12088 * @param event packet 12089 * @return poll_timeout 12090 * @note: btstack_type 3 12091 */ 12092 static inline uint32_t mesh_subevent_configuration_low_power_node_poll_timeout_get_poll_timeout(const uint8_t * event){ 12093 return little_endian_read_24(event, 8); 12094 } 12095 12096 /** 12097 * @brief Get field dest from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 12098 * @param event packet 12099 * @return dest 12100 * @note: btstack_type 2 12101 */ 12102 static inline uint16_t mesh_subevent_configuration_network_transmit_get_dest(const uint8_t * event){ 12103 return little_endian_read_16(event, 3); 12104 } 12105 /** 12106 * @brief Get field foundation_status from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 12107 * @param event packet 12108 * @return foundation_status 12109 * @note: btstack_type 1 12110 */ 12111 static inline uint8_t mesh_subevent_configuration_network_transmit_get_foundation_status(const uint8_t * event){ 12112 return event[5]; 12113 } 12114 /** 12115 * @brief Get field transmit_count from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 12116 * @param event packet 12117 * @return transmit_count 12118 * @note: btstack_type 1 12119 */ 12120 static inline uint8_t mesh_subevent_configuration_network_transmit_get_transmit_count(const uint8_t * event){ 12121 return event[6]; 12122 } 12123 /** 12124 * @brief Get field transmit_interval_steps_ms from event MESH_SUBEVENT_CONFIGURATION_NETWORK_TRANSMIT 12125 * @param event packet 12126 * @return transmit_interval_steps_ms 12127 * @note: btstack_type 2 12128 */ 12129 static inline uint16_t mesh_subevent_configuration_network_transmit_get_transmit_interval_steps_ms(const uint8_t * event){ 12130 return little_endian_read_16(event, 7); 12131 } 12132 12133 12134 12135 /* API_END */ 12136 12137 #if defined __cplusplus 12138 } 12139 #endif 12140 12141 #endif // BTSTACK_EVENT_H 12142