Bluetooth Audio PROXY Functions

[English]

BT_AUDIO_PROXY API Brief

Application

Brief

bt_audio_proxy_alloc_ctx()

Allocate audio proxy context

bt_audio_proxy_free_ctx()

Free audio proxy context

bt_audio_proxy_find_ctx_by_handle()

Find audio proxy context by handle

bt_audio_proxy_find_ctx_by_addr()

Find audio proxy context by address

bt_audio_proxy_find_ctx_on_race_status()

Fine audio proxy context of race status

bt_audio_proxy_a2dp_race_is_onging()

Check that the A2DP race is ongoing

bt_audio_proxy_media_profile_discon_handle()

Media profile disconnection handler for disconnection event

bt_audio_proxy_media_profile_conn_handle()

Media profile connection handler for connection event

bt_audio_proxy_execute_hfp_stream_start()

start hfp stream after audio connection is established

bt_audio_proxy_execute_hfp_stream_stop()

stop hfp stream after audio connection is released

bt_audio_proxy_execute_a2dp_stream_start()

start a2dp stream after audio connection is established

bt_audio_proxy_execute_a2dp_stream_stop()

stop a2dp stream after audio connection is released

bt_audio_proxy_sync_profile_TSS_is_ongoing()

Check that the tws switch or sync profile is ongoing

bt_audio_proxy_update_race_status()

Update and process race status

bt_audio_proxy_any_call_is_exist()

Check that any call is existed

bt_audio_proxy_update_hfcall_active()

Update and process hfcall active status

bt_audio_proxy_tx_profile_cmd()

Send profile command to paired earbud

bt_audio_proxy_tx_conn_cmd()

Send profile connection or disconnection command to paired earbud

bt_audio_proxy_vol_set()

Set audio volume level

bt_audio_proxy_vol_up()

Turn up the audio volume

bt_audio_proxy_vol_down()

Turn down the audio volume

bt_audio_proxy_get_dft_vol()

Get default audio volume

bt_audio_proxy_set_mute()

Set DSP mute mode

bt_audio_proxy_get_mute()

Get DSP Mute mode

bt_audio_proxy_avrcp_play_pause()

Toggle play or pause audio by profile command

bt_audio_proxy_avrcp_next()

play next music by profile command

bt_audio_proxy_avrcp_previous()

play previous music by profile command

bt_audio_proxy_avrcp_fast_forward_start()

Start fast forward music by profile command

bt_audio_proxy_avrcp_fast_forward_stop()

Stop fast forward music by profile command

bt_audio_proxy_avtive_dev_set_delay_rpt()

send a2dp delay report command

bt_audio_proxy_avrcp_rewind_start()

Start rewind music by profile command

bt_audio_proxy_avrcp_rewind_stop()

Stop rewind music by profile command

bt_audio_proxy_redial_last_number()

redial last number by profile command

bt_audio_proxy_dial_number()

dial number by profile command

bt_audio_proxy_call_terminal()

terminate call by profile command

bt_audio_proxy_call_accept()

accept call by profile command

bt_audio_proxy_call_reject()

reject call by profile command

bt_audio_proxy_hf_bat_report()

Send the HFP battery level by profile command

bt_audio_proxy_hf_vr_enable()

Enable/disable voice recognition by profile command

bt_audio_proxy_hf_setup_audio_conn()

Setup HFP audio connection by profile command

bt_audio_proxy_hf_disc_audio_conn()

Disconnect HFP audio connection by profile command

bt_audio_proxy_connect_a2dp()

Connect A2DP by profile command

bt_audio_proxy_disconnect_a2dp()

Disconnect A2DP by profile command

bt_audio_proxy_connect_avrcp()

Connect AVRCP by profile command

bt_audio_proxy_disconnect_avrcp()

Disconnect AVRCP by profile command

bt_audio_proxy_connect_hfp()

Connect HFP by profile command

bt_audio_proxy_disconnect_hfp()

Disconnect HFP by profile command

bt_audio_proxy_get_avrcp_play_status()

Get the AVRCP play status of proxy context

bt_audio_proxy_init()

Initialize aduio proxy

bt_audio_proxy_get_a2dp_active_handle()

Get A2DP active connection handle

bt_audio_proxy_get_hfp_active_handle()

Get HFP active connection handle

bt_audio_is_a2dp_streaming()

Check that a2dp is streaming

bt_audio_is_sco_on()

Check that SCO is turn on

bt_audio_proxy_get_ctx()

Get audio proxy context

bt_audio_proxy_get_hf_avtive_codec_type()

Get the active HFP codec type

bt_audio_avrcp_ct_cmd_state_ntf()

Notification AVRCP command state

bt_audio_proxy_get_last_hf_call_setup()

Get HFP call setup status

bt_audio_proxy_sco_exist()

Check that SCO exists

BT_AUDIO_PROXY API Reference

Header File

Functions

bt_audio_proxy_ctx_t *bt_audio_proxy_alloc_ctx(uint16_t handle, btif_bd_addr_t addr)

Allocate audio proxy context.

Alloc audio proxy context

参数:
  • handle[in] connection handle

  • addr[in] connection address of type btif_bd_addr_t

返回值:

NULL – Alloc failed

返回:

Pointer of the audio proxy context

btif_ret_t bt_audio_proxy_free_ctx(bt_audio_proxy_ctx_t *p_audio_proxy_ctx)

Free audio proxy context.

Free audio proxy context

参数:

p_audio_proxy_ctx[in] pointer to an audio proxy context of type bt_audio_proxy_ctx_t

返回值:
  • 0 – success

  • other – fail

返回:

result

bt_audio_proxy_ctx_t *bt_audio_proxy_find_ctx_by_handle(uint16_t handle)

Find audio proxy context by handle.

Find audio proxy context by acl handle

参数:

handle[in] connection handle

返回值:

NULL – find failed

返回:

Pointer of the audio proxy context

bt_audio_proxy_ctx_t *bt_audio_proxy_find_ctx_by_addr(btif_bd_addr_t *p_addr)

Find audio proxy context by address.

Find audio proxy context by remote device address

参数:

p_addr[in] pointer to a remote device address of type btif_bd_addr_t

返回值:

NULL – Find failed

返回:

Pointer of the audio proxy context

bt_audio_proxy_ctx_t *bt_audio_proxy_find_ctx_on_race_status(void)

Fine audio proxy context of race status.

Find audio proxy context which on the race status

返回值:

NULL – Find failed

返回:

Pointer of the audio proxy context

bool bt_audio_proxy_a2dp_race_is_onging(uint16_t handle)

Check that the A2DP race is ongoing.

Check that the race state of the proxy context with handle [handle] is ongoing.

参数:

handle[in] connection handle

返回:

true: a2dp race ongoing

void bt_audio_proxy_media_profile_discon_handle(bt_audio_proxy_ctx_t *p_proxy_ctx)

Media profile disconnection handler for disconnection event.

avrcp or a2dp disconnected handler

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

void bt_audio_proxy_media_profile_conn_handle(bt_audio_proxy_ctx_t *p_proxy_ctx)

Media profile connection handler for connection event.

avrcp or a2dp connected handler

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

void bt_audio_proxy_execute_hfp_stream_start(bt_audio_proxy_ctx_t *p_proxy_ctx)

start hfp stream after audio connection is established

hfp stream start handler

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

void bt_audio_proxy_execute_hfp_stream_stop(bt_audio_proxy_ctx_t *p_proxy_ctx)

stop hfp stream after audio connection is released

hfp stream stop handler

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

void bt_audio_proxy_execute_a2dp_stream_start(bt_audio_proxy_ctx_t *p_proxy_ctx)

start a2dp stream after audio connection is established

a2dp stream start handler

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

void bt_audio_proxy_execute_a2dp_stream_stop(bt_audio_proxy_ctx_t *p_proxy_ctx)

stop a2dp stream after audio connection is released

a2dp stream stop handler

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

bool bt_audio_proxy_sync_profile_TSS_is_ongoing(bt_audio_proxy_ctx_t *p_proxy_ctx)

Check that the tws switch or sync profile is ongoing.

The device execute procedure of the tws switch or sync profile

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回值:
  • true – ongoing

  • false – inactive

返回:

result

btif_ret_t bt_audio_proxy_update_race_status(bt_audio_proxy_ctx_t *p_proxy_ctx, bt_audio_race_status status)

Update and process race status.

Update device race status

参数:
  • p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

  • status[in] race status of type bt_audio_race_status

返回值:
  • 0 – success

  • other – fail

返回:

result

bool bt_audio_proxy_any_call_is_exist(void)

Check that any call is existed.

Any call is exist

返回值:
  • true – existed

  • false – not existed

返回:

results

void bt_audio_proxy_update_hfcall_active(bt_audio_proxy_ctx_t *p_proxy_ctx)

Update and process hfcall active status.

Update hfcall active

参数:

p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

返回:

N/A

btif_ret_t bt_audio_proxy_tx_profile_cmd(bt_audio_proxy_ctx_t *p_proxy_ctx, bt_audio_proxy_cmd_id_t cmd, const uint8_t *p_data, uint16_t len)

Send profile command to paired earbud.

Send profile(HFP.AVRCP A2dp) command

参数:
  • p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

  • cmd[in] profile command of type bt_audio_proxy_cmd_id_t

  • p_data[in] pointer to profile command information

  • len[in] length of profile command information

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_tx_conn_cmd(btif_bd_addr_t addr, bt_audio_proxy_cmd_id_t cmd)

Send profile connection or disconnection command to paired earbud.

Send profile connection or disconnection command

参数:
  • addr[in] pointer to address of type btif_bd_addr_t

  • cmd[in] profile command of type bt_audio_proxy_cmd_id_t

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_vol_set(audio_stream_type_t type, uint16_t handle, uint8_t vol_level)

Set audio volume level.

Set volume

参数:
  • type[in] stream type of type audio_stream_type_t

  • handle[in] connection handle

  • vol_level[in] audio volume level, range 0 to 15

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_vol_up(uint8_t step_size)

Turn up the audio volume.

set (a2dp or hfp) volume up according to the current context(a2dp or hfp)

参数:

step_size[in] : The step of volume level up

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_vol_down(uint8_t step_size)

Turn down the audio volume.

set (a2dp or hfp)volume down according to the current context(a2dp or hfp)

参数:

step_size[in] : The step of the volume level down

返回值:
  • 0 – success

  • other – fail

返回:

result

uint8_t bt_audio_proxy_get_dft_vol(bt_audio_proxy_ctx_t *p_proxy_ctx, audio_stream_type_t stream_type)

Get default audio volume.

Get the default audio volume for stream type [stream_type] in the proxy context [p_proxy_ctx].

参数:
  • p_proxy_ctx[in] pointer to a proxy context of type bt_audio_proxy_ctx_t

  • stream_type[in] stream type of type audio_stream_type_t

返回:

audio volume, range 0 to 15.

btif_ret_t bt_audio_proxy_set_mute(audio_stream_type_t type, bool mute_state)

Set DSP mute mode.

Set DSP mute mode

参数:
  • type[in] stream type of type audio_stream_type_t

  • mute_state[in] mute state. true: MUTE, false:UNMUTE

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_get_mute(audio_stream_type_t type, bool *p_mute_state)

Get DSP Mute mode.

Get DSP Mute mode

参数:
  • type[in] stream type of type audio_stream_type_t

  • p_mute_state[in] pointer to mute state. true: MUTE, false:UNMUTE

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_play_pause(void)

Toggle play or pause audio by profile command.

Play or pause music

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_next(void)

play next music by profile command.

send avrcp next command

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_previous(void)

play previous music by profile command.

Send avrcp privious command

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_fast_forward_start(void)

Start fast forward music by profile command.

Send fast forward start command

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_fast_forward_stop(void)

Stop fast forward music by profile command.

Send fast forward stop command

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avtive_dev_set_delay_rpt(uint16_t delay_rpt_100us)

send a2dp delay report command.

Send a2dp delay report command

参数:

delay_rpt_100us[in] delay report value(uint:100us)

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_rewind_start(void)

Start rewind music by profile command.

Send rewind start command

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_avrcp_rewind_stop(void)

Stop rewind music by profile command.

Send rewind stop command

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_redial_last_number(uint16_t handle)

redial last number by profile command.

send hfp redial last bumber command

参数:

handle[in] hfp connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_dial_number(uint16_t handle, uint8_t *p_data, uint8_t len)

dial number by profile command.

send HFP dial number command

参数:
  • handle[in] hfp connection handle

  • p_data[in] pointer to phone number string of type ASCII

  • len[in] length of phone number string

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_call_terminal(uint16_t handle)

terminate call by profile command.

Send call terminal command

参数:

handle[in] hfp connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_call_accept(uint16_t handle)

accept call by profile command.

Send call accept command

参数:

handle[in] hfp connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_call_reject(uint16_t handle)

reject call by profile command.

Send call reject command

参数:

handle[in] hfp connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_hf_bat_report(uint16_t handle, uint8_t bat_level)

Send the HFP battery level by profile command.

Send Battery level accrod hfp

参数:
  • handle[in] hfp connection handle

  • bat_level[in] battery level

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_hf_vr_enable(uint16_t handle, uint8_t enable)

Enable/disable voice recognition by profile command.

Enable or Disable Voice Recognition Activation

参数:
  • handle[in] hfp connection handle

  • enable[in] enable state. 0 is disable, 1 is enable.

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_hf_setup_audio_conn(uint16_t handle)

Setup HFP audio connection by profile command.

Setup Audio connection

参数:

handle[in] hfp connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_hf_disc_audio_conn(uint16_t handle)

Disconnect HFP audio connection by profile command.

Disconnect Audio connection

参数:

handle[in] hfp connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_connect_a2dp(btif_bd_addr_t *p_addr)

Connect A2DP by profile command.

Connect A2dp API

参数:

p_addr[in] pointer to mobile phone address of type btif_bd_addr_t.

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_disconnect_a2dp(uint16_t handle)

Disconnect A2DP by profile command.

Disconnect A2DP API

参数:

handle[in] connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_connect_avrcp(btif_bd_addr_t *p_addr)

Connect AVRCP by profile command.

Connect AVRCP API

参数:

p_addr[in] pointer to mobile phone address of type btif_bd_addr_t.

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_disconnect_avrcp(uint16_t handle)

Disconnect AVRCP by profile command.

Disconnect AVRCP API

参数:

handle[in] connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_connect_hfp(btif_bd_addr_t *p_addr)

Connect HFP by profile command.

Connect HFP API

参数:

p_addr[in] pointer to mobile phone address of type btif_bd_addr_t.

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_disconnect_hfp(uint16_t handle)

Disconnect HFP by profile command.

Disconnect HFP API

参数:

handle[in] connection handle

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_get_avrcp_play_status(uint16_t handle, btif_avrcp_play_sts_t *p_play_status)

Get the AVRCP play status of proxy context.

Get AVRCP Play status API

参数:
  • handle[in] connection handle

  • p_play_status[in] pointer to play status of type btif_avrcp_play_sts_t

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t bt_audio_proxy_init(bool aac_enable)

Initialize aduio proxy.

bt aduio proxy initial

参数:

aac_enable[in] AAC enable status. true is enable, false is disable.

返回值:
  • 0 – success

  • other – fail

返回:

result

uint16_t bt_audio_proxy_get_a2dp_active_handle(void)

Get A2DP active connection handle.

Get the connection handle from the current a2dp proxy context.

返回:

active connection handle

uint16_t bt_audio_proxy_get_hfp_active_handle(void)

Get HFP active connection handle.

Get the connection handle from the last hfp proxy context.

返回:

active connection handle

bool bt_audio_is_a2dp_streaming(void)

Check that a2dp is streaming.

Check that the state of current a2dp proxy context is streaming.

返回值:
  • true – streaming

  • false – no streaming

返回:

result

bool bt_audio_is_sco_on(void)

Check that SCO is turn on.

Check that the SCO state of last hfp context is turn on.

返回值:
  • true – no

  • false – off

返回:

result

bt_audio_proxy_ctx_t *bt_audio_proxy_get_ctx(uint16_t handle)

Get audio proxy context.

Get the audio proxy context with connection handle [handle].

参数:

handle[in] connection handle

返回:

pointer to connection handle of type bt_audio_proxy_ctx_t.

uint8_t bt_audio_proxy_get_hf_avtive_codec_type(void)

Get the active HFP codec type.

Get HF active codec type

返回:

SCO codec type

void bt_audio_avrcp_ct_cmd_state_ntf(btif_avrcp_cmd_sts_t cmd_state, btif_avrcp_oper_id_t op_code)

Notification AVRCP command state.

Notification AVRCP command state

参数:
  • cmd_state[in] command state of type btif_avrcp_cmd_sts_t

  • op_code[in] opcode of type btif_avrcp_oper_id_t

返回:

N/A

btif_hfp_callsetup_t bt_audio_proxy_get_last_hf_call_setup(void)

Get HFP call setup status.

Get the HFP call setup status from the last HFP proxy context.

返回:

HFP call setup type of type btif_hfp_callsetup_t

bool bt_audio_proxy_sco_exist(uint16_t handle)

Check that SCO exists.

Check that the SCO of hfp context with the connection handle [handle] exists.

参数:

handle[in] connection handle

返回值:
  • true – exist

  • false – not exist BT_AUDIO_PROXY_H EOF

返回:

result

Structures

struct _proxy_sync_cmd_t

proxy sync command structure definition.

struct bt_audio_tws_exe_cmd_info_t

TWS execute command information structure definition.

struct bt_audio_hfp_ctrl_t

HFP control structure definition.

struct bt_audio_avrcp_ctrl_t

AVRCP control structure definition.

struct bt_audio_a2dp_codec_info_t

A2DP codec information structure definition.

struct bt_audio_a2dp_ctrl_t

A2DP control structure definition.

Public Members

btif_a2dp_cp_status_t cp_status

context protection

struct bt_audio_proxy_ctx_t

Audio proxy context structure definition.

Macros

Maximum number of links for audio proxy

BT_AUDIO_ASSERT
BT_AUDIO_LOG_ERR
BT_AUDIO_LOG_INF
BT_AUDIO_LOG_DBG
BT_AUDIO_DUMP
BT_AUDIO_HFP_CONN_BIT
BT_AUDIO_A2DP_CONN_BIT
BT_AUDIO_AVRCP_CONN_BIT
BT_AUDIO_RACE_IDLE
BT_AUDIO_RACE_PREPARE_DISCON
BT_AUDIO_RACE_DISCON_ONGOING
BT_AUDIO_RACE_DISCON_DONE
BT_AUDIO_RACE_RECONN_ONGOING
BT_AUDIO_RACE_TRY_PAUSE
BT_AUDIO_PROXY_CAN_PLAY_MUSIC(profile_conn)

Macro for check if the profile connection bit can play music.

BT_AUDIO_PROXY_A2DP_IS_CONNECTED(profile_conn)

Macro for check if the profile connection bit is connected to A2DP.

BT_AUDIO_PROXY_AVRCP_IS_CONNECTED(profile_conn)

Macro for check if the profile connection bit is connected to AVRCP.

BT_AUDIO_PROXY_HFP_IS_CONNECTED(profile_conn)

Macro for check if the profile connection bit is connected to HSP.

BT_AUDIO_PROXY_AVRCP_CMD_MIN
BT_AUDIO_PROXY_AVRCP_PLAY
BT_AUDIO_PROXY_AVRCP_PAUSE
BT_AUDIO_PROXY_AVRCP_PREVIOUS
BT_AUDIO_PROXY_AVRCP_NEXT
BT_AUDIO_PROXY_AVRCP_FAST_FORWORD_START
BT_AUDIO_PROXY_AVRCP_FAST_FORWORD_STOP
BT_AUDIO_PROXY_AVRCP_REWIND_START
BT_AUDIO_PROXY_AVRCP_REWIND_STOP
BT_AUDIO_PROXY_AVRCP_CMD_MAX
BT_AUDIO_PROXY_HFP_CMD_MIN
BT_AUDIO_PROXY_HFP_GET_CLCC
BT_AUDIO_PROXY_HFP_REDIAL_LAST_NUMBER
BT_AUDIO_PROXY_HFP_DIAL_NUMBER
BT_AUDIO_PROXY_HFP_TERMINATE_CALL
BT_AUDIO_PROXY_HFP_ACCEPT_CALL
BT_AUDIO_PROXY_HFP_REJECT_CALL
BT_AUDIO_PROXY_HFP_BAT_RPT
BT_AUDIO_PROXY_HFP_VR_ENABLE
BT_AUDIO_PROXY_HFP_SETUP_AUDIO_CONN
BT_AUDIO_PROXY_HFP_DISC_AUDIO_CONN
BT_AUDIO_PROXY_HFP_CMD_MAX
BT_AUDIO_PROXY_VOL_CMD_MIN
BT_AUDIO_PROXY_SET_ABS_VOL
BT_AUDIO_PROXY_SET_SPK_VOL
BT_AUDIO_PROXY_SET_MIC_VOL
BT_AUDIO_PROXY_VOL_CMD_MAX
BT_AUDIO_PROXY_CONN_CMD_MIN
BT_AUDIO_PROXY_CONN_A2DP
BT_AUDIO_PROXY_CONN_AVRCP
BT_AUDIO_PROXY_CONN_HFP
BT_AUDIO_PROXY_RACE_RECONN_A2DP
BT_AUDIO_PROXY_RACE_RECONN_AVRCP
BT_AUDIO_PROXY_DISCON_A2DP
BT_AUDIO_PROXY_DISCON_AVRCP
BT_AUDIO_PROXY_DISCON_HFP
BT_AUDIO_PROXY_RACE_DISCON_A2DP
BT_AUDIO_PROXY_RACE_DISCON_AVRCP
BT_AUDIO_PROXY_CONN_CMD_MAX
BT_AUDIO_PENDING_CMD_PARAM_LEN_MAX
BT_AUDIO_AVRCP_W4_IDLE
BT_AUDIO_AVRCP_W4_PLAY
BT_AUDIO_AVRCP_W4_PAUSE
MEDIA_IS_PLAYING(play_status)

Macro for check if the play status is playing.

MEDIA_IS_STOPED(play_status)

Macro for check if the play status is stopped.

Type Definitions

typedef uint32_t bt_audio_profile_conn_bit_t

audio profile connection bit definition.

typedef uint8_t bt_audio_race_status

audio race status definition.

typedef uint8_t bt_audio_proxy_cmd_id_t

Audio proxy command id definition.

typedef uint8_t bt_audio_avrcp_w4_status

AVRCP wait state definition.

typedef void (*_sync_cmd_status_change_handle_fp)(uint16_t handle, bool sync_cmd_onging)

sync command status change handle function pointer definition.

Enumerations

enum audio_stream_type_t

Audio stream type enumeration definition.

Values:

enumerator AUDIO_STREAM_TYPE_A2DP
enumerator AUDIO_STREAM_TYPE_HFP
enumerator AUDIO_STREAM_TYPE_LOCAL_MEDIA
enumerator AUDIO_STREAM_TYPE_MIC_GAIN