Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
wiced_bt_audio.h File Reference

Data Structures

struct  wiced_bt_audio_config_buffer_t
 Audio buffer configuration structure Please refer wiced_audio_buffer_initialize API documentation for recommended size. More...
 
struct  wiced_bt_a2dp_statistics_t
 A2DP statistics structure. More...
 

Typedefs

typedef uint32_t wiced_audio_route_t
 
typedef uint8_t wiced_device_role_t
 
typedef uint8_t wiced_audio_sco_data_route_t
 
typedef void(* wiced_audio_suspend_complete_cback_t )(void)
 Audio suspend complete callback.
 
typedef void(* wiced_audio_buffer_empty_cback_t )(uint32_t total_intr_count, uint32_t total_empty_count, uint32_t consecutive_empty_count)
 Audio buffer empty callback. More...
 
typedef void(* wiced_audio_congestion_status_cback_t )(wiced_bool_t is_congested)
 Audio congestion status callback. More...
 
typedef void(* wiced_audio_sco_data_cback_t )(uint32_t ltch_len, uint8_t *p_data)
 SCO Rx Data callback. More...
 

Enumerations

enum  {
  AUDIO_ROUTE_I2S = 0x00, AUDIO_ROUTE_UART = 0x01, AUDIO_ROUTE_SINE = 0x02, AUDIO_ROUTE_APP = 0x03,
  AUDIO_ROUTE_COMPRESSED_TRANSPORT = 0x04, AUDIO_ROUTE_COMPRESSED_APP = 0x05
}
 wiced audio routes More...
 
enum  { WICED_AUDIO_SOURCE_ROLE = 1 << 1, WICED_AUDIO_SINK_ROLE = 1 << 2, WICED_HF_ROLE = 1 << 3 }
 wiced device roles More...
 
enum  { WICED_SCO_ROUTE_NONE = 0, WICED_SCO_ROUTE_APP }
 wiced sco data routes
 

Functions

wiced_result_t wiced_audio_buffer_initialize (wiced_bt_audio_config_buffer_t wiced_audio_cfg_pool)
 Function wiced_audio_buffer_initialize. More...
 
void wiced_audio_start (int is_master, int audio_route, uint16_t lcid, wiced_bt_a2d_sbc_cie_t *pSbc)
 Function wiced_audio_start. More...
 
void wiced_audio_stop (uint16_t lcid)
 Function wiced_audio_stop. More...
 
void wiced_audio_suspend (uint16_t lcid, wiced_audio_suspend_complete_cback_t p_cback)
 Function wiced_audio_suspend. More...
 
void wiced_audio_register_buffer_empty_cback (wiced_audio_buffer_empty_cback_t p_cback)
 Function wiced_audio_register_buffer_empty_cback. More...
 
void wiced_audio_use_sw_timing (int enable)
 Function wiced_audio_use_sw_timing. More...
 
void wiced_audio_set_sinwave (int16_t *pIn)
 Function wiced_audio_set_sinwave. More...
 
void wiced_audio_get_statistics (wiced_bt_a2dp_statistics_t *buffer_stat)
 Function wiced_audio_get_statistics. More...
 
void wiced_audio_register_congestion_cback (wiced_audio_congestion_status_cback_t p_congestion_stat)
 Function wiced_audio_register_congestion_cback. More...
 
void wiced_audio_sco_set_data_route (wiced_audio_sco_data_route_t sco_data_route, wiced_audio_sco_data_cback_t p_data_cb)
 Function wiced_audio_sco_set_data_route. More...
 
uint16_t wiced_audio_sco_add_mic_stream (uint16_t sco_index, uint8_t *p_pcmsrc, uint16_t len)
 Function wiced_audio_sco_add_mic_stream. More...