Function esp_idf_sys::ble_gap_set_prefered_le_phy

source ยท
pub unsafe extern "C" fn ble_gap_set_prefered_le_phy(
    conn_handle: u16,
    tx_phys_mask: u8,
    rx_phys_mask: u8,
    phy_opts: u16,
) -> c_int
Expand description

Set preferred PHYs to be used for connection.

@param conn_handle Connection handle @params tx_phys_mask Preferred TX PHY. Can be mask of following constants: - BLE_GAP_LE_PHY_1M_MASK - BLE_GAP_LE_PHY_2M_MASK - BLE_GAP_LE_PHY_CODED_MASK - BLE_GAP_LE_PHY_ANY_MASK @params rx_phys_mask Preferred RX PHY. Can be mask of following constants: - BLE_GAP_LE_PHY_1M_MASK - BLE_GAP_LE_PHY_2M_MASK - BLE_GAP_LE_PHY_CODED_MASK - BLE_GAP_LE_PHY_ANY_MASK @param phy_opts Additional PHY options. Valid values are: - BLE_GAP_LE_PHY_CODED_ANY - BLE_GAP_LE_PHY_CODED_S2 - BLE_GAP_LE_PHY_CODED_S8

@return 0 on success; nonzero on failure.