This function is used to register the call-back functions for asynchronous SMP events.

rsi_ble_smp_register_callbacks

Prototype

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_fail_event,

    rsi_ble_on_encrypt_started_t  rsi_ble_on_encrypt_started_event,

    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);

Input Arguments rsi_ble_on_smp_request_t   ble_on_smp_request_event: SMP request callback

rsi_ble_on_smp_response_t   ble_on_smp_response_event: SMP response  callback

rsi_ble_on_smp_passkey_t   ble_on_smp_passkey_event: SMP passkey callback

rsi_ble_on_smp_failed_t   ble_on_smp_fail_event: SMP failed callback

rsi_ble_on_encrypt_started_t  rsi_ble_on_encrypt_started_event: SMP encryption callback

rsi_ble_on_smp_passkey_display_t  ble_on_smp_passkey_display_event:passkey display callback

rsi_ble_on_sc_passkey_t         ble_sc_passkey_event: SC passkey callback

rsi_ble_on_le_ltk_req_event_t  ble_on_le_ltk_req_event: link key request callback

Description This API used to register SMP callbacks.