This file contains the type definitions for EFR32xG2x chip-specific aspects of RAIL.

License#

Copyright 2020 Silicon Laboratories Inc. www.silabs.com

SPDX-License-Identifier: Zlib

The licensor of this software is Silicon Laboratories Inc.

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

  3. This notice may not be removed or altered from any source distribution.

Modules#

RAIL_ChannelConfigEntryAttr

Macros#

#define

SLI_LIBRARY_BUILD.

#define

Time it takes to take care of protocol switching.

#define

Indicates the number of 2.4 GHz RF Paths suppported.

#define

Indicates the number of Sub-GHz RF Paths supported.

#define
RAIL_RF_PATHS (RAIL_RF_PATHS_SUBGIG + RAIL_RF_PATHS_2P4GIG)

Indicates the number of RF Paths supported.

#define

Indicates this version of RAIL supports IR calibration on multiple RF paths Needed for backwards compatibility.

#define

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_HP mode.

#define

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_HP mode.

#define
RAIL_TX_POWER_LEVEL_2P4_MP_MAX (RAIL_TX_POWER_LEVEL_2P4_HP_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_MP mode.

#define
RAIL_TX_POWER_LEVEL_2P4_MP_MIN (RAIL_TX_POWER_LEVEL_2P4_HP_MIN)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_MP mode.

#define
RAIL_TX_POWER_LEVEL_2P4_LP_MAX (RAIL_TX_POWER_LEVEL_2P4_HP_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LP mode.

#define
RAIL_TX_POWER_LEVEL_2P4_LP_MIN (RAIL_TX_POWER_LEVEL_2P4_HP_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LP mode.

#define
RAIL_TX_POWER_LEVEL_2P4_LLP_MAX (RAIL_TX_POWER_LEVEL_2P4_HP_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LLP mode.

#define
RAIL_TX_POWER_LEVEL_2P4_LLP_MIN (RAIL_TX_POWER_LEVEL_2P4_HP_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LLP mode.

#define

The maximum valid value for the RAIL_TxPowerLevel_t when using a Sub-GHz PA mode.

#define

The minimum valid value for the RAIL_TxPowerLevel_t when using a Sub-GHz PA mode.

#define

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_HP mode.

#define

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_HP mode.

#define

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_MP mode.

#define

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_MP mode.

#define

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LP mode.

#define

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LP mode.

#define

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LLP mode.

#define

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LLP mode.

#define
RAIL_TX_POWER_LEVEL_HP_MAX RAIL_TX_POWER_LEVEL_2P4_HP_MAX

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_HP_MIN RAIL_TX_POWER_LEVEL_2P4_HP_MIN

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_MP_MAX RAIL_TX_POWER_LEVEL_2P4_MP_MAX

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_MP_MIN RAIL_TX_POWER_LEVEL_2P4_MP_MIN

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_LP_MAX RAIL_TX_POWER_LEVEL_2P4_LP_MAX

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_LP_MIN RAIL_TX_POWER_LEVEL_2P4_LP_MIN

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_SUBGIG_MAX RAIL_TX_POWER_LEVEL_SUBGIG_HP_MAX

Backwards compatability define.

#define
RAIL_TX_POWER_LEVEL_SUBGIG_MIN RAIL_TX_POWER_LEVEL_SUBGIG_HP_MIN

Backwards compatability define.

#define

The number of PA's on this chip (including Virtual PAs).

#define

Convenience macro for any mapping table mode.

#define

Convenience macro to check if the power mode supports raw setting.

#define

The static amount of memory needed per channel for channel hopping, measured in 32 bit words, regardless of the size of radio configuration structures.

#define

Default PRS channel to use when configuring sleep.

#define

Default RTCC channel to use when configuring sleep.

#define

The minimum value for a consistent RAIL transition.

#define

The maximum value for a consistent RAIL transition.

Macro Definition Documentation#

__RAIL_CHIP_SPECIFIC_H_#

#define __RAIL_CHIP_SPECIFIC_H_

SLI_LIBRARY_BUILD.

Include guard


TRANSITION_TIME_US#

#define TRANSITION_TIME_US
Value:
500

Time it takes to take care of protocol switching.


RAIL_RF_PATHS_2P4GIG#

#define RAIL_RF_PATHS_2P4GIG
Value:
0

Indicates the number of 2.4 GHz RF Paths suppported.


RAIL_RF_PATHS_SUBGIG#

#define RAIL_RF_PATHS_SUBGIG
Value:
0

Indicates the number of Sub-GHz RF Paths supported.


RAIL_RF_PATHS#

#define RAIL_RF_PATHS
Value:
(RAIL_RF_PATHS_SUBGIG + RAIL_RF_PATHS_2P4GIG)

Indicates the number of RF Paths supported.


RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS#

#define RADIO_CONFIG_ENABLE_IRCAL_MULTIPLE_RF_PATHS
Value:
0

Indicates this version of RAIL supports IR calibration on multiple RF paths Needed for backwards compatibility.


RAIL_TX_POWER_LEVEL_2P4_HP_MAX#

#define RAIL_TX_POWER_LEVEL_2P4_HP_MAX
Value:
(240)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_HP mode.


RAIL_TX_POWER_LEVEL_2P4_HP_MIN#

#define RAIL_TX_POWER_LEVEL_2P4_HP_MIN
Value:
(1U)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_HP mode.


RAIL_TX_POWER_LEVEL_2P4_MP_MAX#

#define RAIL_TX_POWER_LEVEL_2P4_MP_MAX
Value:
(RAIL_TX_POWER_LEVEL_2P4_HP_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_MP mode.


RAIL_TX_POWER_LEVEL_2P4_MP_MIN#

#define RAIL_TX_POWER_LEVEL_2P4_MP_MIN
Value:
(RAIL_TX_POWER_LEVEL_2P4_HP_MIN)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_MP mode.


RAIL_TX_POWER_LEVEL_2P4_LP_MAX#

#define RAIL_TX_POWER_LEVEL_2P4_LP_MAX
Value:
(RAIL_TX_POWER_LEVEL_2P4_HP_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LP mode.


RAIL_TX_POWER_LEVEL_2P4_LP_MIN#

#define RAIL_TX_POWER_LEVEL_2P4_LP_MIN
Value:
(RAIL_TX_POWER_LEVEL_2P4_HP_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LP mode.


RAIL_TX_POWER_LEVEL_2P4_LLP_MAX#

#define RAIL_TX_POWER_LEVEL_2P4_LLP_MAX
Value:
(RAIL_TX_POWER_LEVEL_2P4_HP_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LLP mode.


RAIL_TX_POWER_LEVEL_2P4_LLP_MIN#

#define RAIL_TX_POWER_LEVEL_2P4_LLP_MIN
Value:
(RAIL_TX_POWER_LEVEL_2P4_HP_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_2P4GIG_LLP mode.


RAIL_SUBGIG_MAX#

#define RAIL_SUBGIG_MAX
Value:
0U

The maximum valid value for the RAIL_TxPowerLevel_t when using a Sub-GHz PA mode.


RAIL_SUBGIG_MIN#

#define RAIL_SUBGIG_MIN
Value:
1U

The minimum valid value for the RAIL_TxPowerLevel_t when using a Sub-GHz PA mode.


RAIL_TX_POWER_LEVEL_SUBGIG_HP_MAX#

#define RAIL_TX_POWER_LEVEL_SUBGIG_HP_MAX
Value:
(RAIL_SUBGIG_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_HP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_HP_MIN#

#define RAIL_TX_POWER_LEVEL_SUBGIG_HP_MIN
Value:
(RAIL_SUBGIG_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_HP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_MP_MAX#

#define RAIL_TX_POWER_LEVEL_SUBGIG_MP_MAX
Value:
(RAIL_SUBGIG_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_MP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_MP_MIN#

#define RAIL_TX_POWER_LEVEL_SUBGIG_MP_MIN
Value:
(RAIL_SUBGIG_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_MP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_LP_MAX#

#define RAIL_TX_POWER_LEVEL_SUBGIG_LP_MAX
Value:
(RAIL_SUBGIG_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_LP_MIN#

#define RAIL_TX_POWER_LEVEL_SUBGIG_LP_MIN
Value:
(RAIL_SUBGIG_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_LLP_MAX#

#define RAIL_TX_POWER_LEVEL_SUBGIG_LLP_MAX
Value:
(RAIL_SUBGIG_MAX)

The maximum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LLP mode.


RAIL_TX_POWER_LEVEL_SUBGIG_LLP_MIN#

#define RAIL_TX_POWER_LEVEL_SUBGIG_LLP_MIN
Value:
(RAIL_SUBGIG_MIN)

The minimum valid value for the RAIL_TxPowerLevel_t when in RAIL_TX_POWER_MODE_SUBGIG_LLP mode.


RAIL_TX_POWER_LEVEL_HP_MAX#

#define RAIL_TX_POWER_LEVEL_HP_MAX
Value:
RAIL_TX_POWER_LEVEL_2P4_HP_MAX

Backwards compatability define.


RAIL_TX_POWER_LEVEL_HP_MIN#

#define RAIL_TX_POWER_LEVEL_HP_MIN
Value:
RAIL_TX_POWER_LEVEL_2P4_HP_MIN

Backwards compatability define.


RAIL_TX_POWER_LEVEL_MP_MAX#

#define RAIL_TX_POWER_LEVEL_MP_MAX
Value:
RAIL_TX_POWER_LEVEL_2P4_MP_MAX

Backwards compatability define.


RAIL_TX_POWER_LEVEL_MP_MIN#

#define RAIL_TX_POWER_LEVEL_MP_MIN
Value:
RAIL_TX_POWER_LEVEL_2P4_MP_MIN

Backwards compatability define.


RAIL_TX_POWER_LEVEL_LP_MAX#

#define RAIL_TX_POWER_LEVEL_LP_MAX
Value:
RAIL_TX_POWER_LEVEL_2P4_LP_MAX

Backwards compatability define.


RAIL_TX_POWER_LEVEL_LP_MIN#

#define RAIL_TX_POWER_LEVEL_LP_MIN
Value:
RAIL_TX_POWER_LEVEL_2P4_LP_MIN

Backwards compatability define.


RAIL_TX_POWER_LEVEL_SUBGIG_MAX#

#define RAIL_TX_POWER_LEVEL_SUBGIG_MAX
Value:
RAIL_TX_POWER_LEVEL_SUBGIG_HP_MAX

Backwards compatability define.


RAIL_TX_POWER_LEVEL_SUBGIG_MIN#

#define RAIL_TX_POWER_LEVEL_SUBGIG_MIN
Value:
RAIL_TX_POWER_LEVEL_SUBGIG_HP_MIN

Backwards compatability define.


RAIL_NUM_PA#

#define RAIL_NUM_PA
Value:
(3U)

The number of PA's on this chip (including Virtual PAs).


RAIL_POWER_MODE_IS_ANY_DBM_POWERSETTING_MAPPING_TABLE#

#define RAIL_POWER_MODE_IS_ANY_DBM_POWERSETTING_MAPPING_TABLE
Value:
(((x) == RAIL_TX_POWER_MODE_OFDM_PA_POWERSETTING_TABLE) \
|| ((x) == RAIL_TX_POWER_MODE_SUBGIG_POWERSETTING_TABLE))

Convenience macro for any mapping table mode.


RAIL_POWER_MODE_SUPPORTS_RAW_SETTING#

#define RAIL_POWER_MODE_SUPPORTS_RAW_SETTING
Value:
(((x) != RAIL_TX_POWER_MODE_OFDM_PA_POWERSETTING_TABLE) \
&& ((x) != RAIL_TX_POWER_MODE_SUBGIG_POWERSETTING_TABLE))

Convenience macro to check if the power mode supports raw setting.


RAIL_CHANNEL_HOPPING_BUFFER_SIZE_PER_CHANNEL#

#define RAIL_CHANNEL_HOPPING_BUFFER_SIZE_PER_CHANNEL
Value:
(56U)

The static amount of memory needed per channel for channel hopping, measured in 32 bit words, regardless of the size of radio configuration structures.


RAILINT_TIMER_SYNC_PRS_CHANNEL_DEFAULT#

#define RAILINT_TIMER_SYNC_PRS_CHANNEL_DEFAULT
Value:
(7U)

Default PRS channel to use when configuring sleep.


RAILINT_TIMER_SYNC_RTCC_CHANNEL_DEFAULT#

#define RAILINT_TIMER_SYNC_RTCC_CHANNEL_DEFAULT
Value:
(0U)

Default RTCC channel to use when configuring sleep.


RAIL_MINIMUM_TRANSITION_US#

#define RAIL_MINIMUM_TRANSITION_US
Value:
(100U)

The minimum value for a consistent RAIL transition.

Note


RAIL_MAXIMUM_TRANSITION_US#

#define RAIL_MAXIMUM_TRANSITION_US
Value:
(1000000U)

The maximum value for a consistent RAIL transition.