Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
btpan_interface_t Справочник по структуре
#include < bt_pan.h >
Определение в строке 51 файла bt_pan.h .
Очистка интерфейса панорамирования
Определение в строке 81 файла bt_pan.h .
bt_status_t (*connect)(const bt_bdaddr_t *bd_addr, int local_role, int Remote_role) |
начать подключение панорамирования Bluetooth к удаленному устройству с помощью указанной роли панорамирования. Состояние результата будет возвращено функцией btpan_connection_state_callback.
Определение в строке 72 файла bt_pan.h .
bt_status_t (* отключиться)(const bt_bdaddr_t *bd_addr) |
прекратите соединение Bluetooth Pan. Состояние результата будет возвращено функцией btpan_connection_state_callback.
Определение в строке 76 файла bt_pan.h .
int(* get_local_role)(void) |
Инициализируйте интерфейс панорамирования и зарегистрируйте обратные вызовы btpan.
Определение в строке 57 файла bt_pan.h .
установлен размер этой структуры
Определение в строке 53 файла bt_pan.h .
Документация для этой структуры была создана из следующего файла:
- оборудование/libhardware/include/hardware/ bt_pan.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: btpan_interface_t Struct Reference\n\nbtpan_interface_t Struct Reference\n==================================\n\n[Data Fields](#pub-attribs) \nbtpan_interface_t Struct Reference \n\n`\n#include \u003c\n`[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/structbtpan__interface__t#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [init](/reference/hal/structbtpan__interface__t#a139d48da5b60fab661a47441db247029) )(const [btpan_callbacks_t](/reference/hal/structbtpan__callbacks__t) \\*callbacks) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [enable](/reference/hal/structbtpan__interface__t#ab81baf3a5d9598aa5d39480d1480e04f) )(int local_role) |\n| ||\n| int(\\* | [get_local_role](/reference/hal/structbtpan__interface__t#a78c6715bedb77bec4da8daad406ca076) )(void) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [connect](/reference/hal/structbtpan__interface__t#ac150dfe85169472f9b7599d4d67db117) )(const bt_bdaddr_t \\*bd_addr, int local_role, int remote_role) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [disconnect](/reference/hal/structbtpan__interface__t#ab3921da150db3f77cbdc9b340e136e02) )(const bt_bdaddr_t \\*bd_addr) |\n| ||\n| void(\\* | [cleanup](/reference/hal/structbtpan__interface__t#a8e1ba7348775abcd3cd56ec6f718bea0) )(void) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[51](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------|\n| void(\\* cleanup)(void) |\n\n\nCleanup the pan interface\n\n\nDefinition at line\n[81](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* connect)(const bt_bdaddr_t \\*bd_addr, int local_role, int remote_role) |\n\n\nstart bluetooth pan connection to the remote device by specified pan role. The result state will be returned by btpan_connection_state_callback\n\n\nDefinition at line\n[72](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* disconnect)(const bt_bdaddr_t \\*bd_addr) |\n\n\nstop bluetooth pan connection. The result state will be returned by btpan_connection_state_callback\n\n\nDefinition at line\n[76](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* enable)(int local_role) |\n\n\nDefinition at line\n[63](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|------------------------------|\n| int(\\* get_local_role)(void) |\n\n\nDefinition at line\n[67](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* init)(const [btpan_callbacks_t](/reference/hal/structbtpan__callbacks__t) \\*callbacks) |\n\n\nInitialize the pan interface and register the btpan callbacks\n\n\nDefinition at line\n[57](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to size of this struct\n\n\nDefinition at line\n[53](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)"]]