bthf_client_interface_t 结构参考

bthf_client_interface_t 结构参考

#include < bt_hf_client.h >

数据字段

尺寸_t尺寸
bt_status_t (*初始化)( bthf_client_callbacks_t *callbacks)
bt_status_t (*连接)(bt_bdaddr_t *bd_addr)
bt_status_t (*断开)(bt_bdaddr_t *bd_addr)
bt_status_t (*连接音频 )( bt_bdaddr_t *bd_addr)
bt_status_t (* disconnect_audio )(bt_bdaddr_t *bd_addr)
bt_status_t (* start_voice_recognition )(无效)
bt_status_t (* stop_voice_recognition )(无效)
bt_status_t (* volume_control )( bthf_client_volume_type_t类型,int 卷)
bt_status_t (* dial )(const char *number)
bt_status_t (* dial_memory )(int location)
bt_status_t (* handle_call_action )( bthf_client_call_action_t动作,int idx)
bt_status_t (* query_current_calls )(无效)
bt_status_t (* query_current_operator_name )(void)
bt_status_t (*检索订阅者信息)(无效)
bt_status_t (* send_dtmf )(字符代码)
bt_status_t (* request_last_voice_tag_number )(无效)
空白(*清理)(无效)
bt_status_t (* send_at_cmd )(int cmd, int val1, int val2, const char *arg)

详细说明

代表标准 BT-HF 接口。

在文件bt_hf_client.h的第297行定义。

现场文件

无效(*清理)(无效)

关闭界面。

在文件bt_hf_client.h的第355行定义。

bt_status_t (* 连接)(bt_bdaddr_t *bd_addr)

连接到音频网关

在文件bt_hf_client.h的第307行定义。

bt_status_t (* connect_audio)(bt_bdaddr_t *bd_addr)

创建音频连接

在文件bt_hf_client.h的第313行定义。

bt_status_t (* dial)(const char *number)

如果号码为 NULL,则使用号码拨打电话 最后被叫号码被呼叫(又名重拨)

在文件bt_hf_client.h的第329行定义。

bt_status_t (* dial_memory)(int location)

使用按位置指定的号码拨打电话(快速拨号)

在文件bt_hf_client.h的第332行定义。

bt_status_t (* 断开连接)(bt_bdaddr_t *bd_addr)

断开与音频网关的连接

在文件bt_hf_client.h的第310行定义。

bt_status_t (* disconnect_audio)(bt_bdaddr_t *bd_addr)

关闭音频连接

在文件bt_hf_client.h的第316行定义。

bt_status_t (* handle_call_action)( bthf_client_call_action_t action, int idx)

执行指定的呼叫相关操作 idx 仅限于增强的呼叫控制相关操作

在文件bt_hf_client.h的第337行定义。

bt_status_t (* init)( bthf_client_callbacks_t *callbacks)

注册 BtHf 回调

在文件bt_hf_client.h的第304行定义。

bt_status_t (* query_current_calls)(void)

查询当前通话列表

在文件bt_hf_client.h的第340行定义。

bt_status_t (* query_current_operator_name)(void)

当前选中算子的查询名称

在文件bt_hf_client.h的第343行定义。

bt_status_t (* request_last_voice_tag_number)(无效)

向 AG 请求与最后录制的语音标签相对应的电话号码

在文件bt_hf_client.h的第352行定义。

bt_status_t (* retrieve_subscriber_info)(void)

检索订户信息

在文件bt_hf_client.h的第346行定义。

bt_status_t (* send_at_cmd)(int cmd, int val1, int val2, const char *arg)

发送 AT 命令。

在文件bt_hf_client.h的第358行定义。

bt_status_t (* send_dtmf)(字符码)

发送 DTMF 代码

在文件bt_hf_client.h的第349行定义。

size_t 大小

设置为 sizeof(BtHfClientInterface)

在文件bt_hf_client.h的第300行定义。

bt_status_t (* start_voice_recognition)(void)

开始语音识别

在文件bt_hf_client.h的第319行定义。

bt_status_t (* stop_voice_recognition)(void)

停止语音识别

在文件bt_hf_client.h的第322行定义。

bt_status_t (* volume_control)( bthf_client_volume_type_t type, int volume)

音量控制

在文件bt_hf_client.h的第325行定义。


此结构的文档是从以下文件生成的: