Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
HFP profile application callback. More...
#include <hfp_hf.h>
Data Fields | |
void(* | connected )(struct bt_conn *conn) |
HF connected callback to application. | |
void(* | disconnected )(struct bt_conn *conn) |
HF disconnected callback to application. | |
void(* | sco_connected )(struct bt_conn *conn, struct bt_conn *sco_conn) |
HF SCO/eSCO connected Callback. | |
void(* | sco_disconnected )(struct bt_conn *sco_conn, uint8_t reason) |
HF SCO/eSCO disconnected Callback. | |
void(* | service )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | call )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | call_setup )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | call_held )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | signal )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | roam )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | battery )(struct bt_conn *conn, uint32_t value) |
HF indicator Callback. | |
void(* | ring_indication )(struct bt_conn *conn) |
HF incoming call Ring indication callback to application. | |
void(* | cmd_complete_cb )(struct bt_conn *conn, struct bt_hfp_hf_cmd_complete *cmd) |
HF notify command completed callback to application. | |
HFP profile application callback.
void(* bt_hfp_hf_cb::battery) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback battery service indicator value to the application
conn | Connection object. |
value | battery indicator value received from the AG. |
void(* bt_hfp_hf_cb::call) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback provides call indicator value to the application
conn | Connection object. |
value | call indicator value received from the AG. |
void(* bt_hfp_hf_cb::call_held) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback provides call held indicator value to the application
conn | Connection object. |
value | call held indicator value received from the AG. |
void(* bt_hfp_hf_cb::call_setup) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback provides call setup indicator value to the application
conn | Connection object. |
value | call setup indicator value received from the AG. |
void(* bt_hfp_hf_cb::cmd_complete_cb) (struct bt_conn *conn, struct bt_hfp_hf_cmd_complete *cmd) |
HF notify command completed callback to application.
The command sent from the application is notified about its status
conn | Connection object. |
cmd | structure contains status of the command including cme. |
void(* bt_hfp_hf_cb::connected) (struct bt_conn *conn) |
HF connected callback to application.
If this callback is provided it will be called whenever the connection completes.
conn | Connection object. |
void(* bt_hfp_hf_cb::disconnected) (struct bt_conn *conn) |
HF disconnected callback to application.
If this callback is provided it will be called whenever the connection gets disconnected, including when a connection gets rejected or cancelled or any error in SLC establishment.
conn | Connection object. |
void(* bt_hfp_hf_cb::ring_indication) (struct bt_conn *conn) |
HF incoming call Ring indication callback to application.
If this callback is provided it will be called whenever there is an incoming call.
conn | Connection object. |
void(* bt_hfp_hf_cb::roam) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback provides roaming indicator value to the application
conn | Connection object. |
value | roaming indicator value received from the AG. |
void(* bt_hfp_hf_cb::sco_connected) (struct bt_conn *conn, struct bt_conn *sco_conn) |
HF SCO/eSCO connected Callback.
If this callback is provided it will be called whenever the SCO/eSCO connection completes.
conn | Connection object. |
sco_conn | SCO/eSCO Connection object. |
void(* bt_hfp_hf_cb::sco_disconnected) (struct bt_conn *sco_conn, uint8_t reason) |
HF SCO/eSCO disconnected Callback.
If this callback is provided it will be called whenever the SCO/eSCO connection gets disconnected.
conn | Connection object. |
reason | BT_HCI_ERR_* reason for the disconnection. |
void(* bt_hfp_hf_cb::service) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback provides service indicator value to the application
conn | Connection object. |
value | service indicator value received from the AG. |
void(* bt_hfp_hf_cb::signal) (struct bt_conn *conn, uint32_t value) |
HF indicator Callback.
This callback provides signal indicator value to the application
conn | Connection object. |
value | signal indicator value received from the AG. |