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