AIROC™ BTSDK v4.9 - Documentation | ||||
Advanced Audio Distribution Profile. More...
Modules | |
A2DP Helper Functions | |
Advanced Audio Distribution Profile. | |
A2DP SBC Support | |
Audio Insertion | |
Bluetooth Audio Insert Application Programming Interface. | |
Functions | |
wiced_result_t | wiced_audio_sink_config_init (wiced_bt_a2dp_sink_audio_tuning_params_t *p_param) |
Wiced audio sink initialization. More... | |
wiced_result_t | wiced_audio_sink_configure (uint16_t handle, uint32_t is_master, uint32_t audio_route, uint16_t cp_type, wiced_bt_a2dp_codec_info_t *p_codec_info) |
API to configure the sink to perform SBC decoding and to route the decoded audio data over I2S or UART on starting the streaming. More... | |
wiced_result_t | wiced_audio_sink_reset (uint16_t handle) |
API to reset the sink on stopping the streaming. More... | |
wiced_result_t | wiced_audio_sink_mute (wiced_bool_t enable, uint16_t ramp_ms) |
To mute/unmute the audio. More... | |
wiced_bool_t | wiced_audio_set_i2s_out_sf (uint32_t out_sf) |
Function wiced_audio_set_i2s_out_sf. More... | |
uint8_t | wiced_bt_a2d_set_trace_level (uint8_t new_level) |
uint8_t | wiced_bt_a2d_bits_set (uint8_t mask) |
Function wiced_bt_a2d_bits_set. More... | |
wiced_bt_a2d_status_t | wiced_bt_a2d_find_service (uint16_t service_uuid, BD_ADDR bd_addr, wiced_bt_a2d_sdp_db_params_t *p_db, wiced_bt_a2d_find_cback *p_cback) |
Function wiced_bt_a2d_find_service. More... | |
Advanced Audio Distribution Profile.
wiced_bool_t wiced_audio_set_i2s_out_sf | ( | uint32_t | out_sf | ) |
Function wiced_audio_set_i2s_out_sf.
API to configure output I2S sampling frequency
Called by the application before starting the streaming
out_sf | Desired output i2s sampling frequency (ex. 16000/32000/44100/48000) |
NOTE : This API must be called before calling the API wiced_audio_sink_configure
wiced_result_t wiced_audio_sink_config_init | ( | wiced_bt_a2dp_sink_audio_tuning_params_t * | p_param | ) |
Wiced audio sink initialization.
p_cfg | pointer to the sink config structure |
wiced_result_t wiced_audio_sink_configure | ( | uint16_t | handle, |
uint32_t | is_master, | ||
uint32_t | audio_route, | ||
uint16_t | cp_type, | ||
wiced_bt_a2dp_codec_info_t * | p_codec_info | ||
) |
API to configure the sink to perform SBC decoding and to route the decoded audio data over I2S or UART on starting the streaming.
Called by the application when the streaming is to be started
handle | AVDT connection handle |
is_master | Configure I2S Master/Slave |
audio_route | - Audio route to be used to send the decoded audio data, I2S or UART |
cp_type | Content protection type. Refer AVDT_CP_TYPE defined in wiced_bt_avdt.h |
p_codec_info | Codec information |
wiced_result_t wiced_audio_sink_mute | ( | wiced_bool_t | enable, |
uint16_t | ramp_ms | ||
) |
To mute/unmute the audio.
Called by the application to mute the audio when playing the music. Application shall this function to unmute also to restart playing the music
enable | 1 to mute, 0 to unmute |
ramp_ms | ramp up/down time in milli seconds |
wiced_result_t wiced_audio_sink_reset | ( | uint16_t | handle | ) |
API to reset the sink on stopping the streaming.
Called by the application when the streaming is stopped
handle | AVDT connection handle |
uint8_t wiced_bt_a2d_bits_set | ( | uint8_t | mask | ) |
Function wiced_bt_a2d_bits_set.
Check the number of bits set in a given mask (used to parse stream configuration masks)
[in] | mask | : mask to check |
wiced_bt_a2d_status_t wiced_bt_a2d_find_service | ( | uint16_t | service_uuid, |
BD_ADDR | bd_addr, | ||
wiced_bt_a2d_sdp_db_params_t * | p_db, | ||
wiced_bt_a2d_find_cback * | p_cback | ||
) |
Function wiced_bt_a2d_find_service.
Performs Service Discovery and fetches SRC/SINK SDP Record Info. Information is returned for the first service record found on the server that matches the service UUID.There can only be one outstanding call to wiced_bt_a2d_find_service() at a time; the application must wait for the callback before it makes another call to the function.
[in] | service_uuid | : Indicates SRC or SNK. |
[in] | bd_addr | : BD address of the peer device. |
[in] | p_db | : Pointer to the information to initialize the discovery database. |
[in] | p_cback | : Pointer to the wiced_bt_a2d_find_service() callback function. |