10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HFP_HF_H_
11#define ZEPHYR_INCLUDE_BLUETOOTH_HFP_HF_H_
27#define BT_HFP_HF_CODEC_CVSD 0x01
28#define BT_HFP_HF_CODEC_MSBC 0x02
29#define BT_HFP_HF_CODEC_LC3_SWB 0x03
45 void (*
connected)(
struct bt_conn *conn,
struct bt_hfp_hf *hf);
91 void (*
outgoing)(
struct bt_hfp_hf *hf,
struct bt_hfp_hf_call *call);
108 void (*
incoming)(
struct bt_hfp_hf *hf,
struct bt_hfp_hf_call *call);
124 void (*
accept)(
struct bt_hfp_hf_call *call);
132 void (*
reject)(
struct bt_hfp_hf_call *call);
147 void (*
held)(
struct bt_hfp_hf_call *call);
194 void (*
dialing)(
struct bt_hfp_hf *hf,
int err);
207 void (*
clip)(
struct bt_hfp_hf_call *call,
char *number,
uint8_t type);
258 void (*
operator)(
struct bt_hfp_hf *hf,
uint8_t mode,
uint8_t format,
char *
operator);
281 void (*codec_negotiate)(
struct bt_hfp_hf *hf,
uint8_t id);
375 uint8_t operation,
char *text);
Bluetooth subsystem core APIs.
int bt_hfp_hf_join_conversation(struct bt_hfp_hf *hf)
Handsfree HF add a held call to the conversation.
int bt_hfp_hf_vgm(struct bt_hfp_hf *hf, uint8_t gain)
Handsfree HF report Gain of Microphone (VGM)
int bt_hfp_hf_release_all_held(struct bt_hfp_hf *hf)
Handsfree HF release all held calls.
int bt_hfp_hf_vgs(struct bt_hfp_hf *hf, uint8_t gain)
Handsfree HF report Gain of Speaker (VGS)
int bt_hfp_hf_release_specified_call(struct bt_hfp_hf_call *call)
Handsfree HF release call with specified index.
int bt_hfp_hf_explicit_call_transfer(struct bt_hfp_hf *hf)
Handsfree HF explicit call transfer.
int bt_hfp_hf_register(struct bt_hfp_hf_cb *cb)
Register HFP HF profile.
int bt_hfp_hf_battery(struct bt_hfp_hf *hf, uint8_t level)
Handsfree HF remaining battery level.
int bt_hfp_hf_connect(struct bt_conn *conn, struct bt_hfp_hf **hf, uint8_t channel)
Initiate the service level connection establishment procedure.
int bt_hfp_hf_select_codec(struct bt_hfp_hf *hf, uint8_t codec_id)
Handsfree HF set selected codec id.
int bt_hfp_hf_release_active_accept_other(struct bt_hfp_hf *hf)
Handsfree HF release all active calls and accept other call.
int bt_hfp_hf_call_waiting_notify(struct bt_hfp_hf *hf, bool enable)
Handsfree HF enable/disable call waiting notification.
int bt_hfp_hf_ready_to_accept_audio(struct bt_hfp_hf *hf)
Handsfree HF indicate that the HF is ready to accept audio.
int bt_hfp_hf_hold_active_accept_other(struct bt_hfp_hf *hf)
Handsfree HF hold all active calls and accept other call.
int bt_hfp_hf_hold_incoming(struct bt_hfp_hf_call *call)
Handsfree HF put the incoming call on hold.
int bt_hfp_hf_accept(struct bt_hfp_hf_call *call)
Handsfree HF accept the incoming call.
int bt_hfp_hf_cli(struct bt_hfp_hf *hf, bool enable)
Handsfree HF enable/disable Calling Line Identification (CLI) Notification.
int bt_hfp_hf_transmit_dtmf_code(struct bt_hfp_hf_call *call, char code)
Handsfree HF Transmit A specific DTMF Code.
int bt_hfp_hf_query_respond_hold_status(struct bt_hfp_hf *hf)
Handsfree HF query respond and hold status of AG.
int bt_hfp_hf_set_udub(struct bt_hfp_hf *hf)
Handsfree HF set User Determined User Busy (UDUB) for a waiting call.
int bt_hfp_hf_turn_off_ecnr(struct bt_hfp_hf *hf)
Handsfree HF turns off AG's EC and NR.
hfp_hf_ag_indicators
Definition hfp_hf.h:901
int bt_hfp_hf_set_codecs(struct bt_hfp_hf *hf, uint8_t codec_ids)
Handsfree HF set supported codec ids.
int bt_hfp_hf_request_phone_number(struct bt_hfp_hf *hf)
Handsfree HF attach a phone number for a voice tag.
int bt_hfp_hf_redial(struct bt_hfp_hf *hf)
Handsfree HF redial last number.
int bt_hfp_hf_get_operator(struct bt_hfp_hf *hf)
Handsfree HF requests currently selected operator.
int bt_hfp_hf_enhanced_safety(struct bt_hfp_hf *hf, bool enable)
Handsfree HF enable/disable enhanced safety.
int bt_hfp_hf_indicator_status(struct bt_hfp_hf *hf, uint8_t status)
Handsfree HF set AG indicator activated/deactivated status.
int bt_hfp_hf_memory_dial(struct bt_hfp_hf *hf, const char *location)
Handsfree HF memory dialing call.
int bt_hfp_hf_terminate(struct bt_hfp_hf_call *call)
Handsfree HF terminate the incoming call.
int bt_hfp_hf_private_consultation_mode(struct bt_hfp_hf_call *call)
Handsfree HF request private consultation mode with specified call.
int bt_hfp_hf_reject(struct bt_hfp_hf_call *call)
Handsfree HF reject the incoming call.
int bt_hfp_hf_number_call(struct bt_hfp_hf *hf, const char *number)
Handsfree HF phone number call.
int bt_hfp_hf_audio_connect(struct bt_hfp_hf *hf)
Handsfree HF setup audio connection.
int bt_hfp_hf_query_subscriber(struct bt_hfp_hf *hf)
Handsfree HF Query Subscriber Number Information.
int bt_hfp_hf_voice_recognition(struct bt_hfp_hf *hf, bool activate)
Handsfree HF enable/disable the voice recognition function.
int bt_hfp_hf_disconnect(struct bt_hfp_hf *hf)
Release the service level connection.
@ HF_BATTERY_IND
Definition hfp_hf.h:908
@ HF_CALL_SETUP_IND
Definition hfp_hf.h:904
@ HF_ROAM_IND
Definition hfp_hf.h:907
@ HF_SIGNAL_IND
Definition hfp_hf.h:906
@ HF_CALL_HELD_IND
Definition hfp_hf.h:905
@ HF_CALL_IND
Definition hfp_hf.h:903
@ HF_SERVICE_IND
Definition hfp_hf.h:902
state
Definition parser_state.h:29
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
HFP profile application callback.
Definition hfp_hf.h:36
void(* voice_recognition)(struct bt_hfp_hf *hf, bool activate)
Voice recognition activation/deactivation callback.
Definition hfp_hf.h:321
void(* ecnr_turn_off)(struct bt_hfp_hf *hf, int err)
HF ECNR turns off callback.
Definition hfp_hf.h:292
void(* roam)(struct bt_hfp_hf *hf, uint32_t value)
HF indicator Callback.
Definition hfp_hf.h:170
void(* battery)(struct bt_hfp_hf *hf, uint32_t value)
HF indicator Callback.
Definition hfp_hf.h:178
void(* textual_representation)(struct bt_hfp_hf *hf, char *id, uint8_t type, uint8_t operation, char *text)
Textual representation callback.
Definition hfp_hf.h:374
void(* ring_indication)(struct bt_hfp_hf_call *call)
HF incoming call Ring indication callback to application.
Definition hfp_hf.h:186
void(* call_waiting)(struct bt_hfp_hf_call *call, char *number, uint8_t type)
HF call waiting notification callback to application.
Definition hfp_hf.h:307
void(* vre_state)(struct bt_hfp_hf *hf, uint8_t state)
Voice recognition engine state callback.
Definition hfp_hf.h:338
void(* vgs)(struct bt_hfp_hf *hf, uint8_t gain)
HF speaker gain notification callback to application.
Definition hfp_hf.h:231
void(* accept)(struct bt_hfp_hf_call *call)
HF call accept Callback.
Definition hfp_hf.h:124
void(* sco_disconnected)(struct bt_conn *sco_conn, uint8_t reason)
HF SCO/eSCO disconnected Callback.
Definition hfp_hf.h:74
void(* outgoing)(struct bt_hfp_hf *hf, struct bt_hfp_hf_call *call)
HF call outgoing Callback.
Definition hfp_hf.h:91
void(* retrieve)(struct bt_hfp_hf_call *call)
HF call retrieve Callback.
Definition hfp_hf.h:154
void(* vgm)(struct bt_hfp_hf *hf, uint8_t gain)
HF microphone gain notification callback to application.
Definition hfp_hf.h:219
void(* incoming)(struct bt_hfp_hf *hf, struct bt_hfp_hf_call *call)
HF call incoming Callback.
Definition hfp_hf.h:108
void(* connected)(struct bt_conn *conn, struct bt_hfp_hf *hf)
HF connected callback to application.
Definition hfp_hf.h:45
void(* terminate)(struct bt_hfp_hf_call *call)
HF call terminate Callback.
Definition hfp_hf.h:140
void(* sco_connected)(struct bt_hfp_hf *hf, struct bt_conn *sco_conn)
HF SCO/eSCO connected Callback.
Definition hfp_hf.h:65
void(* incoming_held)(struct bt_hfp_hf_call *call)
HF incoming call on hold Callback.
Definition hfp_hf.h:116
void(* dialing)(struct bt_hfp_hf *hf, int err)
HF call dialing Callback.
Definition hfp_hf.h:194
void(* service)(struct bt_hfp_hf *hf, uint32_t value)
HF indicator Callback.
Definition hfp_hf.h:82
void(* reject)(struct bt_hfp_hf_call *call)
HF call reject Callback.
Definition hfp_hf.h:132
void(* clip)(struct bt_hfp_hf_call *call, char *number, uint8_t type)
HF calling line identification notification callback to application.
Definition hfp_hf.h:207
void(* request_phone_number)(struct bt_hfp_hf *hf, const char *number)
Request phone number callback.
Definition hfp_hf.h:385
void(* inband_ring)(struct bt_hfp_hf *hf, bool inband)
HF in-band ring tone notification callback to application.
Definition hfp_hf.h:242
void(* remote_ringing)(struct bt_hfp_hf_call *call)
HF call outgoing call is ringing Callback.
Definition hfp_hf.h:99
void(* signal)(struct bt_hfp_hf *hf, uint32_t value)
HF indicator Callback.
Definition hfp_hf.h:162
void(* subscriber_number)(struct bt_hfp_hf *hf, const char *number, uint8_t type, uint8_t service)
Query subscriber number callback.
Definition hfp_hf.h:417
void(* held)(struct bt_hfp_hf_call *call)
HF call held Callback.
Definition hfp_hf.h:147
void(* disconnected)(struct bt_hfp_hf *hf)
HF disconnected callback to application.
Definition hfp_hf.h:56