AIROC™ BTSDK v4.6 - Documentation | ||||
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) |
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 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
[in] | remote_bd_addr | : BD address of remote device |
[in] | timeout | : |
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.
[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) |
void wiced_bt_coex_disable | ( | void | ) |
The application can invoke this function to disable the coex functionality.
wiced_result_t wiced_bt_coex_enable | ( | uint32_t | seci_baud_rate | ) |
The application can invoke this function to enable the coex functionality.
[in] | seci_baud_rate | - SECI baud rate. Ensure to set a valid baud rate which will be used for the SECI communication between Bluetooth and WLAN chip. The maximum supported value is up to 4M. |
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.
[in] | remote_bd_addr | BD address of remote device |
[in] | transport | BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE |
[out] | p_role | Role of the local device |
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.
[in] | bda | Bluetooth device address of desired link quality statistics |
[in] | transport | BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE |
[in] | action |
|
[in] | p_cback | Result callback |
void wiced_bt_dev_read_local_addr | ( | wiced_bt_device_address_t | bd_addr | ) |
Reads the local device address.
[out] | bd_addr | Pointer to local BD_ADDR filled upon API call |
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.
[in] | remote_bda | BD_ADDR of connection to read RSSI |
[in] | transport | BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE |
[in] | p_cback | Callback to receive wiced_bt_dev_rssi_result_t |
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.
[in] | remote_bda | BD address of connection to read TX power |
[in] | transport | BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE |
[in] | p_cback | Callback, which will receive wiced_bt_tx_power_result_t |
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.
[in] | p_wiced_bt_connection_status_change_cback |
void wiced_bt_dev_register_hci_trace | ( | wiced_bt_hci_trace_cback_t * | p_cback | ) |
Registers to get the HCI traces.
[in] | p_cback | Callback for HCI traces |
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.
[in] | bd_addr | peer address of the link |
[in] | max_power | Max power value in db (Must be <= 4) |
[in] | min_power | Min power value in db (Must be >= -24) |
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.
[in] | opcode | Opcode of vendor specific command |
[in] | param_len | Length of parameter buffer |
[in] | p_param_buf | Parameters |
[in] | p_cback | Callback for command complete |
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.
If the application passes BLE_ADDR_RANDOM as an address type, the stack will setup a static random address. For the static random address, the top two bits of the bd_addr should be set. The stack will enforce that.
[in] | bd_addr | new BD_ADDR to set |
[in] | addr_type |
|
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.
[in] | bd_addr | peer address |
[in] | power | power value in db |