A partir de 27 de março de 2025, recomendamos usar android-latest-release
em vez de aosp-main
para criar e contribuir com o AOSP. Para mais informações, consulte Mudanças no AOSP.
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Referência da estrutura btpan_interface_t
#include <
bt_pan.h
>
Definição na linha
51
do arquivo
bt_pan.h
.
Limpar a interface de movimentação
Definição na linha
81
do arquivo
bt_pan.h
.
bt_status_t
(* connect)(const bt_bdaddr_t *bd_addr, int local_role, int remote_role)
|
inicia a conexão Bluetooth PAN com o dispositivo remoto pela função PAN especificada. O estado do resultado será retornado por btpan_connection_state_callback
Definição na linha
72
do arquivo
bt_pan.h
.
interromper a conexão de pan Bluetooth. O estado do resultado será retornado por btpan_connection_state_callback
Definição na linha
76
do arquivo
bt_pan.h
.
int(* get_local_role)(void)
|
Inicialize a interface de pan e registre os callbacks btpan
Definição na linha
57
do arquivo
bt_pan.h
.
definido como o tamanho desta estrutura
Definição na linha
53
do arquivo
bt_pan.h
.
A documentação desse struct foi gerada com base no seguinte arquivo:
-
hardware/libhardware/include/hardware/
bt_pan.h
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-07-27 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)"]]