Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu tham khảo về cấu trúc btgatt_db_element_t
#include <
bt_common_types.h
>
Định nghĩa tại dòng
53
của tệp
bt_common_types.h
.
uint16_t attribute_handle
|
Tài liệu cho cấu trúc này được tạo từ tệp sau:
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: btgatt_db_element_t Struct Reference\n\nbtgatt_db_element_t Struct Reference\n====================================\n\n[Data Fields](#pub-attribs) \nbtgatt_db_element_t Struct Reference \n\n`\n#include \u003c\n`[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| uint16_t | [id](/reference/hal/structbtgatt__db__element__t#a4fc3a0c58dfbd1e68224521185cb9384) |\n| ||\n| [bt_uuid_t](/reference/hal/structbt__uuid__t) | [uuid](/reference/hal/structbtgatt__db__element__t#a673ed00478f64fe0ca546c3d6c5ddae0) |\n| ||\n| [bt_gatt_db_attribute_type_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h) | [type](/reference/hal/structbtgatt__db__element__t#a68f2634fbbfad5f3f9a7a75f2a6b6822) |\n| ||\n| uint16_t | [attribute_handle](/reference/hal/structbtgatt__db__element__t#aa4de6b597228bb8831d31ece409479da) |\n| ||\n| uint16_t | [start_handle](/reference/hal/structbtgatt__db__element__t#a2cd982e3af3a66504335e09ea7495bbc) |\n| ||\n| uint16_t | [end_handle](/reference/hal/structbtgatt__db__element__t#a5672f7486025dd7bebb566d675ba553e) |\n| ||\n| uint8_t | [properties](/reference/hal/structbtgatt__db__element__t#a9186ef511fa792a0dec18079d57071ef) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[53](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------------|\n| uint16_t attribute_handle |\n\n\nDefinition at line\n[58](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n|---------------------|\n| uint16_t end_handle |\n\n\nDefinition at line\n[66](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n|-------------|\n| uint16_t id |\n\n\nDefinition at line\n[55](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n|--------------------|\n| uint8_t properties |\n\n\nDefinition at line\n[72](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n|-----------------------|\n| uint16_t start_handle |\n\n\nDefinition at line\n[65](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_gatt_db_attribute_type_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h) type |\n\n\nDefinition at line\n[57](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n|----------------------------------------------------|\n| [bt_uuid_t](/reference/hal/structbt__uuid__t) uuid |\n\n\nDefinition at line\n[56](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\nof file\n[bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_common_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_common_types.h)"]]