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

Referenced by RFCCpePatchReset().

#define _PARSER_PATCH_TAB_OFFSET   0x0338

Referenced by RFCCpePatchReset().

#define _PATCH_TAB_OFFSET   0x0340
#define _PATCH_VEC_OFFSET   0x041C
#define RFC_RTRIM_MASK   0xFFFF

Referenced by RFCRTrim().

#define RFC_RTRIM_PATTERN   0x4038

Referenced by RFCRTrim().

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().