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   0x0350
 
#define _PATCH_TAB_OFFSET   0x0358
 
#define _IRQPATCH_OFFSET   0x03E8
 
#define _PATCH_VEC_OFFSET   0x0448
 
#define RFC_RTRIM_PATTERN   0x4038
 
#define RFC_RTRIM_MASK   0xFFFF
 
#define RFC_BLE5_OVERRIDE_PATTERN   0x44F80002
 
#define RFC_BLE5_OVERRIDE_M   0xFFF0FFFF
 
#define RFC_BLE5_OVERRIDE_S   16
 

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

Referenced by RFCCpePatchReset().

#define _PARSER_PATCH_TAB_OFFSET   0x0350

Referenced by RFCCpePatchReset().

#define _PATCH_TAB_OFFSET   0x0358
#define _PATCH_VEC_OFFSET   0x0448
#define RFC_BLE5_OVERRIDE_M   0xFFF0FFFF

Referenced by RFCOverrideUpdate().

#define RFC_BLE5_OVERRIDE_PATTERN   0x44F80002

Referenced by RFCOverrideUpdate().

#define RFC_BLE5_OVERRIDE_S   16

Referenced by RFCOverrideUpdate().

#define RFC_RTRIM_MASK   0xFFFF
#define RFC_RTRIM_PATTERN   0x4038

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