CC13xx 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   0x0338
 
#define _PATCH_TAB_OFFSET   0x0340
 
#define _IRQPATCH_OFFSET   0x03BC
 
#define _PATCH_VEC_OFFSET   0x041C
 

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

Referenced by RFCCPEPatchReset().

#define _PARSER_PATCH_TAB_OFFSET   0x0338

Referenced by RFCCPEPatchReset().

#define _PATCH_TAB_OFFSET   0x0340
#define _PATCH_VEC_OFFSET   0x041C
#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:
=
{
0x3bc3,
0x3a3d,
0x3a5d,
0x3a71,
0x0aa1,
0x3a8f,
0x3b0f,
0x09b3,
0x5e49,
0x0a85,
0x3b2f,
0x3b85,
}

Referenced by RFCCPEPatchReset().