BLE_GAP_ReadTxPowerLevel

C

uint16_t BLE_GAP_ReadTxPowerLevel(uint16_t connHandle, uint8_t phy, int8_t *p_txPower, int8_t *p_txPowerMax);

Description

Reads the current and maximum transmit power levels for a specific LE connection handle. (Unit: dBm)

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] phyThe PHY for which to read the power levels. See Transmitter PHY type.
[out] p_txPowerPointer to the current transmit power level. (Unit: dBm)
[out] p_txPowerMaxPointer to the maximum transmit power level. (Unit: dBm)

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully retrieves the transmit power level.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.