A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Referencia de la estructura btpan_interface_t
#include <
bt_pan.h
>
Definición en la línea
51
del archivo
bt_pan.h
.
Limpia la interfaz de desplazamiento
Definición en la línea
81
del archivo
bt_pan.h
.
bt_status_t
(* connect)(const bt_bdaddr_t *bd_addr, int local_role, int remote_role)
|
Inicia la conexión de PAN Bluetooth al dispositivo remoto según el rol de PAN especificado. btpan_connection_state_callback devolverá el estado del resultado.
Definición en la línea
72
del archivo
bt_pan.h
.
Detener la conexión de PAN Bluetooth btpan_connection_state_callback devolverá el estado del resultado.
Definición en la línea
76
del archivo
bt_pan.h
.
int(* get_local_role)(void)
|
Inicializa la interfaz de pan y registra las devoluciones de llamada de btpan
Definición en la línea
57
del archivo
bt_pan.h
.
se establece en el tamaño de esta estructura
Definición en la línea
53
del archivo
bt_pan.h
.
La documentación de esta struct se generó a partir del siguiente archivo:
-
hardware/libhardware/include/hardware/
bt_pan.h
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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)"]]