riot_sys::bindgen

Function ble_gap_set_prefered_default_le_phy

Source
pub unsafe extern "C" fn ble_gap_set_prefered_default_le_phy(
    tx_phys_mask: u8,
    rx_phys_mask: u8,
) -> c_int
Expand description

Set preferred default PHYs to be used for connections.

@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

@return 0 on success; nonzero on failure.