Infineon Logo AIROC BTSDK v4.4 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups

This section provides functionality to read and update PHY. More...

Functions

wiced_bt_dev_status_t wiced_bt_ble_read_phy (wiced_bt_device_address_t remote_bd_addr, wiced_bt_ble_read_phy_complete_callback_t *p_read_phy_complete_callback)
 Host to read the current transmitter PHY and receiver PHY on the connection identified by the remote bdaddr. More...
 
wiced_bt_dev_status_t wiced_bt_ble_set_default_phy (wiced_bt_ble_phy_preferences_t *phy_preferences)
 Host to configure default transmitter phy and receiver phy to be used for all subsequent connections over the LE transport. More...
 
wiced_result_t wiced_bt_ble_set_phy (wiced_bt_ble_phy_preferences_t *phy_preferences)
 Host to configure the LE link to 1M or 2M and LE coding to be used. More...
 
wiced_result_t wiced_bt_ble_set_channel_classification (const wiced_bt_ble_chnl_map_t ble_channel_map)
 Set channel classification for the available 40 channels. More...
 

Detailed Description

This section provides functionality to read and update PHY.

Function Documentation

wiced_bt_dev_status_t wiced_bt_ble_read_phy ( wiced_bt_device_address_t  remote_bd_addr,
wiced_bt_ble_read_phy_complete_callback_t p_read_phy_complete_callback 
)

Host to read the current transmitter PHY and receiver PHY on the connection identified by the remote bdaddr.

phy results notified using wiced_bt_ble_read_phy_complete_callback_t callback

Parameters
[in]remote_bd_addr- remote device address
[in]p_read_phy_complete_callback- read phy complete callback
Returns
wiced_result_t
WICED_BT_SUCCESS : if the request was successfully sent to HCI.
WICED_BT_UNKNOWN_ADDR : if device address does not correspond to a connected remote device
WICED_BT_ILLEGAL_VALUE : if p_read_phy_complete_callback is NULL
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command
wiced_result_t wiced_bt_ble_set_channel_classification ( const wiced_bt_ble_chnl_map_t  ble_channel_map)

Set channel classification for the available 40 channels.

Channel n is bad = 0. Channel n is unknown = 1.

At least one channel shall be marked as unknown.

Parameters
[in]ble_channel_map
Returns
wiced_result_t
WICED_BT_SUCCESS if successfully initiated
WICED_BT_NO_RESOURCES if could not allocate resources to start the command
wiced_bt_dev_status_t wiced_bt_ble_set_default_phy ( wiced_bt_ble_phy_preferences_t phy_preferences)

Host to configure default transmitter phy and receiver phy to be used for all subsequent connections over the LE transport.

Parameters
[in]phy_preferences- Phy preferences

Note : remote_bd_addr field of the phy_preferences is ignored.

Returns
wiced_result_t

WICED_BT_SUCCESS : if the request was successfully sent to HCI.
WICED_BT_ILLEGAL_VALUE : if phy_preferences is NULL
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command

wiced_result_t wiced_bt_ble_set_phy ( wiced_bt_ble_phy_preferences_t phy_preferences)

Host to configure the LE link to 1M or 2M and LE coding to be used.

Parameters
[in]phy_preferences- Phy preferences
Returns
wiced_result_t
WICED_BT_SUCCESS : if the request was successfully sent to HCI.
WICED_BT_ILLEGAL_VALUE : if phy_preferences is NULL
WICED_BT_UNKNOWN_ADDR : if device address does not correspond to a connected remote device
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command