bt_interface_t 구조체 참조
#include < bluetooth.h >
데이터 필드 | |
size_t | 크기 |
정수(* | 초기화 )( bt_callbacks_t *콜백) |
정수(* | 활성화 )(부울 게스트 모드) |
정수(* | 비활성화 )(무효) |
무효의(* | 정리 )(무효) |
정수(* | get_adapter_properties )(무효) |
정수(* | get_adapter_property )( bt_property_type_t 유형) |
정수(* | set_adapter_property )(const bt_property_t *속성) |
정수(* | get_remote_device_properties )(bt_bdaddr_t *remote_addr) |
정수(* | get_remote_device_property )(bt_bdaddr_t *remote_addr, bt_property_type_t 유형) |
정수(* | set_remote_device_property )(bt_bdaddr_t *remote_addr, const bt_property_t *property) |
정수(* | get_remote_service_record )(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid) |
정수(* | get_remote_services )(bt_bdaddr_t *remote_addr) |
정수(* | start_discovery )(무효) |
정수(* | 취소_발견 )(무효) |
정수(* | create_bond )(const bt_bdaddr_t *bd_addr, int 전송) |
정수(* | create_bond_out_of_band )(const bt_bdaddr_t *bd_addr, int 전송, const bt_out_of_band_data_t *oob_data) |
정수(* | remove_bond )(const bt_bdaddr_t *bd_addr) |
정수(* | cancel_bond )(const bt_bdaddr_t *bd_addr) |
정수(* | get_connection_state )(const bt_bdaddr_t *bd_addr) |
정수(* | pin_reply )(const bt_bdaddr_t *bd_addr, uint8_t 수락, uint8_t pin_len, bt_pin_code_t *pin_code) |
정수(* | ssp_reply )(const bt_bdaddr_t *bd_addr, bt_ssp_variant_t 변형, uint8_t 수락, uint32_t 암호 키) |
상수 무효 *(* | get_profile_interface )(const char *profile_id) |
정수(* | dut_mode_configure )(uint8_t 활성화 ) |
정수(* | dut_mode_send )(uint16_t opcode, uint8_t *buf, uint8_t len) |
정수(* | le_test_mode )(uint16_t opcode, uint8_t *buf, uint8_t len) |
정수(* | config_hci_snoop_log )(uint8_t 활성화 ) |
정수(* | set_os_callouts )( bt_os_callouts_t *콜아웃) |
정수(* | read_energy_info )() |
무효의(* | 덤프 )(int fd, const char **인수) |
정수(* | config_clear )(무효) |
무효의(* | interop_database_clear )(무효) |
무효의(* | interop_database_add )(uint16_t 기능, const bt_bdaddr_t *addr, size_t len) |
상세 설명
참고: 기본적으로 초기화/활성화 시 프로필이 초기화되지 않습니다. 애플리케이션이 프로필의 '초기화' API를 호출할 때마다 다음 중 하나가 발생합니다.
1.) Bluetooth가 활성화되지 않은 경우 Bluetooth 코어는 프로필을 활성화된 것으로 표시해야 합니다. 그 후, 애플리케이션이 블루투스 '활성화'를 호출할 때 활성화 시퀀스의 일부로 표시된 프로파일은 적절한 스택 API를 호출하여 활성화되어야 합니다. 'adapter_properties_cb'는 활성화된 프로필의 UUID 목록을 반환합니다.
2.) Bluetooth가 활성화된 경우 Bluetooth 코어는 스택 프로파일 API를 호출하여 프로파일을 초기화하고 새로 추가된 프로파일의 UUID를 포함하는 UUID의 현재 목록으로 'adapter_properties_cb'를 트리거합니다.
프로파일 '정리' API가 호출될 때마다 반대 현상이 발생합니다. 표준 Bluetooth DM 인터페이스를 나타냅니다.
파일 bluetooth.h 의 456 행에 있는 정의입니다.
현장 문서
int(* cancel_bond)(const bt_bdaddr_t *bd_addr) |
채권 취소
파일 bluetooth.h 의 521 행에 있는 정의입니다.
정수(* 취소_발견)(무효) |
검색 취소
파일 bluetooth.h 의 508 행에 있는 정의입니다.
무효(* 정리)(무효) |
인터페이스를 닫습니다.
파일 bluetooth.h 의 472 행에 있는 정의입니다.
정수(* config_clear)(무효) |
/data/misc/bt_config.conf 지우기 및 저장된 모든 연결 지우기
파일 bluetooth.h 의 580 행에 정의가 있습니다.
int(* config_hci_snoop_log)(uint8_t 활성화 ) |
파일 bluetooth.h 의 557 행에 있는 정의입니다.
int(* create_bond)(const bt_bdaddr_t *bd_addr, int 전송) |
블루투스 본딩 생성
파일 bluetooth.h 의 511 행에 있는 정의입니다.
int(* create_bond_out_of_band)(const bt_bdaddr_t *bd_addr, int 전송, const bt_out_of_band_data_t *oob_data) |
대역 외 데이터를 사용하여 블루투스 본드 생성
파일 bluetooth.h 의 514 행에 있는 정의입니다.
int(* 비활성화)(무효) |
블루투스를 비활성화합니다.
파일 bluetooth.h 의 469 행에 있는 정의입니다.
무효(* 덤프)(int fd, const char **인수) |
dumpsys 함수에 대한 기본 지원 기능은 동기식이며 |fd| 호출자가 소유합니다. |인수| UTF-8 문자열로 인코딩된 출력에 영향을 줄 수 있는 인수입니다.
파일 bluetooth.h 의 575 행에 있는 정의입니다.
int(* dut_mode_configure)(uint8_t 활성화 ) |
Bluetooth 테스트 모드 API - 이 API에 대해 Bluetooth를 활성화해야 합니다.
파일 bluetooth.h 의 548 행에 있는 정의입니다.
int(* dut_mode_send)(uint16_t opcode, uint8_t *buf, uint8_t len) |
파일 bluetooth.h 의 551 행에 있는 정의입니다.
int(* enable)(bool guest_mode) |
블루투스를 활성화합니다.
파일 bluetooth.h 의 466 행에 있는 정의입니다.
int(* get_adapter_properties)(무효) |
초기화에서 모든 Bluetooth 어댑터 속성 가져오기
파일 bluetooth.h 의 475 행에 있는 정의입니다.
int(* get_adapter_property)( bt_property_type_t 유형) |
'유형'의 Bluetooth 어댑터 속성 가져오기
파일 bluetooth.h 의 478 행에 있는 정의입니다.
int(* get_connection_state)(const bt_bdaddr_t *bd_addr) |
주어진 원격 장치에 대한 연결 상태를 가져옵니다. 반환 값 0은 장치가 연결되지 않았음을 의미하고 0이 아닌 반환 상태는 활성 연결을 나타냅니다.
파일 bluetooth.h 의 528 행에 있는 정의입니다.
const 무효*(* get_profile_interface)(const char *profile_id) |
블루투스 프로필 인터페이스 가져오기
파일 bluetooth.h 의 544 행에 있는 정의입니다.
int(* get_remote_device_properties)(bt_bdaddr_t *remote_addr) |
모든 원격 장치 속성 가져오기
파일 bluetooth.h 의 487 행에 있는 정의입니다.
int(* get_remote_device_property)(bt_bdaddr_t *remote_addr, bt_property_type_t 유형) |
'유형'의 원격 장치 속성 가져오기
파일 bluetooth.h 의 490 행에 있는 정의입니다.
int(* get_remote_service_record)(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid) |
지정된 UUID에 대한 원격 장치의 서비스 레코드 가져오기
파일 bluetooth.h 의 498 번째 줄에 있는 정의입니다.
int(* get_remote_services)(bt_bdaddr_t *remote_addr) |
SDP를 시작하여 원격 서비스 받기
파일 bluetooth.h 의 502 행에 있는 정의입니다.
int(* 초기화)( bt_callbacks_t *콜백) |
인터페이스를 열고 이 인터페이스의 구현에 콜백 루틴을 제공합니다.
파일 bluetooth.h 의 463 행에 있는 정의입니다.
무효(* interop_database_add)(uint16_t 기능, const bt_bdaddr_t *addr, size_t len) |
첫 번째 |len| 장치 주소의 바이트는 |addr|과 일치합니다. 참고: |기능| interop_feature_t(interop.h)에 정의된 항목과 일치해야 합니다.
파일 bluetooth.h 의 592 행에 있는 정의입니다.
무효(* interop_database_clear)(무효) |
장치 상호 운용성 데이터베이스의 동적 부분을 지웁니다(재설정).
파일 bluetooth.h 의 585 행에 있는 정의입니다.
int(* le_test_mode)(uint16_t opcode, uint8_t *buf, uint8_t len) |
BLE 테스트 모드 API
파일 bluetooth.h 의 554 행에 있는 정의입니다.
int(* pin_reply)(const bt_bdaddr_t *bd_addr, uint8_t 수락, uint8_t pin_len, bt_pin_code_t *pin_code) |
BT 레거시 PinKey 응답 accept==FALSE이면 pin_len 및 pin_code는 0x0이 됩니다.
파일 bluetooth.h 의 532 행에 있는 정의입니다.
정수(* read_energy_info)() |
에너지 정보 세부 정보 읽기 - 반환 값은 BT_STATUS_SUCCESS 또는 BT_STATUS_NOT_READY를 나타냅니다. 성공은 VSC 명령이 컨트롤러로 전송되었음을 나타냅니다.
파일 bluetooth.h 의 567 행에 있는 정의입니다.
int(* remove_bond)(const bt_bdaddr_t *bd_addr) |
본드 제거
파일 bluetooth.h 의 518 번째 줄에 있는 정의.
int(* set_adapter_property)(const bt_property_t *property) |
'유형'의 Bluetooth 어댑터 속성 설정
파일 bluetooth.h 의 484 행에 있는 정의입니다.
int(* set_os_callouts)( bt_os_callouts_t *callouts) |
bluedroid가 알람 및 깨우기 잠금에 필요한 OS 호출 기능을 설정합니다. 성공적인 |init| 직후에 호출되어야 합니다.
파일 bluetooth.h 의 562 행에 있는 정의입니다.
int(* set_remote_device_property)(bt_bdaddr_t *remote_addr, const bt_property_t *property) |
'유형'의 원격 장치 속성 설정
파일 bluetooth.h 의 494 행에 있는 정의입니다.
size_t 사이즈 |
sizeof(bt_interface_t)로 설정
파일 bluetooth.h 의 458 행에 있는 정의입니다.
int(* ssp_reply)(const bt_bdaddr_t *bd_addr, bt_ssp_variant_t 변형, uint8_t 수락, uint32_t 암호 키) |
BT SSP 응답 - Just Works, 숫자 비교 및 암호 키 암호 키는 BT_SSP_VARIANT_PASSKEY_COMPARISON 및 BT_SSP_VARIANT_CONSENT에 대해 0이어야 합니다. BT_SSP_VARIANT_PASSKEY_ENTRY의 경우 accept==FALSE이면 암호 키가 0이어야 합니다.
파일 bluetooth.h 의 540 행에 있는 정의입니다.
int(* start_discovery)(무효) |
검색 시작
파일 bluetooth.h 의 505 행에 있는 정의입니다.
이 구조체에 대한 문서는 다음 파일에서 생성되었습니다.
- 하드웨어/libhardware/include/hardware/ bluetooth.h