컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

bthf_interface_t 구조체 참조

bthf_interface_t 구조체 참조

#include < bt_hf.h >

데이터 필드

size_t 크기
bt_status_t (* 초기화 )( bthf_callbacks_t *콜백, int max_hf_clients)
bt_status_t (* 연결 )(bt_bdaddr_t *bd_addr)
bt_status_t (* 연결 해제 )(bt_bdaddr_t *bd_addr)
bt_status_t (* connect_audio )(bt_bdaddr_t *bd_addr)
bt_status_t (* disconnect_audio )(bt_bdaddr_t *bd_addr)
bt_status_t (* start_voice_recognition )(bt_bdaddr_t *bd_addr)
bt_status_t (* stop_voice_recognition )(bt_bdaddr_t *bd_addr)
bt_status_t (* volume_control )( bthf_volume_type_t 유형, int 볼륨, bt_bdaddr_t *bd_addr)
bt_status_t (* device_status_notification )( bthf_network_state_t ntk_state, bthf_service_type_t svc_type, int 신호, int batt_chg)
bt_status_t (* cops_response )(const char *cops, bt_bdaddr_t *bd_addr)
bt_status_t (* cind_response )(int svc, int num_active, int num_held, bthf_call_state_t call_setup_state, int 신호, int roam, int batt_chg, bt_bdaddr_t *bd_addr)
bt_status_t (* formatted_at_response )(const char *rsp, bt_bdaddr_t *bd_addr)
bt_status_t (* at_response )( bthf_at_response_t 응답 코드, int error_code, bt_bdaddr_t *bd_addr)
bt_status_t (* clcc_response )(int 인덱스, bthf_call_direction_t dir, bthf_call_state_t 상태, bthf_call_mode_t 모드, bthf_call_mpty_type_t mpty, const char *number, bthf_call_addrtype_t 유형, bt_bdaddr_t) *bd_
bt_status_t (* phone_state_change )(int num_active, int num_held, bthf_call_state_t call_setup_state, const char *number, bthf_call_addrtype_t 유형)
무효의(* 정리 )(무효)
bt_status_t (* configure_wbs )(bt_bdaddr_t *bd_addr, bthf_wbs_config_t 구성)

상세 설명

표준 BT-HF 인터페이스를 나타냅니다.

bt_hf.h 파일의 223 행에 정의가 있습니다.

현장 문서

bt_status_t (* at_response)( bthf_at_response_t response_code, int error_code, bt_bdaddr_t *bd_addr)

정상/오류 응답 ERROR(0) OK(1)

bt_hf.h 파일의 271 행에 있는 정의입니다.

bt_status_t (* cind_response)(int svc, int num_active, int num_held, bthf_call_state_t call_setup_state, int 신호, int roam, int batt_chg, bt_bdaddr_t *bd_addr)

CIND 명령에 대한 응답

bt_hf.h 파일의 261 행에 있는 정의입니다.

bt_status_t (* clcc_response)(int index, bthf_call_direction_t dir, bthf_call_state_t state, bthf_call_mode_t 모드, bthf_call_mpty_type_t mpty, const char *number, bthf_call_addrtype_t type_bt_t_bd

CLCC 명령에 대한 응답 각 호출 인덱스에 대해 반복적으로 호출될 수 있음 호출 인덱스가 0이면 NULL 종료로 처리됨(응답 완료)

bt_hf.h 파일의 277 행에 정의

무효(* 정리)(무효)

인터페이스를 닫습니다.

bt_hf.h 파일의 293 행에 정의

bt_status_t (* configure_wbs)(bt_bdaddr_t *bd_addr, bthf_wbs_config_t 구성)

SCO 코덱 구성

bt_hf.h 파일의 296 행 정의

bt_status_t (* 연결)(bt_bdaddr_t *bd_addr)

헤드셋에 연결

bt_hf.h 파일의 233 행에 정의

bt_status_t (* connect_audio)(bt_bdaddr_t *bd_addr)

오디오 연결 만들기

bt_hf.h 파일의 239 행에 정의

bt_status_t (* 경찰_응답)(const char *경찰, bt_bdaddr_t *bd_addr)

COPS 명령에 대한 응답

bt_hf.h 파일의 258 행 정의.

bt_status_t (* device_status_notification)( bthf_network_state_t ntk_state, bthf_service_type_t svc_type, int 신호, int batt_chg)

결합 기기 상태 변경 알림

bt_hf.h 파일의 254 행에 있는 정의입니다.

bt_status_t (* 연결 해제)(bt_bdaddr_t *bd_addr)

헤드셋에서 연결 해제

bt_hf.h 파일의 236 행에 정의

bt_status_t (* disconnect_audio)(bt_bdaddr_t *bd_addr)

오디오 연결을 닫습니다

bt_hf.h 파일의 242 행에 있는 정의입니다.

bt_status_t (* formatted_at_response)(const char *rsp, bt_bdaddr_t *bd_addr)

일반적으로 알 수 없는 AT cmd에 대한 응답으로 사전 형식화된 AT 응답

bt_hf.h 파일의 265 행에 정의

bt_status_t (* 초기화)( bthf_callbacks_t *콜백, int max_hf_clients)

BtHf 콜백 등록

bt_hf.h 파일의 230 행에 정의

bt_status_t (* phone_state_change)(int num_active, int num_held, bthf_call_state_t call_setup_state, const char *number, bthf_call_addrtype_t 유형)

호출 상태 변경 알림 각 업데이트 알림

  1. 활성/보류/벨이 울리는 통화 수
  2. call_state: 이것은 이 메시지를 트리거한 상태 변경을 나타냅니다. 이것은 BtHfCallState의 값 중 하나를 취합니다.
  3. 번호 및 유형: 수신 및 대기 중인 통화에만 유효

bt_hf.h 파일의 289 행 정의.

size_t 사이즈

sizeof(BtHfInterface)로 설정

bt_hf.h 파일의 226 행 정의.

bt_status_t (* start_voice_recognition)(bt_bdaddr_t *bd_addr)

음성 인식 시작

bt_hf.h 파일의 245 행 정의.

bt_status_t (* stop_voice_recognition)(bt_bdaddr_t *bd_addr)

음성 인식 중지

bt_hf.h 파일의 248 행 정의.

bt_status_t (* volume_control)( bthf_volume_type_t 유형, int 볼륨, bt_bdaddr_t *bd_addr)

볼륨 조절

bt_hf.h 파일의 251 행에 정의


이 구조체에 대한 문서는 다음 파일에서 생성되었습니다.
  • 하드웨어/libhardware/include/hardware/ bt_hf.h