ble_gap_set_prefered_le_phy

int
ble_gap_set_prefered_le_phy(
            uint16_t conn_handle,
             uint8_t tx_phys_mask,
             uint8_t rx_phys_mask,
             uint16_t phy_opts
)

Description

Set prefered LE PHY mask for given connection.

Parameters

ParameterDescription
conn_handleThe handle corresponding to the connection where new PHY mask should be applied.
tx_phys_maskPrefered tx PHY mask is a bit mask of: BLE_GAP_LE_PHY_1M_MASK BLE_GAP_LE_PHY_2M_MASKBLE_GAP_LE_PHY_CODED_MASK
rx_phys_maskPrefered rx PHY mask is a bit mask of: BLE_GAP_LE_PHY_1M_MASK BLE_GAP_LE_PHY_2M_MASKBLE_GAP_LE_PHY_CODED_MASK
phy_optsPHY options for coded PHY. One of: BLE_GAP_LE_PHY_CODED_ANY BLE_GAP_LE_PHY_CODED_S2BLE_GAP_LE_PHY_CODED_S8

Returned values

ValueCondition
0Success.
Core return codeUnexpected error.