1.1.2.1.1.4.41 BLE_GAP_SetConnTxPowerLevel
C
uint16_t BLE_GAP_SetConnTxPowerLevel(int8_t connTxPower, int8_t *p_selectedTxPower);
Description
Set RF Tx power level preset value for LE connection Data physical channel PDU. If both connected devices support LE Power Control feature, RF Tx power level will be adjusted by BLE stack automatically.
Parameters
Parameter | Description |
---|---|
[in] connTxPower | The transmit power after connected and before the LE transmit power control protocol been activated. |
[out] p_selectedTxPower | Point to the real transmit power level. (Unit: dBm) |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully set the transmit power level. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |