2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
btpan_interface_t 구조체 참조
#include <
bt_pan.h
>
bt_pan.h
파일의
51
행에 있는 정의입니다.
bt_status_t
(* connect)(const bt_bdaddr_t *bd_addr, int local_role, int remote_role)
|
지정된 팬 역할에 따라 원격 기기에 블루투스 팬 연결을 시작합니다. 결과 상태는 btpan_connection_state_callback에서 반환합니다.
bt_pan.h
FILE의
72
라인에 정의가 있습니다.
블루투스 패닝 연결을 중지합니다. 결과 상태는 btpan_connection_state_callback에서 반환합니다.
bt_pan.h
파일의
76
번 라인에 있는 정의입니다.
int(* get_local_role)(void)
|
팬 인터페이스 초기화 및 btpan 콜백 등록
bt_pan.h
파일의
57
줄에 있는 정의입니다.
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
-
hardware/libhardware/include/hardware/
bt_pan.h
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(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-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)"]]