Register callbacks#
Functions#
Register GAP callbacks.
Register GAP Extended responses/events callbacks.
Register the SMP callbacks.
Register the GATT callbacks.
Register the GATT Extended responses/events callbacks.
Function Documentation#
rsi_ble_gap_register_callbacks#
void rsi_ble_gap_register_callbacks (rsi_ble_on_adv_report_event_t ble_on_adv_report_event, rsi_ble_on_connect_t ble_on_conn_status_event, rsi_ble_on_disconnect_t ble_on_disconnect_event, rsi_ble_on_le_ping_payload_timeout_t ble_on_le_ping_time_expired_event, rsi_ble_on_phy_update_complete_t ble_on_phy_update_complete_event, rsi_ble_on_data_length_update_t rsi_ble_on_data_length_update_event, rsi_ble_on_enhance_connect_t ble_on_enhance_conn_status_event, rsi_ble_on_directed_adv_report_event_t ble_on_directed_adv_report_event, rsi_ble_on_conn_update_complete_t ble_on_conn_update_complete_event, rsi_ble_on_remote_conn_params_request_t ble_on_remote_conn_params_request_event)
Register GAP callbacks.
[in] | ble_on_adv_report_event | - Callback function for Advertise events |
[in] | ble_on_conn_status_event | - Callback function for Connect events |
[in] | ble_on_disconnect_event | - Callback function for Disconnect events |
[in] | ble_on_le_ping_time_expired_event | - Callback function for le ping timeout events |
[in] | ble_on_phy_update_complete_event | - Callback function for phy update complete events |
[in] | rsi_ble_on_data_length_update_event | - Callback function for data length update events |
[in] | ble_on_enhance_conn_status_event | - Callback function for enhanced connection status events |
[in] | ble_on_directed_adv_report_event | - Callback function for directed advertiseing report events |
[in] | ble_on_conn_update_complete_event | - Callback function for conn update complete events |
[in] | ble_on_remote_conn_params_request_event | - Callback function to remote conn params request events |
Returns
void
2254
of file driver/rsi_bt_ble.c
rsi_ble_gap_extended_register_callbacks#
void rsi_ble_gap_extended_register_callbacks (rsi_ble_on_remote_features_t ble_on_remote_features_event, rsi_ble_on_le_more_data_req_t ble_on_le_more_data_req_event)
Register GAP Extended responses/events callbacks.
[in] | ble_on_remote_features_event | - Call back function for Remote feature request |
[in] | ble_on_le_more_data_req_event | - Call back function for LE More data request |
rsi_wireless_init() API needs to be called before this API.
Note
For more information about each callback, please refer to GAP Extended callbacks description section.
Returns
void
2292
of file driver/rsi_bt_ble.c
rsi_ble_smp_register_callbacks#
void rsi_ble_smp_register_callbacks (rsi_ble_on_smp_request_t ble_on_smp_request_event, rsi_ble_on_smp_response_t ble_on_smp_response_event, rsi_ble_on_smp_passkey_t ble_on_smp_passkey_event, rsi_ble_on_smp_failed_t ble_on_smp_failed_event, rsi_ble_on_encrypt_started_t ble_on_smp_encryptrd, rsi_ble_on_smp_passkey_display_t ble_on_smp_passkey_display_event, rsi_ble_on_sc_passkey_t ble_sc_passkey_event, rsi_ble_on_le_ltk_req_event_t ble_on_le_ltk_req_event, rsi_ble_on_le_security_keys_t ble_on_le_security_keys_event, rsi_ble_on_smp_response_t ble_on_cli_smp_response_event, rsi_ble_on_sc_method_t ble_on_sc_method_event)
Register the SMP callbacks.
[in] | ble_on_smp_request_event | - smp request callback |
[in] | ble_on_smp_response_event | - smp response callback |
[in] | ble_on_smp_passkey_event | - smp passkey callback |
[in] | ble_on_smp_failed_event | - smp failed callback |
[in] | ble_on_smp_encryptrd | - encription enabled callback |
[in] | ble_on_smp_passkey_display_event | - smp passkey display callback |
[in] | ble_sc_passkey_event | - sc passkey display callback |
[in] | ble_on_le_ltk_req_event | - This is the SMP ltk request callback |
[in] | ble_on_le_security_keys_event | - This is the SMP security keys callback |
[in] | ble_on_cli_smp_response_event | - sc method display callback |
N/A | ble_on_sc_method_event |
Returns
void
2325
of file driver/rsi_bt_ble.c
rsi_ble_gatt_register_callbacks#
void rsi_ble_gatt_register_callbacks (rsi_ble_on_profiles_list_resp_t ble_on_profiles_list_resp, rsi_ble_on_profile_resp_t ble_on_profile_resp, rsi_ble_on_char_services_resp_t ble_on_char_services_resp, rsi_ble_on_inc_services_resp_t ble_on_inc_services_resp, rsi_ble_on_att_desc_resp_t ble_on_att_desc_resp, rsi_ble_on_read_resp_t ble_on_read_resp, rsi_ble_on_write_resp_t ble_on_write_resp, rsi_ble_on_gatt_write_event_t ble_on_gatt_event, rsi_ble_on_gatt_prepare_write_event_t ble_on_gatt_prepare_write_event, rsi_ble_on_execute_write_event_t ble_on_execute_write_event, rsi_ble_on_read_req_event_t ble_on_read_req_event, rsi_ble_on_mtu_event_t ble_on_mtu_event, rsi_ble_on_gatt_error_resp_t ble_on_gatt_error_resp_event, rsi_ble_on_gatt_desc_val_event_t ble_on_gatt_desc_val_resp_event, rsi_ble_on_event_profiles_list_t ble_on_profiles_list_event, rsi_ble_on_event_profile_by_uuid_t ble_on_profile_by_uuid_event, rsi_ble_on_event_read_by_char_services_t ble_on_read_by_char_services_event, rsi_ble_on_event_read_by_inc_services_t ble_on_read_by_inc_services_event, rsi_ble_on_event_read_att_value_t ble_on_read_att_value_event, rsi_ble_on_event_read_resp_t ble_on_read_resp_event, rsi_ble_on_event_write_resp_t ble_on_write_resp_event, rsi_ble_on_event_indicate_confirmation_t ble_on_indicate_confirmation_event, rsi_ble_on_event_prepare_write_resp_t ble_on_prepare_write_resp_event)
Register the GATT callbacks.
[in] | ble_on_profiles_list_resp | ble_on_profiles_list_resp - Callback for rsi_ble_get_profiles command |
[in] | ble_on_profile_resp | ble_on_profile_resp - Callback for rsi_ble_get_profile command |
[in] | ble_on_char_services_resp | ble_on_char_services_resp - Callback for rsi_ble_get_char_services command |
[in] | ble_on_inc_services_resp | ble_on_inc_services_resp - Callback for rsi_ble_get_inc_services command |
[in] | ble_on_att_desc_resp | ble_on_att_desc_resp - Callback for rsi_ble_get_att_descriptors command |
[in] | ble_on_read_resp | ble_on_read_resp - Callback for all read requests command |
[in] | ble_on_write_resp | ble_on_write_resp - Callback for all write commands |
[in] | ble_on_gatt_event | blw_on_gatt_event - Callback for all GATT events |
[in] | ble_on_gatt_prepare_write_event | ble_on_gatt_error_resp_event - Callback for GATT error events |
[in] | ble_on_execute_write_event | ble_on_gatt_desc_val_resp_event - Callback for GATT descriptor value event |
[in] | ble_on_read_req_event | ble_on_profiles_list_event - Callback function for profiles list event |
[in] | ble_on_mtu_event | ble_on_profile_by_uuid_event - Callback function for profile event |
[in] | ble_on_gatt_error_resp_event | ble_on_read_by_char_services_event- Callback function for char services event |
[in] | ble_on_gatt_desc_val_resp_event | ble_on_read_by_inc_services_event - Callback function for inc services event |
[in] | ble_on_profiles_list_event | ble_on_read_att_value_event - Callback function for read att value event |
[in] | ble_on_profile_by_uuid_event | ble_on_read_resp_event - Callback function for read att event |
[in] | ble_on_read_by_char_services_event | ble_on_write_resp_event - Callback function for write event |
[in] | ble_on_read_by_inc_services_event | ble_on_indicate_confirmation_event- Callback function for indicate confirmation event |
[in] | ble_on_read_att_value_event | ble_on_prepare_write_resp_event - Callback function for prepare write event |
N/A | ble_on_read_resp_event | |
N/A | ble_on_write_resp_event | |
N/A | ble_on_indicate_confirmation_event | |
N/A | ble_on_prepare_write_resp_event |
Returns
void
2381
of file driver/rsi_bt_ble.c
rsi_ble_gatt_extended_register_callbacks#
void rsi_ble_gatt_extended_register_callbacks (rsi_ble_on_mtu_exchange_info_t ble_on_mtu_exchange_info_event)
Register the GATT Extended responses/events callbacks.
[in] | ble_on_mtu_exchange_info_event | ble_on_mtu_exchange_info_event - Call back function for MTU Exchange information Event |
Returns
void
2444
of file driver/rsi_bt_ble.c