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   0x0350
 
#define _PATCH_TAB_OFFSET   0x0358
 
#define _IRQPATCH_OFFSET   0x03E8
 
#define _PATCH_VEC_OFFSET   0x0448
 

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   0x03E8

Referenced by RFCCPEPatchReset().

#define _PARSER_PATCH_TAB_OFFSET   0x0350

Referenced by RFCCPEPatchReset().

#define _PATCH_TAB_OFFSET   0x0358
#define _PATCH_VEC_OFFSET   0x0448
#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:
=
{
0x3f17,
0x3de1,
0x3e03,
0x3e17,
0x0b0d,
0x3e35,
0x3e53,
0x09fb,
0x655d,
0x0af3,
0x3e73,
0x3ed7,
}

Referenced by RFCCPEPatchReset().