Function esp_idf_svc::sys::esp_ble_gap_set_preferred_phy
source ยท pub unsafe extern "C" fn esp_ble_gap_set_preferred_phy(
bd_addr: *mut u8,
all_phys_mask: u8,
tx_phy_mask: u8,
rx_phy_mask: u8,
phy_options: u16,
) -> i32
Expand description
@brief This function is used to set the PHY preferences for the connection identified by the remote address. The Controller might not be able to make the change (e.g. because the peer does not support the requested PHY) or may decide that the current PHY is preferable.
@param[in] bd_addr : remote address @param[in] all_phys_mask : a bit field that allows the Host to specify @param[in] tx_phy_mask : a bit field that indicates the transmitter PHYs that the Host prefers the Controller to use @param[in] rx_phy_mask : a bit field that indicates the receiver PHYs that the Host prefers the Controller to use @param[in] phy_options : a bit field that allows the Host to specify options for PHYs
@return - ESP_OK : success - other : failed