Structure represents the Bluetooth control block.

This structure is used to define the parameters for the Bluetooth control block, which includes status, state, synchronization mechanisms, and remote BLE device information.

Public Attributes#

volatile int32_t
uint16_t
osMutexId_t
uint8_t
uint8_t
osSemaphoreId_t
osSemaphoreId_t
uint8_t *
uint8_t
uint8_t
volatile int32_t

Public Attribute Documentation#

status#

volatile int32_t rsi_bt_cb_s::status

Driver BT control block status


state#

uint16_t rsi_bt_cb_s::state

Driver BT control block state


bt_mutex#

osMutexId_t rsi_bt_cb_s::bt_mutex

Driver BT control block mutex


expected_response_buffer#

void* rsi_bt_cb_s::expected_response_buffer

Driver BT control block expected command response


expected_response_type#

uint16_t rsi_bt_cb_s::expected_response_type

Expected command response type


sync_rsp#

uint8_t rsi_bt_cb_s::sync_rsp

Sync command flag to identify that the command is blocking / sync type


dev_type#

uint8_t rsi_bt_cb_s::dev_type

BT device type at disconnect


bt_cmd_sem#

osSemaphoreId_t rsi_bt_cb_s::bt_cmd_sem

Driver BT control block semaphore for commands


bt_sem#

osSemaphoreId_t rsi_bt_cb_s::bt_sem

Driver BT control block semaphore


app_buffer#

uint8_t* rsi_bt_cb_s::app_buffer

Buffer pointer given by application to driver


app_buffer_length#

uint32_t rsi_bt_cb_s::app_buffer_length

Buffer length given by application to driver


bt_global_cb#

rsi_bt_global_cb_t* rsi_bt_cb_s::bt_global_cb

Pointer to global Bluetooth callback structure


directed_addr#

uint8_t rsi_bt_cb_s::directed_addr[RSI_DEV_ADDR_LEN]

Address of the device to which directed advertising has to be done in ll privacy mode


remote_ble_info#

rsi_remote_ble_info_t rsi_bt_cb_s::remote_ble_info[MAX_REMOTE_BLE_DEVICES]

Structure holds remote LE device information (BD address and controller buffer availability)


buf_status#

uint8_t rsi_bt_cb_s::buf_status

Variable indicates buffer full/empty status --> 0 -> Empty, 1 -> Full


cmd_status#

uint8_t rsi_bt_cb_s::cmd_status

Variable indicates command in use status --> 0 -> Not In Use, 1 -> In Use


remote_ble_index#

uint8_t rsi_bt_cb_s::remote_ble_index

Variable to save remote information index


async_status#

volatile int32_t rsi_bt_cb_s::async_status

Driver BT control block asynchronous status