Zephyr API 3.6.99
Loading...
Searching...
No Matches
hfp_ag.h File Reference

Handsfree Profile Audio Gateway handling. More...

Go to the source code of this file.

Data Structures

struct  bt_hfp_ag_cb
 HFP profile AG application callback. More...
 

Macros

#define BT_HFP_AG_CODEC_CVSD   0x01
 
#define BT_HFP_AG_CODEC_MSBC   0x02
 
#define BT_HFP_AG_CODEC_LC3_SWB   0x03
 

Enumerations

enum  bt_hfp_ag_indicator {
  BT_HFP_AG_SERVICE_IND = 0 , BT_HFP_AG_CALL_IND = 1 , BT_HFP_AG_CALL_SETUP_IND = 2 , BT_HFP_AG_CALL_HELD_IND = 3 ,
  BT_HFP_AG_SIGNAL_IND = 4 , BT_HFP_AG_ROAM_IND = 5 , BT_HFP_AG_BATTERY_IND = 6 , BT_HFP_AG_IND_MAX
}
 

Functions

int bt_hfp_ag_register (struct bt_hfp_ag_cb *cb)
 Register HFP AG profile.
 
int bt_hfp_ag_connect (struct bt_conn *conn, struct bt_hfp_ag **ag, uint8_t channel)
 Create the hfp ag session.
 
int bt_hfp_ag_disconnect (struct bt_hfp_ag *ag)
 Disconnect the hfp ag session.
 
int bt_hfp_ag_remote_incoming (struct bt_hfp_ag *ag, const char *number)
 Notify HFP Unit of an incoming call.
 
int bt_hfp_ag_reject (struct bt_hfp_ag *ag)
 Reject the incoming call.
 
int bt_hfp_ag_accept (struct bt_hfp_ag *ag)
 Accept the incoming call.
 
int bt_hfp_ag_terminate (struct bt_hfp_ag *ag)
 Terminate the active/hold call.
 
int bt_hfp_ag_outgoing (struct bt_hfp_ag *ag, const char *number)
 Dial a call.
 
int bt_hfp_ag_remote_ringing (struct bt_hfp_ag *ag)
 Notify HFP Unit that the remote starts ringing.
 
int bt_hfp_ag_remote_reject (struct bt_hfp_ag *ag)
 Notify HFP Unit that the remote rejects the call.
 
int bt_hfp_ag_remote_accept (struct bt_hfp_ag *ag)
 Notify HFP Unit that the remote accepts the call.
 
int bt_hfp_ag_remote_terminate (struct bt_hfp_ag *ag)
 Notify HFP Unit that the remote terminates the active/hold call.
 

Detailed Description

Handsfree Profile Audio Gateway handling.