Register callbacks#

Functions#

void
rsi_bt_gap_register_callbacks(rsi_bt_on_role_change_t bt_on_role_change_status_event, rsi_bt_on_connect_t bt_on_conn_status_event, rsi_bt_on_unbond_t bt_on_unbond_status, rsi_bt_on_disconnect_t bt_on_disconnect_event, rsi_bt_on_scan_resp_t bt_on_scan_resp_event, rsi_bt_on_remote_name_resp_t bt_on_remote_name_resp_event, rsi_bt_on_passkey_display_t bt_on_passkey_display_event, rsi_bt_on_remote_name_request_cancel_t bt_on_remote_name_request_cancel_event, rsi_bt_on_confirm_request_t bt_on_confirm_request_event, rsi_bt_on_pincode_request_t bt_on_pincode_request_event, rsi_bt_on_passkey_request_t bt_on_passkey_request_event, rsi_bt_on_inquiry_complete_t bt_on_inquiry_complete_event, rsi_bt_on_auth_complete_t bt_on_auth_complete_event, rsi_bt_on_linkkey_request_t bt_on_linkkey_request_event, rsi_bt_on_ssp_complete_t bt_on_ssp_complete_event, rsi_bt_on_linkkey_save_t bt_on_linkkey_save_event, rsi_bt_on_get_services_t bt_on_get_services_event, rsi_bt_on_search_service_t bt_on_search_service_event, rsi_bt_on_mode_chnage_t bt_on_mode_change_event, rsi_bt_on_sniff_subrating_t bt_on_sniff_subrating_event, rsi_bt_on_connection_initiated_t bt_on_connection_initiated)

Register the GAP callbacks.

void
rsi_bt_avdtp_events_register_callbacks(rsi_bt_on_avdtp_stats_t bt_on_avdtp_stats_event)

Register the AVDTP Event callbacks.

void
rsi_bt_pkt_change_events_register_callbacks(rsi_bt_pkt_change_stats_t bt_pkt_change_stats_event)

Register the HCI callbacks.

void
rsi_bt_ar_events_register_callbacks(rsi_bt_on_ar_stats_t bt_on_ar_stats_event)

Register events stats callbacks.

void
rsi_bt_spp_register_callbacks(rsi_bt_on_spp_connect_t bt_on_spp_connect_event, rsi_bt_on_spp_disconnect_t bt_on_spp_disconnect_event, rsi_bt_on_spp_rx_data_t bt_on_spp_rx_data_event)

Register the SPP callbacks.

void
rsi_bt_a2dp_register_callbacks(rsi_bt_on_a2dp_connect_t bt_on_a2dp_connect_event, rsi_bt_on_a2dp_disconnect_t bt_on_a2dp_disconnect_event, rsi_bt_on_a2dp_configure_t bt_on_a2dp_configure_event, rsi_bt_on_a2dp_open_t bt_on_a2dp_open_event, rsi_bt_on_a2dp_start_t bt_on_a2dp_start_event, rsi_bt_on_a2dp_suspend_t bt_on_a2dp_suspend_event, rsi_bt_on_a2dp_abort_t bt_on_a2dp_abort_event, rsi_bt_on_a2dp_close_t bt_on_a2dp_close_event, rsi_bt_on_a2dp_encode_data_t bt_on_a2dp_encode_data_event, rsi_bt_on_a2dp_pcm_data_t bt_on_a2dp_pcm_data_event, rsi_bt_on_a2dp_data_req_t bt_on_a2dp_data_req_event, rsi_bt_on_a2dp_reconfig_t bt_on_a2dp_reconfig_event)

Register the A2DP callbacks.

void
rsi_bt_avrcp_register_callbacks(rsi_bt_on_avrcp_connect_t bt_on_avrcp_connect_event, rsi_bt_on_avrcp_disconnect_t bt_on_avrcp_disconnect_event, rsi_bt_on_avrcp_play_t bt_on_avrcp_play_event, rsi_bt_on_avrcp_pause_t bt_on_avrcp_pause_event, rsi_bt_on_avrcp_stop_t bt_on_avrcp_stop_event, rsi_bt_on_avrcp_next_t bt_on_avrcp_next_event, rsi_bt_on_avrcp_previous_t bt_on_avrcp_previous_event, rsi_bt_on_avrcp_vol_up_t bt_on_avrcp_vol_up_event, rsi_bt_on_avrcp_vol_down_t bt_on_avrcp_vol_down_event, rsi_bt_on_avrcp_get_elem_attr_resp_t bt_on_avrcp_get_elem_attr_resp_event, rsi_bt_on_avrcp_notify_event_t bt_on_avrcp_notify_event)

Register the AVRCP callbacks.

void
rsi_bt_avrcp_target_register_callbacks(rsi_bt_on_avrcp_get_cap_event_t bt_on_avrcp_gat_cap, rsi_bt_on_avrcp_get_app_supp_atts_event_t bt_on_avrcp_get_app_att_list, rsi_bt_on_avrcp_get_app_suup_att_vals_event_t bt_on_avrcp_get_app_att_vals_list, rsi_bt_on_avrcp_get_app_cur_att_val_event_t bt_on_avrcp_get_app_cur_att_val, rsi_bt_on_avrcp_set_app_cur_att_val_event_t bt_on_avrcp_set_app_cur_att_val, rsi_bt_on_avrcp_get_app_att_text_event_t bt_on_avrcp_get_app_att_text, rsi_bt_on_avrcp_get_app_att_vals_text_event_t bt_on_avrcp_get_app_att_vals_text, rsi_bt_on_avrcp_supp_char_sets_event_t bt_on_avrcp_supp_char_sets, rsi_bt_on_avrcp_batt_status_event_t bt_on_avrcp_batt_status, rsi_bt_on_avrcp_get_song_atts_event_t bt_on_avrcp_get_song_atts, rsi_bt_on_avrcp_get_play_status_event_t bt_on_avrcp_get_player_status, rsi_bt_on_avrcp_reg_notify_event_t bt_on_avrcp_reg_notifivation, rsi_bt_on_avrcp_set_abs_vol_event_t bt_on_avrcp_set_abs_vol, rsi_bt_on_avrcp_set_addr_player_event_t bt_on_avrcp_set_addr_player, rsi_bt_on_avrcp_get_folder_items_event_t bt_on_avrcp_get_folder_items, rsi_bt_on_avrcp_get_tot_num_items_event_t bt_on_avrcp_get_tot_num_items)

Register the AVRCP target callbacks.

Function Documentation#

rsi_bt_gap_register_callbacks#

void rsi_bt_gap_register_callbacks (rsi_bt_on_role_change_t bt_on_role_change_status_event, rsi_bt_on_connect_t bt_on_conn_status_event, rsi_bt_on_unbond_t bt_on_unbond_status, rsi_bt_on_disconnect_t bt_on_disconnect_event, rsi_bt_on_scan_resp_t bt_on_scan_resp_event, rsi_bt_on_remote_name_resp_t bt_on_remote_name_resp_event, rsi_bt_on_passkey_display_t bt_on_passkey_display_event, rsi_bt_on_remote_name_request_cancel_t bt_on_remote_name_request_cancel_event, rsi_bt_on_confirm_request_t bt_on_confirm_request_event, rsi_bt_on_pincode_request_t bt_on_pincode_request_event, rsi_bt_on_passkey_request_t bt_on_passkey_request_event, rsi_bt_on_inquiry_complete_t bt_on_inquiry_complete_event, rsi_bt_on_auth_complete_t bt_on_auth_complete_event, rsi_bt_on_linkkey_request_t bt_on_linkkey_request_event, rsi_bt_on_ssp_complete_t bt_on_ssp_complete_event, rsi_bt_on_linkkey_save_t bt_on_linkkey_save_event, rsi_bt_on_get_services_t bt_on_get_services_event, rsi_bt_on_search_service_t bt_on_search_service_event, rsi_bt_on_mode_chnage_t bt_on_mode_change_event, rsi_bt_on_sniff_subrating_t bt_on_sniff_subrating_event, rsi_bt_on_connection_initiated_t bt_on_connection_initiated)

Register the GAP callbacks.

Parameters
[in]bt_on_role_change_status_event

- Connection status callback

[in]bt_on_conn_status_event

- Connection status callback

[in]bt_on_unbond_status

- Connection status callback

[in]bt_on_disconnect_event

- Disconnection status callback

[in]bt_on_scan_resp_event

- Scan report callback

[in]bt_on_remote_name_resp_event

- Remote name report callback

[in]bt_on_passkey_display_event

- Passkey display report callback

[in]bt_on_remote_name_request_cancel_event

- Remote name request cancel status callback

[in]bt_on_confirm_request_event

- Authentication status callback

[in]bt_on_pincode_request_event

- Pincode request status callback

[in]bt_on_passkey_request_event

- Passkey request status callback

[in]bt_on_inquiry_complete_event

- Inquiry report callback

[in]bt_on_auth_complete_event

- Authentication status callback

[in]bt_on_linkkey_request_event

- Linkkey request report callback

[in]bt_on_ssp_complete_event

- SSP status callback

[in]bt_on_linkkey_save_event

- Linkkey save status callback

[in]bt_on_get_services_event

- Get services report callback

[in]bt_on_search_service_event

- Search service status callback

N/Abt_on_mode_change_event
N/Abt_on_sniff_subrating_event
N/Abt_on_connection_initiated

Returns

  • void


Definition at line 944 of file driver/rsi_bt_ble.c

References SL_PRINTF , rsi_driver_cb_s::bt_classic_cb , rsi_bt_cb_s::bt_global_cb , rsi_bt_global_cb_s::bt_specific_cb , rsi_bt_classic_cb_s::bt_on_role_change_status_event , rsi_bt_classic_cb_s::bt_on_conn_status_event , rsi_bt_classic_cb_s::bt_on_unbond_status , rsi_bt_classic_cb_s::bt_on_disconnect_event , rsi_bt_classic_cb_s::bt_on_scan_resp_event , rsi_bt_classic_cb_s::bt_on_remote_name_resp_event , rsi_bt_classic_cb_s::bt_on_passkey_display_event , rsi_bt_classic_cb_s::bt_on_remote_name_request_cancel_event , rsi_bt_classic_cb_s::bt_on_confirm_request_event , rsi_bt_classic_cb_s::bt_on_pincode_request_event , rsi_bt_classic_cb_s::bt_on_passkey_request_event , rsi_bt_classic_cb_s::bt_on_inquiry_complete_event , rsi_bt_classic_cb_s::bt_on_auth_complete_event , rsi_bt_classic_cb_s::bt_on_linkkey_request_event , rsi_bt_classic_cb_s::bt_on_ssp_complete_event , rsi_bt_classic_cb_s::bt_on_linkkey_save_event , rsi_bt_classic_cb_s::bt_on_get_services_event , rsi_bt_classic_cb_s::bt_on_search_service_event , rsi_bt_classic_cb_s::bt_on_mode_change_event , rsi_bt_classic_cb_s::bt_on_sniff_subrating_event , and rsi_bt_classic_cb_s::bt_on_connection_initiated

rsi_bt_avdtp_events_register_callbacks#

void rsi_bt_avdtp_events_register_callbacks (rsi_bt_on_avdtp_stats_t bt_on_avdtp_stats_event)

Register the AVDTP Event callbacks.

Parameters
[in]bt_on_avdtp_stats_event

- AVDP stats callback

Returns

  • void


Definition at line 1031 of file driver/rsi_bt_ble.c

rsi_bt_pkt_change_events_register_callbacks#

void rsi_bt_pkt_change_events_register_callbacks (rsi_bt_pkt_change_stats_t bt_pkt_change_stats_event)

Register the HCI callbacks.

Parameters
[in]bt_pkt_change_stats_event

- This a callback function and will be called when ever packet change event received from the module.

Returns

  • void


Definition at line 1048 of file driver/rsi_bt_ble.c

rsi_bt_ar_events_register_callbacks#

void rsi_bt_ar_events_register_callbacks (rsi_bt_on_ar_stats_t bt_on_ar_stats_event)

Register events stats callbacks.

Parameters
[in]bt_on_ar_stats_event

- Status Event callback

Returns

  • void


Definition at line 1090 of file driver/rsi_bt_ble.c

rsi_bt_spp_register_callbacks#

void rsi_bt_spp_register_callbacks (rsi_bt_on_spp_connect_t bt_on_spp_connect_event, rsi_bt_on_spp_disconnect_t bt_on_spp_disconnect_event, rsi_bt_on_spp_rx_data_t bt_on_spp_rx_data_event)

Register the SPP callbacks.

Parameters
[in]bt_on_spp_connect_event

- spp connection status callback

[in]bt_on_spp_disconnect_event

- spp disconnection status callback

[in]bt_on_spp_rx_data_event

- spp data transfer status callback

Returns

  • void


Definition at line 1172 of file driver/rsi_bt_ble.c

rsi_bt_a2dp_register_callbacks#

void rsi_bt_a2dp_register_callbacks (rsi_bt_on_a2dp_connect_t bt_on_a2dp_connect_event, rsi_bt_on_a2dp_disconnect_t bt_on_a2dp_disconnect_event, rsi_bt_on_a2dp_configure_t bt_on_a2dp_configure_event, rsi_bt_on_a2dp_open_t bt_on_a2dp_open_event, rsi_bt_on_a2dp_start_t bt_on_a2dp_start_event, rsi_bt_on_a2dp_suspend_t bt_on_a2dp_suspend_event, rsi_bt_on_a2dp_abort_t bt_on_a2dp_abort_event, rsi_bt_on_a2dp_close_t bt_on_a2dp_close_event, rsi_bt_on_a2dp_encode_data_t bt_on_a2dp_encode_data_event, rsi_bt_on_a2dp_pcm_data_t bt_on_a2dp_pcm_data_event, rsi_bt_on_a2dp_data_req_t bt_on_a2dp_data_req_event, rsi_bt_on_a2dp_reconfig_t bt_on_a2dp_reconfig_event)

Register the A2DP callbacks.

Parameters
[in]bt_on_a2dp_connect_event

- A2DP connection status callback

[in]bt_on_a2dp_disconnect_event

- A2DP disconnection status callback

[in]bt_on_a2dp_configure_event

- A2DP configure status callback

[in]bt_on_a2dp_open_event

- A2DP open callback

[in]bt_on_a2dp_start_event

- A2DP start status callback

[in]bt_on_a2dp_suspend_event

- A2DP suspend status callback

[in]bt_on_a2dp_abort_event

- A2DP abort status callback

[in]bt_on_a2dp_close_event

- A2DP close status callback

[in]bt_on_a2dp_encode_data_event

- A2DP encode data stauts callback

[in]bt_on_a2dp_pcm_data_event

- A2DP pcm data status callback

[in]bt_on_a2dp_data_req_event

- A2DP data request status callback

[in]bt_on_a2dp_reconfig_event

- A2DP reconfig status callback

Returns

  • void


Definition at line 1206 of file driver/rsi_bt_ble.c

rsi_bt_avrcp_register_callbacks#

void rsi_bt_avrcp_register_callbacks (rsi_bt_on_avrcp_connect_t bt_on_avrcp_connect_event, rsi_bt_on_avrcp_disconnect_t bt_on_avrcp_disconnect_event, rsi_bt_on_avrcp_play_t bt_on_avrcp_play_event, rsi_bt_on_avrcp_pause_t bt_on_avrcp_pause_event, rsi_bt_on_avrcp_stop_t bt_on_avrcp_stop_event, rsi_bt_on_avrcp_next_t bt_on_avrcp_next_event, rsi_bt_on_avrcp_previous_t bt_on_avrcp_previous_event, rsi_bt_on_avrcp_vol_up_t bt_on_avrcp_vol_up_event, rsi_bt_on_avrcp_vol_down_t bt_on_avrcp_vol_down_event, rsi_bt_on_avrcp_get_elem_attr_resp_t bt_on_avrcp_get_elem_attr_resp_event, rsi_bt_on_avrcp_notify_event_t bt_on_avrcp_notify_event)

Register the AVRCP callbacks.

Parameters
[in]bt_on_avrcp_connect_event

- AVRCP connection status callback

[in]bt_on_avrcp_disconnect_event

- AVRCP disconnection status callback

[in]bt_on_avrcp_play_event

- AVRCP play status callback

[in]bt_on_avrcp_pause_event

- AVRCP pause status callback

[in]bt_on_avrcp_stop_event

- AVRCP stop status callback

[in]bt_on_avrcp_next_event

- AVRCP next status callback

[in]bt_on_avrcp_previous_event

- AVRCP previous status callback

[in]bt_on_avrcp_vol_up_event

- AVRCP vol up status callback

[in]bt_on_avrcp_vol_down_event

- AVRCP vol down status callback

[in]bt_on_avrcp_get_elem_attr_resp_event

- AVRCP elem attr resp status callback

N/Abt_on_avrcp_notify_event

Returns

  • void


Definition at line 1256 of file driver/rsi_bt_ble.c

rsi_bt_avrcp_target_register_callbacks#

void rsi_bt_avrcp_target_register_callbacks (rsi_bt_on_avrcp_get_cap_event_t bt_on_avrcp_gat_cap, rsi_bt_on_avrcp_get_app_supp_atts_event_t bt_on_avrcp_get_app_att_list, rsi_bt_on_avrcp_get_app_suup_att_vals_event_t bt_on_avrcp_get_app_att_vals_list, rsi_bt_on_avrcp_get_app_cur_att_val_event_t bt_on_avrcp_get_app_cur_att_val, rsi_bt_on_avrcp_set_app_cur_att_val_event_t bt_on_avrcp_set_app_cur_att_val, rsi_bt_on_avrcp_get_app_att_text_event_t bt_on_avrcp_get_app_att_text, rsi_bt_on_avrcp_get_app_att_vals_text_event_t bt_on_avrcp_get_app_att_vals_text, rsi_bt_on_avrcp_supp_char_sets_event_t bt_on_avrcp_supp_char_sets, rsi_bt_on_avrcp_batt_status_event_t bt_on_avrcp_batt_status, rsi_bt_on_avrcp_get_song_atts_event_t bt_on_avrcp_get_song_atts, rsi_bt_on_avrcp_get_play_status_event_t bt_on_avrcp_get_player_status, rsi_bt_on_avrcp_reg_notify_event_t bt_on_avrcp_reg_notifivation, rsi_bt_on_avrcp_set_abs_vol_event_t bt_on_avrcp_set_abs_vol, rsi_bt_on_avrcp_set_addr_player_event_t bt_on_avrcp_set_addr_player, rsi_bt_on_avrcp_get_folder_items_event_t bt_on_avrcp_get_folder_items, rsi_bt_on_avrcp_get_tot_num_items_event_t bt_on_avrcp_get_tot_num_items)

Register the AVRCP target callbacks.

Parameters
[in]bt_on_avrcp_gat_cap

- AVRCP gat callback

[in]bt_on_avrcp_get_app_att_list

- AVRCP get application callbacks

[in]bt_on_avrcp_get_app_att_vals_list

- AVRCP get application list callback

[in]bt_on_avrcp_get_app_cur_att_val

- AVRCP get current value callback

[in]bt_on_avrcp_set_app_cur_att_val

-AVRCP set current value callback

[in]bt_on_avrcp_get_app_att_text

- AVRCP get text callback

[in]bt_on_avrcp_get_app_att_vals_text

- AVRCP get vals text callback

[in]bt_on_avrcp_supp_char_sets

- AVRCP support character set callback

[in]bt_on_avrcp_batt_status

- AVRCP status callback

[in]bt_on_avrcp_get_song_atts

- AVRCP get song

[in]bt_on_avrcp_get_player_status

- AVRCP get player status callback

[in]bt_on_avrcp_reg_notifivation

- AVRCP notification callback

[in]bt_on_avrcp_set_abs_vol

- AVRCP set abs volume callback

N/Abt_on_avrcp_set_addr_player
N/Abt_on_avrcp_get_folder_items
N/Abt_on_avrcp_get_tot_num_items

Returns

  • void


Definition at line 1306 of file driver/rsi_bt_ble.c

References SL_PRINTF , rsi_driver_cb_s::bt_classic_cb , rsi_bt_cb_s::bt_global_cb , rsi_bt_global_cb_s::bt_specific_cb , rsi_bt_classic_cb_s::bt_on_avrcp_gat_cap , rsi_bt_classic_cb_s::bt_on_avrcp_get_app_att_list , rsi_bt_classic_cb_s::bt_on_avrcp_get_app_att_vals_list , rsi_bt_classic_cb_s::bt_on_avrcp_get_app_cur_att_val , rsi_bt_classic_cb_s::bt_on_avrcp_set_app_cur_att_val , rsi_bt_classic_cb_s::bt_on_avrcp_get_app_att_text , rsi_bt_classic_cb_s::bt_on_avrcp_get_app_att_vals_text , rsi_bt_classic_cb_s::bt_on_avrcp_supp_char_sets , rsi_bt_classic_cb_s::bt_on_avrcp_batt_status , rsi_bt_classic_cb_s::bt_on_avrcp_get_song_atts , rsi_bt_classic_cb_s::bt_on_avrcp_get_player_status , rsi_bt_classic_cb_s::bt_on_avrcp_reg_notifivation , rsi_bt_classic_cb_s::bt_on_avrcp_set_abs_vol , rsi_bt_classic_cb_s::bt_on_avrcp_set_addr_player , rsi_bt_classic_cb_s::bt_on_avrcp_get_folder_items , and rsi_bt_classic_cb_s::bt_on_avrcp_get_tot_num_items