PA Curve Conversions#
Modules#
Enumerations#
PA conversion algorithms types for converting between dBm and power levels.
Variables#
The curves to be used when battery voltage powers transmission.
The curves to be used when the DC-DC converter powers transmission.
Functions#
Initialize Transmit power curves.
Initialize TxPower curves.
Gets the curve that should be used for conversion functions based on the current PA configuration.
Gets the maximum power in deci-dBm that should be used for calculating the segments and to find right curve segment to convert Dbm to raw power level for a specific PA.
Provide a channel config change callback capable of configuring the PA correctly.
Enumeration Documentation#
RAIL_PaConversionAlgorithm_t#
RAIL_PaConversionAlgorithm_t
PA conversion algorithms types for converting between dBm and power levels.
DeprecatedThis RAIL 2.x enum has been eliminated in RAIL 3 which uses PA power tables instead.
| Enumerator | |
|---|---|
| RAIL_PA_ALGORITHM_PIECEWISE_LINEAR | Piecewise linear fit. |
| RAIL_PA_ALGORITHM_MAPPING_TABLE | Mapping table between quantities. |
| RAIL_PA_ALGORITHM_DBM_POWERSETTING_MAPPING_TABLE | Mapping table between pa power settings and dBm values. |
| RAIL_PA_ALGORITHM_COUNT | Algorithm count. |
Variable Documentation#
RAIL_TxPowerCurvesVbat#
const RAIL_TxPowerCurvesConfigAlt_t RAIL_TxPowerCurvesVbat
The curves to be used when battery voltage powers transmission.
DeprecatedThis RAIL 2.x variable has been eliminated in RAIL 3. See RAIL 3 discussion in RAIL 2.x Power Amplifier (PA) Utility.
RAIL_TxPowerCurvesDcdc#
const RAIL_TxPowerCurvesConfigAlt_t RAIL_TxPowerCurvesDcdc
The curves to be used when the DC-DC converter powers transmission.
DeprecatedThis RAIL 2.x variable has been eliminated in RAIL 3. See RAIL 3 discussion in RAIL 2.x Power Amplifier (PA) Utility.
Function Documentation#
RAIL_InitTxPowerCurves#
RAIL_Status_t RAIL_InitTxPowerCurves (const RAIL_TxPowerCurvesConfig_t * config)
Initialize Transmit power curves.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| const RAIL_TxPowerCurvesConfig_t * | [in] | config | A pointer to the custom TX power curves. |
Returns
Status code indicating success of the function call.
DeprecatedThis function is no longer supported in RAIL 2.x. Must use RAIL_InitTxPowerCurvesAlt() instead.
RAIL_InitTxPowerCurvesAlt#
RAIL_Status_t RAIL_InitTxPowerCurvesAlt (const RAIL_TxPowerCurvesConfigAlt_t * config)
Initialize TxPower curves.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| const RAIL_TxPowerCurvesConfigAlt_t * | [in] | config | A pointer to the custom TX power curves to use. |
Returns
Status code indicating success of the function call.
DeprecatedThis RAIL 2.x function has been replaced in RAIL 3 by sl_rail_util_pa_init_tx_power_table() with different parameters.
RAIL_GetTxPowerCurve#
RAIL_TxPowerCurves_t const * RAIL_GetTxPowerCurve (RAIL_TxPowerMode_t mode)
Gets the curve that should be used for conversion functions based on the current PA configuration.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| RAIL_TxPowerMode_t | [in] | mode | PA mode whose curves are needed. |
Returns
A pointer to the RAIL_TxPowerCurves_t that are used for conversion functions.
Note
: If the mode is not supported by the the chip, then NULL will be returned.
DeprecatedThis RAIL 2.x function has been replaced in RAIL 3 by sl_rail_util_pa_get_power_setting_table() with different parameters.
RAIL_GetTxPowerCurveLimits#
RAIL_Status_t RAIL_GetTxPowerCurveLimits (RAIL_Handle_t railHandle, RAIL_TxPowerMode_t mode, RAIL_TxPower_t * maxpower, RAIL_TxPower_t * increment)
Gets the maximum power in deci-dBm that should be used for calculating the segments and to find right curve segment to convert Dbm to raw power level for a specific PA.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| RAIL_Handle_t | [in] | railHandle | A RAIL instance handle. |
| RAIL_TxPowerMode_t | [in] | mode | PA mode whose curves are needed. |
| RAIL_TxPower_t * | [out] | maxpower | A non-NULL pointer to memory allocated to hold the max power in deci-dBm used in calculation of curve segments. |
| RAIL_TxPower_t * | [out] | increment | A non-NULL pointer to memory allocated to hold the increment in deci-dBm used in calculation of curve segments. |
Returns
Status code indicating success of the function call.
For the PAs with RAIL_PaConversionAlgorithm_tRAIL_PA_ALGORITHM_PIECEWISE_LINEAR, if the curves are generated with maxPower and increment other than RAIL_TX_POWER_CURVE_DEFAULT_MAX and RAIL_TX_POWER_CURVE_DEFAULT_INCREMENT respectively, then the first RAIL_TxPowerCurveSegment_t has its maxPowerLevel equal to RAIL_TX_POWER_LEVEL_INVALID and its slope and intercept stores the maxPower and increment in deci-dBm respectively.
DeprecatedThis RAIL 2.x function has been replaced in RAIL 3 by sl_rail_util_pa_get_power_setting_table() with different parameters.
sl_rail_util_pa_on_channel_config_change#
void sl_rail_util_pa_on_channel_config_change (RAIL_Handle_t rail_handle, const RAIL_ChannelConfigEntry_t * entry)
Provide a channel config change callback capable of configuring the PA correctly.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| RAIL_Handle_t | [in] | rail_handle | The RAIL handle being passed into this callback. |
| const RAIL_ChannelConfigEntry_t * | [in] | entry | A pointer to the channel config entry being switched to by hardware. |