11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HFP_AG_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_HFP_AG_H_
40#define BT_HFP_AG_CODEC_CVSD 0x01
41#define BT_HFP_AG_CODEC_MSBC 0x02
42#define BT_HFP_AG_CODEC_LC3_SWB 0x03
96 int (*
memory_dial)(
struct bt_hfp_ag *ag,
const char *location,
char **number);
106 void (*
outgoing)(
struct bt_hfp_ag *ag,
const char *number);
116 void (*
incoming)(
struct bt_hfp_ag *ag,
const char *number);
126 void (*
ringing)(
struct bt_hfp_ag *ag,
bool in_band);
Bluetooth subsystem core APIs.
int bt_hfp_ag_remote_terminate(struct bt_hfp_ag *ag)
Notify HFP Unit that the remote terminates the active/hold call.
int bt_hfp_ag_accept(struct bt_hfp_ag *ag)
Accept the incoming call.
bt_hfp_ag_indicator
Definition hfp_ag.h:28
int bt_hfp_ag_register(struct bt_hfp_ag_cb *cb)
Register HFP AG profile.
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_remote_reject(struct bt_hfp_ag *ag)
Notify HFP Unit that the remote rejects the call.
int bt_hfp_ag_outgoing(struct bt_hfp_ag *ag, const char *number)
Dial a call.
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_reject(struct bt_hfp_ag *ag)
Reject the incoming 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_disconnect(struct bt_hfp_ag *ag)
Disconnect the hfp ag session.
int bt_hfp_ag_terminate(struct bt_hfp_ag *ag)
Terminate the active/hold call.
int bt_hfp_ag_remote_ringing(struct bt_hfp_ag *ag)
Notify HFP Unit that the remote starts ringing.
@ BT_HFP_AG_SERVICE_IND
Definition hfp_ag.h:29
@ BT_HFP_AG_CALL_SETUP_IND
Definition hfp_ag.h:31
@ BT_HFP_AG_CALL_HELD_IND
Definition hfp_ag.h:32
@ BT_HFP_AG_SIGNAL_IND
Definition hfp_ag.h:33
@ BT_HFP_AG_BATTERY_IND
Definition hfp_ag.h:35
@ BT_HFP_AG_CALL_IND
Definition hfp_ag.h:30
@ BT_HFP_AG_ROAM_IND
Definition hfp_ag.h:34
@ BT_HFP_AG_IND_MAX
Definition hfp_ag.h:36
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
HFP profile AG application callback.
Definition hfp_ag.h:47
void(* connected)(struct bt_hfp_ag *ag)
HF AG connected callback to application.
Definition hfp_ag.h:55
void(* accept)(struct bt_hfp_ag *ag)
HF call accept Callback.
Definition hfp_ag.h:135
void(* codec)(struct bt_hfp_ag *ag, uint32_t ids)
Supported codec Ids callback.
Definition hfp_ag.h:162
void(* outgoing)(struct bt_hfp_ag *ag, const char *number)
HF outgoing Callback.
Definition hfp_ag.h:106
void(* reject)(struct bt_hfp_ag *ag)
HF call reject Callback.
Definition hfp_ag.h:144
void(* terminate)(struct bt_hfp_ag *ag)
HF call terminate Callback.
Definition hfp_ag.h:153
void(* sco_connected)(struct bt_hfp_ag *ag, struct bt_conn *sco_conn)
HF SCO/eSCO connected Callback.
Definition hfp_ag.h:73
void(* sco_disconnected)(struct bt_hfp_ag *ag)
HF SCO/eSCO disconnected Callback.
Definition hfp_ag.h:82
void(* ringing)(struct bt_hfp_ag *ag, bool in_band)
HF ringing Callback.
Definition hfp_ag.h:126
void(* incoming)(struct bt_hfp_ag *ag, const char *number)
HF incoming Callback.
Definition hfp_ag.h:116
int(* memory_dial)(struct bt_hfp_ag *ag, const char *location, char **number)
HF memory dialing request Callback.
Definition hfp_ag.h:96
void(* disconnected)(struct bt_hfp_ag *ag)
HF disconnected callback to application.
Definition hfp_ag.h:64