Hands Free Profile (HFP)¶
API Reference¶
-
group
bt_hfp
Hands Free Profile (HFP)
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.
- Return
0 in case of success or negative value in case of error.
- Parameters
cb
: callback structure.
-
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.
- Return
0 in case of success or negative value in case of error.
- Parameters
conn
: Connection object.cmd
: AT command to be sent.
-
struct
bt_hfp_hf_cmd_complete
¶ - #include <hfp_hf.h>
HFP HF Command completion field.
-
struct
bt_hfp_hf_cb
¶ - #include <hfp_hf.h>
HFP profile application callback.
-
int