这个页面的 最新开发版本 可能比这个发布的 0.4.0 版本新。

免提配置文件

API 参考

group bt_hfp

Hands Free Profile (HFP)

Defines

HFP_HF_CMD_OK
HFP_HF_CMD_ERROR
HFP_HF_CMD_CME_ERROR
HFP_HF_CMD_UNKNOWN_ERROR

Enums

enum bt_hfp_hf_at_cmd

Values:

enumerator BT_HFP_HF_ATA
enumerator BT_HFP_HF_AT_CHUP

Functions

int bt_hfp_hf_register(struct bt_hfp_hf_cb *cb)

Register HFP HF profile.

Register Handsfree profile callbacks to monitor the state and get the required HFP details to display.

参数:

cb – callback structure.

返回:

0 in case of success or negative value in case of error.

int bt_hfp_hf_send_cmd(struct bt_conn *conn, enum bt_hfp_hf_at_cmd cmd)

Handsfree client Send AT.

Send specific AT commands to handsfree client profile.

参数:
  • conn – Connection object.

  • cmd – AT command to be sent.

返回:

0 in case of success or negative value in case of error.

struct bt_hfp_hf_cmd_complete

HFP HF Command completion field.

struct bt_hfp_hf_cb

HFP profile application callback.