|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
结构体 | |
| struct | hfp_phone_info_t |
| struct | hfp_clcc_info_t |
| struct | hfp_cops_info_t |
| struct | hfp_cind_info_t |
| struct | hfp_ag_callbacks_t |
| HFP AG回调函数接口定义。 更多... | |
宏定义 | |
| #define | HFP_AG_MAX_VOLUME 15 |
| 最大音量值范围。 | |
| #define | HFP_AG_PHONENUM_MAX_DIGITS 32 |
| 最大手机号码长度。 | |
| #define | HFP_AG_COPS_OPERATOR_MAXLEN 16 |
| 最大运营商长度。 | |
| #define | HFP_AG_MAX_BATTERY_CHARGE 5 |
| 最大电量值范围。 | |
| #define | HFP_AG_MAX_SIGNAL 5 |
| 最大信号强度范围。 | |
类型定义 | |
| typedef void(* | hfp_ag_conn_state_changed_callback) (const bd_addr_t *bd_addr, profile_connect_state_t state) |
| hfp连接状态更新回调函数。 | |
| typedef void(* | hfp_ag_sco_conn_state_changed_callback) (const bd_addr_t *bd_addr, hfp_sco_connect_state_t state) |
| sco连接状态更新回调函数。 | |
| typedef void(* | hfp_ag_codec_changed_callback) (const bd_addr_t *bd_addr, hfp_ag_codec_id_t codec) |
| codec编码信息变化回调函数。 | |
| typedef void(* | hfp_ag_volume_changed_callback) (const bd_addr_t *bd_addr, hfp_volume_type_t type, unsigned char volume) |
| AG端调整HF音量回调函数。 | |
| typedef void(* | hfp_ag_dial_req_callback) (const bd_addr_t *bd_addr, unsigned char *number, unsigned int len) |
| HF端拨号请求。 | |
| typedef void(* | hfp_ag_mem_dial_req_callback) (const bd_addr_t *bd_addr, unsigned int index) |
| HF端记忆拨号请求。 | |
| typedef void(* | hfp_ag_lastnum_dial_req_callback) (const bd_addr_t *bd_addr) |
| HF端最后一次通话拨号请求。 | |
| typedef void(* | hfp_ag_answer_call_req_callback) (const bd_addr_t *bd_addr, hfp_ag_type_t type) |
| HF端接听请求。 | |
| typedef void(* | hfp_ag_cancel_call_req_callback) (const bd_addr_t *bd_addr, hfp_ag_type_t type) |
| HF端挂断请求。 | |
| typedef void(* | hfp_ag_dtmf_req_callback) (const bd_addr_t *bd_addr, unsigned int code) |
| HF端DTMF请求。 | |
| typedef void(* | hfp_ag_subscriber_number_req_callback) (const bd_addr_t *bd_addr) |
| HF端用户编号信息请求。 | |
| typedef void(* | hfp_ag_current_calls_req_callback) (const bd_addr_t *bd_addr) |
| HF端通话列表请求。 | |
| typedef void(* | hfp_ag_current_indicator_req_callback) (const bd_addr_t *bd_addr) |
| HF端当前指示器值请求。 | |
| typedef void(* | hfp_ag_network_operator_format_req_callback) (const bd_addr_t *bd_addr) |
| HF端网络运营商格式请求。 | |
| typedef void(* | hfp_ag_network_operator_req_callback) (const bd_addr_t *bd_addr) |
| HF端网络运营商请求。 | |
函数 | |
| int | hfp_ag_connect (const bd_addr_t *bd_addr) |
| 建立与HF的SLC(service level connection)。 | |
| int | hfp_ag_disconnect (const bd_addr_t *bd_addr) |
| 释放与HF的SLC(service level connection)。 | |
| int | hfp_ag_audio_connect (const bd_addr_t *bd_addr) |
| 建立与HF的音频连接。 | |
| int | hfp_ag_audio_disconnect (const bd_addr_t *bd_addr) |
| 断开与HF的音频连接。 | |
| int | hfp_ag_get_device_connect_state (const bd_addr_t *bd_addr) |
| 通过设备地址查询设备hfp连接状态。 | |
| int | hfp_ag_get_sco_connect_state (const bd_addr_t *bd_addr) |
| 通过设备地址查询设备hfp sco连接状态。 | |
| int | hfp_ag_send_answer_call_event (const bd_addr_t *bd_addr) |
| 接听呼入电话。 | |
| int | hfp_ag_send_finish_call_event (const bd_addr_t *bd_addr, hfp_ag_action_t type) |
| 结束通话。 | |
| int | hfp_ag_send_originate_call_event (const bd_addr_t *bd_addr) |
| 呼出电话。 | |
| int | hfp_ag_send_network_incoming_event (const bd_addr_t *bd_addr, hfp_phone_info_t *phone_info) |
| AG端发送来电事件。 | |
| int | hfp_ag_send_network_event (const bd_addr_t *bd_addr, hfp_ag_network_event_t event, uint8_t param) |
| AG端发送其他网络事件。 | |
| int | hfp_ag_set_volume (const bd_addr_t *bd_addr, hfp_volume_type_t type, unsigned char volume) |
| HF端发起音量调整。 | |
| int | hfp_ag_send_current_calls (const bd_addr_t *bd_addr, hfp_clcc_info_t *info, hfp_ag_last_t complete) |
| 发送通话列表。 | |
| int | hfp_ag_send_subscriber_number (const bd_addr_t *bd_addr, hfp_phone_info_t *info, hfp_ag_last_t complete) |
| 发送订阅号码信息。 | |
| int | hfp_ag_send_battery_charge (const bd_addr_t *bd_addr, uint8_t value) |
| AG端发送电量信息。 | |
| int | hfp_ag_send_cmee_error (const bd_addr_t *bd_addr, hfp_ag_cmee_error_t error_code) |
| AG端发送扩展错误码。 | |
| int | hfp_ag_send_network_operator (const bd_addr_t *bd_addr, hfp_cops_info_t *info) |
| AG端发送运营商信息。 | |
| int | hfp_ag_send_indicator_val (const bd_addr_t *bd_addr, hfp_cind_info_t *info) |
| AG端发送指示器信息。 | |
| int | hfp_ag_register_callbacks (hfp_ag_callbacks_t *func) |
| 注册上层应用的回调。 | |
| #define HFP_AG_COPS_OPERATOR_MAXLEN 16 |
最大运营商长度。
| #define HFP_AG_MAX_BATTERY_CHARGE 5 |
最大电量值范围。
| #define HFP_AG_MAX_SIGNAL 5 |
最大信号强度范围。
| #define HFP_AG_MAX_VOLUME 15 |
最大音量值范围。
| #define HFP_AG_PHONENUM_MAX_DIGITS 32 |
最大手机号码长度。
| typedef void(* hfp_ag_answer_call_req_callback) (const bd_addr_t *bd_addr, hfp_ag_type_t type) |
HF端接听请求。
| typedef void(* hfp_ag_cancel_call_req_callback) (const bd_addr_t *bd_addr, hfp_ag_type_t type) |
HF端挂断请求。
| typedef void(* hfp_ag_codec_changed_callback) (const bd_addr_t *bd_addr, hfp_ag_codec_id_t codec) |
codec编码信息变化回调函数。
| typedef void(* hfp_ag_conn_state_changed_callback) (const bd_addr_t *bd_addr, profile_connect_state_t state) |
hfp连接状态更新回调函数。
| typedef void(* hfp_ag_current_calls_req_callback) (const bd_addr_t *bd_addr) |
HF端通话列表请求。
| typedef void(* hfp_ag_current_indicator_req_callback) (const bd_addr_t *bd_addr) |
HF端当前指示器值请求。
| typedef void(* hfp_ag_dial_req_callback) (const bd_addr_t *bd_addr, unsigned char *number, unsigned int len) |
HF端拨号请求。
| typedef void(* hfp_ag_lastnum_dial_req_callback) (const bd_addr_t *bd_addr) |
HF端最后一次通话拨号请求。
| typedef void(* hfp_ag_mem_dial_req_callback) (const bd_addr_t *bd_addr, unsigned int index) |
HF端记忆拨号请求。
| typedef void(* hfp_ag_network_operator_format_req_callback) (const bd_addr_t *bd_addr) |
HF端网络运营商格式请求。
| typedef void(* hfp_ag_network_operator_req_callback) (const bd_addr_t *bd_addr) |
HF端网络运营商请求。
| typedef void(* hfp_ag_sco_conn_state_changed_callback) (const bd_addr_t *bd_addr, hfp_sco_connect_state_t state) |
sco连接状态更新回调函数。
| typedef void(* hfp_ag_subscriber_number_req_callback) (const bd_addr_t *bd_addr) |
HF端用户编号信息请求。
| typedef void(* hfp_ag_volume_changed_callback) (const bd_addr_t *bd_addr, hfp_volume_type_t type, unsigned char volume) |
AG端调整HF音量回调函数。
| enum hfp_ag_action_t |
| enum hfp_ag_call_indi_t |
| enum hfp_ag_call_state_t |
| enum hfp_ag_clcc_dir_t |
| enum hfp_ag_clcc_mode_t |
| enum hfp_ag_clcc_mpty_t |
| enum hfp_ag_cmee_error_t |
扩展的音频网关错误码。
| enum hfp_ag_codec_id_t |
| enum hfp_ag_cops_format_t |
| enum hfp_ag_cops_mode_t |
| enum hfp_ag_last_t |
网络事件类型。
| enum hfp_ag_roam_indi_t |
| enum hfp_ag_type_t |
| int hfp_ag_audio_connect | ( | const bd_addr_t * | bd_addr | ) |
建立与HF的音频连接。
| int hfp_ag_audio_disconnect | ( | const bd_addr_t * | bd_addr | ) |
断开与HF的音频连接。
| int hfp_ag_connect | ( | const bd_addr_t * | bd_addr | ) |
建立与HF的SLC(service level connection)。
| int hfp_ag_disconnect | ( | const bd_addr_t * | bd_addr | ) |
释放与HF的SLC(service level connection)。
| int hfp_ag_get_device_connect_state | ( | const bd_addr_t * | bd_addr | ) |
通过设备地址查询设备hfp连接状态。
| int hfp_ag_get_sco_connect_state | ( | const bd_addr_t * | bd_addr | ) |
通过设备地址查询设备hfp sco连接状态。
| int hfp_ag_register_callbacks | ( | hfp_ag_callbacks_t * | func | ) |
注册上层应用的回调。
| int hfp_ag_send_answer_call_event | ( | const bd_addr_t * | bd_addr | ) |
接听呼入电话。
| int hfp_ag_send_battery_charge | ( | const bd_addr_t * | bd_addr, |
| uint8_t | value | ||
| ) |
AG端发送电量信息。
| int hfp_ag_send_cmee_error | ( | const bd_addr_t * | bd_addr, |
| hfp_ag_cmee_error_t | error_code | ||
| ) |
AG端发送扩展错误码。
| int hfp_ag_send_current_calls | ( | const bd_addr_t * | bd_addr, |
| hfp_clcc_info_t * | info, | ||
| hfp_ag_last_t | complete | ||
| ) |
发送通话列表。
| int hfp_ag_send_finish_call_event | ( | const bd_addr_t * | bd_addr, |
| hfp_ag_action_t | type | ||
| ) |
结束通话。
| int hfp_ag_send_indicator_val | ( | const bd_addr_t * | bd_addr, |
| hfp_cind_info_t * | info | ||
| ) |
AG端发送指示器信息。
| int hfp_ag_send_network_event | ( | const bd_addr_t * | bd_addr, |
| hfp_ag_network_event_t | event, | ||
| uint8_t | param | ||
| ) |
AG端发送其他网络事件。
| int hfp_ag_send_network_incoming_event | ( | const bd_addr_t * | bd_addr, |
| hfp_phone_info_t * | phone_info | ||
| ) |
AG端发送来电事件。
| int hfp_ag_send_network_operator | ( | const bd_addr_t * | bd_addr, |
| hfp_cops_info_t * | info | ||
| ) |
AG端发送运营商信息。
| int hfp_ag_send_originate_call_event | ( | const bd_addr_t * | bd_addr | ) |
呼出电话。
| int hfp_ag_send_subscriber_number | ( | const bd_addr_t * | bd_addr, |
| hfp_phone_info_t * | info, | ||
| hfp_ag_last_t | complete | ||
| ) |
发送订阅号码信息。
| int hfp_ag_set_volume | ( | const bd_addr_t * | bd_addr, |
| hfp_volume_type_t | type, | ||
| unsigned char | volume | ||
| ) |
HF端发起音量调整。
| int8_t hfp_phone_info_t::alpha_str[1] |
子地址,协议默认是0
| hfp_ag_answer_call_req_callback hfp_ag_callbacks_t::answer_call_req_cb |
| uint8_t hfp_cind_info_t::battchg |
电量,值范围0-5。
| uint8_t hfp_cind_info_t::call |
呼叫 见 hfp_ag_call_indi_t
| uint8_t hfp_cind_info_t::callheld |
呼叫保持 见 hfp_ag_callheld_indi_t
| uint8_t hfp_cind_info_t::callsetup |
呼叫建立 见 hfp_ag_callsetup_indi_t
| hfp_ag_cancel_call_req_callback hfp_ag_callbacks_t::cancel_call_req_cb |
| hfp_ag_codec_changed_callback hfp_ag_callbacks_t::codec_changed_cb |
| hfp_ag_conn_state_changed_callback hfp_ag_callbacks_t::conn_state_changed_cb |
| hfp_ag_current_calls_req_callback hfp_ag_callbacks_t::current_calls_req_callback |
| hfp_ag_current_indicator_req_callback hfp_ag_callbacks_t::current_indicator_req_callback |
| hfp_ag_dial_req_callback hfp_ag_callbacks_t::dial_req_cb |
| uint8_t hfp_clcc_info_t::dir |
方向,见 hfp_ag_clcc_dir_t
| hfp_ag_dtmf_req_callback hfp_ag_callbacks_t::dtmf_req_cb |
| uint8_t hfp_cops_info_t::format |
字符串格式, 协议仅支持长格式 见 hfp_ag_cops_format_t
| uint8_t hfp_clcc_info_t::idx |
通话记录索引
| hfp_ag_lastnum_dial_req_callback hfp_ag_callbacks_t::lastnum_dial_req_cb |
| hfp_ag_mem_dial_req_callback hfp_ag_callbacks_t::mem_dial_req_cb |
| uint8_t hfp_clcc_info_t::mode |
模式,见 hfp_ag_clcc_mode_t
| uint8_t hfp_cops_info_t::mode |
当前模式 见 hfp_ag_cops_mode_t
| uint8_t hfp_clcc_info_t::mpty |
多方通话标记,见 hfp_ag_clcc_mpty_t
| uint8_t hfp_phone_info_t::name_len |
子地址长度
| hfp_ag_network_operator_format_req_callback hfp_ag_callbacks_t::network_operator_format_req_callback |
| hfp_ag_network_operator_req_callback hfp_ag_callbacks_t::network_operator_req_callback |
| uint8_t hfp_phone_info_t::num_len |
电话号码长度
| uint8_t hfp_clcc_info_t::num_len |
电话号码长度
| int8_t hfp_clcc_info_t::number[1] |
电话号码
| int8_t hfp_phone_info_t::number[32] |
订阅号码,最大长度是32
| uint8_t hfp_cops_info_t::operator_len |
运营商名字长度
| int8_t hfp_cops_info_t::operator_name[1] |
运营商名字
| uint8_t hfp_cind_info_t::roam |
呼叫保持 见 hfp_ag_roam_indi_t
| hfp_ag_sco_conn_state_changed_callback hfp_ag_callbacks_t::sco_conn_state_changed_cb |
| uint8_t hfp_phone_info_t::service |
服务类型,协议支持4或5,见 hfp_ag_cnum_service_t
| uint8_t hfp_cind_info_t::service |
| uint8_t hfp_cind_info_t::signal |
信号强度,值范围0-5。
| uint8_t hfp_clcc_info_t::status |
状态,见 hfp_ag_call_state_t
| hfp_ag_subscriber_number_req_callback hfp_ag_callbacks_t::subscriber_number_req_callback |
| uint8_t hfp_phone_info_t::type |
电话号码类型,值范围是128-175
| uint8_t hfp_clcc_info_t::type |
电话号码类型,值范围是128-175
| hfp_ag_volume_changed_callback hfp_ag_callbacks_t::volume_changed_cb |