A2DP#

Functions#

int32_t
rsi_bt_a2dp_init(rsi_bt_a2dp_sbc_codec_cap_t *sbc_cap)

Initialize A2DP Profile with either user-defined audio codec params or default stack audio codec params. This is a blocking API.

int32_t
rsi_bt_a2dp_connect(uint8_t *remote_dev_addr)

Initiate the A2DP connection. This is a blocking API. A received event rsi_bt_on_a2dp_connect_t indicates that the a2dp connection response.

int32_t
rsi_bt_a2dp_disconnect(uint8_t *remote_dev_addr)

Use to disconnect A2DP. This is a blocking API. A received event rsi_bt_on_a2dp_disconnect_t indicates that the a2dp disconnection response.

int32_t
rsi_bt_a2dp_send_pcm_mp3_data(uint8_t *remote_dev_addr, uint8_t *pcm_mp3_data, uint16_t pcm_mp3_data_len, uint8_t audio_type, uint16_t *bytes_consumed) int32_t rsi_bt_a2dp_send_pcm_mp3_data(uint8_t *remote_dev_addr
UNUSED_PARAMETER(audio_type)
USED_PARAMETER(remote_dev_addr)
USED_PARAMETER(pcm_mp3_data)
USED_PARAMETER(pcm_mp3_data_len)
rsi_ascii_dev_address_to_6bytes_rev(bt_req_a2dp_pcm_mp3_pkt_part1.dev_addr, remote_dev_addr)
memcpy(bt_req_a2dp_pcm_mp3_pkt_part1.dev_addr,(int8_t *) remote_dev_addr, 6)
memcpy(bt_req_a2dp_pcm_mp3_pkt_part1.pcm_mp3_data, pcm_mp3_data, bt_req_a2dp_pcm_mp3_pkt_part1.pcm_mp3_data_len)
rsi_bt_driver_send_cmd(RSI_BT_REQ_A2DP_PCM_MP3_DATA_PREFILL_1, &bt_req_a2dp_pcm_mp3_pkt_part1, NULL)
rsi_ascii_dev_address_to_6bytes_rev(bt_req_a2dp_pcm_mp3_pkt_part2.dev_addr, remote_dev_addr)
memcpy(bt_req_a2dp_pcm_mp3_pkt_part2.dev_addr,(int8_t *) remote_dev_addr, 6)
memcpy(bt_req_a2dp_pcm_mp3_pkt_part2.pcm_mp3_data,(pcm_mp3_data+sizeof(bt_req_a2dp_pcm_mp3_pkt_part1.pcm_mp3_data)), bt_req_a2dp_pcm_mp3_pkt_part2.pcm_mp3_data_len)
SL_PRINTF(SL_RSI_BT_A2DP_SEND_PCM_MP3_DATA_TRIGGER, BLUETOOTH, LOG_INFO)
return
rsi_bt_driver_send_cmd(RSI_BT_REQ_A2DP_PCM_MP3_DATA, &bt_req_a2dp_pcm_mp3_pkt_part2, NULL)
int32_t
rsi_bt_a2dp_send_sbc_aac_data(uint8_t *remote_dev_addr, uint8_t *sbc_aac_data, uint16_t sbc_aac_data_len, uint8_t audio_type)

Send the SBC/AAC data to the BT stack. This is a blocking API. if returns RSI_APP_ERR_HW_BUFFER_OVERFLOW err means that the firmware buffers are full and eventually host will receive a event rsi_bt_on_a2dp_data_req_t which requests more data from application.

int32_t
rsi_bt_a2dp_start(uint8_t *remote_dev_addr)

Send the A2DP start to the BT stack to start the stream procedure. This is a blocking API. A received event rsi_bt_on_a2dp_start_t indicates that the a2dp start response.

int32_t
rsi_bt_a2dp_suspend(uint8_t *remote_dev_addr)

Send the A2DP suspend to the BT stack. This is a blocking API. A received event rsi_bt_on_a2dp_suspend_t indicates that the a2dp suspend response.

int32_t
rsi_bt_a2dp_close(uint8_t *remote_dev_addr)

Send the A2DP close to the BT stack for removing the a2dp stream. This is a blocking API. A received event rsi_bt_on_a2dp_close_t indicates that the a2dp close response.

int32_t
rsi_bt_a2dp_abort(uint8_t *remote_dev_addr)

Send the A2DP abort to the BT stack for aborting the exsting a2dp link. This is a blocking API. A received event rsi_bt_on_a2dp_abort_t indicates that the a2dp abort response.

int32_t
rsi_bt_a2dp_get_config(uint8_t *remote_dev_addr, rsi_bt_resp_a2dp_get_config_t *sbc_resp_cap)

To get remote device CODEC configuration. This is a blocking API.
.

int32_t
rsi_bt_a2dp_set_config(uint8_t *remote_dev_addr, rsi_bt_a2dp_sbc_codec_cap_t *set_sbc_cap, int32_t *status)

Set A2DP CODEC configuration. Used for A2DP Reconfig purposes. This is a blocking API. A received event rsi_bt_on_a2dp_reconfig_t indicates that the a2dp reconfig response.

int32_t
rsi_bt_a2dp_send_pcm_mp3_data(uint8_t *remote_dev_addr, uint8_t *pcm_mp3_data, uint16_t pcm_mp3_data_len, uint8_t audio_type)

Send the PCM data to the BT stack. This is a blocking API. if returns RSI_APP_ERR_HW_BUFFER_OVERFLOW err means that the firmware buffers are full and eventually host will receive a event rsi_bt_on_a2dp_data_req_t which requests more data from application.

Variable Documentation#

pcm_mp3_data#

int32_t uint8_t* pcm_mp3_data

Definition at line 137 of file bluetooth/rsi_bt_a2dp_apis.c

pcm_mp3_data_len#

bt_req_a2dp_pcm_mp3_pkt_part2 pcm_mp3_data_len

Definition at line 138 of file bluetooth/rsi_bt_a2dp_apis.c

audio_type#

bt_req_a2dp_pcm_mp3_pkt_part2 audio_type

Definition at line 139 of file bluetooth/rsi_bt_a2dp_apis.c

bt_req_a2dp_pcm_mp3_pkt_part1#

rsi_bt_req_a2dp_pcm_mp3_data_t bt_req_a2dp_pcm_mp3_pkt_part1

Definition at line 152 of file bluetooth/rsi_bt_a2dp_apis.c

bt_req_a2dp_pcm_mp3_pkt_part2#

rsi_bt_req_a2dp_pcm_mp3_data_t bt_req_a2dp_pcm_mp3_pkt_part2

Definition at line 165 of file bluetooth/rsi_bt_a2dp_apis.c

RSI_SUCCESS#

return RSI_SUCCESS

Definition at line 181 of file bluetooth/rsi_bt_a2dp_apis.c

Referenced by rsi_driver_process_bt_resp , rsi_driver_process_bt_resp_handler , rsi_bt_smp_register_callbacks , rsi_ble_enhanced_gap_extended_register_callbacks , rsi_ble_adv_ext_events_register_callbacks , rsi_bt_driver_send_cmd , rsi_bt_power_save_profile , rsi_req_wakeup , rsi_check_waiting_cmds , rsi_driver_init , rsi_wireless_init , rsi_cmd_uart_flow_ctrl , rsi_cmd_to_wr_comm_flash , rsi_cmd_m4_ta_secure_handshake , rsi_wireless_deinit , rsi_wireless_antenna , rsi_send_feature_frame_dyn , rsi_send_feature_frame , rsi_get_fw_version , rsi_get_module_type , rsi_common_debug_log , rsi_switch_proto , rsi_driver_deinit , rsi_destroy_driver_task_and_driver_deinit , rsi_driver_version , rsi_set_rtc_timer , rsi_get_ram_log , rsi_get_rtc_timer , rsi_set_config , rsi_ecdsa_256_verify_hash , rsi_assert , rsi_gpio_pininit , rsi_gpio_writepin , rsi_gpio_readpin , rsi_set_region , rsi_sha_pen , rsi_sha , rsi_hmac_sha_pen , rsi_hmac_sha , rsi_aes , rsi_aes_pen , rsi_exponentiation , rsi_ecdh_point_multiplication , rsi_ecdh_point_addition , rsi_ecdh_point_subtraction , rsi_ecdh_point_double , rsi_ecdh_point_affine , rsi_ccm , rsi_ccm_pen , trng_init , trng_entropy , trng_program_key , trng_get_random_num , sl_attestation_get_token , rsi_sha3_shake_pen , rsi_shake , rsi_sha3 , rsi_chachapoly , rsi_chachapoly_pen , rsi_gcm , rsi_bl_module_power_cycle , rsi_device_init , rsi_device_deinit , rsi_dhcp_user_class , rsi_dns_req , rsi_dns_update , rsi_tx_event_handler , rsi_rx_event_handler , rsi_emb_mqtt_client_init , rsi_emb_mqtt_connect , rsi_emb_mqtt_publish , rsi_emb_mqtt_subscribe , rsi_emb_mqtt_unsubscribe , rsi_emb_mqtt_disconnect , rsi_emb_mqtt_destroy , rsi_emb_mqtt_register_call_back , rsi_fwup_start , rsi_fwup_load , rsi_ftp_connect , rsi_ftp_disconnect , rsi_ftp_file_write , rsi_ftp_file_write_content , rsi_ftp_file_read_aysnc , rsi_ftp_file_delete , rsi_ftp_file_rename , rsi_ftp_directory_create , rsi_ftp_directory_delete , rsi_ftp_directory_set , rsi_ftp_directory_list_async , rsi_ftp_mode_set , rsi_ftp_file_size_set , rsi_http_client_async , rsi_http_client_abort , rsi_http_client_put_create , rsi_http_client_put_delete , rsi_http_client_put_start , rsi_http_client_put_pkt , rsi_http_client_post_data , rsi_http_otaf_async , rsi_webpage_load , rsi_json_object_create , rsi_webpage_erase , rsi_json_object_delete , rsi_webpage_send , rsi_http_credentials , rsi_mdnsd_init , rsi_mdnsd_register_service , rsi_mdnsd_deinit , rsi_mqtt_connect , rsi_multicast_join , rsi_multicast_leave , rsi_nwk_register_callbacks , rsi_wlan_nwk_register_json_update_cb , rsi_wlan_nwk_register_json_event_cb , rsi_wlan_nwk_register_send_large_data_event_cb , rsi_wlan_nwk_register_webpage_req_cb , rsi_wlan_nwk_register_wireless_fw_upgrade_cb , rsi_driver_process_recv_data_non_rom , rsi_ota_firmware_upgradation , rsi_send_raw_data , rsi_frame_read , rsi_frame_write , rsi_sdio_iface_init , rsi_mem_wr , rsi_mem_rd , rsi_sntp_client_create_async , rsi_sntp_client_gettime , rsi_sntp_client_gettime_date , rsi_sntp_client_server_info , rsi_sntp_client_delete_async , rsi_pre_dsc_rd , rsi_pkt_rd , rsi_spi_frame_dsc_wr , rsi_spi_frame_data_wr , rsi_send_c1c2 , rsi_send_c3c4 , rsi_spi_wait_start_token , rsi_set_intr_mask , rsi_set_intr_type , rsi_clear_interrupt , rsi_spi_iface_init , rsi_ulp_wakeup_init , rsi_reg_rd , rsi_reg_wr , rsi_uart_iface_int , rsi_ascii_hex2num , asciihex_2_num , rsi_web_socket_create , rsi_web_socket_send_async , rsi_web_socket_close , rsi_wlan_radio_init , rsi_wlan_filter_broadcast , rsi_config_timeout , send_timeout , rsi_wlan_scan_with_bitmap_options , rsi_wlan_scan_async_with_bitmap_options , rsi_wlan_scan , rsi_wlan_scan_async , rsi_wlan_connect , rsi_wlan_set_non_pref_chan , rsi_wlan_connect_async , rsi_wlan_bgscan_profile , rsi_wlan_execute_post_connect_cmds , rsi_wlan_wps_push_button_event , rsi_send_freq_offset , rsi_calib_write , rsi_calib_read , rsi_calibrate_dpd , rsi_wlan_wps_generate_pin , rsi_wlan_wps_enter_pin , rsi_wlan_beacon_stop , rsi_get_random_bytes , rsi_wlan_ap_stop , rsi_wlan_disconnect , rsi_wlan_disconnect_stations , rsi_config_ipaddress , rsi_wlan_set_certificate_index , rsi_wlan_get , rsi_wlan_set , rsi_wlan_buffer_config , rsi_wlan_ap_start , rsi_wlan_power_save_with_listen_interval , rsi_wlan_power_save_profile , rsi_wlan_power_save_disable_and_enable , rsi_transmit_test_start , rsi_transmit_test_stop , rsi_wlan_receive_stats_start , rsi_wlan_receive_stats_stop , rsi_wlan_send_data , rsi_wlan_twt_auto_selection , rsi_wlan_twt_config , rsi_wlan_ping_async , rsi_wlan_add_profile , rsi_wlan_get_profile , rsi_wlan_delete_profile , rsi_wlan_enable_auto_config , rsi_wlan_pmk_generate , rsi_wlan_set_sleep_timer , rsi_socket_config , rsi_wlan_radio_deinit , rsi_wlan_update_gain_table , rsi_wlan_csi_config_async , rsi_send_evm_offset , and rsi_evm_write

Function Documentation#

rsi_bt_a2dp_init#

int32_t rsi_bt_a2dp_init (rsi_bt_a2dp_sbc_codec_cap_t * sbc_cap)

Initialize A2DP Profile with either user-defined audio codec params or default stack audio codec params. This is a blocking API.

Parameters
[in]sbc_cap

- audio codec params structure, please refer rsi_bt_a2dp_sbc_codec_cap_s structure for more info.

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .

  • if NULL is passed, A2DP profile initialize with default audio codec params.


Definition at line 39 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_connect#

int32_t rsi_bt_a2dp_connect (uint8_t * remote_dev_addr)

Initiate the A2DP connection. This is a blocking API. A received event rsi_bt_on_a2dp_connect_t indicates that the a2dp connection response.

Parameters
[in]remote_dev_addr

- remote device address

Returns

  • 0 - Success
    Non-Zero Value - Failure
    0x4511 RSI_APP_ERR_A2DP_CONN_ALRDY_EXISTS

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 64 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_disconnect#

int32_t rsi_bt_a2dp_disconnect (uint8_t * remote_dev_addr)

Use to disconnect A2DP. This is a blocking API. A received event rsi_bt_on_a2dp_disconnect_t indicates that the a2dp disconnection response.

Parameters
[in]remote_dev_addr

- remote device address

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 88 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_send_pcm_mp3_data#

int32_t rsi_bt_a2dp_send_pcm_mp3_data (uint8_t * remote_dev_addr, uint8_t * pcm_mp3_data, uint16_t pcm_mp3_data_len, uint8_t audio_type, uint16_t * bytes_consumed)
Parameters
N/Aremote_dev_addr
N/Apcm_mp3_data
N/Apcm_mp3_data_len
N/Aaudio_type
N/Abytes_consumed

Definition at line 130 of file bluetooth/rsi_bt_a2dp_apis.c

USED_PARAMETER#

USED_PARAMETER (remote_dev_addr )
Parameters
N/A

Definition at line 146 of file bluetooth/rsi_bt_a2dp_apis.c

USED_PARAMETER#

USED_PARAMETER (pcm_mp3_data )
Parameters
N/A

Definition at line 147 of file bluetooth/rsi_bt_a2dp_apis.c

USED_PARAMETER#

USED_PARAMETER (pcm_mp3_data_len )
Parameters
N/A

Definition at line 148 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_ascii_dev_address_to_6bytes_rev#

rsi_ascii_dev_address_to_6bytes_rev (bt_req_a2dp_pcm_mp3_pkt_part1. dev_addr, remote_dev_addr )
Parameters
N/Adev_addr
N/A

Definition at line 154 of file bluetooth/rsi_bt_a2dp_apis.c

Referenced by rsi_ble_set_random_address_with_value , rsi_ble_start_advertising , rsi_ble_connect_with_params , rsi_ble_connect , rsi_ble_connect_cancel , rsi_ble_disconnect , rsi_ble_conn_param_resp , rsi_ble_smp_pair_request , rsi_ble_smp_pair_failed , rsi_ble_ltk_req_reply , rsi_ble_smp_pair_response , rsi_ble_smp_passkey , rsi_ble_get_le_ping_timeout , rsi_ble_set_le_ping_timeout , rsi_ble_addto_acceptlist , rsi_ble_deletefrom_acceptlist , rsi_ble_resolvlist , rsi_ble_set_privacy_mode , rsi_ble_readphy , rsi_ble_setphy , rsi_ble_conn_params_update , rsi_ble_set_data_len , rsi_ble_update_directed_address , rsi_ble_start_encryption , rsi_ble_get_profiles_async , rsi_ble_get_profile_async , rsi_ble_get_char_services_async , rsi_ble_get_inc_services_async , rsi_ble_get_char_value_by_uuid_async , rsi_ble_get_att_descriptors_async , rsi_ble_get_att_value_async , rsi_ble_get_multiple_att_values_async , rsi_ble_get_long_att_value_async , rsi_ble_set_att_value_async , rsi_ble_prepare_write_async , rsi_ble_execute_write_async , rsi_ble_get_profiles , rsi_ble_get_profile , rsi_ble_get_char_services , rsi_ble_get_inc_services , rsi_ble_get_char_value_by_uuid , rsi_ble_get_att_descriptors , rsi_ble_get_att_value , rsi_ble_get_multiple_att_values , rsi_ble_get_long_att_value , rsi_ble_set_att_value , rsi_ble_set_att_cmd , rsi_ble_set_long_att_value , rsi_ble_prepare_write , rsi_ble_execute_write , rsi_ble_set_wo_resp_notify_buf_info , rsi_ble_notify_value , rsi_ble_indicate_value , rsi_ble_indicate_value_sync , rsi_ble_indicate_confirm , rsi_ble_gatt_read_response , rsi_ble_att_error_response , rsi_ble_mtu_exchange_event , rsi_ble_mtu_exchange_resp , rsi_ble_gatt_write_response , rsi_ble_gatt_prepare_write_response , rsi_bt_a2dp_connect , rsi_bt_a2dp_disconnect , rsi_bt_a2dp_send_sbc_aac_data , rsi_bt_a2dp_start , rsi_bt_a2dp_suspend , rsi_bt_a2dp_close , rsi_bt_a2dp_abort , rsi_bt_a2dp_get_config , rsi_bt_a2dp_set_config , rsi_bt_avrcp_conn , rsi_bt_avrcp_disconn , rsi_bt_avrcp_play , rsi_bt_avrcp_pause , rsi_bt_avrcp_stop , rsi_bt_avrcp_next , rsi_bt_avrcp_previous , rsi_bt_avrcp_vol_up , rsi_bt_avrcp_vol_down , rsi_bt_avrcp_get_capabilities , rsi_bt_avrcp_get_att_list , rsi_bt_avrcp_get_att_vals_list , rsi_bt_avrcp_get_cur_att_val , rsi_bt_avrcp_set_cur_att_val , rsi_bt_avrcp_get_element_att , rsi_bt_avrcp_get_play_status , rsi_bt_avrcp_reg_notification , rsi_bt_avrcp_get_remote_version , rsi_bt_avrcp_get_att_text , rsi_bt_avrcp_get_att_val_text , rsi_bt_avrcp_batt_status , rsi_bt_avrcp_supp_char_sets , rsi_bt_avrcp_set_abs_vol , rsi_bt_avrcp_cap_resp , rsi_bt_avrcp_att_list_resp , rsi_bt_avrcp_att_val_list_resp , rsi_bt_avrcp_cur_att_val_resp , rsi_bt_avrcp_set_cur_att_val_resp , rsi_bt_avrcp_ele_att_resp , rsi_bt_avrcp_play_status_resp , rsi_bt_avrcp_reg_notify_resp , rsi_bt_avrcp_att_text_resp , rsi_bt_avrcp_att_vals_text_resp , rsi_bt_avrcp_batt_status_resp , rsi_bt_avrcp_char_set_status_resp , rsi_bt_avrcp_notify , rsi_bt_avrcp_cmd_reject , rsi_bt_avrcp_set_abs_vol_resp , rsi_bt_avrcp_set_addr_player_resp , rsi_bt_avrcp_get_folder_items_resp , rsi_bt_avrcp_get_tot_num_items_resp , rsi_bt_prepare_le_pkt , rsi_bt_set_bd_addr , rsi_bt_get_rssi , rsi_bt_remote_name_request_async , rsi_bt_remote_name_request_cancel , rsi_bt_connect , rsi_bt_cancel_connect , rsi_bt_disconnect , rsi_bt_accept_ssp_confirm , rsi_bt_reject_ssp_confirm , rsi_bt_passkey , rsi_bt_pincode_request_reply , rsi_bt_linkkey_request_reply , rsi_bt_get_local_device_role , rsi_bt_set_local_device_role , rsi_bt_get_services_async , rsi_bt_search_service_async , rsi_bt_sniff_mode , rsi_bt_sniff_exit_mode , rsi_bt_sniff_subrating_mode , rsi_bt_change_pkt_type , rsi_bt_request_authentication , rsi_bt_encryption_enable_or_disable , rsi_bt_spp_connect , and rsi_bt_spp_disconnect

memcpy#

memcpy (bt_req_a2dp_pcm_mp3_pkt_part1. dev_addr, (int8_t *) remote_dev_addr, 6 )
Parameters
N/Adev_addr
N/Aremote_dev_addr
N/A

Definition at line 156 of file bluetooth/rsi_bt_a2dp_apis.c

Referenced by rsi_ble_set_random_address_with_value , rsi_ble_start_advertising_with_values , rsi_ble_encrypt , rsi_ble_set_advertise_data , rsi_ble_set_scan_response_data , rsi_ble_start_scanning_with_values , rsi_ble_connect_with_params , rsi_ble_connect , rsi_ble_enhance_connect_with_params , rsi_ble_connect_cancel , rsi_ble_disconnect , rsi_ble_set_local_irk_value , rsi_ble_conn_param_resp , rsi_ble_smp_pair_request , rsi_ble_smp_pair_failed , rsi_ble_ltk_req_reply , rsi_ble_smp_pair_response , rsi_ble_smp_passkey , rsi_ble_get_le_ping_timeout , rsi_ble_set_le_ping_timeout , rsi_ble_addto_acceptlist , rsi_ble_deletefrom_acceptlist , rsi_ble_resolvlist , rsi_ble_set_privacy_mode , rsi_ble_readphy , rsi_ble_setphy , rsi_ble_conn_params_update , rsi_ble_set_data_len , rsi_ble_accept_list_using_adv_data , BT_LE_ADPacketExtract , rsi_ble_update_directed_address , rsi_ble_start_encryption , rsi_ble_set_ae_set_random_address , rsi_ble_set_ae_params , rsi_ble_set_ae_data , rsi_ble_start_ae_advertising , rsi_ble_app_set_periodic_ae_params , rsi_ble_ae_set_scan_params , rsi_ble_ae_set_scan_enable , rsi_ble_ae_set_periodic_sync , rsi_ble_ae_dev_to_periodic_list , rsi_ble_extended_connect_with_params , rsi_ble_get_profiles_async , rsi_ble_get_profile_async , rsi_ble_get_char_services_async , rsi_ble_get_inc_services_async , rsi_ble_get_char_value_by_uuid_async , rsi_ble_get_att_descriptors_async , rsi_ble_get_att_value_async , rsi_ble_get_multiple_att_values_async , rsi_ble_get_long_att_value_async , rsi_ble_set_att_value_async , rsi_ble_prepare_write_async , rsi_ble_execute_write_async , rsi_ble_get_profiles , rsi_ble_get_profile , rsi_ble_get_char_services , rsi_ble_get_inc_services , rsi_ble_get_char_value_by_uuid , rsi_ble_get_att_descriptors , rsi_ble_get_att_value , rsi_ble_get_multiple_att_values , rsi_ble_get_long_att_value , rsi_ble_set_att_value , rsi_ble_set_att_cmd , rsi_ble_set_long_att_value , rsi_ble_prepare_write , rsi_ble_execute_write , rsi_ble_add_service , rsi_ble_set_local_att_value , rsi_ble_set_wo_resp_notify_buf_info , rsi_ble_notify_value , rsi_ble_indicate_value , rsi_ble_indicate_value_sync , rsi_ble_indicate_confirm , rsi_ble_gatt_read_response , rsi_ble_att_error_response , rsi_ble_mtu_exchange_event , rsi_ble_mtu_exchange_resp , rsi_ble_gatt_write_response , rsi_ble_gatt_prepare_write_response , rsi_bt_a2dp_init , rsi_bt_a2dp_connect , rsi_bt_a2dp_disconnect , rsi_bt_a2dp_send_sbc_aac_data , rsi_bt_a2dp_start , rsi_bt_a2dp_suspend , rsi_bt_a2dp_close , rsi_bt_a2dp_abort , rsi_bt_a2dp_get_config , rsi_bt_a2dp_set_config , rsi_bt_avrcp_conn , rsi_bt_avrcp_disconn , rsi_bt_avrcp_play , rsi_bt_avrcp_pause , rsi_bt_avrcp_stop , rsi_bt_avrcp_next , rsi_bt_avrcp_previous , rsi_bt_avrcp_vol_up , rsi_bt_avrcp_vol_down , rsi_bt_avrcp_get_capabilities , rsi_bt_avrcp_get_att_list , rsi_bt_avrcp_get_att_vals_list , rsi_bt_avrcp_get_cur_att_val , rsi_bt_avrcp_set_cur_att_val , rsi_bt_avrcp_get_element_att , rsi_bt_avrcp_get_play_status , rsi_bt_avrcp_reg_notification , rsi_bt_avrcp_get_remote_version , rsi_bt_avrcp_get_att_text , rsi_bt_avrcp_get_att_val_text , rsi_bt_avrcp_batt_status , rsi_bt_avrcp_supp_char_sets , rsi_bt_avrcp_set_abs_vol , rsi_bt_avrcp_cap_resp , rsi_bt_avrcp_att_list_resp , rsi_bt_avrcp_att_val_list_resp , rsi_bt_avrcp_cur_att_val_resp , rsi_bt_avrcp_set_cur_att_val_resp , rsi_bt_avrcp_ele_att_resp , rsi_bt_avrcp_play_status_resp , rsi_bt_avrcp_reg_notify_resp , rsi_bt_avrcp_att_text_resp , rsi_bt_avrcp_att_vals_text_resp , rsi_bt_avrcp_batt_status_resp , rsi_bt_avrcp_char_set_status_resp , rsi_bt_avrcp_notify , rsi_bt_avrcp_cmd_reject , rsi_bt_avrcp_set_abs_vol_resp , rsi_bt_avrcp_set_addr_player_resp , rsi_bt_avrcp_get_folder_items_resp , rsi_bt_avrcp_get_tot_num_items_resp , rsi_add_remote_ble_dev_info , rsi_driver_process_bt_resp , rsi_bt_prepare_common_pkt , rsi_bt_prepare_classic_pkt , rsi_bt_prepare_le_pkt , rsi_bt_set_bd_addr , rsi_bt_set_local_name , rsi_bt_cmd_update_gain_table_offset_or_max_pwr , rsi_bt_get_rssi , rsi_bt_vendor_dynamic_pwr , rsi_bt_write_current_iac_lap , rsi_bt_set_afh_host_channel_classification , rsi_bt_remote_name_request_async , rsi_bt_remote_name_request_cancel , rsi_bt_connect , rsi_bt_cancel_connect , rsi_bt_disconnect , rsi_bt_accept_ssp_confirm , rsi_bt_reject_ssp_confirm , rsi_bt_passkey , rsi_bt_pincode_request_reply , rsi_bt_linkkey_request_reply , rsi_bt_get_local_device_role , rsi_bt_set_local_device_role , rsi_bt_get_services_async , rsi_bt_search_service_async , rsi_bt_sniff_mode , rsi_bt_sniff_exit_mode , rsi_bt_sniff_subrating_mode , rsi_bt_set_eir_data , rsi_bt_change_pkt_type , rsi_bt_request_authentication , rsi_bt_encryption_enable_or_disable , rsi_bt_spp_connect , rsi_bt_spp_disconnect , rsi_bt_spp_transfer , rsi_driver_version , rsi_hmac_sha , rsi_mqtt_client_init , rsi_driver_process_recv_data_non_rom , rsi_socket_connect , rsi_frame_read , USART0_RX_IRQHandler , rsi_web_socket_create , rsi_sort_scan_results_array_based_on_rssi , rsi_wlan_set , and rsi_fill_config_profile

memcpy#

memcpy (bt_req_a2dp_pcm_mp3_pkt_part1. pcm_mp3_data, pcm_mp3_data , bt_req_a2dp_pcm_mp3_pkt_part1. pcm_mp3_data_len)
Parameters
N/Apcm_mp3_data
N/A
N/Apcm_mp3_data_len

Definition at line 161 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_driver_send_cmd#

rsi_bt_driver_send_cmd (RSI_BT_REQ_A2DP_PCM_MP3_DATA_PREFILL_1 , & bt_req_a2dp_pcm_mp3_pkt_part1, NULL )
Parameters
N/A
N/Abt_req_a2dp_pcm_mp3_pkt_part1
N/A

Definition at line 163 of file bluetooth/rsi_bt_a2dp_apis.c

Referenced by rsi_ble_set_random_address , rsi_ble_set_random_address_with_value , rsi_ble_start_advertising , rsi_ble_start_advertising_with_values , rsi_ble_encrypt , rsi_ble_stop_advertising , rsi_ble_set_advertise_data , rsi_ble_set_scan_response_data , rsi_ble_start_scanning , rsi_ble_start_scanning_with_values , rsi_ble_stop_scanning , rsi_ble_connect_with_params , rsi_ble_connect , rsi_ble_enhance_connect_with_params , rsi_ble_connect_cancel , rsi_ble_disconnect , rsi_ble_get_device_state , rsi_ble_set_smp_pairing_cap_data , rsi_ble_set_local_irk_value , rsi_ble_conn_param_resp , rsi_ble_smp_pair_request , rsi_ble_smp_pair_failed , rsi_ble_ltk_req_reply , rsi_ble_smp_pair_response , rsi_ble_smp_passkey , rsi_ble_get_le_ping_timeout , rsi_ble_set_le_ping_timeout , rsi_ble_clear_acceptlist , rsi_ble_addto_acceptlist , rsi_ble_deletefrom_acceptlist , rsi_ble_resolvlist , rsi_ble_get_resolving_list_size , rsi_ble_set_addr_resolution_enable , rsi_ble_set_privacy_mode , rsi_ble_readphy , rsi_ble_setphy , rsi_ble_conn_params_update , rsi_ble_set_data_len , rsi_ble_read_max_data_len , rsi_ble_rx_test_mode , rsi_ble_tx_test_mode , rsi_ble_end_test_mode , rsi_ble_per_transmit , rsi_ble_per_receive , rsi_ble_vendor_rf_type , rsi_ble_accept_list_using_adv_data , rsi_ble_start_encryption , rsi_ble_get_max_no_of_supp_adv_sets , rsi_ble_get_max_adv_data_len , rsi_ble_set_ae_set_random_address , rsi_ble_set_ae_params , rsi_ble_set_ae_data , rsi_ble_start_ae_advertising , rsi_ble_app_adv_set_clear_or_remove , rsi_ble_app_set_periodic_ae_params , rsi_ble_app_set_periodic_ae_enable , rsi_ble_ae_set_scan_params , rsi_ble_ae_set_scan_enable , rsi_ble_ae_set_periodic_sync , rsi_ble_ae_dev_to_periodic_list , rsi_ble_ae_read_periodic_adv_list_size , rsi_ble_extended_connect_with_params , rsi_ble_read_transmit_power , rsi_ble_read_rf_path_compensation , rsi_ble_write_rf_path_compensation , rsi_ble_vendor_feature_bitmap , rsi_ble_get_profiles_async , rsi_ble_get_profile_async , rsi_ble_get_char_services_async , rsi_ble_get_inc_services_async , rsi_ble_get_char_value_by_uuid_async , rsi_ble_get_att_descriptors_async , rsi_ble_get_att_value_async , rsi_ble_get_multiple_att_values_async , rsi_ble_get_long_att_value_async , rsi_ble_set_att_value_async , rsi_ble_prepare_write_async , rsi_ble_execute_write_async , rsi_ble_get_profiles , rsi_ble_get_profile , rsi_ble_get_char_services , rsi_ble_get_inc_services , rsi_ble_get_char_value_by_uuid , rsi_ble_get_att_descriptors , rsi_ble_get_att_value , rsi_ble_get_multiple_att_values , rsi_ble_get_long_att_value , rsi_ble_set_att_value , rsi_ble_set_att_cmd , rsi_ble_set_long_att_value , rsi_ble_prepare_write , rsi_ble_execute_write , rsi_ble_add_service , rsi_ble_add_attribute , rsi_ble_set_local_att_value , rsi_ble_set_wo_resp_notify_buf_info , rsi_ble_notify_value , rsi_ble_indicate_value , rsi_ble_indicate_value_sync , rsi_ble_indicate_confirm , rsi_ble_get_local_att_value , rsi_ble_gatt_read_response , rsi_ble_remove_gatt_service , rsi_ble_remove_gatt_attibute , rsi_ble_att_error_response , rsi_ble_mtu_exchange_event , rsi_ble_mtu_exchange_resp , rsi_ble_gatt_write_response , rsi_ble_gatt_prepare_write_response , rsi_bt_a2dp_init , rsi_bt_a2dp_connect , rsi_bt_a2dp_disconnect , rsi_bt_a2dp_send_sbc_aac_data , rsi_bt_a2dp_start , rsi_bt_a2dp_suspend , rsi_bt_a2dp_close , rsi_bt_a2dp_abort , rsi_bt_a2dp_get_config , rsi_bt_a2dp_set_config , rsi_bt_avrcp_init , rsi_bt_avrcp_conn , rsi_bt_avrcp_disconn , rsi_bt_avrcp_play , rsi_bt_avrcp_pause , rsi_bt_avrcp_stop , rsi_bt_avrcp_next , rsi_bt_avrcp_previous , rsi_bt_avrcp_vol_up , rsi_bt_avrcp_vol_down , rsi_bt_avrcp_get_capabilities , rsi_bt_avrcp_get_att_list , rsi_bt_avrcp_get_att_vals_list , rsi_bt_avrcp_get_cur_att_val , rsi_bt_avrcp_set_cur_att_val , rsi_bt_avrcp_get_element_att , rsi_bt_avrcp_get_play_status , rsi_bt_avrcp_reg_notification , rsi_bt_avrcp_get_remote_version , rsi_bt_avrcp_get_att_text , rsi_bt_avrcp_get_att_val_text , rsi_bt_avrcp_batt_status , rsi_bt_avrcp_supp_char_sets , rsi_bt_avrcp_set_abs_vol , rsi_bt_avrcp_cap_resp , rsi_bt_avrcp_att_list_resp , rsi_bt_avrcp_att_val_list_resp , rsi_bt_avrcp_cur_att_val_resp , rsi_bt_avrcp_set_cur_att_val_resp , rsi_bt_avrcp_ele_att_resp , rsi_bt_avrcp_play_status_resp , rsi_bt_avrcp_reg_notify_resp , rsi_bt_avrcp_att_text_resp , rsi_bt_avrcp_att_vals_text_resp , rsi_bt_avrcp_batt_status_resp , rsi_bt_avrcp_char_set_status_resp , rsi_bt_avrcp_notify , rsi_bt_avrcp_cmd_reject , rsi_bt_avrcp_set_abs_vol_resp , rsi_bt_avrcp_set_addr_player_resp , rsi_bt_avrcp_get_folder_items_resp , rsi_bt_avrcp_get_tot_num_items_resp , rsi_bt_set_bd_addr , rsi_bt_ber_enable_or_disable , rsi_bt_set_local_name , rsi_bt_cmd_update_gain_table_offset_or_max_pwr , rsi_bt_get_local_name , rsi_bt_get_rssi , rsi_bt_get_local_device_address , rsi_bt_get_bt_stack_version , rsi_bt_init , rsi_bt_deinit , rsi_bt_set_antenna , rsi_bt_set_antenna_tx_power_level , rsi_bt_per_stats , rsi_bt_per_cw_mode , rsi_bt_vendor_avdtp_stats_enable , rsi_bt_vendor_ar_enable , rsi_bt_vendor_set_hapi_rect_val , rsi_bt_vendor_dynamic_pwr , rsi_bt_vendor_set_afh_classification_intervals , rsi_bt_set_local_class_of_device , rsi_bt_get_local_class_of_device , rsi_bt_start_discoverable , rsi_bt_start_limited_discoverable , rsi_bt_write_current_iac_lap , rsi_bt_stop_discoverable , rsi_bt_get_discoverable_status , rsi_bt_set_connectable , rsi_bt_set_afh_host_channel_classification , rsi_bt_get_afh_host_channel_classification , rsi_bt_set_non_connectable , rsi_bt_get_connectable_status , rsi_bt_enable_authentication , rsi_bt_disable_authentication , rsi_bt_get_authentication , rsi_bt_remote_name_request_async , rsi_bt_remote_name_request_cancel , rsi_bt_inquiry , rsi_bt_cancel_inquiry , rsi_bt_enable_device_under_testmode , rsi_bt_connect , rsi_bt_cancel_connect , rsi_bt_disconnect , rsi_bt_accept_ssp_confirm , rsi_bt_reject_ssp_confirm , rsi_bt_passkey , rsi_bt_pincode_request_reply , rsi_bt_linkkey_request_reply , rsi_bt_get_local_device_role , rsi_bt_set_local_device_role , rsi_bt_get_services_async , rsi_bt_search_service_async , rsi_bt_sniff_mode , rsi_bt_sniff_exit_mode , rsi_bt_sniff_subrating_mode , rsi_bt_set_ssp_mode , rsi_bt_set_eir_data , rsi_bt_per_rx , rsi_bt_per_tx , rsi_bt_add_device_id , rsi_bt_change_pkt_type , rsi_bt_ptt_req , rsi_bt_request_authentication , rsi_bt_encryption_enable_or_disable , rsi_bt_spp_init , rsi_bt_spp_connect , rsi_bt_spp_disconnect , and rsi_bt_spp_transfer

rsi_ascii_dev_address_to_6bytes_rev#

rsi_ascii_dev_address_to_6bytes_rev (bt_req_a2dp_pcm_mp3_pkt_part2. dev_addr, remote_dev_addr )
Parameters
N/Adev_addr
N/A

Definition at line 167 of file bluetooth/rsi_bt_a2dp_apis.c

memcpy#

memcpy (bt_req_a2dp_pcm_mp3_pkt_part2. dev_addr, (int8_t *) remote_dev_addr, 6 )
Parameters
N/Adev_addr
N/Aremote_dev_addr
N/A

Definition at line 169 of file bluetooth/rsi_bt_a2dp_apis.c

memcpy#

memcpy (bt_req_a2dp_pcm_mp3_pkt_part2. pcm_mp3_data, (pcm_mp3_data+sizeof(bt_req_a2dp_pcm_mp3_pkt_part1.pcm_mp3_data)) , bt_req_a2dp_pcm_mp3_pkt_part2. pcm_mp3_data_len)
Parameters
N/Apcm_mp3_data
N/A
N/Apcm_mp3_data_len

Definition at line 174 of file bluetooth/rsi_bt_a2dp_apis.c

SL_PRINTF#

SL_PRINTF (SL_RSI_BT_A2DP_SEND_PCM_MP3_DATA_TRIGGER , BLUETOOTH , LOG_INFO )
Parameters
N/A
N/A
N/A

Definition at line 178 of file bluetooth/rsi_bt_a2dp_apis.c

Referenced by rsi_ble_set_random_address , rsi_ble_set_random_address_with_value , rsi_ble_start_advertising , rsi_ble_start_advertising_with_values , rsi_ble_encrypt , rsi_ble_stop_advertising , rsi_ble_set_advertise_data , rsi_ble_set_scan_response_data , rsi_ble_start_scanning , rsi_ble_start_scanning_with_values , rsi_ble_stop_scanning , rsi_ble_connect_with_params , rsi_ble_connect , rsi_ble_connect_cancel , rsi_ble_disconnect , rsi_ble_get_device_state , rsi_ble_set_smp_pairing_cap_data , rsi_ble_set_local_irk_value , rsi_ble_conn_param_resp , rsi_ble_smp_pair_request , rsi_ble_ltk_req_reply , rsi_ble_smp_pair_response , rsi_ble_smp_passkey , rsi_ble_get_le_ping_timeout , rsi_ble_set_le_ping_timeout , rsi_ble_clear_acceptlist , rsi_ble_addto_acceptlist , rsi_ble_deletefrom_acceptlist , rsi_ble_resolvlist , rsi_ble_get_resolving_list_size , rsi_ble_set_addr_resolution_enable , rsi_ble_set_privacy_mode , rsi_ble_readphy , rsi_ble_setphy , rsi_ble_conn_params_update , rsi_ble_set_data_len , rsi_ble_read_max_data_len , rsi_ble_rx_test_mode , rsi_ble_tx_test_mode , rsi_ble_end_test_mode , rsi_ble_per_transmit , rsi_ble_per_receive , rsi_ble_vendor_rf_type , rsi_ble_accept_list_using_adv_data , BT_LE_ADPacketExtract , rsi_ble_update_directed_address , rsi_ble_start_encryption , rsi_ble_get_profiles_async , rsi_ble_get_profile_async , rsi_ble_get_char_services_async , rsi_ble_get_inc_services_async , rsi_ble_get_char_value_by_uuid_async , rsi_ble_get_att_descriptors_async , rsi_ble_get_att_value_async , rsi_ble_get_multiple_att_values_async , rsi_ble_get_long_att_value_async , rsi_ble_set_att_value_async , rsi_ble_prepare_write_async , rsi_ble_execute_write_async , rsi_ble_get_profiles , rsi_ble_get_profile , rsi_ble_get_char_services , rsi_ble_get_inc_services , rsi_ble_get_char_value_by_uuid , rsi_ble_get_att_descriptors , rsi_ble_get_att_value , rsi_ble_get_multiple_att_values , rsi_ble_get_long_att_value , rsi_ble_set_att_value , rsi_ble_set_att_cmd , rsi_ble_set_long_att_value , rsi_ble_prepare_write , rsi_ble_execute_write , rsi_ble_add_service , rsi_ble_add_attribute , rsi_ble_set_local_att_value , rsi_ble_set_wo_resp_notify_buf_info , rsi_ble_notify_value , rsi_ble_indicate_value , rsi_ble_indicate_value_sync , rsi_ble_indicate_confirm , rsi_ble_get_local_att_value , rsi_ble_gatt_read_response , rsi_ble_remove_gatt_service , rsi_ble_remove_gatt_attibute , rsi_ble_att_error_response , rsi_ble_mtu_exchange_event , rsi_ble_gatt_write_response , rsi_ble_gatt_prepare_write_response , rsi_bt_a2dp_init , rsi_bt_a2dp_connect , rsi_bt_a2dp_disconnect , rsi_bt_a2dp_send_sbc_aac_data , rsi_bt_a2dp_start , rsi_bt_a2dp_suspend , rsi_bt_a2dp_close , rsi_bt_a2dp_abort , rsi_bt_a2dp_get_config , rsi_bt_a2dp_set_config , rsi_bt_avrcp_init , rsi_bt_avrcp_conn , rsi_bt_avrcp_disconn , rsi_bt_avrcp_play , rsi_bt_avrcp_pause , rsi_bt_avrcp_stop , rsi_bt_avrcp_next , rsi_bt_avrcp_previous , rsi_bt_avrcp_vol_up , rsi_bt_avrcp_vol_down , rsi_bt_avrcp_get_capabilities , rsi_bt_avrcp_get_att_list , rsi_bt_avrcp_get_att_vals_list , rsi_bt_avrcp_get_cur_att_val , rsi_bt_avrcp_set_cur_att_val , rsi_bt_avrcp_get_element_att , rsi_bt_avrcp_get_play_status , rsi_bt_avrcp_reg_notification , rsi_bt_avrcp_get_remote_version , rsi_bt_avrcp_get_att_text , rsi_bt_avrcp_get_att_val_text , rsi_bt_avrcp_batt_status , rsi_bt_avrcp_supp_char_sets , rsi_bt_avrcp_set_abs_vol , rsi_bt_avrcp_cap_resp , rsi_bt_avrcp_att_list_resp , rsi_bt_avrcp_att_val_list_resp , rsi_bt_avrcp_cur_att_val_resp , rsi_bt_avrcp_set_cur_att_val_resp , rsi_bt_avrcp_ele_att_resp , rsi_bt_avrcp_play_status_resp , rsi_bt_avrcp_reg_notify_resp , rsi_bt_avrcp_att_text_resp , rsi_bt_avrcp_att_vals_text_resp , rsi_bt_avrcp_batt_status_resp , rsi_bt_avrcp_char_set_status_resp , rsi_bt_avrcp_notify , rsi_bt_avrcp_cmd_reject , rsi_bt_avrcp_set_abs_vol_resp , rsi_bt_avrcp_set_addr_player_resp , rsi_bt_avrcp_get_folder_items_resp , rsi_bt_avrcp_get_tot_num_items_resp , rsi_bt_clear_wait_bitmap , rsi_bt_set_wait_bitmap , rsi_bt_get_ACL_type , rsi_bt_get_proto_type , rsi_bt_get_timeout , rsi_bt_common_tx_done , rsi_get_bt_state , rsi_bt_set_status , rsi_ble_update_le_dev_buf , rsi_add_remote_ble_dev_info , rsi_remove_remote_ble_dev_info , rsi_driver_process_bt_resp , rsi_driver_process_bt_resp_handler , rsi_bt_cb_init , rsi_bt_global_cb_init , rsi_bt_common_init , rsi_bt_gap_register_callbacks , rsi_bt_gatt_extended_register_callbacks , rsi_bt_avdtp_events_register_callbacks , rsi_bt_pkt_change_events_register_callbacks , rsi_bt_ar_events_register_callbacks , rsi_bt_spp_register_callbacks , rsi_bt_a2dp_register_callbacks , rsi_bt_avrcp_register_callbacks , rsi_bt_avrcp_target_register_callbacks , rsi_bt_callbacks_handler , rsi_ble_gap_register_callbacks , rsi_ble_gap_extended_register_callbacks , rsi_ble_smp_register_callbacks , rsi_ble_gatt_register_callbacks , rsi_ble_callbacks_handler , rsi_ble_on_chip_memory_status_callbacks_register , rsi_bt_prepare_common_pkt , rsi_bt_prepare_classic_pkt , rsi_bt_prepare_le_pkt , rsi_bt_driver_send_cmd , intialize_bt_stack , rsi_bt_set_bd_addr , rsi_bt_ber_enable_or_disable , rsi_bt_set_local_name , rsi_bt_cmd_update_gain_table_offset_or_max_pwr , rsi_bt_get_local_name , rsi_bt_get_rssi , rsi_bt_get_local_device_address , rsi_bt_get_bt_stack_version , rsi_bt_init , rsi_bt_deinit , rsi_bt_set_antenna , rsi_bt_set_antenna_tx_power_level , rsi_bt_power_save_profile , rsi_bt_per_stats , rsi_bt_per_cw_mode , rsi_bt_vendor_avdtp_stats_enable , rsi_bt_vendor_ar_enable , rsi_bt_vendor_set_hapi_rect_val , rsi_bt_vendor_dynamic_pwr , rsi_bt_set_local_class_of_device , rsi_bt_get_local_class_of_device , rsi_bt_start_discoverable , rsi_bt_start_limited_discoverable , rsi_bt_spp_init , rsi_bt_spp_connect , rsi_bt_spp_disconnect , rsi_bt_spp_transfer , rsi_driver_init , rsi_wireless_init , rsi_cmd_uart_flow_ctrl , rsi_cmd_to_wr_comm_flash , rsi_cmd_m4_ta_secure_handshake , rsi_wireless_deinit , rsi_wireless_antenna , rsi_send_feature_frame_dyn , rsi_send_feature_frame , rsi_get_fw_version , rsi_get_module_type , rsi_common_debug_log , rsi_switch_proto , rsi_wireless_driver_task , rsi_driver_deinit , rsi_destroy_driver_task_and_driver_deinit , rsi_driver_version , rsi_set_rtc_timer , rsi_get_ram_log , rsi_uregister_events_callbacks , rsi_register_wait_timeout_error_callbacks , rsi_get_rtc_timer , rsi_ecdsa_256_verify_hash , rsi_assert , rsi_gpio_pininit , rsi_gpio_writepin , rsi_gpio_readpin , rsi_sha_pen , rsi_sha , rsi_hmac_sha_pen , rsi_hmac_sha , rsi_aes , rsi_aes_pen , rsi_exponentiation , rsi_ecdh_point_multiplication , rsi_ecdh_point_addition , rsi_ecdh_point_subtraction , rsi_ecdh_point_double , rsi_ecdh_point_affine , rsi_bl_upgrade_firmware , rsi_get_rom_version , rsi_get_ram_dump , rsi_bl_module_power_cycle , rsi_device_init , rsi_device_deinit , rsi_dhcp_user_class , rsi_dns_req , rsi_dns_update , rsi_tx_event_handler , rsi_emb_mqtt_client_init , rsi_emb_mqtt_connect , rsi_emb_mqtt_publish , rsi_emb_mqtt_subscribe , rsi_emb_mqtt_unsubscribe , rsi_emb_mqtt_disconnect , rsi_emb_mqtt_destroy , rsi_emb_mqtt_register_call_back , rsi_fwup_start , rsi_fwup_load , rsi_ftp_connect , rsi_ftp_disconnect , rsi_ftp_file_write , rsi_ftp_file_write_content , rsi_ftp_file_read_aysnc , rsi_ftp_file_delete , rsi_ftp_file_rename , rsi_ftp_directory_create , rsi_ftp_directory_delete , rsi_ftp_directory_set , rsi_ftp_directory_list_async , rsi_ftp_mode_set , rsi_ftp_file_size_set , rsi_http_client_async , rsi_http_client_abort , rsi_http_client_put_create , rsi_http_client_put_delete , rsi_http_client_put_start , rsi_http_client_put_pkt , rsi_http_client_post_data , rsi_http_otaf_async , rsi_webpage_load , rsi_webpage_erase , rsi_json_object_delete , rsi_webpage_send , rsi_http_credentials , rsi_mdnsd_init , rsi_mdnsd_register_service , rsi_mdnsd_deinit , rsi_mqtt_client_init , rsi_mqtt_connect , rsi_mqtt_disconnect , rsi_mqtt_publish , rsi_mqtt_subscribe , rsi_mqtt_unsubscribe , rsi_mqtt_poll_for_recv_data , rsi_multicast_join , rsi_multicast_leave , rsi_nwk_register_callbacks , rsi_send_raw_data , rsi_sdio_iface_init , rsi_sntp_client_create_async , rsi_sntp_client_gettime , rsi_sntp_client_gettime_date , rsi_sntp_client_server_info , rsi_sntp_client_delete_async , rsi_spi_iface_init , rsi_uart_init , rsi_web_socket_create , rsi_web_socket_send_async , rsi_web_socket_close , rsi_wlan_radio_init , rsi_wlan_filter_broadcast , rsi_sort_scan_results_array_based_on_rssi , rsi_wlan_scan_with_bitmap_options , rsi_wlan_scan_async_with_bitmap_options , rsi_wlan_scan , rsi_wlan_scan_async , rsi_wlan_connect , rsi_wlan_connect_async , rsi_wlan_bgscan_profile , rsi_wlan_execute_post_connect_cmds , rsi_wlan_wps_push_button_event , rsi_send_freq_offset , rsi_calib_write , rsi_calib_read , rsi_calibrate_dpd , rsi_wlan_wps_generate_pin , rsi_wlan_wps_enter_pin , rsi_wlan_beacon_stop , rsi_get_random_bytes , rsi_wlan_ap_stop , rsi_wlan_disconnect , rsi_wlan_disconnect_stations , rsi_config_ipaddress , rsi_wlan_set_certificate_index , rsi_wlan_set_certificate , rsi_wlan_get_status , rsi_wlan_get , rsi_wlan_set , rsi_wlan_buffer_config , rsi_wlan_ap_start , rsi_wlan_power_save_with_listen_interval , rsi_wlan_power_save_profile , rsi_wlan_power_save_disable_and_enable , rsi_transmit_test_start , rsi_transmit_test_stop , rsi_wlan_receive_stats_start , rsi_wlan_receive_stats_stop , rsi_wlan_send_data , rsi_wlan_ping_async , rsi_register_auto_config_rsp_handler , rsi_wlan_add_profile , rsi_wlan_get_state , rsi_wlan_get_profile , rsi_fill_config_profile , rsi_wlan_delete_profile , rsi_wlan_enable_auto_config , rsi_wlan_pmk_generate , rsi_wlan_set_sleep_timer , rsi_wlan_register_callbacks , rsi_wlan_radio_deinit , rsi_wlan_update_gain_table , rsi_wlan_csi_config_async , rsi_send_evm_offset , and rsi_evm_write

rsi_bt_driver_send_cmd#

return rsi_bt_driver_send_cmd (RSI_BT_REQ_A2DP_PCM_MP3_DATA , & bt_req_a2dp_pcm_mp3_pkt_part2, NULL )
Parameters
N/A
N/Abt_req_a2dp_pcm_mp3_pkt_part2
N/A

Definition at line 179 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_send_sbc_aac_data#

int32_t rsi_bt_a2dp_send_sbc_aac_data (uint8_t * remote_dev_addr, uint8_t * sbc_aac_data, uint16_t sbc_aac_data_len, uint8_t audio_type)

Send the SBC/AAC data to the BT stack. This is a blocking API. if returns RSI_APP_ERR_HW_BUFFER_OVERFLOW err means that the firmware buffers are full and eventually host will receive a event rsi_bt_on_a2dp_data_req_t which requests more data from application.

Parameters
[in]remote_dev_addr

- remote device address

[in]sbc_aac_data

- SBC/AAC data buffer.

[in]sbc_aac_data_len

- SBC/AAC data length.

[in]audio_type

- audio type.
0 - Reserved
1 - PCM Audio
2 - SBC Audio
3 - MP3 Audio

Returns

  • 0 - Success
    Non-Zero Value - Failure
    0x4512 RSI_APP_ERR_A2DP_NOT_STREAMING
    0x4049 RSI_APP_ERR_A2DP_INVALID_SOCKET
    0x4057 RSI_APP_ERR_HW_BUFFER_OVERFLOW
    0x405D RSI_APP_ERR_HW_BUFFER_OVERFLOW_TIMEOUT

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 212 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_start#

int32_t rsi_bt_a2dp_start (uint8_t * remote_dev_addr)

Send the A2DP start to the BT stack to start the stream procedure. This is a blocking API. A received event rsi_bt_on_a2dp_start_t indicates that the a2dp start response.

Parameters
[in]remote_dev_addr

- remote device address.

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 245 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_suspend#

int32_t rsi_bt_a2dp_suspend (uint8_t * remote_dev_addr)

Send the A2DP suspend to the BT stack. This is a blocking API. A received event rsi_bt_on_a2dp_suspend_t indicates that the a2dp suspend response.

Parameters
[in]remote_dev_addr

- remote device address.

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 271 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_close#

int32_t rsi_bt_a2dp_close (uint8_t * remote_dev_addr)

Send the A2DP close to the BT stack for removing the a2dp stream. This is a blocking API. A received event rsi_bt_on_a2dp_close_t indicates that the a2dp close response.

Parameters
[in]remote_dev_addr

- remote device address.

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 297 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_abort#

int32_t rsi_bt_a2dp_abort (uint8_t * remote_dev_addr)

Send the A2DP abort to the BT stack for aborting the exsting a2dp link. This is a blocking API. A received event rsi_bt_on_a2dp_abort_t indicates that the a2dp abort response.

Parameters
[in]remote_dev_addr

- remote device address

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 323 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_get_config#

int32_t rsi_bt_a2dp_get_config (uint8_t * remote_dev_addr, rsi_bt_resp_a2dp_get_config_t * sbc_resp_cap)

To get remote device CODEC configuration. This is a blocking API.
.

Parameters
[in]remote_dev_addr

- remote device address

[out]sbc_resp_cap

- get audio codec params response from stack, please refer rsi_bt_resp_a2dp_get_config_s structure for more info.

Returns

  • 0 - Success
    Non-Zero Value - Failure

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 349 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_set_config#

int32_t rsi_bt_a2dp_set_config (uint8_t * remote_dev_addr, rsi_bt_a2dp_sbc_codec_cap_t * set_sbc_cap, int32_t * status)

Set A2DP CODEC configuration. Used for A2DP Reconfig purposes. This is a blocking API. A received event rsi_bt_on_a2dp_reconfig_t indicates that the a2dp reconfig response.

Parameters
[in]remote_dev_addr

- remote device address

[in]set_sbc_cap

- new SBC codec params used for reconfig, please refer rsi_bt_a2dp_sbc_codec_cap_s structure for more info.

[in]status

- This is the response status.

Returns

  • 0 - Success
    Non-Zero Value - Failure
    0x4513 RSI_APP_ERR_A2DP_SBC_SAME_CODEC_PARAMS
    0x4514 RSI_APP_ERR_A2DP_RECONFIG_CMD_TIMEOUT

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 381 of file bluetooth/rsi_bt_a2dp_apis.c

rsi_bt_a2dp_send_pcm_mp3_data#

int32_t rsi_bt_a2dp_send_pcm_mp3_data (uint8_t * remote_dev_addr, uint8_t * pcm_mp3_data, uint16_t pcm_mp3_data_len, uint8_t audio_type)

Send the PCM data to the BT stack. This is a blocking API. if returns RSI_APP_ERR_HW_BUFFER_OVERFLOW err means that the firmware buffers are full and eventually host will receive a event rsi_bt_on_a2dp_data_req_t which requests more data from application.

Parameters
[in]remote_dev_addr

- remote device address

[in]pcm_mp3_data

- PCM data buffer.

[in]pcm_mp3_data_len

- PCM data length.

[in]audio_type

- audio type.
0 - Reserved
1 - PCM Audio
2 - SBC Audio
3 - MP3 Audio

Returns

  • 0 - Success
    Non-Zero Value - Failure
    0x4512 RSI_APP_ERR_A2DP_NOT_STREAMING
    0x4049 RSI_APP_ERR_A2DP_INVALID_SOCKET
    0x4057 RSI_APP_ERR_HW_BUFFER_OVERFLOW

Note

  • Refer Error Codes section for common error codes Error Codes .


Definition at line 3615 of file include/rsi_bt_apis.h