RFFE Radio Frequency Front End Function Documentation

 

Sys_RFFE_GetTXPower

int8_t Sys_RFFE_GetTXPower(uint32_t lsad_channel)

 

Retrieve the current setting for RF output power by using the values retrieved from the appropriate registers.

 

Location: rffe.h:173

 

Parameters

Direction Name Description

in

lsad_channel

The LSAD channel used for measuring VDDRF

 


Return


The currently set TX output power. Returns -100 in error state.

 

 

Example Code for Sys_RFFE_GetTXPower

    // Use LSAD channel 0 to measure VDDRF if neccessary to determine the currently

    // set TX output power.

    result = Sys_RFFE_GetTXPower(0);

 

Sys_RFFE_SetTXPower

uint32_t Sys_RFFE_SetTXPower(int8_t target, uint8_t lsad_channel, bool pa_en)

 

Set the TX Power according to the desired target value with an accuracy of +/-1 dBm for +6 dBm to -17 dBm.

 

This function sets VDDRF, VDDPA, and PA_PWR (RF_REG1A) when applicable. Note: This function provides RF TX power configurations that match the requested levels, without considering the potential for increased power consumption due to the use of VDDPA.

 

Location: rffe.h:193

 

Parameters

Direction Name Description

in

target

Target transmission power in the range from -17 to +6 dBm in 1 dBm increments.

in

lsad_channel

LSAD channel to use to measure rails, if necessary.

in

pa_en

If 1, the power amplifier will be enabled, otherwise, it will be disabled. The power amplifier will be enabled regardless if 'target' is greater than 2.

 


Return


Return value error value, if any

 

 

Example Code for Sys_RFFE_SetTXPower

    // Set the TX power for the device to 6 dBm, uses LSAD channel 0 to measure 

    // (unused in the case of 6 dBm), and enables VDDPA.

    result = Sys_RFFE_SetTXPower(6, 0, VDDPA_EN);