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
Parameter | Description |
---|---|
[in] txPhys | Indicates the transmitter PHYs that the user prefers to use.See BLE_GAP_PHY_OPTION. |
[in] rxPhys | Indicates the receiver PHYs that the user prefers to use.See BLE_GAP_PHY_OPTION. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully specify the preferred values for the transmitter PHY and receiver PHY to be used for all subsequent connections. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |