Tham chiếu cấu trúc bthf_interface_t
Tham chiếu cấu trúc bthf_interface_t
#include < bt_hf.h >
Trường dữ liệu | |
size_t | kích thước |
bt_status_t (* | init ) ( bthf_callbacks_t * callbacks, int max_hf_clients) |
bt_status_t (* | kết nối ) (bt_bdaddr_t * bd_addr) |
bt_status_t (* | ngắt kết nối ) (bt_bdaddr_t * bd_addr) |
bt_status_t (* | connect_audio) ( bt_bdaddr_t * bd_addr) |
bt_status_t (* | ngắt kết nối_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 ) (kiểu bthf_volume_type_t , int volume, bt_bdaddr_t * bd_addr) |
bt_status_t (* | device_status_notification ) ( bthf_network_state_t ntk_state, bthf_service_type_t svc_type, int signal, 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 signal, 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 response_code, int error_code, bt_bdaddr_t * bd_addr) |
bt_status_t (* | clcc_response ) (int index, bthf_call_direction_t dir, bthf_call_state_t state, bthf_call_mode_t mode, bthf_call_mpty_type_t mpty, const char * number, bthf_call_addrtype_t type, bt_tbd) |
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 type) |
void (* | dọn dẹp ) (vô hiệu) |
bt_status_t (* | config_wbs ) (bt_bdaddr_t * bd_addr, bthf_wbs_config_t config) |
miêu tả cụ thể
Tài liệu thực địa
bt_status_t (* at_response) ( bthf_at_response_t response_code, int error_code, 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 signal, int roam, int batt_chg, bt_bdaddr_t * bd_addr) |
bt_status_t (* clcc_response) (int index, bthf_call_direction_t dir, bthf_call_state_t bang, bthf_call_mode_t mode, bthf_call_mpty_type_t mpty, const char * number, bthf_drd |
bt_status_t (* config_wbs) (bt_bdaddr_t * bd_addr, bthf_wbs_config_t config) |
bt_status_t (* kết nối) (bt_bdaddr_t * bd_addr) |
bt_status_t (* connect_audio) (bt_bdaddr_t * bd_addr) |
bt_status_t (* cops_response) (const char * cops, bt_bdaddr_t * bd_addr) |
bt_status_t (* device_status_notification) ( bthf_network_state_t ntk_state, bthf_service_type_t svc_type, int signal, int batt_chg) |
bt_status_t (* ngắt kết nối) (bt_bdaddr_t * bd_addr) |
bt_status_t (* ngắt kết nối_audio) (bt_bdaddr_t * bd_addr) |
bt_status_t (* formatted_at_response) (const char * rsp, bt_bdaddr_t * bd_addr) |
bt_status_t (* init) ( bthf_callbacks_t * callbacks, int max_hf_clients) |
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 type) |
thông báo về sự thay đổi trạng thái cuộc gọi Mỗi bản cập nhật sẽ thông báo
- Số lượng cuộc gọi đang hoạt động / bị giữ / đổ chuông
- call_state: Điều này biểu thị sự thay đổi trạng thái đã kích hoạt tin nhắn này. Điều này sẽ nhận một trong các giá trị từ BtHfCallState
- số & loại: chỉ hợp lệ cho cuộc gọi đến và cuộc gọi chờ
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 type, int volume, bt_bdaddr_t * bd_addr) |
Tài liệu cho cấu trúc này được tạo từ tệp sau:
- phần cứng / libhardware / bao gồm / phần cứng / bt_hf.h