Sl_bt_peer_manager_common#
Modules#
Enumerations#
enum
SL_BT_PEER_MANAGER_ON_CONN_OPENED_CENTRAL = 0
SL_BT_PEER_MANAGER_ON_CONN_OPENED_PERIPHERAL
SL_BT_PEER_MANAGER_ON_CONN_CLOSED
SL_BT_PEER_MANAGER_ON_ADV_STOPPED
SL_BT_PEER_MANAGER_ERROR
}
Typedefs#
typedef struct sl_bt_peer_manager_evt_type_s
Functions#
void
sl_bt_peer_manager_on_event(sl_bt_peer_manager_evt_type_t *event)
uint8_t
bd_addr *
sl_bt_peer_manager_get_bt_address(uint8_t conn_handle)
bool
sl_bt_peer_manager_is_bt_address_already_connected(bd_addr *bt_address)
bool
sl_bt_peer_manager_is_conn_handle_central(uint8_t conn_handle)
Macros#
#define
SL_BT_PEER_MANAGER_COMMON_LOG 0
#define
SL_BT_PEER_MANAGER_COMMON_LOG_PREFIX "[PM]"
#define
SL_BT_PEER_MANAGER_COMMON_MAX_ALLOWED_CONN_COUNT 4
#define
SL_BT_PEER_MANAGER_COMMON_TIMEOUT_GATT_MS 10000
Enumeration Documentation#
sl_bt_peer_manager_evt_id#
sl_bt_peer_manager_evt_id
| Enumerator | |
|---|---|
| SL_BT_PEER_MANAGER_ON_CONN_OPENED_CENTRAL | |
| SL_BT_PEER_MANAGER_ON_CONN_OPENED_PERIPHERAL | |
| SL_BT_PEER_MANAGER_ON_CONN_CLOSED | |
| SL_BT_PEER_MANAGER_ON_ADV_STOPPED | |
| SL_BT_PEER_MANAGER_ERROR | |
Typedef Documentation#
sl_bt_peer_manager_evt_type_t#
typedef struct sl_bt_peer_manager_evt_type_s sl_bt_peer_manager_evt_type_t
Function Documentation#
sl_bt_peer_manager_on_event#
void sl_bt_peer_manager_on_event (sl_bt_peer_manager_evt_type_t * event)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| sl_bt_peer_manager_evt_type_t * | N/A | event |
sl_bt_peer_manager_get_active_conn_number#
uint8_t sl_bt_peer_manager_get_active_conn_number (void )
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
sl_bt_peer_manager_get_bt_address#
bd_addr * sl_bt_peer_manager_get_bt_address (uint8_t conn_handle)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| uint8_t | N/A | conn_handle |
sl_bt_peer_manager_is_bt_address_already_connected#
bool sl_bt_peer_manager_is_bt_address_already_connected (bd_addr * bt_address)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| bd_addr * | N/A | bt_address |
sl_bt_peer_manager_is_conn_handle_central#
bool sl_bt_peer_manager_is_conn_handle_central (uint8_t conn_handle)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| uint8_t | N/A | conn_handle |