rflib
|
Data Structures | |
struct | rfTrim_t |
Functions | |
__STATIC_INLINE void | RFCClockEnable (void) |
Enable the RF core clocks. More... | |
__STATIC_INLINE void | RFCClockDisable (void) |
Disable the RF core clocks. More... | |
__STATIC_INLINE void | RFCCpeIntClear (uint32_t ui32Mask) |
Clear HW interrupt flags. More... | |
__STATIC_INLINE void | RFCHwIntClear (uint32_t ui32Mask) |
Clear CPE interrupt flags. More... | |
__STATIC_INLINE void | RFCCpe0IntSelect (uint32_t ui32Mask) |
Select interrupt sources to CPE0 (assign to INT_RFC_CPE_0 interrupt vector). More... | |
__STATIC_INLINE void | RFCCpe1IntSelect (uint32_t ui32Mask) |
Select interrupt sources to CPE1 (assign to INT_RFC_CPE_1 interrupt vector). More... | |
__STATIC_INLINE void | RFCCpeIntEnable (uint32_t ui32Mask) |
Enable CPEx interrupt sources. More... | |
__STATIC_INLINE void | RFCCpe0IntSelectClearEnable (uint32_t ui32Mask) |
Select, clear, and enable interrupt sources to CPE0. More... | |
__STATIC_INLINE void | RFCCpe1IntSelectClearEnable (uint32_t ui32Mask) |
Select, clear, and enable interrupt sources to CPE1. More... | |
__STATIC_INLINE void | RFCHwIntEnable (uint32_t ui32Mask) |
Enable HW interrupt sources. More... | |
__STATIC_INLINE void | RFCCpeIntDisable (uint32_t ui32Mask) |
Disable CPE interrupt sources. More... | |
__STATIC_INLINE void | RFCHwIntDisable (uint32_t ui32Mask) |
Disable HW interrupt sources. More... | |
uint32_t | NOROM_RFCCpeIntGetAndClear (uint32_t ui32Mask) |
Get and clear CPE interrupt flags. More... | |
__STATIC_INLINE void | RFCAckIntClear (void) |
Clear ACK interrupt flag. More... | |
uint32_t | NOROM_RFCDoorbellSendTo (uint32_t pOp) |
Send a radio operation to the doorbell and wait for an acknowledgment. More... | |
void | NOROM_RFCSynthPowerDown (void) |
This function implements a fast way to turn off the synthesizer. More... | |
void | NOROM_RFCCpePatchReset (void) |
Reset previously patched CPE RAM to a state where it can be patched again. More... | |
uint8_t | NOROM_RFCOverrideSearch (const uint32_t *pOverride, const uint32_t pattern, const uint32_t mask, const uint8_t searchDepth) |
uint8_t | NOROM_RFCOverrideUpdate (rfc_radioOp_t *pOpSetup, uint32_t *pParams) |
Function to update override list. More... | |
uint32_t | NOROM_RFCHwIntGetAndClear (uint32_t ui32Mask) |
Get and clear HW interrupt flags. More... | |
__STATIC_INLINE bool | RFCGetPaType (void) |
Get the type of currently selected PA. More... | |
__STATIC_INLINE uint32_t | RFCGetPaGain (void) |
Get the gain of currently selected PA. More... | |
__STATIC_INLINE uint32_t | RFCGetPowerDomainStatus (void) |
Get the power domain status of the radio core. More... | |
uint32_t | NOROM_RFCAnaDivTxOverride (uint8_t loDivider, uint8_t frontEndMode) |
Function to calculate the proper override run-time for the High Gain PA. More... | |
void | NOROM_RFCRfTrimRead (rfc_radioOp_t *pOpSetup, rfTrim_t *rfTrim) |
Read RF trim from flash using CM4. More... | |
void | NOROM_RFCRfTrimSet (rfTrim_t *rfTrim) |
Write preloaded RF trim values directly into CPE. More... | |
#define RFC_MAX_SEARCH_DEPTH 5 |
#define RFC_PA_TYPE_ADDRESS 0x21000385 |
Referenced by RFCGetPaType().
#define RFC_PA_TYPE_MASK 0x04 |
Referenced by RFCGetPaType().
#define RFC_PA_GAIN_ADDRESS 0x21000398 |
Referenced by RFCGetPaGain().
#define RFC_PA_GAIN_MASK 0x003FFFFF |
Referenced by RFCGetPaGain().
#define RFC_FE_MODE_ESCAPE_VALUE 0xFF |
#define RFC_FE_OVERRIDE_ADDRESS 0x0703 |
#define RFC_FE_OVERRIDE_MASK 0x0000FFFF |
#define RFCCpeIntGetAndClear NOROM_RFCCpeIntGetAndClear |
Referenced by RFCHwIntDisable().
#define RFCDoorbellSendTo NOROM_RFCDoorbellSendTo |
Referenced by RFCAckIntClear().
#define RFCSynthPowerDown NOROM_RFCSynthPowerDown |
Referenced by RFCAckIntClear().
#define RFCCpePatchReset NOROM_RFCCpePatchReset |
Referenced by RFCAckIntClear().
#define RFCOverrideSearch NOROM_RFCOverrideSearch |
Referenced by RFCAckIntClear().
#define RFCOverrideUpdate NOROM_RFCOverrideUpdate |
Referenced by RFCAckIntClear().
#define RFCHwIntGetAndClear NOROM_RFCHwIntGetAndClear |
Referenced by RFCAckIntClear().
#define RFCAnaDivTxOverride NOROM_RFCAnaDivTxOverride |
Referenced by RFCGetPowerDomainStatus().
#define RFC_MAX_SEARCH_DEPTH 5 |
#define RFC_PA_TYPE_ADDRESS 0x21000385 |
#define RFC_PA_TYPE_MASK 0x04 |
#define RFC_PA_GAIN_ADDRESS 0x21000398 |
#define RFC_PA_GAIN_MASK 0x003FFFFF |
#define RFC_FE_MODE_ESCAPE_VALUE 0xFF |
#define RFC_FE_OVERRIDE_ADDRESS 0x0703 |
#define RFC_FE_OVERRIDE_MASK 0x0000FFFF |
#define RFCCpeIntGetAndClear NOROM_RFCCpeIntGetAndClear |
#define RFCDoorbellSendTo NOROM_RFCDoorbellSendTo |
#define RFCSynthPowerDown NOROM_RFCSynthPowerDown |
#define RFCCpePatchReset NOROM_RFCCpePatchReset |
#define RFCOverrideSearch NOROM_RFCOverrideSearch |
#define RFCOverrideUpdate NOROM_RFCOverrideUpdate |
#define RFCHwIntGetAndClear NOROM_RFCHwIntGetAndClear |
#define RFCAnaDivTxOverride NOROM_RFCAnaDivTxOverride |
#define RFCRfTrimRead NOROM_RFCRfTrimRead |
#define RFCRfTrimSet NOROM_RFCRfTrimSet |
#define RFC_MAX_SEARCH_DEPTH 5 |
#define RFC_PA_TYPE_ADDRESS 0x21000385 |
#define RFC_PA_TYPE_MASK 0x04 |
#define RFC_PA_GAIN_ADDRESS 0x21000398 |
#define RFC_PA_GAIN_MASK 0x003FFFFF |
#define RFC_FE_MODE_ESCAPE_VALUE 0xFF |
#define RFC_FE_OVERRIDE_ADDRESS 0x0703 |
#define RFC_FE_OVERRIDE_MASK 0x0000FFFF |
#define RFCCpeIntGetAndClear NOROM_RFCCpeIntGetAndClear |
#define RFCDoorbellSendTo NOROM_RFCDoorbellSendTo |
#define RFCSynthPowerDown NOROM_RFCSynthPowerDown |
#define RFCCpePatchReset NOROM_RFCCpePatchReset |
#define RFCOverrideSearch NOROM_RFCOverrideSearch |
#define RFCOverrideUpdate NOROM_RFCOverrideUpdate |
#define RFCHwIntGetAndClear NOROM_RFCHwIntGetAndClear |
#define RFCAnaDivTxOverride NOROM_RFCAnaDivTxOverride |
__STATIC_INLINE void RFCClockEnable | ( | void | ) |
Enable the RF core clocks.
As soon as the RF core is started it will handle clock control autonomously. No check should be performed to check the clocks. Instead the radio can be ping'ed through the command interface.
__STATIC_INLINE void RFCClockDisable | ( | void | ) |
Disable the RF core clocks.
As soon as the RF core is started it will handle clock control autonomously. No check should be performed to check the clocks. Instead the radio can be ping'ed through the command interface.
When disabling clocks it is the programmers responsibility that the RF core clocks are safely gated. I.e. the RF core should be safely 'parked'.
__STATIC_INLINE void RFCCpeIntClear | ( | uint32_t | ui32Mask | ) |
Clear HW interrupt flags.
Referenced by RFCCpe0IntSelectClearEnable(), and RFCCpe1IntSelectClearEnable().
__STATIC_INLINE void RFCHwIntClear | ( | uint32_t | ui32Mask | ) |
Clear CPE interrupt flags.
__STATIC_INLINE void RFCCpe0IntSelect | ( | uint32_t | ui32Mask | ) |
Select interrupt sources to CPE0 (assign to INT_RFC_CPE_0 interrupt vector).
Referenced by RFCCpe0IntSelectClearEnable().
__STATIC_INLINE void RFCCpe1IntSelect | ( | uint32_t | ui32Mask | ) |
Select interrupt sources to CPE1 (assign to INT_RFC_CPE_1 interrupt vector).
Referenced by RFCCpe1IntSelectClearEnable().
__STATIC_INLINE void RFCCpeIntEnable | ( | uint32_t | ui32Mask | ) |
Enable CPEx interrupt sources.
Referenced by RFCCpe0IntSelectClearEnable(), and RFCCpe1IntSelectClearEnable().
__STATIC_INLINE void RFCCpe0IntSelectClearEnable | ( | uint32_t | ui32Mask | ) |
Select, clear, and enable interrupt sources to CPE0.
References RFCCpe0IntSelect(), RFCCpeIntClear(), and RFCCpeIntEnable().
__STATIC_INLINE void RFCCpe1IntSelectClearEnable | ( | uint32_t | ui32Mask | ) |
Select, clear, and enable interrupt sources to CPE1.
References RFCCpe1IntSelect(), RFCCpeIntClear(), and RFCCpeIntEnable().
__STATIC_INLINE void RFCHwIntEnable | ( | uint32_t | ui32Mask | ) |
Enable HW interrupt sources.
__STATIC_INLINE void RFCCpeIntDisable | ( | uint32_t | ui32Mask | ) |
Disable CPE interrupt sources.
__STATIC_INLINE void RFCHwIntDisable | ( | uint32_t | ui32Mask | ) |
Disable HW interrupt sources.
References RFCCpeIntGetAndClear.
uint32_t NOROM_RFCCpeIntGetAndClear | ( | uint32_t | ui32Mask | ) |
Get and clear CPE interrupt flags.
__STATIC_INLINE void RFCAckIntClear | ( | void | ) |
Clear ACK interrupt flag.
References RFCCpePatchReset, RFCDoorbellSendTo, RFCHwIntGetAndClear, RFCOverrideSearch, RFCOverrideUpdate, and RFCSynthPowerDown.
uint32_t NOROM_RFCDoorbellSendTo | ( | uint32_t | pOp | ) |
Send a radio operation to the doorbell and wait for an acknowledgment.
void NOROM_RFCSynthPowerDown | ( | void | ) |
This function implements a fast way to turn off the synthesizer.
void NOROM_RFCCpePatchReset | ( | void | ) |
Reset previously patched CPE RAM to a state where it can be patched again.
uint8_t NOROM_RFCOverrideSearch | ( | const uint32_t * | pOverride, |
const uint32_t | pattern, | ||
const uint32_t | mask, | ||
const uint8_t | searchDepth | ||
) |
uint8_t NOROM_RFCOverrideUpdate | ( | rfc_radioOp_t * | pOpSetup, |
uint32_t * | pParams | ||
) |
Function to update override list.
uint32_t NOROM_RFCHwIntGetAndClear | ( | uint32_t | ui32Mask | ) |
Get and clear HW interrupt flags.
__STATIC_INLINE bool RFCGetPaType | ( | void | ) |
Get the type of currently selected PA.
References RFC_PA_TYPE_ADDRESS, and RFC_PA_TYPE_MASK.
__STATIC_INLINE uint32_t RFCGetPaGain | ( | void | ) |
Get the gain of currently selected PA.
References RFC_PA_GAIN_ADDRESS, and RFC_PA_GAIN_MASK.
__STATIC_INLINE uint32_t RFCGetPowerDomainStatus | ( | void | ) |
Get the power domain status of the radio core.
References RFCAnaDivTxOverride.
uint32_t NOROM_RFCAnaDivTxOverride | ( | uint8_t | loDivider, |
uint8_t | frontEndMode | ||
) |
Function to calculate the proper override run-time for the High Gain PA.
void NOROM_RFCRfTrimRead | ( | rfc_radioOp_t * | pOpSetup, |
rfTrim_t * | rfTrim | ||
) |
Read RF trim from flash using CM4.
void NOROM_RFCRfTrimSet | ( | rfTrim_t * | rfTrim | ) |
Write preloaded RF trim values directly into CPE.