Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_dev.h File Reference

> More...

Data Structures

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_vendor_specific_command_complete_params_t
 Structure returned with Vendor Specific Command complete callback. More...
 
struct  wiced_bt_dev_rssi_result_t
 RSSI Result (in response to wiced_bt_dev_read_rssi) More...
 
struct  wiced_bt_tx_power_result_t
 TX Power Result (in response to wiced_bt_dev_read_tx_power) More...
 
struct  wiced_bt_sco_connected_t
 SCO connected event related data. More...
 
struct  wiced_bt_sco_disconnected_t
 SCO disconnected event related data. More...
 
struct  wiced_bt_sco_connection_request_t
 SCO connect request event related data. More...
 
struct  wiced_bt_sco_connection_change_t
 SCO connection change event related data. More...
 
struct  wiced_bt_dev_cod_cond_t
 Class of Device inquiry filter. More...
 
union  wiced_bt_dev_inq_filt_cond_t
 Inquiry filter. More...
 
struct  wiced_bt_dev_inq_parms_t
 Inquiry Parameters. More...
 
struct  wiced_bt_dev_inquiry_scan_result_t
 Inquiry Results. More...
 
struct  wiced_bt_dev_remote_name_result_t
 Structure returned with remote name request. More...
 
struct  wiced_bt_dev_switch_role_result_t
 
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_bonded_device_info_t
 bonding device information from wiced_bt_dev_get_bonded_devices 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_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_dev_bredr_io_caps_rsp_t
 Data type for IO capabalities response (BTM_PAIRING_IO_CAPABILITIES_BR_EDR_RESPONSE_EVT) 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_user_key_req_t
 Pairing user passkey request (BTM_USER_PASSKEY_REQUEST_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_user_keypress_t
 Pairing keypress notification (BTM_USER_KEYPRESS_NOTIFICATION_EVT event data type) More...
 
struct  wiced_bt_dev_br_edr_pairing_info_t
 BR/EDR pairing complete infomation. More...
 
struct  wiced_bt_dev_ble_pairing_info_t
 LE pairing complete infomation. More...
 
union  wiced_bt_dev_pairing_info_t
 Transport dependent pairing complete infomation. 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_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_dev_encryption_status_t
 Encryption status change (used by BTM_ENCRYPTION_STATUS_EVT) 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_phy_update_t
 LE Physical link update event related data. More...
 
union  wiced_bt_management_evt_data_t
 Structure definitions for Bluetooth Management (wiced_bt_management_cback_t) event notifications. More...
 

Macros

#define BTM_LINK_TYPE_SCO   HCI_LINK_TYPE_SCO
 SCO link type. More...
 
#define BTM_LINK_TYPE_ESCO   HCI_LINK_TYPE_ESCO
 Link type eSCO.
 
#define BTM_AFH_CHNL_MAP_SIZE   HCI_AFH_CHANNEL_MAP_LEN
 BR channel map.
 
#define BTM_SCAN_TYPE_STANDARD   0
 Define scan types.
 
#define BTM_SCAN_TYPE_INTERLACED   1
 
#define BTM_INQ_RESULT   0
 Inquiry results mode.
 
#define BTM_INQ_RESULT_WITH_RSSI   1
 
#define BTM_INQ_RESULT_EXTENDED   2
 
#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_INQ_RMT_NAME_EMPTY   0
 State of the remote name retrieval during inquiry operations. More...
 
#define BTM_INQ_RMT_NAME_PENDING   1
 
#define BTM_INQ_RMT_NAME_DONE   2
 
#define BTM_INQ_RMT_NAME_FAILED   3
 
#define BTM_EIR_MAX_SERVICES   46
 Determines the number of uint32_t's necessary for services. More...
 
#define BTM_EIR_ARRAY_BITS   32
 Number of bits in each array element.
 
#define BTM_EIR_SERVICE_ARRAY_SIZE
 
#define BTM_PIN_TYPE_VARIABLE   HCI_PIN_TYPE_VARIABLE
 PIN types.
 
#define BTM_PIN_TYPE_FIXED   HCI_PIN_TYPE_FIXED
 
#define BTM_SECURITY_KEY_DATA_LEN   132
 Size of security keys. More...
 
#define BTM_SECURITY_LOCAL_KEY_DATA_LEN   65
 Local security key data length (used by wiced_bt_local_identity_keys_t structure)
 
#define BTM_DISCOVERABLE_MASK   (BTM_LIMITED_DISCOVERABLE|BTM_GENERAL_DISCOVERABLE)
 
#define BTM_MAX_DISCOVERABLE   BTM_GENERAL_DISCOVERABLE
 
#define BTM_CONNECTABLE_MASK   (BTM_NON_CONNECTABLE | BTM_CONNECTABLE)
 
#define SMP_ERROR_CODES
 SMP Pairing status codes.
 
#define BTM_BLE_AUTH_REQ_TYPES
 LE Authentication requirement.
 
#define wiced_bt_dev_switch_role   BTM_SwitchRole
 
#define wiced_bt_dev_set_link_supervision_timeout   BTM_SetLinkSuperTout
 
#define wiced_bt_dev_set_link_policy   BTM_SetLinkPolicy
 
#define wiced_bt_set_device_class   BTM_SetDeviceClass
 

Typedefs

typedef uint8_t wiced_bt_link_quality_stats_param_t
 Link Quality Statistic Action (see wiced_bt_dev_link_quality_stats_param_e)
 
typedef uint8_t wiced_bt_dev_power_mgmt_status_t
 Power management status (see wiced_bt_dev_power_mgmt_status_e)
 
typedef UINT8 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_smp_status_t
 SMP Pairing status (see wiced_bt_smp_status_e)
 
typedef uint8_t wiced_bt_dev_io_cap_t
 IO capabilities (see wiced_bt_dev_io_cap_e)
 
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_dev_oob_data_t
 OOB data (see wiced_bt_dev_oob_data_e)
 
typedef uint8_t wiced_bt_dev_passkey_entry_type_t
 Bluetooth pairing keypress value (see wiced_bt_dev_passkey_entry_type_e)
 
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_conn_mode_t
 Conn mode wiced_bt_ble_conn_mode_e.
 
typedef uint8_t wiced_bt_ble_advert_mode_t
 Advertisement type wiced_bt_ble_advert_mode_e.
 
typedef uint8_t wiced_bt_ble_scan_type_t
 scan type (see wiced_bt_ble_scan_type_e)
 
typedef uint8_t wiced_bt_management_evt_t
 Bluetooth management events (see wiced_bt_management_evt_e)
 
typedef uint8_t wiced_bt_br_chnl_map_t [BTM_AFH_CHNL_MAP_SIZE]
 
typedef uint8_t wiced_bt_sco_type_t
 BTM_LINK_TYPE_SCO or BTM_LINK_TYPE_ESCO.
 
typedef wiced_result_t wiced_bt_dev_status_t
 Result/Status for wiced_bt_dev. More...
 
union {
   uint16_t   array [10]
 
   struct {
      uint16_t   null_count
 No.of NULL packets received/transmitted.
 
      uint16_t   pool_count
 No.of POLL packets received/transmitted.
 
      uint16_t   dm1_count
 No.of DM1 packets received/transmitted.
 
      uint16_t   dh1_count
 No.of DH1 packets received/transmitted.
 
      uint16_t   dv_count
 No.of DV packets received/transmitted.
 
      uint16_t   aux1_count
 No.of AUX1 packets received/transmitted.
 
      uint16_t   dm3_count
 No.of DM3 packets received/transmitted.
 
      uint16_t   dh3_count
 No.of DH3 packets received/transmitted.
 
      uint16_t   dm5_count
 No.of DM5 packets received/transmitted.
 
      uint16_t   dh5_count
 No.of DH5 packets received/transmitted.
 
   }   br_packet_types
 
   struct {
      uint16_t   null_count
 No.of NULL packets received/transmitted.
 
      uint16_t   pool_count
 No.of POLL packets received/transmitted.
 
      uint16_t   dm1_count
 No.of DM1 packets received/transmitted.
 
      uint16_t   _2_dh1_count
 No.of 2DH1 packets received/transmitted.
 
      uint16_t   _3_dh1_count
 No.of 3DH1 packets received/transmitted.
 
      uint16_t   _2_dh3_count
 No.of 2DH3 packets received/transmitted.
 
      uint16_t   _3_dh3_count
 No.of 3DH3 packets received/transmitted.
 
      uint16_t   _2_dh5_count
 No.of 2DH5 packets received/transmitted.
 
      uint16_t   _3_dh5_count
 No.of 3DH5 packets received/transmitted.
 
      uint16_t   not_used
 Not Used.
 
   }   edr_packet_types
 
wiced_bt_br_edr_pkt_type_stats
 BR/EDR packet types detail statistics.
 
struct {
   wiced_bt_br_edr_pkt_type_stats   rxPkts
 Received packets details.
 
   wiced_bt_br_edr_pkt_type_stats   txPkts
 Transmitted packets details.
 
   uint32_t   rxAclBytes
 Total Received ACL bytes.
 
   uint32_t   txAclBytes
 Total Transmitted ACL bytes.
 
   uint16_t   hecErrs
 hecErrs packet count
 
   uint16_t   crcErrs
 crcErrs packet count
 
   uint16_t   seqnRepeat
 seqnRepeat packet count
 
wiced_bt_lq_br_edr_stats
 BR/EDR link statistics.
 
struct {
   uint32_t   re_trans_cnt
 Packet retransmission count.
 
   uint16_t   re_trans_percent
 Packet retransmission percentage.
 
   uint16_t   pkt_err_rate
 Packet error rate.
 
wiced_bt_lq_generic_stats
 
struct {
   uint8_t   conn_type
 Connection type. More...
 
   wiced_bt_lq_generic_stats   generic_stats
 ACL/SCO statistics.
 
   uint32_t   tx_pkt_cnt
 Transmit packet count.
 
   uint32_t   tx_acked_cnt
 Transmit packet acknowledged count.
 
   uint32_t   rx_good_pkt_cnt
 Received good packet count.
 
   uint32_t   rx_good_bytes
 Received good byte count.
 
   uint32_t   rx_all_pkt_sync_to
 All received packet sync timeout count.
 
   uint32_t   rx_all_pkt_crc_err
 All received packet crc error count.
 
   uint32_t   sft_rst_cnt
 
   uint32_t   evt_flow_off_cnt
 
   uint32_t   evt_alarm_hi_tsk_prioty_cnt
 
   uint32_t   tx_all_pkt_cnt
 Transmit all packet count.
 
   uint32_t   tx_all_pkt_ack_cnt
 Transmit all packet acknowledged count.
 
   uint32_t   rx_all_good_pkt_cnt
 Received all good packet count.
 
   uint32_t   activate_late_cnt
 Activate late count.
 
   uint32_t   reserved
 
wiced_bt_lq_le_stats
 LE link statistics.
 
struct {
   uint8_t   status
 eEvent status
 
   uint16_t   conn_handle
 Connection handle of link quality stats.
 
   uint8_t   action
 see wiced_bt_dev_link_quality_stats_param for options
 
   union {
      wiced_bt_lq_br_edr_stats   br_edr_stats
 br edr statistics
 
      wiced_bt_lq_le_stats   le_stats
 le statistics
 
   }   wiced_bt_lq_stats
 
wiced_bt_lq_stats_result_t
 LQ Quality Result (in response to wiced_bt_dev_lq_stats)
 
struct {
   BT_OCTET16   irk
 Peer diverified identity root.
 
   BT_OCTET16   pltk
 Peer long term key.
 
   BT_OCTET16   pcsrk
 Peer SRK peer device used to secured sign local data.
 
   BT_OCTET16   lltk
 Local long term key.
 
   BT_OCTET16   lcsrk
 Local SRK peer device used to secured sign local data.
 
   BT_OCTET8   rand
 Random vector for LTK generation.
 
   UINT16   ediv
 LTK diversifier of this peripheral device.
 
   UINT16   div
 Local DIV to generate local LTK=d1(ER,DIV,0) and CSRK=d1(ER,DIV,1)
 
   uint8_t   sec_level
 Local pairing security level.
 
   uint8_t   key_size
 Key size of the LTK delivered to peer device.
 
   uint8_t   srk_sec_level
 Security property of peer SRK for this device.
 
   uint8_t   local_csrk_sec_level
 security property of local CSRK for this device
 
   UINT32   counter
 Peer sign counter for verifying rcv signed cmd.
 
   UINT32   local_counter
 Local sign counter for sending signed write cmd.
 
wiced_bt_ble_keys_t
 
struct {
   uint8_t   br_edr_key_type
 BR/EDR key. More...
 
   wiced_bt_link_key_t   br_edr_key
 BR/EDR Link Key.
 
   wiced_bt_dev_le_key_type_t   le_keys_available_mask
 LE Keys. More...
 
   wiced_bt_ble_address_type_t   ble_addr_type
 LE device type: public or random address.
 
   wiced_bt_ble_address_type_t   static_addr_type
 Static address type.
 
   wiced_bt_device_address_t   static_addr
 Static address.
 
   wiced_bt_ble_keys_t   le_keys
 LE keys.
 
wiced_bt_device_sec_keys_t
 
struct {
   wiced_bt_device_address_t   bd_addr
 [in] BD Address of remote
 
   wiced_bt_device_sec_keys_t   key_data
 [in/out] Key data
 
wiced_bt_device_link_keys_t
 Paired device link key notification (used by BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT notication)
 
typedef wiced_result_twiced_bt_management_cback_t )(wiced_bt_management_evt_t event, wiced_bt_management_evt_data_t *p_event_data)
 Callback for Bluetooth Management event notifications. 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)
 Callback for Bluetooth Management event notifications. More...
 
typedef void( wiced_bt_dev_cmpl_cback_t )(void *p_data)
 Asynchronous operation complete callback. More...
 
typedef void( wiced_bt_dev_vendor_specific_command_complete_cback_t )(wiced_bt_dev_vendor_specific_command_complete_params_t *p_command_complete_params)
 Vendor specific command complete. More...
 
typedef void( wiced_bt_hci_trace_cback_t )(wiced_bt_hci_trace_type_t type, uint16_t length, uint8_t *p_data)
 Callback for HCI traces registered using wiced_bt_dev_register_hci_trace. 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...
 

Enumerations

enum  wiced_bt_dev_link_quality_stats_param_e { WICED_CLEAR_LINK_QUALITY_STATS, WICED_READ_LINK_QUALITY_STATS, WICED_READ_THEN_CLEAR_LINK_QUALITY_STATS }
 Link Quality statistics action type. More...
 
enum  wiced_bt_hci_trace_type_t { HCI_TRACE_EVENT, HCI_TRACE_COMMAND, HCI_TRACE_INCOMING_ACL_DATA, HCI_TRACE_OUTGOING_ACL_DATA }
 HCI trace types. More...
 
enum  wiced_bt_dev_power_mgmt_status_e {
  WICED_POWER_STATE_ACTIVE = HCI_MODE_ACTIVE, WICED_POWER_STATE_SNIFF = HCI_MODE_SNIFF, WICED_POWER_STATE_SSR = WICED_POWER_STATE_SNIFF + 2, WICED_POWER_STATE_PENDING,
  WICED_POWER_STATE_ERROR
}
 Power Management status codes. More...
 
enum  wiced_bt_discoverability_mode_e { BTM_NON_DISCOVERABLE = 0, BTM_LIMITED_DISCOVERABLE = 1, BTM_GENERAL_DISCOVERABLE = 2 }
 BR/EDR Discoverable modes. More...
 
enum  wiced_bt_connectability_mode_e { BTM_NON_CONNECTABLE = 0, BTM_CONNECTABLE = 1 }
 BR/EDR Connectable modes. More...
 
enum  wiced_bt_inquiry_mode_e { BTM_INQUIRY_NONE = 0, BTM_GENERAL_INQUIRY = 0x01, BTM_LIMITED_INQUIRY = 0x02, BTM_BR_INQUIRY_MASK = (BTM_GENERAL_INQUIRY | BTM_LIMITED_INQUIRY) }
 Inquiry modes NOTE These modes are associated with the inquiry active values (BTM_*ACTIVE). More...
 
enum  wiced_bt_dev_filter_cond_e { BTM_CLR_INQUIRY_FILTER = 0, BTM_FILTER_COND_DEVICE_CLASS = HCI_FILTER_COND_DEVICE_CLASS, BTM_FILTER_COND_BD_ADDR = HCI_FILTER_COND_BD_ADDR }
 Inquiry Filter Condition types (see wiced_bt_dev_inq_parms_t) More...
 
enum  wiced_bt_dev_oob_data_req_type_e { BTM_OOB_INVALID_TYPE, BTM_OOB_PEER, BTM_OOB_LOCAL, BTM_OOB_BOTH }
 Type of OOB data required. More...
 
enum  wiced_bt_smp_status_e {
  SMP_SUCCESS = 0, SMP_PASSKEY_ENTRY_FAIL = 0x01, SMP_OOB_FAIL = 0x02, SMP_PAIR_AUTH_FAIL = 0x03,
  SMP_CONFIRM_VALUE_ERR = 0x04, SMP_PAIR_NOT_SUPPORT = 0x05, SMP_ENC_KEY_SIZE = 0x06, SMP_INVALID_CMD = 0x07,
  SMP_PAIR_FAIL_UNKNOWN = 0x08, SMP_REPEATED_ATTEMPTS = 0x09, SMP_INVALID_PARAMETERS = 0x0A, SMP_DHKEY_CHK_FAIL = 0x0B,
  SMP_NUMERIC_COMPAR_FAIL = 0x0C, SMP_BR_PAIRING_IN_PROGR = 0x0D, SMP_XTRANS_DERIVE_NOT_ALLOW = 0x0E, SMP_MAX_FAIL_RSN_PER_SPEC = SMP_XTRANS_DERIVE_NOT_ALLOW,
  SMP_PAIR_INTERNAL_ERR = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x01), SMP_UNKNOWN_IO_CAP = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x02), SMP_INIT_FAIL = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x03), SMP_CONFIRM_FAIL = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x04),
  SMP_BUSY = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x05), SMP_ENC_FAIL = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x06), SMP_STARTED = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x07), SMP_RSP_TIMEOUT = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x08),
  SMP_FAIL = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x09), SMP_CONN_TOUT = (SMP_MAX_FAIL_RSN_PER_SPEC + 0x0A)
}
 
enum  wiced_bt_sec_level_e {
  BTM_SEC_NONE = 0x0000, BTM_SEC_IN_AUTHENTICATE = 0x0002, BTM_SEC_OUT_AUTHENTICATE = 0x0010, BTM_SEC_ENCRYPT = 0x0024,
  BTM_SEC_SECURE_CONNECTION = 0x0040
}
 Security Service Levels [bit mask]. More...
 
enum  wiced_bt_sec_flags_e { BTM_SEC_LINK_ENCRYPTED = 0x01, BTM_SEC_LINK_PAIRED_WITHOUT_MITM = 0x02, BTM_SEC_LINK_PAIRED_WITH_MITM = 0x04 }
 Security flags for current BR/EDR link. More...
 
enum  wiced_bt_dev_io_cap_e {
  BTM_IO_CAPABILITIES_DISPLAY_ONLY, BTM_IO_CAPABILITIES_DISPLAY_AND_YES_NO_INPUT, BTM_IO_CAPABILITIES_KEYBOARD_ONLY, BTM_IO_CAPABILITIES_NONE,
  BTM_IO_CAPABILITIES_BLE_DISPLAY_AND_KEYBOARD_INPUT, BTM_IO_CAPABILITIES_MAX
}
 Pairing IO Capabilities. More...
 
enum  wiced_bt_dev_auth_req_e {
  BTM_AUTH_SINGLE_PROFILE_NO, BTM_AUTH_SINGLE_PROFILE_YES, BTM_AUTH_ALL_PROFILES_NO, BTM_AUTH_ALL_PROFILES_YES,
  BTM_AUTH_SINGLE_PROFILE_GENERAL_BONDING_NO, BTM_AUTH_SINGLE_PROFILE_GENERAL_BONDING_YES
}
 BR/EDR Authentication requirement. More...
 
enum  wiced_bt_dev_le_auth_req_e {
  BTM_LE_AUTH_REQ_NO_BOND = 0x00, BTM_LE_AUTH_REQ_BOND = 0x01, BTM_LE_AUTH_REQ_MITM = 0x04, BTM_LE_AUTH_REQ_SC_ONLY = 0x08,
  BTM_LE_AUTH_REQ_SC_BOND = (BTM_LE_AUTH_REQ_SC_ONLY|BTM_LE_AUTH_REQ_BOND), BTM_LE_AUTH_REQ_SC_MITM = (BTM_LE_AUTH_REQ_SC_ONLY|BTM_LE_AUTH_REQ_MITM), BTM_LE_AUTH_REQ_SC_MITM_BOND = (BTM_LE_AUTH_REQ_SC_ONLY|BTM_LE_AUTH_REQ_MITM|BTM_LE_AUTH_REQ_BOND), BTM_LE_AUTH_REQ_MASK = 0x1D
}
 
enum  wiced_bt_dev_oob_data_e {
  BTM_OOB_NONE, BTM_OOB_PRESENT_192, BTM_OOB_PRESENT_256, BTM_OOB_PRESENT_192_256,
  BTM_OOB_UNKNOWN
}
 OOB Data status. More...
 
enum  wiced_bt_dev_passkey_entry_type_e {
  BTM_PASSKEY_ENTRY_STARTED, BTM_PASSKEY_DIGIT_ENTERED, BTM_PASSKEY_DIGIT_ERASED, BTM_PASSKEY_DIGIT_CLEARED,
  BTM_PASSKEY_ENTRY_COMPLETED
}
 Pairing keypress types. More...
 
enum  wiced_bt_dev_le_key_type_e {
  BTM_LE_KEY_PENC = (1 << 0), BTM_LE_KEY_PID = (1 << 1), BTM_LE_KEY_PCSRK = (1 << 2), BTM_LE_KEY_PLK = (1 << 3),
  BTM_LE_KEY_LENC = (1 << 4), BTM_LE_KEY_LID = (1 << 5), BTM_LE_KEY_LCSRK = (1 << 6), BTM_LE_KEY_LLK = (1 << 7)
}
 LE Key type. More...
 
enum  wiced_bt_ble_conn_mode_e { BLE_CONN_MODE_OFF, BLE_CONN_MODE_LOW_DUTY, BLE_CONN_MODE_HIGH_DUTY }
 Scan mode used in initiating. More...
 
enum  wiced_bt_ble_advert_mode_e {
  BTM_BLE_ADVERT_OFF, BTM_BLE_ADVERT_DIRECTED_HIGH, BTM_BLE_ADVERT_DIRECTED_LOW, BTM_BLE_ADVERT_UNDIRECTED_HIGH,
  BTM_BLE_ADVERT_UNDIRECTED_LOW, BTM_BLE_ADVERT_NONCONN_HIGH, BTM_BLE_ADVERT_NONCONN_LOW, BTM_BLE_ADVERT_DISCOVERABLE_HIGH,
  BTM_BLE_ADVERT_DISCOVERABLE_LOW
}
 advertisement type (used when calling wiced_bt_start_advertisements) More...
 
enum  wiced_bt_ble_scan_type_e { BTM_BLE_SCAN_TYPE_NONE, BTM_BLE_SCAN_TYPE_HIGH_DUTY, BTM_BLE_SCAN_TYPE_LOW_DUTY }
 Scan duty cycle (used for BTM_BLE_SCAN_STATE_CHANGED_EVT and wiced_bt_dev_create_connection) More...
 
enum  wiced_bt_management_evt_e {
  BTM_ENABLED_EVT, BTM_DISABLED_EVT, BTM_POWER_MANAGEMENT_STATUS_EVT, BTM_PIN_REQUEST_EVT,
  BTM_USER_CONFIRMATION_REQUEST_EVT, BTM_PASSKEY_NOTIFICATION_EVT, BTM_PASSKEY_REQUEST_EVT, BTM_KEYPRESS_NOTIFICATION_EVT,
  BTM_PAIRING_IO_CAPABILITIES_BR_EDR_REQUEST_EVT, BTM_PAIRING_IO_CAPABILITIES_BR_EDR_RESPONSE_EVT, BTM_PAIRING_IO_CAPABILITIES_BLE_REQUEST_EVT, BTM_PAIRING_COMPLETE_EVT,
  BTM_ENCRYPTION_STATUS_EVT, BTM_SECURITY_REQUEST_EVT, BTM_SECURITY_FAILED_EVT, BTM_SECURITY_ABORTED_EVT,
  BTM_READ_LOCAL_OOB_DATA_COMPLETE_EVT, BTM_REMOTE_OOB_DATA_REQUEST_EVT, BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT, BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT,
  BTM_LOCAL_IDENTITY_KEYS_UPDATE_EVT, BTM_LOCAL_IDENTITY_KEYS_REQUEST_EVT, BTM_BLE_SCAN_STATE_CHANGED_EVT, BTM_BLE_ADVERT_STATE_CHANGED_EVT,
  BTM_SMP_REMOTE_OOB_DATA_REQUEST_EVT, BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT, BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT, BTM_SCO_CONNECTED_EVT,
  BTM_SCO_DISCONNECTED_EVT, BTM_SCO_CONNECTION_REQUEST_EVT, BTM_SCO_CONNECTION_CHANGE_EVT, BTM_BLE_CONNECTION_PARAM_UPDATE,
  BTM_BLE_PHY_UPDATE_EVT
}
 Bluetooth Management events. More...
 

Functions

void wiced_bt_dev_read_local_addr (wiced_bt_device_address_t bd_addr)
 Reads the local device address. More...
 
wiced_result_t wiced_bt_dev_vendor_specific_command (uint16_t opcode, uint8_t param_len, uint8_t *p_param_buf, wiced_bt_dev_vendor_specific_command_complete_cback_t *p_cback)
 Sends a vendor specific HCI command to the controller. More...
 
wiced_result_t wiced_bt_dev_register_connection_status_change (wiced_bt_connection_status_change_cback_t *p_wiced_bt_connection_status_change_cback)
 Registers a callback for connection status change. More...
 
wiced_result_t wiced_bt_dev_read_rssi (wiced_bt_device_address_t remote_bda, wiced_bt_transport_t transport, wiced_bt_dev_cmpl_cback_t *p_cback)
 Gets the Receive Signal Strength Index (RSSI) for the requested link. More...
 
wiced_result_t wiced_bt_dev_read_tx_power (wiced_bt_device_address_t remote_bda, wiced_bt_transport_t transport, wiced_bt_dev_cmpl_cback_t *p_cback)
 Reads the transmit power for the requested link. More...
 
void wiced_bt_dev_register_hci_trace (wiced_bt_hci_trace_cback_t *p_cback)
 Registers to get the HCI traces. More...
 
void wiced_bt_set_local_bdaddr (wiced_bt_device_address_t bda, wiced_bt_ble_address_type_t addr_type)
 Set Local Bluetooth Device Address. More...
 
wiced_result_t wiced_bt_dev_get_role (wiced_bt_device_address_t remote_bd_addr, UINT8 *p_role, wiced_bt_transport_t transport)
 Gets the role of the local device for the ACL connection with the specified remote device. More...
 
wiced_result_t BTM_SwitchRole (wiced_bt_device_address_t remote_bd_addr, uint8_t new_role, wiced_bt_dev_cmpl_cback_t *p_cb)
 Function wiced_bt_dev_switch_role. More...
 
wiced_result_t BTM_SetLinkSuperTout (wiced_bt_device_address_t remote_bd_addr, uint16_t timeout)
 Function wiced_bt_dev_set_link_supervision_timeout. More...
 
wiced_result_t wiced_bt_set_tx_power (wiced_bt_device_address_t bd_addr, INT8 power)
 Commands to set the TX power on link. More...
 
wiced_result_t wiced_bt_dev_set_tx_power_range (wiced_bt_device_address_t bd_addr, INT8 max_power, INT8 min_power)
 Command to set the TX power range on a link. More...
 
wiced_result_t wiced_bt_dev_link_quality_stats (BD_ADDR bda, wiced_bt_transport_t transport, uint8_t action, wiced_bt_dev_cmpl_cback_t *p_cback)
 Gets the statistics for an ACL link. More...
 
wiced_result_t wiced_bt_coex_enable (uint32_t seci_baud_rate)
 The application can invoke this function to enable the coex functionality. More...
 
void wiced_bt_coex_disable (void)
 The application can invoke this function to disable the coex functionality. More...
 
wiced_result_t wiced_bt_start_inquiry (wiced_bt_dev_inq_parms_t *p_inqparms, wiced_bt_inquiry_result_cback_t *p_inquiry_result_cback)
 Starts BR/EDR inquiry. More...
 
wiced_result_t wiced_bt_cancel_inquiry (void)
 Cancels an active inquiry. More...
 
wiced_result_t wiced_bt_dev_set_advanced_connection_params (wiced_bt_dev_inquiry_scan_result_t *p_inquiry_scan_result)
 Sets advanced connection parameters for subsequent BR/EDR connections (remote clock offset, page scan mode, and other information obtained during inquiry). More...
 
wiced_result_t wiced_bt_dev_set_discoverability (uint8_t inq_mode, uint16_t duration, uint16_t interval)
 Sets inquiry scan. More...
 
wiced_result_t wiced_bt_dev_set_connectability (uint8_t page_mode, uint16_t window, uint16_t interval)
 Sets page scan mode settings for BR/EDR. More...
 
wiced_result_t wiced_bt_dev_set_sniff_mode (wiced_bt_device_address_t remote_bda, uint16_t min_period, uint16_t max_period, uint16_t attempt, uint16_t timeout)
 Sets a connection into Sniff mode. More...
 
wiced_result_t wiced_bt_dev_cancel_sniff_mode (wiced_bt_device_address_t remote_bda)
 Takes a connection out of Sniff mode. More...
 
wiced_result_t wiced_bt_dev_set_sniff_subrating (wiced_bt_device_address_t remote_bda, uint16_t max_latency, uint16_t min_remote_timeout, uint16_t min_local_timeout)
 Sets sniff-subrating parameters for an active connection. More...
 
wiced_result_t wiced_bt_dev_write_eir (uint8_t *p_buff, uint16_t len)
 Writes EIR data to the controller. More...
 
wiced_result_t wiced_bt_dev_set_afh_channel_classification (const wiced_bt_br_chnl_map_t afh_channel_map)
 Sends the HCI_SET_AFH_CHANNELS command to the BR/EDR controller. More...
 
wiced_result_t wiced_bt_dev_get_remote_name (wiced_bt_device_address_t bd_addr, wiced_bt_remote_name_cback_t *p_remote_name_result_cback)
 Gets the Bluetooth Friendly name from the remote device. More...
 
void wiced_bt_dev_pin_code_reply (wiced_bt_device_address_t bd_addr, wiced_result_t res, uint8_t pin_len, uint8_t *p_pin)
 PIN code reply used in response to BTM_PIN_REQUEST_EVT in wiced_bt_management_cback_t. More...
 
wiced_result_t wiced_bt_dev_sec_bond (wiced_bt_device_address_t bd_addr, wiced_bt_ble_address_type_t bd_addr_type, wiced_bt_transport_t transport, uint8_t pin_len, uint8_t *p_pin)
 Bond with peer device. More...
 
wiced_result_t wiced_bt_dev_sec_bond_cancel (wiced_bt_device_address_t bd_addr)
 Cancels an ongoing bonding process with the peer device. More...
 
wiced_result_t wiced_bt_dev_set_encryption (wiced_bt_device_address_t bd_addr, wiced_bt_transport_t transport, void *p_ref_data)
 Encrypts the specified connection. More...
 
void wiced_bt_dev_confirm_req_reply (wiced_result_t res, wiced_bt_device_address_t bd_addr)
 Confirms the numeric value for pairing to BTM_USER_CONFIRMATION_REQUEST_EVT of wiced_bt_management_cback_t) More...
 
void wiced_bt_dev_pass_key_req_reply (wiced_result_t res, wiced_bt_device_address_t bd_addr, uint32_t passkey)
 Provides the pairing passkey. More...
 
void wiced_bt_dev_send_key_press_notif (wiced_bt_device_address_t bd_addr, wiced_bt_dev_passkey_entry_type_t type)
 Informs a remote device of keypress during pairing. More...
 
wiced_result_t wiced_bt_dev_read_local_oob_data (void)
 Reads the local OOB data from the controller (for sending to the peer device over oob message). More...
 
void wiced_bt_dev_remote_oob_data_reply (wiced_result_t res, wiced_bt_device_address_t bd_addr, wiced_bool_t is_extended_oob_data, BT_OCTET16 c_192, BT_OCTET16 r_192, BT_OCTET16 c_256, BT_OCTET16 r_256)
 Provides the remote OOB extended data for Simple Pairing in response to BTM_REMOTE_OOB_DATA_REQUEST_EVT. More...
 
uint16_t wiced_bt_dev_build_oob_data (uint8_t *p_data, uint16_t max_len, wiced_bool_t is_extended_oob_data, BT_OCTET16 c_192, BT_OCTET16 r_192, BT_OCTET16 c_256, BT_OCTET16 r_256)
 Builds the OOB data block to be used to send OOB extended data over OOB (non-Bluetooth) link. More...
 
void wiced_bt_smp_oob_data_reply (wiced_bt_device_address_t bd_addr, wiced_result_t res, uint8_t len, uint8_t *p_data)
 Provides the OOB data for SMP in response to BTM_SMP_REMOTE_OOB_DATA_REQUEST_EVT. More...
 
wiced_bool_t wiced_bt_smp_create_local_sc_oob_data (wiced_bt_device_address_t bd_addr, wiced_bt_ble_address_type_t bd_addr_type)
 Creates local LE SC (secure connection) OOB data. More...
 
void wiced_bt_smp_sc_oob_reply (uint8_t *p_oob_data)
 Provide the SC OOB data for SMP in response to BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT. More...
 
wiced_result_t wiced_bt_dev_get_bonded_devices (wiced_bt_dev_bonded_device_info_t *p_paired_device_list, uint16_t *p_num_devices)
 Gets the bonded device list. More...
 
wiced_result_t wiced_bt_dev_delete_bonded_device (wiced_bt_device_address_t bd_addr)
 Removes bonding with the remote device with assigned bd_addr. More...
 
wiced_bool_t wiced_bt_dev_get_security_state (wiced_bt_device_address_t bd_addr, uint8_t *p_sec_flags)
 Gets security flags for the device. More...
 
void wiced_bt_set_pairable_mode (uint8_t allow_pairing, uint8_t connect_only_paired)
 Enables or disables pairing. More...
 
wiced_bool_t wiced_bt_get_identity_address (wiced_bt_device_address_t bd_addr, wiced_bt_device_address_t identity_address)
 Returns the identity address of the given device. More...
 
wiced_result_t wiced_bt_dev_set_link_policy (wiced_bt_device_address_t remote_bda, uint16_t *settings)
 Function wiced_bt_dev_set_link_policy. More...
 
wiced_result_t wiced_bt_set_device_class (wiced_bt_dev_class_t dev_class)
 Function wiced_bt_set_device_class. More...
 
wiced_result_t wiced_bt_dev_set_local_name (char *p_name)
 Function wiced_bt_dev_set_local_name. More...
 

Detailed Description

>

Provides the API declarations for device management.

Variable Documentation

uint8_t br_edr_key_type

BR/EDR key.

BR/EDR Link Key type

uint8_t conn_type

Connection type.

0: BLE, 1: ACL, 2: SCO/ESCO

wiced_bt_dev_le_key_type_t le_keys_available_mask

LE Keys.

Mask of available LE keys