Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Hands Free Profile (HFP) More...
Data Structures | |
struct | bt_hfp_hf_cmd_complete |
HFP HF Command completion field. More... | |
struct | bt_hfp_hf_cb |
HFP profile application callback. More... | |
Macros | |
#define | HFP_HF_CMD_OK 0 |
#define | HFP_HF_CMD_ERROR 1 |
#define | HFP_HF_CMD_CME_ERROR 2 |
#define | HFP_HF_CMD_UNKNOWN_ERROR 4 |
Enumerations | |
enum | bt_hfp_hf_at_cmd { BT_HFP_HF_ATA , BT_HFP_HF_AT_CHUP } |
Functions | |
int | bt_hfp_hf_register (struct bt_hfp_hf_cb *cb) |
Register HFP HF profile. | |
int | bt_hfp_hf_send_cmd (struct bt_conn *conn, enum bt_hfp_hf_at_cmd cmd) |
Handsfree client Send AT. | |
Hands Free Profile (HFP)
#define HFP_HF_CMD_CME_ERROR 2 |
#include <zephyr/bluetooth/classic/hfp_hf.h>
#define HFP_HF_CMD_ERROR 1 |
#include <zephyr/bluetooth/classic/hfp_hf.h>
#define HFP_HF_CMD_OK 0 |
#include <zephyr/bluetooth/classic/hfp_hf.h>
#define HFP_HF_CMD_UNKNOWN_ERROR 4 |
#include <zephyr/bluetooth/classic/hfp_hf.h>
enum bt_hfp_hf_at_cmd |
#include <zephyr/bluetooth/classic/hfp_hf.h>
Enumerator | |
---|---|
BT_HFP_HF_ATA | |
BT_HFP_HF_AT_CHUP |
int bt_hfp_hf_register | ( | struct bt_hfp_hf_cb * | cb | ) |
#include <zephyr/bluetooth/classic/hfp_hf.h>
Register HFP HF profile.
Register Handsfree profile callbacks to monitor the state and get the required HFP details to display.
cb | callback structure. |
int bt_hfp_hf_send_cmd | ( | struct bt_conn * | conn, |
enum bt_hfp_hf_at_cmd | cmd | ||
) |
#include <zephyr/bluetooth/classic/hfp_hf.h>
Handsfree client Send AT.
Send specific AT commands to handsfree client profile.
conn | Connection object. |
cmd | AT command to be sent. |