CC26xx Driver Library
[ccfgread.h] CCFG Read

Functions

static bool CCFGRead_DIS_GPRAM (void)
 Read DIS_GPRAM from CCFG. More...
 
static bool CCFGRead_EXT_LF_CLK_DIO (void)
 Read EXT_LF_CLK_DIO from CCFG. More...
 
static uint32_t CCFGRead_SCLK_LF_OPTION (void)
 Read SCLK_LF_OPTION from CCFG. More...
 
static uint32_t CCFGRead_XOSC_FREQ (void)
 Read XOSC_FREQ setting CCFG. More...
 
static uint32_t CCFGRead_TCXO_MAX_START (void)
 Read TCXO_MAX_START setting from CCFG. More...
 
static uint32_t CCFGRead_TCXO_TYPE (void)
 Read TCXO_TYPE setting from CCFG. More...
 

Detailed Description

Introduction

The values of customer configuration (CCFG) settings in flash are determined by ccfg.c and typically a user application does not need to read these CCFG values as they are used mainly during ROM boot and device trimming. However, a subset of the CCFG settings need to be read by application code thus DriverLib provides this API to allow easy read access to these specific settings.

The remaining settings not accessible through this API can of course be read directly at the CCFG addresses in the flash (starting at CCFG_BASE) using the HWREG macro and the provided defines. CCFG settings are documented as part of the register descriptions in the CPU memory map.

Note
CCFG settings are located in flash and should be considered read-only from an application point-of-view.

Function Documentation

static bool CCFGRead_DIS_GPRAM ( void  )
inlinestatic

Read DIS_GPRAM from CCFG.

Returns
Value of CCFG field CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM
static bool CCFGRead_EXT_LF_CLK_DIO ( void  )
inlinestatic

Read EXT_LF_CLK_DIO from CCFG.

Returns
Value of CCFG field CCFG_EXT_LF_CLK_DIO
105 {
106  return (( HWREG( CCFG_BASE + CCFG_O_EXT_LF_CLK ) &
109 }
static uint32_t CCFGRead_SCLK_LF_OPTION ( void  )
inlinestatic

Read SCLK_LF_OPTION from CCFG.

Returns
Returns the value of the CCFG field CCFG_MODE_CONF_SCLK_LF_OPTION field. Returns one of the following:
135 {
136  return (( HWREG( CCFG_BASE + CCFG_O_MODE_CONF ) &
139 }
static uint32_t CCFGRead_TCXO_MAX_START ( void  )
inlinestatic

Read TCXO_MAX_START setting from CCFG.

Returns
Returns the value of the CCFG_MODE_CONF_1_TCXO_MAX_START field.
182 {
183  return (( HWREG( CCFG_BASE + CCFG_O_MODE_CONF_1 ) &
186 }
static uint32_t CCFGRead_TCXO_TYPE ( void  )
inlinestatic

Read TCXO_TYPE setting from CCFG.

Returns
Returns the value of the CCFG_MODE_CONF_1_TCXO_TYPE field.
198 {
199  return (( HWREG( CCFG_BASE + CCFG_O_MODE_CONF_1 ) &
202 }
static uint32_t CCFGRead_XOSC_FREQ ( void  )
inlinestatic

Read XOSC_FREQ setting CCFG.

Returns
Returns the value of the CCFG_MODE_CONF_XOSC_FREQ field. Returns one of the following:
166 {
167  return (( HWREG( CCFG_BASE + CCFG_O_MODE_CONF ) &
170 }

Macro Definition Documentation

#define CCFGREAD_SCLK_LF_OPTION_EXTERNAL_LF   ( CCFG_MODE_CONF_SCLK_LF_OPTION_EXTERNAL_LF >> CCFG_MODE_CONF_SCLK_LF_OPTION_S )
#define CCFGREAD_SCLK_LF_OPTION_RCOSC_LF   ( CCFG_MODE_CONF_SCLK_LF_OPTION_RCOSC_LF >> CCFG_MODE_CONF_SCLK_LF_OPTION_S )
#define CCFGREAD_SCLK_LF_OPTION_XOSC_HF_DLF   ( CCFG_MODE_CONF_SCLK_LF_OPTION_XOSC_HF_DLF >> CCFG_MODE_CONF_SCLK_LF_OPTION_S )
#define CCFGREAD_SCLK_LF_OPTION_XOSC_LF   ( CCFG_MODE_CONF_SCLK_LF_OPTION_XOSC_LF >> CCFG_MODE_CONF_SCLK_LF_OPTION_S )
#define CCFGREAD_XOSC_FREQ_24M   ( CCFG_MODE_CONF_XOSC_FREQ_24M >> CCFG_MODE_CONF_XOSC_FREQ_S )
#define CCFGREAD_XOSC_FREQ_48M   ( CCFG_MODE_CONF_XOSC_FREQ_48M >> CCFG_MODE_CONF_XOSC_FREQ_S )
#define CCFGREAD_XOSC_FREQ_HPOSC   ( CCFG_MODE_CONF_XOSC_FREQ_HPOSC >> CCFG_MODE_CONF_XOSC_FREQ_S )
#define CCFGREAD_XOSC_FREQ_TCXO   ( CCFG_MODE_CONF_XOSC_FREQ_TCXO >> CCFG_MODE_CONF_XOSC_FREQ_S )