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

Macros

#define RFC_RESERVED0   0x40044108
 
#define RFC_RESERVED1   0x40044114
 
#define RFC_RESERVED2   0x4004410C
 
#define RFC_RESERVED3   0x40044100
 
#define CONFIG_MISC_ADC_DIVIDER   27
 
#define CONFIG_MISC_ADC_DIVIDER_BM   0xF8000000U
 
#define _CPERAM_START   0x21000000
 
#define _PARSER_PATCH_TAB_OFFSET   0x0334
 
#define _PATCH_TAB_OFFSET   0x033C
 
#define _IRQPATCH_OFFSET   0x03AC
 
#define _PATCH_VEC_OFFSET   0x0404
 

Functions

uint32_t RFCCpeIntGetAndClear (void)
 Get and clear CPE interrupt flags. More...
 
uint32_t RFCDoorbellSendTo (uint32_t pOp)
 Send command to doorbell and wait for ack. More...
 
void RFCSynthPowerDown ()
 Turn off synth, NOTE: Radio will no longer respond to commands! More...
 
void RFCRfTrimRead (rfc_radioOp_t *pOpSetup, rfTrim_t *pRfTrim)
 Read RF trim from flash using CM3. More...
 
void RFCRTrim (rfc_radioOp_t *pOpSetup)
 Check Override RTrim vs FCFG RTrim. More...
 
void RFCRfTrimSet (rfTrim_t *pRfTrim)
 Write preloaded RF trim values to CM0. More...
 
void RFCCPEPatchReset (void)
 Reset previously patched CPE RAM to a state where it can be patched again. 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 CONFIG_MISC_ADC_DIVIDER   27

Referenced by RFCRfTrimRead().

#define CONFIG_MISC_ADC_DIVIDER_BM   0xF8000000U

Referenced by RFCRfTrimRead().

#define RFC_RESERVED0   0x40044108

Referenced by RFCSynthPowerDown().

#define RFC_RESERVED1   0x40044114

Referenced by RFCSynthPowerDown().

#define RFC_RESERVED2   0x4004410C

Referenced by RFCSynthPowerDown().

#define RFC_RESERVED3   0x40044100

Referenced by RFCSynthPowerDown().

Variable Documentation

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

Referenced by RFCCPEPatchReset().