Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
HFP profile AG application callback. More...
#include <hfp_ag.h>
Data Fields | |
void(* | connected )(struct bt_hfp_ag *ag) |
HF AG connected callback to application. | |
void(* | disconnected )(struct bt_hfp_ag *ag) |
HF disconnected callback to application. | |
void(* | sco_connected )(struct bt_hfp_ag *ag, struct bt_conn *sco_conn) |
HF SCO/eSCO connected Callback. | |
void(* | sco_disconnected )(struct bt_hfp_ag *ag) |
HF SCO/eSCO disconnected Callback. | |
int(* | memory_dial )(struct bt_hfp_ag *ag, const char *location, char **number) |
HF memory dialing request Callback. | |
void(* | outgoing )(struct bt_hfp_ag *ag, const char *number) |
HF outgoing Callback. | |
void(* | incoming )(struct bt_hfp_ag *ag, const char *number) |
HF incoming Callback. | |
void(* | ringing )(struct bt_hfp_ag *ag, bool in_band) |
HF ringing Callback. | |
void(* | accept )(struct bt_hfp_ag *ag) |
HF call accept Callback. | |
void(* | reject )(struct bt_hfp_ag *ag) |
HF call reject Callback. | |
void(* | terminate )(struct bt_hfp_ag *ag) |
HF call terminate Callback. | |
void(* | codec )(struct bt_hfp_ag *ag, uint32_t ids) |
Supported codec Ids callback. | |
HFP profile AG application callback.
void(* bt_hfp_ag_cb::accept) (struct bt_hfp_ag *ag) |
HF call accept Callback.
If this callback is provided it will be called whenever the call is accepted.
ag | HFP AG object. |
void(* bt_hfp_ag_cb::codec) (struct bt_hfp_ag *ag, uint32_t ids) |
Supported codec Ids callback.
If this callback is provided it will be called whenever the supported codec ids are updated.
ag | HFP AG object. |
void(* bt_hfp_ag_cb::connected) (struct bt_hfp_ag *ag) |
HF AG connected callback to application.
If this callback is provided it will be called whenever the AG connection completes.
ag | HFP AG object. |
void(* bt_hfp_ag_cb::disconnected) (struct bt_hfp_ag *ag) |
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.
ag | HFP AG object. |
void(* bt_hfp_ag_cb::incoming) (struct bt_hfp_ag *ag, const char *number) |
HF incoming Callback.
If this callback is provided it will be called whenever a new call is incoming.
ag | HFP AG object. |
number | Incoming number |
int(* bt_hfp_ag_cb::memory_dial) (struct bt_hfp_ag *ag, const char *location, char **number) |
HF memory dialing request Callback.
If this callback is provided it will be called whenever a new call is requested with memory dialing from HFP unit. Get the phone number according to the given AG memory location.
ag | HFP AG object. |
location | AG memory location |
number | Dailing number |
void(* bt_hfp_ag_cb::outgoing) (struct bt_hfp_ag *ag, const char *number) |
HF outgoing Callback.
If this callback is provided it will be called whenever a new call is outgoing.
ag | HFP AG object. |
number | Dailing number |
void(* bt_hfp_ag_cb::reject) (struct bt_hfp_ag *ag) |
HF call reject Callback.
If this callback is provided it will be called whenever the call is rejected.
ag | HFP AG object. |
void(* bt_hfp_ag_cb::ringing) (struct bt_hfp_ag *ag, bool in_band) |
HF ringing Callback.
If this callback is provided it will be called whenever the call is in the ringing
ag | HFP AG object. |
in_bond | true - in-bond ringing, false - No in-bond ringing |
void(* bt_hfp_ag_cb::sco_connected) (struct bt_hfp_ag *ag, 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.
ag | HFP AG object. |
sco_conn | SCO/eSCO Connection object. |
void(* bt_hfp_ag_cb::sco_disconnected) (struct bt_hfp_ag *ag) |
HF SCO/eSCO disconnected Callback.
If this callback is provided it will be called whenever the SCO/eSCO connection gets disconnected.
ag | HFP AG object. |
sco_conn | SCO/eSCO Connection object. |
void(* bt_hfp_ag_cb::terminate) (struct bt_hfp_ag *ag) |
HF call terminate Callback.
If this callback is provided it will be called whenever the call is terminated.
ag | HFP AG object. |