1.1.2.1.1.4.42 BLE_GAP_SetDefaultPhy

C

uint16_t BLE_GAP_SetDefaultPhy(uint8_t txPhys, uint8_t rxPhys);

Description

Specify the preferred values for the transmitter PHY and receiver PHY to be used for all subsequent connections.

Parameters

ParameterDescription
[in] txPhysIndicates the transmitter PHYs that the user prefers to use.See BLE_GAP_PHY_OPTION.
[in] rxPhysIndicates the receiver PHYs that the user prefers to use.See BLE_GAP_PHY_OPTION.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully specify the preferred values for the transmitter PHY and receiver PHY to be used for all subsequent connections.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters.