Infineon Logo AIROC BTSDK v4.0 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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...
 

Macros

#define WICED_BT_AUDIO_PCM_DATA_SIZE_IN_AN_AUDIO_FRAME   1024
 The audio data (PCM data) size in bytes in an outgoing A2DP audio frame. More...
 

Typedefs

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_request_samples_callback_t )(uint8_t num_packets, uint32_t packet_audio_size, uint32_t req_pkt_count, uint32_t rx_pkt_count)
 Audio Request Samples callback. More...
 

Enumerations

enum  wiced_audio_route_t { AUDIO_ROUTE_I2S = 0x00, AUDIO_ROUTE_UART = 0x01, AUDIO_ROUTE_SINE = 0x02, AUDIO_ROUTE_COMPRESSED_TRANSPORT = 0x04 }
 wiced audio routes More...
 
enum  wiced_device_role_t { WICED_AUDIO_SOURCE_ROLE = 1 << 1, WICED_AUDIO_SINK_ROLE = 1 << 2, WICED_HF_ROLE = 1 << 3 }
 wiced device roles More...
 

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...
 
wiced_result_t wiced_audio_samples_route_init (wiced_audio_request_samples_callback_t *p_callback)
 Function wiced_audio_samples_route_init. More...
 
wiced_bool_t wiced_audio_samples_set (uint8_t *p_in, uint32_t size)
 Function wiced_audio_samples_set. More...