Infineon Logo AIROC BTSDK v4.8 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Device Control

Macros

#define wiced_bt_dev_switch_role   BTM_SwitchRole
 
#define wiced_bt_dev_set_link_supervision_timeout   BTM_SetLinkSuperTout
 

Functions

void wiced_bt_dev_read_local_addr (wiced_bt_device_address_t bd_addr)
 
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)
 
wiced_result_t wiced_bt_dev_register_connection_status_change (wiced_bt_connection_status_change_cback_t *p_wiced_bt_connection_status_change_cback)
 
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)
 
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)
 
void wiced_bt_dev_register_hci_trace (wiced_bt_hci_trace_cback_t *p_cback)
 
void wiced_bt_set_local_bdaddr (wiced_bt_device_address_t bda, wiced_bt_ble_address_type_t addr_type)
 
wiced_result_t wiced_bt_dev_get_role (wiced_bt_device_address_t remote_bd_addr, UINT8 *p_role, wiced_bt_transport_t transport)
 
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)
 
wiced_result_t wiced_bt_dev_set_tx_power_range (wiced_bt_device_address_t bd_addr, INT8 max_power, INT8 min_power)
 
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)
 
wiced_result_t wiced_bt_coex_enable (uint32_t seci_baud_rate)
 
void wiced_bt_coex_disable (void)
 

Detailed Description

Function Documentation

wiced_result_t BTM_SetLinkSuperTout ( wiced_bt_device_address_t  remote_bd_addr,
uint16_t  timeout 
)

Function wiced_bt_dev_set_link_supervision_timeout.

set Link Supervision Timeout

Parameters
[in]remote_bd_addr: BD address of remote device
[in]timeout:
Returns
WICED_BT_PENDING if successfully initiated, otherwise error.
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.

This function is called to switch the role between central and peripheral. If role is already set it will do nothing. If the command was initiated, the callback function is called upon completion.

Parameters
[in]remote_bd_addr: BD address of remote device
[in]new_role: New role (BTM_ROLE_CENTRAL or BTM_ROLE_PERIPHERAL)
[in]p_cback: Result callback (wiced_bt_dev_switch_role_result_t will be passed to the callback)
Returns
wiced_result_t WICED_BT_SUCCESS if already in specified role. WICED_BT_CMD_STARTED if command issued to controller. WICED_BT_NO_RESOURCES if couldn't allocate memory to issue command WICED_BT_UNKNOWN_ADDR if no active link with bd addr specified WICED_BT_MODE_UNSUPPORTED if local device doesn't support role switching