1.1.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
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] phy | PHY. See Transmitter PHY type. |
[out] p_txPower | Pointer to current transmit power level. (Unit: dBm) |
[out] p_txPowerMax | Pointer to maximum transmit power level. (Unit: dBm) |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully get the transmit power level. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed. |