This section consists of several management entities:
API Reference | |
Utilities | |
This sections provides Bluetooth utilities functions related to trace, local bda, tx power etc. | |
LE Security | |
LE Security API. | |
Data Structures | |
struct | wiced_bt_public_key_t |
Public key. More... | |
struct | wiced_bt_smp_sc_local_oob_t |
Data for BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT. More... | |
struct | wiced_bt_smp_remote_oob_req_t |
data type for BTM_SMP_REMOTE_OOB_DATA_REQUEST_EVT More... | |
struct | wiced_bt_smp_sc_remote_oob_req_t |
data type for BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT More... | |
struct | wiced_bt_dev_user_keypress_t |
Pairing keypress notification (BTM_USER_KEYPRESS_NOTIFICATION_EVT event data type) More... | |
struct | wiced_bt_dev_user_key_notif_t |
Data for pairing passkey notification (BTM_USER_PASSKEY_NOTIFICATION_EVT event data type) More... | |
struct | wiced_bt_dev_br_edr_pairing_info_t |
BR/EDR pairing complete information. More... | |
struct | wiced_bt_dev_user_cfm_req_t |
Data for pairing confirmation request (BTM_USER_CONFIRMATION_REQUEST_EVT event data type) More... | |
struct | wiced_bt_dev_ble_pairing_info_t |
LE pairing complete information. More... | |
union | wiced_bt_dev_pairing_info_t |
Transport dependent pairing complete information. More... | |
struct | wiced_bt_dev_pairing_cplt_t |
Pairing complete notification (BTM_PAIRING_COMPLETE_EVT event data type) More... | |
struct | wiced_bt_dev_security_failed_t |
Security/authentication failure status (used by BTM_SECURITY_FAILED_EVT notication) More... | |
struct | wiced_bt_dev_security_request_t |
Security request (BTM_SECURITY_REQUEST_EVT event data type) More... | |
struct | wiced_bt_local_id_keys |
LE keys. More... | |
struct | wiced_bt_local_identity_keys_t |
LE identity key for local device (used by BTM_LE_LOCAL_IDENTITY_KEYS_UPDATE_EVT and BTM_LE_LOCAL_KEYS_REQUEST_EVT notification) More... | |
struct | wiced_bt_ble_connection_param_update_t |
LE connection parameter update event related data. More... | |
struct | wiced_bt_ble_conn_subrate_t |
LE Physical link update event related data. More... | |
struct | wiced_bt_ble_phy_update_t |
BLE Physical link update event related data. More... | |
struct | wiced_bt_ble_phy_data_length_update_t |
LE data length update event related data. More... | |
struct | wiced_bt_ble_multi_adv_response_t |
LE Multi adv VSC response data. More... | |
struct | wiced_bt_dev_enabled_t |
Device enabled (used by BTM_ENABLED_EVT) More... | |
struct | wiced_bt_dev_disabled_t |
Device disabled (used by BTM_DISABLED_EVT) More... | |
struct | wiced_bt_dev_name_and_class_t |
Remote device information (used by BTM_PIN_REQUEST_EVT, BTM_SECURITY_ABORTED_EVT) More... | |
struct | wiced_bt_power_mgmt_notification_t |
Change in power management status (used by BTM_POWER_MANAGEMENT_STATUS_EVT notication) More... | |
struct | wiced_bt_dev_encryption_status_t |
Encryption status change (used by BTM_ENCRYPTION_STATUS_EVT) More... | |
struct | wiced_bt_dev_local_oob_t |
Local OOB data BTM_READ_LOCAL_OOB_DATA_COMPLETE_EVT. More... | |
struct | wiced_bt_dev_remote_oob_t |
BTM_REMOTE_OOB_DATA_REQUEST_EVT. More... | |
struct | wiced_bt_dev_bredr_io_caps_req_t |
BR/EDR Pairing IO Capabilities (to be filled by application callback on BTM_PAIRING_IO_CAPABILITIES_BR_EDR_REQUEST_EVT) More... | |
struct | wiced_bt_dev_ble_io_caps_req_t |
LE Pairing IO Capabilities (to be filled by application callback on BTM_PAIRING_IO_CAPABILITIES_BLE_REQUEST_EVT) More... | |
struct | wiced_bt_ble_keys_t |
Paired device LE Keys. More... | |
struct | wiced_bt_device_sec_keys_t |
Paired Device Link key data. More... | |
struct | wiced_bt_device_link_keys_t |
Paired device link key notification (used by BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT notication) More... | |
struct | wiced_bt_ble_device_addr_update_t |
Event on update of random device address. More... | |
struct | wiced_bt_ble_channel_sel_algo_event_data_t |
Channel selection algorithm event data format. More... | |
union | wiced_bt_management_evt_data_t |
Structure definitions for Bluetooth Management (wiced_bt_management_cback_t) event notifications. More... | |
Macros | |
#define | BTM_INQ_RES_IGNORE_RSSI 0x7f |
RSSI value not supplied (ignore it) | |
#define | BTM_SCAN_PARAM_IGNORE 0 |
Passed to BTM_SetScanConfig() to ignore. | |
#define | BTM_PIN_TYPE_VARIABLE HCI_PIN_TYPE_VARIABLE |
Variable Pin Type. | |
#define | BTM_PIN_TYPE_FIXED HCI_PIN_TYPE_FIXED |
Fix Length Pin Type. | |
#define | BTM_SECURITY_KEY_DATA_LEN 132 |
Security key data length (used by wiced_bt_device_link_keys_t structure) | |
#define | BTM_SECURITY_LOCAL_KEY_DATA_LEN 65 |
Local security key data length (used by wiced_bt_local_identity_keys_t structure) | |
#define | SMP_SEC_NONE 0 |
LE Security key level. More... | |
#define | SMP_SEC_UNAUTHENTICATE (1 << 0) |
Security Key Level: key not authenticated. | |
#define | SMP_SEC_AUTHENTICATED (1 << 2) |
Security Key Level: key authenticated. | |
#define | BTM_OOB_STATE |
OOB Data status. | |
#define | BTM_OOB_REQ_TYPE |
Type of OOB data required. | |
#define | BTM_LE_KEY_TYPES |
LE Key type. | |
#define | BTM_BLE_SCAN_TYPE |
Scan duty cycle (used for BTM_BLE_SCAN_STATE_CHANGED_EVT and wiced_bt_dev_create_connection) | |
#define | BTM_BLE_KEY_TYPE_ID 1 |
Identity resolving key. | |
#define | BTM_BLE_KEY_TYPE_ER 2 |
Encryption root key. | |
#define | BTM_PM_STATUS_CODES |
Power Management status codes. | |
#define | WICED_POWER_STATE_ACTIVE BTM_PM_STS_ACTIVE |
Power Management state. More... | |
#define | WICED_POWER_STATE_SNIFF BTM_PM_STS_SNIFF |
Sniff. | |
#define | WICED_POWER_STATE_SSR BTM_PM_STS_SSR |
Sniff subrating notification. | |
#define | WICED_POWER_STATE_PENDING BTM_PM_STS_PENDING |
Pending (waiting for status from controller) | |
#define | WICED_POWER_STATE_ERROR BTM_PM_STS_ERROR |
Error (controller returned error) | |
#define | BTM_AFH_CHNL_MAP_SIZE HCI_AFH_CHANNEL_MAP_LEN |
Channel Map Length. | |
#define | BTM_MANAGEMENT_EVT |
Bluetooth Management event. | |
#define | BTM_BLE_ADVERT_MODE |
advertisement type (used when calling wiced_bt_start_advertisements) | |
#define | BTM_BLE_CONN_MODE |
scan mode used in initiating | |
Typedefs | |
typedef uint8_t | wiced_bt_dev_io_cap_t |
IO capabilities. | |
typedef uint8_t | wiced_bt_dev_auth_req_t |
BR/EDR authentication requirement (see wiced_bt_dev_auth_req_e) | |
typedef uint8_t | wiced_bt_dev_le_auth_req_t |
LE authentication requirement (see wiced_bt_dev_le_auth_req_e) | |
typedef uint8_t | wiced_bt_smp_sec_level_t |
LE Security key level. | |
typedef uint8_t | wiced_bt_dev_oob_data_t |
OOB data (see wiced_bt_dev_oob_data_e) | |
typedef uint8_t | wiced_bt_dev_oob_data_req_type_t |
OOB data type requested (see wiced_bt_dev_oob_data_req_type_t) | |
typedef uint8_t | wiced_bt_dev_le_key_type_t |
LE key type (see wiced_bt_dev_le_key_type_e) | |
typedef uint8_t | wiced_bt_ble_scan_type_t |
scan type (see wiced_bt_ble_scan_type_e) | |
typedef uint8_t | wiced_bt_smp_status_t |
SMP Pairing status (see wiced_bt_smp_status_e) | |
typedef uint8_t | wiced_bt_dev_power_mgmt_status_t |
Power management status (see wiced_bt_dev_power_mgmt_status_e) | |
typedef uint8_t | wiced_bt_br_chnl_map_t[BTM_AFH_CHNL_MAP_SIZE] |
Array of Channel Map Length. | |
typedef uint8_t | wiced_bt_management_evt_t |
Bluetooth management events (see wiced_bt_management_evt_e) | |
typedef uint16_t | wiced_bt_link_policy_settings_t[1] |
Link Policy Settings type (see wiced_bt_link_policy_settings_values_e) | |
typedef uint8_t | wiced_bt_ble_advert_mode_t |
Advertisement type (see wiced_bt_ble_advert_mode_e) | |
typedef uint8_t | wiced_bt_ble_conn_mode_t |
Conn mode (see wiced_bt_ble_conn_mode_e) | |
typedef uint16_t | wiced_bt_ble_connection_handle_t |
LE ACL connection handle. | |
typedef uint8_t | wiced_bt_ble_channel_sel_algo_t |
LE channel algorithm selection (see wiced_bt_ble_channel_sel_algo_e) | |
typedef wiced_result_t() | wiced_bt_management_cback_t(wiced_bt_management_evt_t event, wiced_bt_management_evt_data_t *p_event_data) |
Bluetooth Management callback. More... | |
typedef void() | wiced_bt_connection_status_change_cback_t(wiced_bt_device_address_t bd_addr, uint8_t *p_features, wiced_bool_t is_connected, uint16_t handle, wiced_bt_transport_t transport, uint8_t reason) |
Connection status change callback. More... | |
typedef void() | wiced_bt_inquiry_result_cback_t(wiced_bt_dev_inquiry_scan_result_t *p_inquiry_result, uint8_t *p_eir_data) |
Inquiry result callback. More... | |
typedef void() | wiced_bt_remote_name_cback_t(wiced_bt_dev_remote_name_result_t *p_remote_name_result) |
Remote name result callback. More... | |
typedef void() | wiced_bt_dev_vse_callback_t(uint8_t len, uint8_t *p) |
Vendor event handler callback. More... | |
typedef void() | wiced_bt_hci_trace_cback_t(wiced_bt_hci_trace_type_t type, uint16_t length, uint8_t *p_data) |
HCI trace callback. More... | |
#define SMP_SEC_NONE 0 |
LE Security key level.
Security Key Level: None
#define WICED_POWER_STATE_ACTIVE BTM_PM_STS_ACTIVE |
Power Management state.
Active
typedef wiced_result_t() wiced_bt_management_cback_t(wiced_bt_management_evt_t event, wiced_bt_management_evt_data_t *p_event_data) |
Bluetooth Management callback.
Callback for Bluetooth Management event notifications. Registered using wiced_bt_stack_init()
event | : Event ID |
p_event_data | : Event data |
typedef void() wiced_bt_connection_status_change_cback_t(wiced_bt_device_address_t bd_addr, uint8_t *p_features, wiced_bool_t is_connected, uint16_t handle, wiced_bt_transport_t transport, uint8_t reason) |
Connection status change callback.
Callback for Bluetooth Management event notifications. Registered using wiced_bt_register_connection_status_change()
[in] | bd_addr | : BD Address of remote |
[in] | p_features | : unused (NULL) |
[in] | is_connected | : TRUE if connected |
[in] | handle | : Connection handle |
[in] | transport | : BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE |
[in] | reason | : status for acl connection change HCI_SUCCESS HCI_ERR_PAGE_TIMEOUT HCI_ERR_MEMORY_FULL HCI_ERR_CONNECTION_TOUT HCI_ERR_PEER_USER HCI_ERR_CONN_CAUSE_LOCAL_HOST HCI_ERR_LMP_RESPONSE_TIMEOUT HCI_ERR_CONN_FAILED_ESTABLISHMENT connection status change callback |
typedef void() wiced_bt_inquiry_result_cback_t(wiced_bt_dev_inquiry_scan_result_t *p_inquiry_result, uint8_t *p_eir_data) |
Inquiry result callback.
p_inquiry_result | : Inquiry result data (NULL if inquiry is complete) |
p_eir_data | : Extended inquiry response datainquiry result callback |
typedef void() wiced_bt_remote_name_cback_t(wiced_bt_dev_remote_name_result_t *p_remote_name_result) |
Remote name result callback.
p_remote_name_result | : Remote name result data |
typedef void() wiced_bt_dev_vse_callback_t(uint8_t len, uint8_t *p) |
Vendor event handler callback.
len | : input data length |
p | : input data |
typedef void() wiced_bt_hci_trace_cback_t(wiced_bt_hci_trace_type_t type, uint16_t length, uint8_t *p_data) |
HCI trace callback.
Callback for HCI traces Registered using wiced_bt_dev_register_hci_trace()
[in] | type | : Trace type |
[in] | length | : Length of the trace data |
[in] | p_data | : Pointer to the data |
enum wiced_bt_sec_flags_e |
Pairing IO Capabilities.
BR/EDR Authentication requirement.
LE Authentication requirement.
LE Key type.
Scan duty cycle (used for BTM_BLE_SCAN_STATE_CHANGED_EVT and wiced_bt_dev_create_connection)
SMP Pairing status codes.
LE Multi adv opcodes returned.
Bluetooth Management events used in wiced_bt_management_cback_t.
Enumerator | |
---|---|
BTM_ENABLED_EVT | Event notifies Bluetooth controller and host stack is enabled. Event data: wiced_bt_management_evt_data_t::enabled Indicates the stack is up. Application can now start calling bluetooth AIROC Bluetooth APIs |
BTM_DISABLED_EVT | Event notifies Bluetooth controller and host stack disabled. Event data: NULL |
BTM_POWER_MANAGEMENT_STATUS_EVT | Event notifies Power management status change. Event data: wiced_bt_management_evt_data_t::power_mgmt_notification |
BTM_RE_START_EVT | Event notifies Bluetooth controller and host stack re-enabled. Event data: wiced_bt_management_evt_data_t::enabled
|
BTM_PIN_REQUEST_EVT | Event requests app for the PIN to be used for pairing (legacy pairing only). Event data: wiced_bt_management_evt_data_t::pin_request |
BTM_USER_CONFIRMATION_REQUEST_EVT | Event requests user confirmation for the numeric value to continue the App is expected to respond with using wiced_bt_dev_confirm_req_reply typically by confirming via a display to the user Event data: wiced_bt_management_evt_data_t::user_confirmation_request. |
BTM_PASSKEY_NOTIFICATION_EVT | Event notifies user passkey app App is expected to display the passkey to the user Event data: wiced_bt_management_evt_data_t::user_passkey_notification. |
BTM_PASSKEY_REQUEST_EVT | Event requests user passkey from app Event data: wiced_bt_management_evt_data_t::user_passkey_request. |
BTM_KEYPRESS_NOTIFICATION_EVT | Event notifies keypress notification event to app Event data: wiced_bt_management_evt_data_t::user_keypress_notification. |
BTM_PAIRING_IO_CAPABILITIES_BR_EDR_REQUEST_EVT | Event requests BR/EDR IO capabilities for BR/EDR pairing from app Event data: wiced_bt_management_evt_data_t::pairing_io_capabilities_br_edr_request App is expected to fill in it's BR/EDR IO capabilities into the incoming wiced_bt_management_evt_data_t::pairing_io_capabilities_br_edr_request structure member.
|
BTM_PAIRING_IO_CAPABILITIES_BR_EDR_RESPONSE_EVT | Event notifies received IO capabilities response for BR/EDR pairing. Event data: wiced_bt_management_evt_data_t::pairing_io_capabilities_br_edr_response
|
BTM_PAIRING_IO_CAPABILITIES_BLE_REQUEST_EVT | Event requests LE IO capabilities for LE pairing from app. Peripheral can check peer io capabilities in event data before updating with local io capabilities. Event data: wiced_bt_management_evt_data_t::pairing_io_capabilities_ble_request |
BTM_PAIRING_COMPLETE_EVT | Event notifies simple pairing complete to app Event data: wiced_bt_management_evt_data_t::pairing_complete. |
BTM_ENCRYPTION_STATUS_EVT | Event notifies encryption status change to app Event data: wiced_bt_management_evt_data_t::encryption_status. |
BTM_SECURITY_REQUEST_EVT | Event requests app to allow stack to continue Security procedures/pairing to continue with the peer. App needs to respond with wiced_bt_ble_security_grant App is expected to either allow or deny the incoming pairing request based on it's state Event data: wiced_bt_management_evt_data_t::security_request |
BTM_SECURITY_FAILED_EVT | Event notifies Security procedure/authentication failed to app Event data: wiced_bt_management_evt_data_t::security_failed. |
BTM_SECURITY_ABORTED_EVT | Event notifies security procedure aborted locally, or unexpected link drop. Event data: wiced_bt_management_evt_data_t::security_aborted |
BTM_READ_LOCAL_OOB_DATA_COMPLETE_EVT | Event notifies result of reading local OOB data from the controller Event data: wiced_bt_management_evt_data_t::read_local_oob_data_complete.
|
BTM_REMOTE_OOB_DATA_REQUEST_EVT | Event requests OOB data of the remote device from app Event data: wiced_bt_management_evt_data_t::remote_oob_data_request.
|
BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT | Event notifies app with the updated remote device link keys in this event. App is expected to store device_link_keys to NV memory. This is the place to verify that the correct link key has been generated. Event data: wiced_bt_management_evt_data_t::paired_device_link_keys_update |
BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT | Event requests for stored remote device link keys from app (restore device_link_keys from NV memory). If available then fill the stored keys into |
BTM_LOCAL_IDENTITY_KEYS_UPDATE_EVT | Event notifies updated local identity key to the app (stored local_identity_keys NV memory). App is expected to store the identity key to NV memory. Event data: wiced_bt_management_evt_data_t::local_identity_keys_update |
BTM_LOCAL_IDENTITY_KEYS_REQUEST_EVT | Event requests local identity key from app (get local_identity_keys from NV memory). If available then fill the local key into |
BTM_BLE_SCAN_STATE_CHANGED_EVT | Event notifies LE scan state change to app Event data: wiced_bt_management_evt_data_t::ble_scan_state_changed. |
BTM_BLE_ADVERT_STATE_CHANGED_EVT | Event notifies LE advertisement state change to app Event data: wiced_bt_management_evt_data_t::ble_advert_state_changed. |
BTM_SMP_REMOTE_OOB_DATA_REQUEST_EVT | Event requests SMP remote oob data. Reply using wiced_bt_smp_oob_data_reply. Event data: wiced_bt_management_evt_data_t::smp_remote_oob_data_request |
BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT | Event requests LE secure connection remote oob data request. Reply using wiced_bt_smp_sc_oob_reply. Event data: wiced_bt_management_evt_data_t::smp_sc_remote_oob_data_request |
BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT | Event notifies LE secure connection local OOB data (wiced_bt_smp_create_local_sc_oob_data) returned by the stack The app is expected to copy the data into it's memory and share out of band with the peer Event data: wiced_bt_management_evt_data_t::p_smp_sc_local_oob_data. |
BTM_SCO_CONNECTED_EVT | Event notfies SCO connected to app Event data: wiced_bt_management_evt_data_t::sco_connected.
|
BTM_SCO_DISCONNECTED_EVT | Event notifies SCO disconnected event to app Event data: wiced_bt_management_evt_data_t::sco_disconnected.
|
BTM_SCO_CONNECTION_REQUEST_EVT | Event notifies SCO connection request to app App is expected to reply with. Event data: wiced_bt_management_evt_data_t::sco_connection_request
|
BTM_SCO_CONNECTION_CHANGE_EVT | Event notifies SCO connection change to app Event data: wiced_bt_management_evt_data_t::sco_connection_change.
|
BTM_BLE_CONNECTION_PARAM_UPDATE | Event notifies LE connection parameter update to app Event data: wiced_bt_management_evt_data_t::ble_connection_param_update. |
BTM_BLE_PHY_UPDATE_EVT | Event notifies LE Physical link update to app Event data: wiced_bt_management_evt_data_t::ble_phy_update_event. |
BTM_LPM_STATE_LOW_POWER | Event notifies Bluetooth device wake has been deasserted. Used for Host Stack Use Case. |
BTM_MULTI_ADVERT_RESP_EVENT | Event notifies Multi adv command status event used for the status of the command sent Event data: wiced_bt_management_evt_data_t::ble_multi_adv_response_event. |
BTM_BLE_DATA_LENGTH_UPDATE_EVENT | Event to notify change in the data length and timeout configured for Rx and Tx on the LE link Event data: wiced_bt_management_evt_data_t::ble_data_length_update_event. |
BTM_BLE_SUBRATE_CHANGE_EVENT | Event to notify subrate change event BLE link Event data: wiced_bt_management_evt_data_t::ble_subrate_change_event. |
BTM_BLE_DEVICE_ADDRESS_UPDATE_EVENT | Event to notify change in the device address Event data: wiced_bt_management_evt_data_t::ble_addr_update_event. |
BTM_BLE_CHANNEL_SELECTION_ALGO_EVENT | Event to notify change channel selection algorithm for the connection Event data: wiced_bt_management_evt_data_t::ble_channel_sel_algo_event. |
BTM_BLE_READ_MAX_ADV_DATA_LEN_EVENT | Event to notify Maximum Advertising data length supported Event data: wiced_bt_management_evt_data_t::max_adv_data_len. |
.Enumeration of known link policy settings value assignments of the wiced_bt_link_policy_settings_t
Enumerator | |
---|---|
WICED_ENABLE_ROLE_SWITCH | Enable Role Switch. |
WICED_ENABLE_HOLD_MODE | Enable Hold mode. |
WICED_ENABLE_SNIFF_MODE | Enable Sniff mode. |
advertisement type (used when calling wiced_bt_start_advertisements)
HCI trace types.