Phy

group btm_ble_phy_functions

This section provides functionality to read and update PHY.

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.

phy results notified using wiced_bt_ble_read_phy_complete_callback_t callback

Return

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

Parameters
  • [in] remote_bd_addr: - remote device address

  • [in] p_read_phy_complete_callback: - read phy complete callback

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.

Note : remote_bd_addr field of the phy_preferences is ignored.

Parameters
  • [in] phy_preferences: - Phy preferences

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

Return

wiced_result_t

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.

Return

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

Parameters
  • [in] phy_preferences: - Phy preferences

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.

Return

wiced_result_t WICED_BT_SUCCESS if successfully initiated WICED_BT_NO_RESOURCES if could not allocate resources to start the command

Parameters
  • [in] ble_channel_map: