Function esp_idf_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: esp_ble_gap_all_phys_t,
    tx_phy_mask: esp_ble_gap_phy_mask_t,
    rx_phy_mask: esp_ble_gap_phy_mask_t,
    phy_options: esp_ble_gap_prefer_phy_options_t,
) -> esp_err_t
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