/* Set Transmit Power. 
This API is used to set the transmit power level that will be used during advertising. */
ADI_BLER_RESULT adi_radio_SetTxPowerLevel(const int8_t nTxPowerLevel)
/* Set Transmit Power. 
This API is used to set the transmit power level that will be used during advertising. */
ADI_BLER_RESULT adi_radio_SetTxPowerLevel(const int8_t nTxPowerLevel)
{
    ADI_BLER_RESULT bleResult;
    ADI_BLE_LOGEVENT(LOGID_CMD_BLEGAP_SET_TX_PWR_LEVEL);
    ADI_BLE_RADIO_CMD_START(CMD_BLEGAP_SET_TX_PWR_LEVEL);
    ASSERT(nTxPowerLevel >= -127);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &nTxPowerLevel, 1u);
    bleResult = bler_process_cmd(CMD_BLEGAP_SET_TX_PWR_LEVEL, 1u, NULL, 0u);
    if(bleResult == ADI_BLER_SUCCESS){
    	bleResult = ADI_BLE_WAIT_FOR_COMPLETION(ADI_EVENT_FLAG_RESP_SUCCESS,ADI_BLER_CMD_TIMEOUT);
    }
    ADI_BLE_RADIO_CMD_END();
    return (bleResult);
}