Zephyr API 3.6.99
Loading...
Searching...
No Matches

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.
 

Detailed Description

HFP profile AG application callback.

Field Documentation

◆ accept

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.

Parameters
agHFP AG object.

◆ codec

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.

Parameters
agHFP AG object.

◆ connected

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.

Parameters
agHFP AG object.

◆ disconnected

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.

Parameters
agHFP AG object.

◆ incoming

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.

Parameters
agHFP AG object.
numberIncoming number

◆ memory_dial

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.

Parameters
agHFP AG object.
locationAG memory location
numberDailing number
Returns
0 in case of success or negative value in case of error.

◆ outgoing

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.

Parameters
agHFP AG object.
numberDailing number

◆ reject

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.

Parameters
agHFP AG object.

◆ ringing

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

Parameters
agHFP AG object.
in_bondtrue - in-bond ringing, false - No in-bond ringing

◆ sco_connected

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.

Parameters
agHFP AG object.
sco_connSCO/eSCO Connection object.

◆ sco_disconnected

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.

Parameters
agHFP AG object.
sco_connSCO/eSCO Connection object.

◆ terminate

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.

Parameters
agHFP AG object.

The documentation for this struct was generated from the following file: