WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
bts_hfp_hf.h 文件参考
#include <stdbool.h>
#include "bts_def.h"
bts_hfp_hf.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  hfp_hf_calls_info_t
 定义电话呼叫信息。 更多...
 
struct  hfp_hf_callbacks_t
 HFP HF回调函数接口定义。 更多...
 

宏定义

#define HFP_HF_MAX_VOLUME   15
 最大音量值范围。
 

类型定义

typedef void(* hfp_hf_conn_state_changed_callback) (const bd_addr_t *bd_addr, profile_connect_state_t state)
 hfp连接状态更新回调函数。
 
typedef void(* hfp_hf_sco_conn_state_changed_callback) (const bd_addr_t *bd_addr, hfp_sco_connect_state_t state)
 sco连接状态更新回调函数。
 
typedef void(* hfp_hf_battery_level_changed_callback) (const bd_addr_t *bd_addr, int battery_level)
 收到AG电量变化指示回调函数。
 
typedef void(* hfp_hf_signal_strength_changed_callback) (const bd_addr_t *bd_addr, int signal_strength)
 收到AG信号强度变化指示回调函数。
 
typedef void(* hfp_hf_registration_status_changed_callback) (const bd_addr_t *bd_addr, int status)
 收到AG注册状态变化指示回调函数。
 
typedef void(* hfp_hf_roaming_status_changed_callback) (const bd_addr_t *bd_addr, int status)
 收到AG漫游状态变化指示回调函数。
 
typedef void(* hfp_hf_operator_selection_callback) (const bd_addr_t *bd_addr, unsigned char *name, unsigned int len)
 查询AG运营商信息收到AG回复后的回调函数。
 
typedef void(* hfp_hf_subscriber_number_callback) (const bd_addr_t *bd_addr, unsigned char *number, unsigned int len)
 查询AG用户号码收到AG回复后的回调函数。
 
typedef void(* hfp_hf_voice_recognition_status_changed_callback) (const bd_addr_t *bd_addr, int status)
 语音识别状态变化回调函数。
 
typedef void(* hfp_hf_in_band_ring_tone_changed_callback) (const bd_addr_t *bd_addr, int status)
 带内铃声状态变化回调函数。
 
typedef void(* hfp_hf_volume_changed_callback) (const bd_addr_t *bd_addr, hfp_volume_type_t type, unsigned char volume)
 AG端调整HF音量回调函数。
 
typedef void(* hfp_hf_call_changed_callback) (const bd_addr_t *bd_addr, const hfp_hf_calls_info_t *call)
 通话状态变化回调函数。
 
typedef void(* hfp_hf_dial_error_code_callback) (const bd_addr_t *bd_addr, int code)
 拨号错误回调函数。
 
typedef void(* hfp_hf_codec_changed_callback) (const bd_addr_t *bd_addr, int codec)
 codec编码信息变化回调函数。
 

枚举

enum  hfp_hf_accept_call_action_type_t { HFP_HF_ACCEPT_CALL_ACTION_NONE = 0x00 , HFP_HF_ACCEPT_CALL_ACTION_HOLD = 0x01 , HFP_HF_ACCEPT_CALL_ACTION_FINISH = 0x02 }
 接受一路呼叫时对其他呼叫的操作策略。 更多...
 
enum  hfp_hf_call_state_t {
  HFP_HF_CALL_STATE_ACTIVE = 0 , HFP_HF_CALL_STATE_HELD , HFP_HF_CALL_STATE_DIALING , HFP_HF_CALL_STATE_ALERTING ,
  HFP_HF_CALL_STATE_INCOMING , HFP_HF_CALL_STATE_WAITING , HFP_HF_CALL_STATE_RESPONSE_HELD , HFP_HF_CALL_STATE_FINISHED
}
 电话呼叫状态类型。 更多...
 
enum  hfp_hf_codec_id_t { HFP_HF_CODEC_ID_CVSD = 0x01 , HFP_HF_CODEC_ID_MSBC }
 定义codec编码信息。 更多...
 

函数

int hfp_hf_connect (const bd_addr_t *bd_addr)
 建立与AG的SLC(service level connection)。
 
int hfp_hf_disconnect (const bd_addr_t *bd_addr)
 释放与AG的SLC(service level connection)。
 
int hfp_hf_connect_sco (const bd_addr_t *bd_addr)
 建立与AG的音频连接。
 
int hfp_hf_disconnect_sco (const bd_addr_t *bd_addr)
 断开与AG的音频连接。
 
int hfp_hf_get_device_connect_state (const bd_addr_t *bd_addr)
 通过设备地址查询设备hfp连接状态。
 
int hfp_hf_get_sco_connect_state (const bd_addr_t *bd_addr)
 通过设备地址查询设备hfp sco连接状态。
 
int hfp_hf_send_dtmf_tone (const bd_addr_t *bd_addr, unsigned char code)
 指示AG发送DTMF tone code。
 
int hfp_hf_open_voice_recognition (const bd_addr_t *bd_addr)
 指示AG打开语音识别功能。
 
int hfp_hf_close_voice_recognition (const bd_addr_t *bd_addr)
 指示AG关闭语音识别功能。
 
int hfp_hf_accept_incoming_call (const bd_addr_t *bd_addr, hfp_hf_accept_call_action_type_t action_type)
 接听呼入电话。
 
int hfp_hf_hold_active_call (const bd_addr_t *bd_addr)
 将当前通话状态是激活状态的通话保持。
 
int hfp_hf_reject_incoming_call (const bd_addr_t *bd_addr)
 拒接呼入电话。
 
int hfp_hf_finish_call (const bd_addr_t *bd_addr)
 结束通话。
 
int hfp_hf_start_dial (const bd_addr_t *bd_addr, const unsigned char *number, unsigned char len)
 发起主叫。
 
int hfp_hf_set_volume (const bd_addr_t *bd_addr, hfp_volume_type_t type, unsigned char volume)
 HF端发起音量调整。
 
int hfp_hf_register_callbacks (hfp_hf_callbacks_t *func)
 注册上层应用的回调。