1.2.2.1.1.4.31 BLE_GAP_ReadTxPowerLevel

C

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

Description

Read the current and maximum transmit power value of specific LE connection handle. (unit: dBm)

Parameters

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

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully get the transmit power level.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed.