Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
btgatt_interface_t Справочник по структуре
#include < bt_gatt.h >
Представляет стандартный интерфейс Bluetooth GATT.
Определение в строке 40 файла bt_gatt.h .
Закрывает интерфейс
Определение в строке 50 файла bt_gatt.h .
Указатель на методы клиентского интерфейса GATT.
Определение в строке 53 файла bt_gatt.h .
Инициализирует интерфейс и предоставляет процедуры обратного вызова.
Определение в строке 47 файла bt_gatt.h .
Указатель на методы интерфейса сервера GATT.
Определение в строке 56 файла bt_gatt.h .
Установите sizeof(btgatt_interface_t)
Определение в строке 42 файла bt_gatt.h .
Документация для этой структуры была создана из следующего файла:
- оборудование/libhardware/include/hardware/ bt_gatt.h
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-29 UTC."],[],[],null,["# Android Hardware Abstraction Layer: btgatt_interface_t Struct Reference\n\nbtgatt_interface_t Struct Reference\n===================================\n\n[Data Fields](#pub-attribs) \nbtgatt_interface_t Struct Reference \n\n`\n#include \u003c\n`[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/structbtgatt__interface__t#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [init](/reference/hal/structbtgatt__interface__t#a15fca7a0f2a74810223a31f3e1b234b2) )(const [btgatt_callbacks_t](/reference/hal/structbtgatt__callbacks__t) \\*callbacks) |\n| ||\n| void(\\* | [cleanup](/reference/hal/structbtgatt__interface__t#a8e1ba7348775abcd3cd56ec6f718bea0) )(void) |\n| ||\n| const [btgatt_client_interface_t](/reference/hal/structbtgatt__client__interface__t) \\* | [client](/reference/hal/structbtgatt__interface__t#ad376dedbfa9df97ca8eaad22cb074cd7) |\n| ||\n| const [btgatt_server_interface_t](/reference/hal/structbtgatt__server__interface__t) \\* | [server](/reference/hal/structbtgatt__interface__t#a782f6b6e9804f4f5a802a9d74094a782) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nRepresents the standard Bluetooth GATT interface.\n\n\nDefinition at line\n[40](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------|\n| void(\\* cleanup)(void) |\n\n\nCloses the interface\n\n\nDefinition at line\n[50](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------|\n| const [btgatt_client_interface_t](/reference/hal/structbtgatt__client__interface__t) \\* client |\n\n\nPointer to the GATT client interface methods.\n\n\nDefinition at line\n[53](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* init)(const [btgatt_callbacks_t](/reference/hal/structbtgatt__callbacks__t) \\*callbacks) |\n\n\nInitializes the interface and provides callback routines\n\n\nDefinition at line\n[47](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|------------------------------------------------------------------------------------------------|\n| const [btgatt_server_interface_t](/reference/hal/structbtgatt__server__interface__t) \\* server |\n\n\nPointer to the GATT server interface methods.\n\n\nDefinition at line\n[56](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n|-------------|\n| size_t size |\n\n\nSet to sizeof(btgatt_interface_t)\n\n\nDefinition at line\n[42](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\nof file\n[bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_gatt.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt.h)"]]