Modules#

Register callbacks

BT/BLE#

Typedefs#

typedef uint8_t
typedef uint16_t

Functions#

void
rsi_bt_clear_wait_bitmap(uint16_t protocol_type, uint8_t sem_type)

Clear the Bluetooth wait bitmap.

void
rsi_bt_set_wait_bitmap(uint16_t protocol_type, uint8_t sem_type)

Set the bt wait bitmap.

void
rsi_bt_common_register_callbacks(rsi_bt_get_ber_pkt_t rsi_bt_get_ber_pkt_from_app)

Register the bt-common callbacks.

uint8_t
rsi_bt_get_ACL_type(uint16_t rsp_type)

Determine the ACL packet type (BT classic) using the frame type.

uint16_t
rsi_bt_get_proto_type(uint16_t rsp_type, rsi_bt_cb_t **bt_cb)

Determine the BT protocol (BT COMMON / BT classic / BLE ) using the packet type.

uint32_t
rsi_bt_get_timeout(uint16_t cmd_type, uint16_t protocol_type)

Calculate semaphore wait time for a protocol (BT COMMON / BT classic / BLE ) using the packet type.

void
rsi_bt_common_tx_done(rsi_pkt_t *pkt)

Handle BT data transfer completion.

uint32_t
rsi_get_bt_state(rsi_bt_cb_t *bt_cb)

Return BT status.

void
rsi_bt_set_status(rsi_bt_cb_t *bt_cb, int32_t status)

Set BT status.

uint32_t
rsi_bt_get_status(rsi_bt_cb_t *bt_cb)

Get bt status.

void
rsi_ble_update_le_dev_buf(rsi_ble_event_le_dev_buf_ind_t *rsi_ble_event_le_dev_buf_ind)

Update local Device buffer availability per slave in global ble cb structure.

void
rsi_add_remote_ble_dev_info(rsi_ble_event_enhance_conn_status_t *remote_dev_info)

Update Remote BLE Device info in global ble cb structure.

void
rsi_remove_remote_ble_dev_info(rsi_ble_event_disconnect_t *remote_dev_info)

Remove Remote BLE Device info in global ble cb structure.

int32_t
rsi_driver_process_bt_resp(rsi_bt_cb_t *bt_cb, rsi_pkt_t *pkt, void(*rsi_bt_async_callback_handler)(rsi_bt_cb_t *cb, uint16_t type, uint8_t *data, uint16_t length), uint16_t protocol_type)

Process BT RX packets.

uint16_t

Process BT RX packets.

int8_t
rsi_bt_cb_init(rsi_bt_cb_t *bt_cb, uint16_t protocol_type)

Initialize bt control block structure.

uint16_t
rsi_bt_global_cb_init(rsi_driver_cb_t *driver_cb, uint8_t *buffer)

Initialize bt global control block.

void

Wait for BT card ready.

void
rsi_bt_gatt_extended_register_callbacks(rsi_bt_on_gatt_connection_t bt_on_gatt_connection_event, rsi_bt_on_gatt_disconnection_t bt_on_gatt_disconnection_event)

Register the GAP extended callbacks.

void
rsi_bt_on_chip_memory_status_callbacks_register(rsi_bt_on_chip_memory_stats_handler_t bt_on_chip_memory_stats_event)

Register the chip memory stats callbacks.

void
rsi_bt_l2cap_register_callbacks(rsi_bt_on_l2cap_connect_t bt_on_l2cap_connect_event, rsi_bt_on_l2cap_rx_data_t bt_on_l2cap_rx_data_event)

Register the l2cap callbacks.

void
rsi_bt_hid_register_callbacks(rsi_bt_on_hid_connect_t bt_on_hid_connect_event, rsi_bt_on_hid_rx_data_t bt_on_hid_rx_data_event, rsi_bt_on_hid_handshake_t bt_on_hid_handshake_event, rsi_bt_on_hid_control_t bt_on_hid_control_event, rsi_bt_on_hid_get_report_t bt_on_hid_get_report, rsi_bt_on_hid_set_report_t bt_on_hid_set_report, rsi_bt_on_hid_get_protocol_t bt_on_hid_get_proto, rsi_bt_on_hid_set_protocol_t bt_on_hid_set_proto)

Register the hid event callbacks for received HID messages.

void
rsi_bt_hfp_register_callbacks(rsi_bt_on_hfp_connect_t bt_on_hfp_connect_event, rsi_bt_on_hfp_disconnect_t bt_on_hfp_disconnect_event, rsi_bt_on_hfp_ring_t bt_on_hfp_ring_event, rsi_bt_on_hfp_callcallerid_t bt_on_hfp_callcallerid_event, rsi_bt_on_hfp_audioconnected_t bt_on_hfp_audioconnected_event, rsi_bt_on_hfp_audiodisconnected_t bt_on_hfp_audiodisconnected_event, rsi_bt_on_hfp_dialcomplete_t bt_on_hfp_dialcomplete_event, rsi_bt_on_hfp_answercomplete_t bt_on_hfp_answercomplete_event, rsi_bt_on_hfp_hangupcomplete_t bt_on_hfp_hangupcomplete_event, rsi_bt_on_hfp_senddtmfcomplete_t bt_on_hfp_senddtmfcomplete_event, rsi_bt_on_hfp_callwait_t bt_on_hfp_callwait_event, rsi_bt_on_hfp_callvoicerecogdeactivated_t bt_on_hfp_callvoicerecogdeactivated_event, rsi_bt_on_hfp_callvoicerecogactivated_t bt_on_hfp_callvoicerecogactivated_event, rsi_bt_on_hfp_servicenotfound_t bt_on_hfp_servicenotfound_event, rsi_bt_app_on_hfp_callstatus_t bt_on_hfp_callstatus_event, rsi_bt_app_on_hfp_signalstrength_t bt_on_hfp_signalstrength_event, rsi_bt_app_on_hfp_batterylevel_t bt_on_hfp_batterylevel_event, rsi_bt_app_on_hfp_phoneservice_t bt_on_hfp_phoneservice_event, rsi_bt_app_on_hfp_roamingstatus_t bt_on_hfp_roamingstatus_event, rsi_bt_app_on_hfp_callsetup_t bt_on_hfp_callsetup_event, rsi_bt_app_on_hfp_callheld_t bt_on_hfp_callheld_event, rsi_bt_app_on_hfp_voice_data_t bt_on_hfp_voice_data_event, rsi_bt_app_on_hfp_audio_codecselect_t bt_on_hfp_audio_codecselect_event)

Register the bt_hfp callbacks.

void
rsi_bt_pbap_register_callbacks(rsi_bt_on_pbap_connect_t bt_on_pbap_connect_event, rsi_bt_on_pbap_disconnect_t bt_on_pbap_disconnect_event, rsi_bt_on_pbap_data_t bt_on_pbap_data_event)

Register the PBAP callbacks.

void
rsi_bt_iap_register_callbacks(rsi_bt_app_iap_conn_t bt_app_iap_conn, rsi_bt_app_iap_disconn_t bt_app_iap_disconn, rsi_bt_app_iap_acc_auth_strt_t bt_app_iap_acc_auth_strt, rsi_bt_app_iap_acc_auth_fail_t bt_app_iap_acc_auth_fail, rsi_bt_app_iap_acc_auth_complete_t bt_app_iap_acc_auth_complete, rsi_bt_app_iap2_auth_start_t bt_app_iap2_auth_start, rsi_bt_app_iap2_auth_complete_t bt_app_iap2_auth_complete, rsi_bt_app_iap2_auth_fail_t bt_app_iap2_auth_fail, rsi_bt_app_iap2_identification_start_t bt_app_iap2_identification_start, rsi_bt_app_iap2_identification_complete_t bt_app_iap2_identification_complete, rsi_bt_app_iap2_identification_reject_t bt_app_iap2_identification_reject, rsi_bt_app_on_iap2_data_rx_t bt_app_on_iap2_data_rx, rsi_bt_app_iap2_File_Tx_state_t bt_app_iap2_File_Transfer_state, rsi_bt_app_iap2_File_Transfer_rx_data_t bt_app_iap2_File_Transfer_data)

Register the IAP callbacks.

void
rsi_bt_callbacks_handler(rsi_bt_cb_t *bt_classic_cb, uint16_t rsp_type, uint8_t *payload, uint16_t payload_length)

Initailize the BT callbacks register.

void
rsi_ble_l2cap_cbsc_register_callbacks(rsi_ble_on_cbfc_conn_req_event_t ble_on_cbsc_conn_req, rsi_ble_on_cbfc_conn_complete_event_t ble_on_cbsc_conn_complete, rsi_ble_on_cbfc_rx_data_event_t ble_on_cbsc_rx_data, rsi_ble_on_cbfc_disconn_event_t ble_on_cbsc_disconn)

Register the function pointers for GATT responses.

void
rsi_ble_callbacks_handler(rsi_bt_cb_t *ble_cb, uint16_t rsp_type, uint8_t *payload, uint16_t payload_length)

Initailize the BT callbacks register.

void
rsi_ble_on_chip_memory_status_callbacks_register(chip_ble_buffers_stats_handler_t ble_on_chip_memory_status_event)

Chip memory status.

uint16_t
rsi_bt_prepare_common_pkt(uint16_t cmd_type, void *cmd_struct, rsi_pkt_t *pkt)

Form the payload of the BT command packet.

uint16_t
rsi_bt_prepare_classic_pkt(uint16_t cmd_type, void *cmd_struct, rsi_pkt_t *pkt)

Fill the BT Classic command packet payload.

uint16_t
rsi_bt_prepare_le_pkt(uint16_t cmd_type, void *cmd_struct, rsi_pkt_t *pkt)

Form the payload of the BT Classic command packet.

int32_t
rsi_bt_driver_send_cmd(uint16_t cmd, void *cmd_struct, void *resp)

Fill commands and places into Bt TX queue.

int32_t
intialize_bt_stack(uint8_t mode)

Initialize bt stack.

Typedef Documentation#

UINT08#

typedef uint8_t UINT08

Definition at line 3188 of file driver/rsi_bt_ble.c

UINT16#

typedef uint16_t UINT16

Definition at line 3189 of file driver/rsi_bt_ble.c

Function Documentation#

rsi_bt_clear_wait_bitmap#

void rsi_bt_clear_wait_bitmap (uint16_t protocol_type, uint8_t sem_type)

Clear the Bluetooth wait bitmap.

Parameters
[in]protocol_type

- Protocol type

[in]sem_type

- Type

Returns

  • void


Definition at line 54 of file driver/rsi_bt_ble.c

rsi_bt_set_wait_bitmap#

void rsi_bt_set_wait_bitmap (uint16_t protocol_type, uint8_t sem_type)

Set the bt wait bitmap.

Parameters
[in]protocol_type

- Protocol

[in]sem_type

- Type

Returns

  • void


Definition at line 100 of file driver/rsi_bt_ble.c

rsi_bt_common_register_callbacks#

void rsi_bt_common_register_callbacks (rsi_bt_get_ber_pkt_t rsi_bt_get_ber_pkt_from_app)

Register the bt-common callbacks.

Parameters
[in]rsi_bt_get_ber_pkt_from_app

- BER Call back

Returns

  • void


Definition at line 183 of file driver/rsi_bt_ble.c

rsi_bt_get_ACL_type#

uint8_t rsi_bt_get_ACL_type (uint16_t rsp_type)

Determine the ACL packet type (BT classic) using the frame type.

Parameters
[in]rsp_type

- packet type

Returns

  • 1 - HCI Command Packet, 2 - HCI ACL packet ,3 - HCI PER Packet Non-Zero Value - Failure (Not a BT Classic Packet)


Definition at line 202 of file driver/rsi_bt_ble.c

rsi_bt_get_proto_type#

uint16_t rsi_bt_get_proto_type (uint16_t rsp_type, rsi_bt_cb_t ** bt_cb)

Determine the BT protocol (BT COMMON / BT classic / BLE ) using the packet type.

Parameters
[in]rsp_type

- Packet type

[in]bt_cb

- BT control back

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 254 of file driver/rsi_bt_ble.c

rsi_bt_get_timeout#

uint32_t rsi_bt_get_timeout (uint16_t cmd_type, uint16_t protocol_type)

Calculate semaphore wait time for a protocol (BT COMMON / BT classic / BLE ) using the packet type.

Parameters
[in]cmd_type

- Command Type

[in]protocol_type

- Protocol type , whether it is BT Common/BT Classic/BLE

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 400 of file driver/rsi_bt_ble.c

rsi_bt_common_tx_done#

void rsi_bt_common_tx_done (rsi_pkt_t * pkt)

Handle BT data transfer completion.

Parameters
[in]pkt

- Pointer to packet

Returns

  • void


Definition at line 474 of file driver/rsi_bt_ble.c

rsi_get_bt_state#

uint32_t rsi_get_bt_state (rsi_bt_cb_t * bt_cb)

Return BT status.

Parameters
[in]bt_cb

- BT control block

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 520 of file driver/rsi_bt_ble.c

References SL_PRINTF , and rsi_bt_cb_s::state

rsi_bt_set_status#

void rsi_bt_set_status (rsi_bt_cb_t * bt_cb, int32_t status, None)

Set BT status.

Parameters
[in]bt_cb

- BT control block

[in]status

- Status value to be set

[out]None

Returns

  • void


Definition at line 535 of file driver/rsi_bt_ble.c

rsi_bt_get_status#

uint32_t rsi_bt_get_status (rsi_bt_cb_t * bt_cb)

Get bt status.

Parameters
[in]bt_cb

- BT control block

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 549 of file driver/rsi_bt_ble.c

rsi_ble_update_le_dev_buf#

void rsi_ble_update_le_dev_buf (rsi_ble_event_le_dev_buf_ind_t * rsi_ble_event_le_dev_buf_ind)

Update local Device buffer availability per slave in global ble cb structure.

Parameters
[in]rsi_ble_event_le_dev_buf_ind

Returns

  • void


Definition at line 562 of file driver/rsi_bt_ble.c

rsi_add_remote_ble_dev_info#

void rsi_add_remote_ble_dev_info (rsi_ble_event_enhance_conn_status_t * remote_dev_info)

Update Remote BLE Device info in global ble cb structure.

Parameters
[in]remote_dev_info

Returns

  • void


Definition at line 589 of file driver/rsi_bt_ble.c

rsi_remove_remote_ble_dev_info#

void rsi_remove_remote_ble_dev_info (rsi_ble_event_disconnect_t * remote_dev_info)

Remove Remote BLE Device info in global ble cb structure.

Parameters
[in]remote_dev_info

- Remote device information

Returns

  • void


Definition at line 618 of file driver/rsi_bt_ble.c

rsi_driver_process_bt_resp#

int32_t rsi_driver_process_bt_resp (rsi_bt_cb_t * bt_cb, rsi_pkt_t * pkt, void(*)(rsi_bt_cb_t *cb, uint16_t type, uint8_t *data, uint16_t length) rsi_bt_async_callback_handler, uint16_t protocol_type)

Process BT RX packets.

Parameters
[in]bt_cb

- BT control block

[in]pkt

- Pointer to received RX packet

[in]rsi_bt_async_callback_handler
N/Aprotocol_type

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 653 of file driver/rsi_bt_ble.c

rsi_driver_process_bt_resp_handler#

uint16_t rsi_driver_process_bt_resp_handler (rsi_pkt_t * pkt)

Process BT RX packets.

Parameters
[in]pkt

- Pointer to received RX packet

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 764 of file driver/rsi_bt_ble.c

rsi_bt_cb_init#

int8_t rsi_bt_cb_init (rsi_bt_cb_t * bt_cb, uint16_t protocol_type)

Initialize bt control block structure.

Parameters
[in]bt_cb

- Pointer to bt_cb structure

[in]protocol_type

- Protocol type

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 834 of file driver/rsi_bt_ble.c

rsi_bt_global_cb_init#

uint16_t rsi_bt_global_cb_init (rsi_driver_cb_t * driver_cb, uint8_t * buffer)

Initialize bt global control block.

Parameters
[in]driver_cb

- Pointer to bt_cb structure

[in]buffer

- Buffer

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 880 of file driver/rsi_bt_ble.c

rsi_bt_common_init#

void rsi_bt_common_init (void )

Wait for BT card ready.

Parameters
[in]

Returns

  • void


Definition at line 920 of file driver/rsi_bt_ble.c

rsi_bt_gatt_extended_register_callbacks#

void rsi_bt_gatt_extended_register_callbacks (rsi_bt_on_gatt_connection_t bt_on_gatt_connection_event, rsi_bt_on_gatt_disconnection_t bt_on_gatt_disconnection_event)

Register the GAP extended callbacks.

Parameters
[in]bt_on_gatt_connection_event

- GATT Connection status callback

[in]bt_on_gatt_disconnection_event

- GATT Disconnection status callback

Returns

  • void


Definition at line 1023 of file driver/rsi_bt_ble.c

rsi_bt_on_chip_memory_status_callbacks_register#

void rsi_bt_on_chip_memory_status_callbacks_register (rsi_bt_on_chip_memory_stats_handler_t bt_on_chip_memory_stats_event)

Register the chip memory stats callbacks.

Parameters
[in]bt_on_chip_memory_stats_event

- Memory utilization Event callback

Note

  • This API is not supported in the current release.

Returns

  • void


Definition at line 1085 of file driver/rsi_bt_ble.c

rsi_bt_l2cap_register_callbacks#

void rsi_bt_l2cap_register_callbacks (rsi_bt_on_l2cap_connect_t bt_on_l2cap_connect_event, rsi_bt_on_l2cap_rx_data_t bt_on_l2cap_rx_data_event)

Register the l2cap callbacks.

Parameters
[in]bt_on_l2cap_connect_event

- HID connection status callback

[in]bt_on_l2cap_rx_data_event

- HID data transfer status callback

Returns

  • void


Definition at line 1126 of file driver/rsi_bt_ble.c

rsi_bt_hid_register_callbacks#

void rsi_bt_hid_register_callbacks (rsi_bt_on_hid_connect_t bt_on_hid_connect_event, rsi_bt_on_hid_rx_data_t bt_on_hid_rx_data_event, rsi_bt_on_hid_handshake_t bt_on_hid_handshake_event, rsi_bt_on_hid_control_t bt_on_hid_control_event, rsi_bt_on_hid_get_report_t bt_on_hid_get_report, rsi_bt_on_hid_set_report_t bt_on_hid_set_report, rsi_bt_on_hid_get_protocol_t bt_on_hid_get_proto, rsi_bt_on_hid_set_protocol_t bt_on_hid_set_proto)

Register the hid event callbacks for received HID messages.

Parameters
[in]bt_on_hid_connect_event

- HID connection status callback

[in]bt_on_hid_rx_data_event

- HID data transfer status callback

[in]bt_on_hid_handshake_event

- Callback on HID profile handshake msg is received.

[in]bt_on_hid_control_event

- Callback on HID profile control msg is received

[in]bt_on_hid_get_report

- Callback on HID profile get report msg is received

[in]bt_on_hid_set_report

- Callback on HID profile set report msg is received

[in]bt_on_hid_get_proto

- Callback on HID profile get protocol msg is received

[in]bt_on_hid_set_proto

- Callback on HID profile set protocol msg is received

Returns

  • void


Definition at line 1152 of file driver/rsi_bt_ble.c

rsi_bt_hfp_register_callbacks#

void rsi_bt_hfp_register_callbacks (rsi_bt_on_hfp_connect_t bt_on_hfp_connect_event, rsi_bt_on_hfp_disconnect_t bt_on_hfp_disconnect_event, rsi_bt_on_hfp_ring_t bt_on_hfp_ring_event, rsi_bt_on_hfp_callcallerid_t bt_on_hfp_callcallerid_event, rsi_bt_on_hfp_audioconnected_t bt_on_hfp_audioconnected_event, rsi_bt_on_hfp_audiodisconnected_t bt_on_hfp_audiodisconnected_event, rsi_bt_on_hfp_dialcomplete_t bt_on_hfp_dialcomplete_event, rsi_bt_on_hfp_answercomplete_t bt_on_hfp_answercomplete_event, rsi_bt_on_hfp_hangupcomplete_t bt_on_hfp_hangupcomplete_event, rsi_bt_on_hfp_senddtmfcomplete_t bt_on_hfp_senddtmfcomplete_event, rsi_bt_on_hfp_callwait_t bt_on_hfp_callwait_event, rsi_bt_on_hfp_callvoicerecogdeactivated_t bt_on_hfp_callvoicerecogdeactivated_event, rsi_bt_on_hfp_callvoicerecogactivated_t bt_on_hfp_callvoicerecogactivated_event, rsi_bt_on_hfp_servicenotfound_t bt_on_hfp_servicenotfound_event, rsi_bt_app_on_hfp_callstatus_t bt_on_hfp_callstatus_event, rsi_bt_app_on_hfp_signalstrength_t bt_on_hfp_signalstrength_event, rsi_bt_app_on_hfp_batterylevel_t bt_on_hfp_batterylevel_event, rsi_bt_app_on_hfp_phoneservice_t bt_on_hfp_phoneservice_event, rsi_bt_app_on_hfp_roamingstatus_t bt_on_hfp_roamingstatus_event, rsi_bt_app_on_hfp_callsetup_t bt_on_hfp_callsetup_event, rsi_bt_app_on_hfp_callheld_t bt_on_hfp_callheld_event, rsi_bt_app_on_hfp_voice_data_t bt_on_hfp_voice_data_event, rsi_bt_app_on_hfp_audio_codecselect_t bt_on_hfp_audio_codecselect_event)

Register the bt_hfp callbacks.

Parameters
[in]bt_on_hfp_connect_event

- HFP connect event

[in]bt_on_hfp_disconnect_event

- HFP disconnect event

[in]bt_on_hfp_ring_event

- HFP ring event

[in]bt_on_hfp_callcallerid_event

- HFP call callerid event

[in]bt_on_hfp_audioconnected_event

- HFP audio connected event

[in]bt_on_hfp_audiodisconnected_event

- HFP audio disconnected event

[in]bt_on_hfp_dialcomplete_event

- HFP dail complete event

[in]bt_on_hfp_answercomplete_event

- HFP answer complete event

[in]bt_on_hfp_hangupcomplete_event

- HFP hangup complete event

[in]bt_on_hfp_senddtmfcomplete_event

- HFP send dtmf complete event

[in]bt_on_hfp_callwait_event

- HFP call wait event

[in]bt_on_hfp_callvoicerecogdeactivated_event

- HFP call voice record deactivated event

[in]bt_on_hfp_callvoicerecogactivated_event

- HFP call voice record activated

[in]bt_on_hfp_servicenotfound_event

- HFP service not found

[in]bt_on_hfp_callstatus_event

- HFP call status event

[in]bt_on_hfp_signalstrength_event

- HFP signal strength event

[in]bt_on_hfp_batterylevel_event

- HFP battery level event

[in]bt_on_hfp_phoneservice_event

- HFP phone service event

[in]bt_on_hfp_roamingstatus_event

- HFP roaming status event

[in]bt_on_hfp_callsetup_event

- HFP call setup event

[in]bt_on_hfp_callheld_event

- HFP call held event

N/Abt_on_hfp_voice_data_event
N/Abt_on_hfp_audio_codecselect_event

Returns

  • void


Definition at line 1395 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_hfp_connect_event , rsi_bt_classic_cb_s::bt_on_hfp_disconnect_event , rsi_bt_classic_cb_s::bt_on_hfp_ring_event , rsi_bt_classic_cb_s::bt_on_hfp_callcallerid_event , rsi_bt_classic_cb_s::bt_on_hfp_audioconnected_event , rsi_bt_classic_cb_s::bt_on_hfp_audiodisconnected_event , rsi_bt_classic_cb_s::bt_on_hfp_dialcomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_answercomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_hangupcomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_senddtmfcomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_callwait_event , rsi_bt_classic_cb_s::bt_on_hfp_callvoicerecogdeactivated_event , rsi_bt_classic_cb_s::bt_on_hfp_callvoicerecogactivated_event , rsi_bt_classic_cb_s::bt_on_hfp_servicenotfound_event , rsi_bt_classic_cb_s::bt_on_hfp_callstatus_event , rsi_bt_classic_cb_s::bt_on_hfp_signalstrength_event , rsi_bt_classic_cb_s::bt_on_hfp_batterylevel_event , rsi_bt_classic_cb_s::bt_on_hfp_phoneservice_event , rsi_bt_classic_cb_s::bt_on_hfp_roamingstatus_event , rsi_bt_classic_cb_s::bt_on_hfp_callsetup_event , rsi_bt_classic_cb_s::bt_on_hfp_callheld_event , rsi_bt_classic_cb_s::bt_on_hfp_voice_data_event , and rsi_bt_classic_cb_s::bt_on_hfp_audio_codecselect_event

rsi_bt_pbap_register_callbacks#

void rsi_bt_pbap_register_callbacks (rsi_bt_on_pbap_connect_t bt_on_pbap_connect_event, rsi_bt_on_pbap_disconnect_t bt_on_pbap_disconnect_event, rsi_bt_on_pbap_data_t bt_on_pbap_data_event)

Register the PBAP callbacks.

Parameters
[in]bt_on_pbap_connect_event

- PBAP connection status callback

[in]bt_on_pbap_disconnect_event

- PBAP disconnection status callback

[in]bt_on_pbap_data_event

- PBAP data status callback

Returns

  • void


Definition at line 1459 of file driver/rsi_bt_ble.c

rsi_bt_iap_register_callbacks#

void rsi_bt_iap_register_callbacks (rsi_bt_app_iap_conn_t bt_app_iap_conn, rsi_bt_app_iap_disconn_t bt_app_iap_disconn, rsi_bt_app_iap_acc_auth_strt_t bt_app_iap_acc_auth_strt, rsi_bt_app_iap_acc_auth_fail_t bt_app_iap_acc_auth_fail, rsi_bt_app_iap_acc_auth_complete_t bt_app_iap_acc_auth_complete, rsi_bt_app_iap2_auth_start_t bt_app_iap2_auth_start, rsi_bt_app_iap2_auth_complete_t bt_app_iap2_auth_complete, rsi_bt_app_iap2_auth_fail_t bt_app_iap2_auth_fail, rsi_bt_app_iap2_identification_start_t bt_app_iap2_identification_start, rsi_bt_app_iap2_identification_complete_t bt_app_iap2_identification_complete, rsi_bt_app_iap2_identification_reject_t bt_app_iap2_identification_reject, rsi_bt_app_on_iap2_data_rx_t bt_app_on_iap2_data_rx, rsi_bt_app_iap2_File_Tx_state_t bt_app_iap2_File_Transfer_state, rsi_bt_app_iap2_File_Transfer_rx_data_t bt_app_iap2_File_Transfer_data)

Register the IAP callbacks.

Parameters
[in]bt_app_iap_conn

- IAP connection status

[in]bt_app_iap_disconn

- IAP disconnection status

[in]bt_app_iap_acc_auth_strt

- IAP access authentication start status

[in]bt_app_iap_acc_auth_fail

- IAP access authentication failed status

[in]bt_app_iap_acc_auth_complete

- IAP access authentication complete status

[in]bt_app_iap2_auth_start

- IAP2 authentication start status

[in]bt_app_iap2_auth_complete

- IAP2 authentication complete status

[in]bt_app_iap2_auth_fail

- IAP2 authentication fail status

[in]bt_app_iap2_identification_start

- IAP2 identification start status

[in]bt_app_iap2_identification_complete

- IAP2 identification complete status

[in]bt_app_iap2_identification_reject

- IAP2 identification reject status

[in]bt_app_on_iap2_data_rx

- IAP2 data receive

[in]bt_app_iap2_File_Transfer_state

- IAP2 file transfer state

[in]bt_app_iap2_File_Transfer_data

- IAP2 file transfer data

Returns

  • void


Definition at line 1492 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_app_iap_conn , rsi_bt_classic_cb_s::bt_app_iap_disconn , rsi_bt_classic_cb_s::bt_app_iap_acc_auth_strt , rsi_bt_classic_cb_s::bt_app_iap_acc_auth_fail , rsi_bt_classic_cb_s::bt_app_iap_acc_auth_complete , rsi_bt_classic_cb_s::bt_app_iap2_auth_start , rsi_bt_classic_cb_s::bt_app_iap2_auth_complete , rsi_bt_classic_cb_s::bt_app_iap2_auth_fail , rsi_bt_classic_cb_s::bt_app_iap2_identification_start , rsi_bt_classic_cb_s::bt_app_iap2_identification_complete , rsi_bt_classic_cb_s::bt_app_iap2_identification_reject , rsi_bt_classic_cb_s::bt_app_on_iap2_data_rx , rsi_bt_classic_cb_s::bt_app_iap2_File_Tx_state , and rsi_bt_classic_cb_s::bt_app_iap2_File_Transfer_rx_data

rsi_bt_callbacks_handler#

void rsi_bt_callbacks_handler (rsi_bt_cb_t * bt_classic_cb, uint16_t rsp_type, uint8_t * payload, uint16_t payload_length)

Initailize the BT callbacks register.

Parameters
[in]bt_classic_cb

- BT BLE struct pointer

[in]rsp_type

- BT Packet type

[in]payload

- Payload

[in]payload_length

- payload length

Returns

  • void


Definition at line 1543 of file driver/rsi_bt_ble.c

References SL_PRINTF , UNUSED_PARAMETER , rsi_bt_cb_s::bt_global_cb , rsi_bt_global_cb_s::bt_specific_cb , rsi_bt_cb_s::async_status , rsi_bt_get_status , 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_role_change_status_event , rsi_bt_classic_cb_s::bt_on_unbond_status , rsi_bt_classic_cb_s::bt_on_conn_status_event , rsi_bt_classic_cb_s::bt_on_scan_resp_event , rsi_bt_classic_cb_s::bt_on_connection_initiated , rsi_bt_classic_cb_s::bt_on_remote_name_resp_event , rsi_bt_classic_cb_s::bt_on_remote_name_request_cancel_event , rsi_bt_classic_cb_s::bt_on_disconnect_event , rsi_bt_classic_cb_s::bt_on_confirm_request_event , rsi_bt_classic_cb_s::bt_on_passkey_display_event , rsi_bt_classic_cb_s::bt_on_avdtp_stats_event , rsi_bt_classic_cb_s::bt_on_ar_stats_event , rsi_bt_classic_cb_s::bt_pkt_change_stats_event , rsi_wlan_cb_non_rom_s::switch_proto_callback , rsi_common_set_status , rsi_driver_cb_non_rom::common_wait_bitmap , rsi_semaphore_post , rsi_driver_cb_non_rom::common_cmd_sem , rsi_bt_classic_cb_s::bt_on_chip_memory_stats_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_linkkey_save_event , rsi_bt_classic_cb_s::bt_on_spp_rx_data_event , rsi_bt_classic_cb_s::bt_on_spp_connect_event , rsi_bt_classic_cb_s::bt_on_spp_disconnect_event , rsi_bt_classic_cb_s::bt_on_mode_change_event , rsi_bt_classic_cb_s::bt_on_sniff_subrating_event , rsi_bt_classic_cb_s::bt_on_gatt_connection_event , rsi_bt_classic_cb_s::bt_on_gatt_disconnection_event , rsi_bt_classic_cb_s::bt_on_ssp_complete_event , rsi_bt_classic_cb_s::bt_on_a2dp_connect_event , rsi_bt_classic_cb_s::bt_on_a2dp_disconnect_event , rsi_bt_classic_cb_s::bt_on_a2dp_pcm_data_event , rsi_bt_classic_cb_s::bt_on_a2dp_configure_event , rsi_bt_classic_cb_s::bt_on_a2dp_open_event , rsi_bt_classic_cb_s::bt_on_a2dp_start_event , rsi_bt_classic_cb_s::bt_on_a2dp_suspend_event , rsi_bt_classic_cb_s::bt_on_a2dp_abort_event , rsi_bt_classic_cb_s::bt_on_a2dp_close_event , rsi_bt_classic_cb_s::bt_on_a2dp_encode_data_event , rsi_bt_classic_cb_s::bt_on_a2dp_data_req_event , rsi_bt_classic_cb_s::bt_on_a2dp_reconfig_event , rsi_bt_classic_cb_s::bt_on_avrcp_connect_event , rsi_bt_classic_cb_s::bt_on_avrcp_disconnect_event , rsi_bt_classic_cb_s::bt_on_avrcp_play_event , rsi_bt_classic_cb_s::bt_on_avrcp_pause_event , rsi_bt_classic_cb_s::bt_on_avrcp_stop_event , rsi_bt_classic_cb_s::bt_on_avrcp_next_event , rsi_bt_classic_cb_s::bt_on_avrcp_previous_event , rsi_bt_classic_cb_s::bt_on_avrcp_vol_up_event , rsi_bt_classic_cb_s::bt_on_avrcp_vol_down_event , rsi_bt_classic_cb_s::bt_on_avrcp_get_elem_attr_resp_event , rsi_bt_classic_cb_s::bt_on_avrcp_notify_event , 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 , rsi_bt_classic_cb_s::bt_on_avrcp_get_tot_num_items , rsi_bt_classic_cb_s::bt_on_l2cap_connect_event , rsi_bt_classic_cb_s::bt_on_l2cap_rx_data_event , rsi_bt_classic_cb_s::bt_on_hfp_connect_event , rsi_bt_classic_cb_s::bt_on_hfp_disconnect_event , rsi_bt_classic_cb_s::bt_on_hfp_ring_event , rsi_bt_classic_cb_s::bt_on_hfp_callcallerid_event , rsi_bt_classic_cb_s::bt_on_hfp_audioconnected_event , rsi_bt_classic_cb_s::bt_on_hfp_audiodisconnected_event , rsi_bt_classic_cb_s::bt_on_hfp_dialcomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_answercomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_hangupcomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_senddtmfcomplete_event , rsi_bt_classic_cb_s::bt_on_hfp_callwait_event , rsi_bt_classic_cb_s::bt_on_hfp_callvoicerecogdeactivated_event , rsi_bt_classic_cb_s::bt_on_hfp_callvoicerecogactivated_event , rsi_bt_classic_cb_s::bt_on_hfp_servicenotfound_event , rsi_bt_classic_cb_s::bt_on_hfp_callstatus_event , rsi_bt_classic_cb_s::bt_on_hfp_signalstrength_event , rsi_bt_classic_cb_s::bt_on_hfp_batterylevel_event , rsi_bt_classic_cb_s::bt_on_hfp_phoneservice_event , rsi_bt_classic_cb_s::bt_on_hfp_roamingstatus_event , rsi_bt_classic_cb_s::bt_on_hfp_callsetup_event , rsi_bt_classic_cb_s::bt_on_hfp_callheld_event , rsi_bt_classic_cb_s::bt_on_hfp_voice_data_event , rsi_bt_classic_cb_s::bt_on_hfp_audio_codecselect_event , rsi_bt_classic_cb_s::bt_app_iap_conn , rsi_bt_classic_cb_s::bt_app_iap_disconn , rsi_bt_classic_cb_s::bt_app_iap_acc_auth_strt , rsi_bt_classic_cb_s::bt_app_iap_acc_auth_fail , rsi_bt_classic_cb_s::bt_app_iap2_auth_start , rsi_bt_classic_cb_s::bt_app_iap2_auth_complete , rsi_bt_classic_cb_s::bt_app_iap2_auth_fail , rsi_bt_classic_cb_s::bt_app_iap2_identification_start , rsi_bt_classic_cb_s::bt_app_iap2_identification_complete , rsi_bt_classic_cb_s::bt_app_iap2_identification_reject , rsi_bt_classic_cb_s::bt_app_on_iap2_data_rx , rsi_bt_classic_cb_s::bt_app_iap2_File_Tx_state , rsi_bt_classic_cb_s::bt_app_iap2_File_Transfer_rx_data , rsi_bt_classic_cb_s::bt_app_iap_acc_auth_complete , rsi_bt_classic_cb_s::bt_on_pbap_connect_event , rsi_bt_classic_cb_s::bt_on_pbap_disconnect_event , rsi_bt_classic_cb_s::bt_on_pbap_data_event , rsi_bt_classic_cb_s::bt_on_hid_connect_event , rsi_bt_event_hid_receive_s::data , rsi_bt_classic_cb_s::bt_on_hid_handshake_event , rsi_bt_classic_cb_s::bt_on_hid_control_event , rsi_bt_classic_cb_s::bt_on_hid_get_report , rsi_bt_classic_cb_s::bt_on_hid_set_report , rsi_bt_classic_cb_s::bt_on_hid_get_proto , rsi_bt_classic_cb_s::bt_on_hid_set_proto , and rsi_bt_classic_cb_s::bt_on_hid_rx_data_event

rsi_ble_l2cap_cbsc_register_callbacks#

void rsi_ble_l2cap_cbsc_register_callbacks (rsi_ble_on_cbfc_conn_req_event_t ble_on_cbsc_conn_req, rsi_ble_on_cbfc_conn_complete_event_t ble_on_cbsc_conn_complete, rsi_ble_on_cbfc_rx_data_event_t ble_on_cbsc_rx_data, rsi_ble_on_cbfc_disconn_event_t ble_on_cbsc_disconn)

Register the function pointers for GATT responses.

Parameters
[in]ble_on_cbsc_conn_req

- Callback function for CBFC connection request event

[in]ble_on_cbsc_conn_complete

- Callback function for CBFC connection complete status event

[in]ble_on_cbsc_rx_data

- Callback function for CBFC data receive event

[in]ble_on_cbsc_disconn

- Callback function for CBFC disconnect event

Returns

  • void


Definition at line 2568 of file driver/rsi_bt_ble.c

rsi_ble_callbacks_handler#

void rsi_ble_callbacks_handler (rsi_bt_cb_t * ble_cb, uint16_t rsp_type, uint8_t * payload, uint16_t payload_length)

Initailize the BT callbacks register.

Parameters
[in]ble_cb

- BLE control back

[in]rsp_type

- BLE Packet type

[in]payload

- Payload

[in]payload_length

- Payload length

Returns

  • void


Definition at line 2599 of file driver/rsi_bt_ble.c

References SL_PRINTF , UNUSED_PARAMETER , rsi_bt_cb_s::bt_global_cb , rsi_bt_global_cb_s::ble_specific_cb , rsi_bt_cb_s::async_status , rsi_bt_get_status , rsi_ble_cb_s::ble_on_adv_report_event , rsi_ble_cb_s::ble_on_conn_status_event , rsi_add_remote_ble_dev_info , rsi_ble_cb_s::ble_on_enhance_conn_status_event , rsi_ble_cb_s::ble_on_disconnect_event , rsi_remove_remote_ble_dev_info , rsi_ble_cb_s::ble_on_gatt_error_resp_event , rsi_ble_cb_s::ble_on_gatt_desc_val_resp_event , rsi_ble_cb_s::ble_on_profiles_list_event , rsi_ble_cb_s::ble_on_profile_by_uuid_event , rsi_ble_cb_s::ble_on_read_by_char_services_event , rsi_ble_cb_s::ble_on_read_by_inc_services_event , rsi_ble_cb_s::ble_on_read_att_value_event , rsi_ble_cb_s::ble_on_read_resp_event , rsi_ble_cb_s::ble_on_write_resp_event , rsi_ble_cb_s::ble_on_indicate_confirmation_event , rsi_ble_cb_s::ble_on_prepare_write_resp_event , rsi_ble_cb_s::ble_on_smp_request_event , rsi_ble_cb_s::ble_on_smp_response_event , rsi_ble_cb_s::ble_on_cli_smp_response_event , rsi_ble_cb_s::ble_on_chip_memory_status_event , rsi_ble_cb_s::ble_on_smp_passkey_event , rsi_ble_cb_s::ble_on_smp_fail_event , rsi_ble_cb_s::ble_on_sc_method_event , rsi_ble_cb_s::ble_on_smp_encrypt_started , rsi_ble_cb_s::ble_on_smp_passkey_display , rsi_ble_cb_s::ble_on_profiles_list_resp , rsi_ble_cb_s::ble_on_profile_resp , rsi_ble_cb_s::ble_on_char_services_resp , rsi_ble_cb_s::ble_on_inc_services_resp , rsi_ble_cb_s::ble_on_att_desc_resp , rsi_ble_cb_s::ble_on_read_resp , rsi_ble_cb_s::ble_on_write_resp , rsi_ble_cb_s::ble_on_gatt_events , rsi_ble_cb_s::ble_on_mtu_event , rsi_ble_cb_s::ble_on_mtu_exchange_info_event , rsi_ble_cb_s::ble_on_le_ping_time_expired_event , rsi_ble_cb_s::ble_on_prepare_write_event , rsi_ble_cb_s::ble_on_execute_write_event , rsi_ble_cb_s::ble_on_read_req_event , rsi_ble_cb_s::ble_on_phy_update_complete_event , rsi_ble_cb_s::rsi_ble_on_data_length_update_event , rsi_ble_cb_s::ble_on_sc_passkey , rsi_ble_cb_s::ble_on_directed_adv_report_event , rsi_ble_cb_s::ble_on_le_ltk_req_event , rsi_ble_cb_s::ble_on_le_security_keys_event , rsi_ble_cb_s::ble_on_cbfc_conn_req_event , rsi_ble_cb_s::ble_on_cbfc_conn_complete_event , rsi_ble_cb_s::ble_on_cbfc_rx_data_event , rsi_ble_cb_s::ble_on_cbfc_disconn_event , rsi_ble_cb_s::ble_on_conn_update_complete_event , rsi_ble_cb_s::ble_on_remote_features_event , rsi_ble_update_le_dev_buf , rsi_ble_cb_s::ble_on_le_more_data_req_event , rsi_ble_cb_s::ble_on_remote_conn_params_request_event , rsi_ble_cb_s::ble_on_remote_device_info_event , rsi_ble_cb_s::ble_ae_report_complete_event , rsi_ble_cb_s::ble_ae_per_adv_sync_estbl_event , rsi_ble_cb_s::ble_ae_per_adv_report_event , rsi_ble_cb_s::ble_ae_per_adv_sync_lost_event , rsi_ble_cb_s::ble_ae_scan_timeout_event , rsi_ble_cb_s::ble_ae_adv_set_terminated_event , rsi_ble_cb_s::ble_ae_scan_req_recvd_event , rsi_bt_cb_s::remote_ble_info , rsi_remote_ble_info_s::remote_dev_bd_addr , rsi_remote_ble_info_s::cmd_in_use , and rsi_remote_ble_info_s::expected_resp

rsi_ble_on_chip_memory_status_callbacks_register#

void rsi_ble_on_chip_memory_status_callbacks_register (chip_ble_buffers_stats_handler_t ble_on_chip_memory_status_event)

Chip memory status.

Parameters
[in]ble_on_chip_memory_status_event

- Memory status

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 3004 of file driver/rsi_bt_ble.c

rsi_bt_prepare_common_pkt#

uint16_t rsi_bt_prepare_common_pkt (uint16_t cmd_type, void * cmd_struct, rsi_pkt_t * pkt)

Form the payload of the BT command packet.

Parameters
[in]cmd_type

- Type of the command

[in]cmd_struct

- Pointer of the command structure

[out]pkt

- Pointer of the packet to fill the contents of the payload

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 3025 of file driver/rsi_bt_ble.c

rsi_bt_prepare_classic_pkt#

uint16_t rsi_bt_prepare_classic_pkt (uint16_t cmd_type, void * cmd_struct, rsi_pkt_t * pkt)

Fill the BT Classic command packet payload.

Parameters
[in]cmd_type

- Type of the command

[in]cmd_struct

- Pointer of the command structure

[out]pkt

- Pointer of the packet to fill the contents of the payload

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 3205 of file driver/rsi_bt_ble.c

rsi_bt_prepare_le_pkt#

uint16_t rsi_bt_prepare_le_pkt (uint16_t cmd_type, void * cmd_struct, rsi_pkt_t * pkt)

Form the payload of the BT Classic command packet.

Parameters
[in]cmd_type

- Type of the command

[in]cmd_struct

- Pointer of the command structure

[out]pkt

- Pointer of the packet to fill the contents of the payload

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 3795 of file driver/rsi_bt_ble.c

rsi_bt_driver_send_cmd#

int32_t rsi_bt_driver_send_cmd (uint16_t cmd, void * cmd_struct, void * resp)

Fill commands and places into Bt TX queue.

Parameters
[in]cmd

- Type of the command to send

[in]cmd_struct

- Pointer of the packet structure to send

[in]resp

- Pointer of the packet to fill the contents of the payload

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 4339 of file driver/rsi_bt_ble.c

intialize_bt_stack#

int32_t intialize_bt_stack (uint8_t mode)

Initialize bt stack.

Parameters
[in]mode

- Mode

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 4552 of file driver/rsi_bt_ble.c

References SL_PRINTF , and UNUSED_PARAMETER