CC26xx Driver Library
rfc.c File Reference
#include "rfc.h"
#include "rf_mailbox.h"
#include <string.h>

Macros

#define _CPERAM_START   0x21000000
 
#define _PARSER_PATCH_TAB_OFFSET   0x0334
 
#define _PATCH_TAB_OFFSET   0x033C
 
#define _IRQPATCH_OFFSET   0x03AC
 
#define _PATCH_VEC_OFFSET   0x0404
 
#define RFC_RTRIM_PATTERN   0x4038
 
#define RFC_RTRIM_MASK   0xFFFF
 

Functions

uint32_t RFCCpeIntGetAndClear (uint32_t ui32Mask)
 Get and clear CPE interrupt flags. More...
 
uint32_t RFCDoorbellSendTo (uint32_t pOp)
 Send a radio operation to the doorbell and wait for an acknowledgment. More...
 
void RFCSynthPowerDown (void)
 This function implements a fast way to turn off the synthesizer. More...
 
void RFCCpePatchReset (void)
 Reset previously patched CPE RAM to a state where it can be patched again. More...
 
uint8_t RFCOverrideSearch (const uint32_t *pOverride, const uint32_t pattern, const uint32_t mask, const uint8_t searchDepth)
 
uint8_t RFCOverrideUpdate (rfc_radioOp_t *pOpSetup, uint32_t *pParams)
 Function to update override list. More...
 
uint32_t RFCHwIntGetAndClear (uint32_t ui32Mask)
 Get and clear HW interrupt flags. More...
 
void RFCRfTrimRead (rfc_radioOp_t *pOpSetup, rfTrim_t *pRfTrim)
 Get the type of currently selected PA. More...
 
void RFCRfTrimSet (rfTrim_t *pRfTrim)
 Write preloaded RF trim values directly into CPE. More...
 
uint8_t RFCRTrim (rfc_radioOp_t *pOpSetup)
 Check Override RTrim vs FCFG RTrim. More...
 
void RFCAdi3VcoLdoVoltageMode (bool bEnable)
 Function to set VCOLDO reference to voltage mode. More...
 

Variables

static const uint16_t rfc_defaultIrqAddr []
 

Macro Definition Documentation

#define _CPERAM_START   0x21000000

Referenced by RFCCpePatchReset().

#define _IRQPATCH_OFFSET   0x03AC

Referenced by RFCCpePatchReset().

#define _PARSER_PATCH_TAB_OFFSET   0x0334

Referenced by RFCCpePatchReset().

#define _PATCH_TAB_OFFSET   0x033C
#define _PATCH_VEC_OFFSET   0x0404
#define RFC_RTRIM_MASK   0xFFFF
#define RFC_RTRIM_PATTERN   0x4038

Variable Documentation

const uint16_t rfc_defaultIrqAddr[]
static
Initial value:
=
{
0x398b,
0x3805,
0x3825,
0x3839,
0x0acf,
0x3857,
0x38d7,
0x09dd,
0x5819,
0x0ab3,
0x38f7,
}

Referenced by RFCCpePatchReset().