cc26x2_cc13x2_fcfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Leon George
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
16 #ifndef CC26X2_CC13X2_FCFG_H
17 #define CC26X2_CC13X2_FCFG_H
18 
19 #include <cc26xx_cc13xx.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 typedef struct {
29  reg8_t __reserved1[0xA0];
30  reg32_t MISC_CONF_1;
31  reg32_t MISC_CONF_2;
32  reg32_t __reserved2[0x2];
33  reg32_t HPOSC_MEAS_5;
34  reg32_t HPOSC_MEAS_4;
35  reg32_t HPOSC_MEAS_3;
36  reg32_t HPOSC_MEAS_2;
37  reg32_t HPOSC_MEAS_1;
38  reg32_t CONFIG_FE_CC26;
39  reg32_t CONFIG_FE_CC13;
40  reg32_t CONFIG_RF_COMMON;
47  reg32_t CONFIG_SYNTH_DIV5;
50  reg32_t CONFIG_SYNTH_DIV10;
53  reg32_t CONFIG_SYNTH_DIV15;
54  reg32_t CONFIG_SYNTH_DIV30;
55  reg32_t __reserved3[0x17];
56  reg32_t FLASH_NUMBER;
57  reg32_t __reserved4;
58  reg32_t FLASH_COORDINATE;
59  reg32_t FLASH_E_P;
60  reg32_t FLASH_C_E_P_R;
61  reg32_t FLASH_P_R_PV;
62  reg32_t FLASH_EH_SEQ;
63  reg32_t FLASH_VHV_E;
64  reg32_t FLASH_PP;
65  reg32_t FLASH_PROG_EP;
66  reg32_t FLASH_ERA_PW;
67  reg32_t FLASH_VHV;
68  reg32_t FLASH_VHV_PV;
69  reg32_t FLASH_V;
70  reg32_t __reserved5[0x3E];
71  reg32_t USER_ID; /* User identification */
72  reg32_t __reserved6[0x6];
73  reg32_t FLASH_OTP_DATA3;
74  reg32_t ANA2_TRIM;
75  reg32_t LDO_TRIM;
76  reg32_t __reserved7[0xB];
77  reg32_t MAC_BLE_0;
78  reg32_t MAC_BLE_1;
79  reg32_t MAC_15_4_0;
80  reg32_t MAC_15_4_1;
81  reg32_t __reserved8[0x4];
82  reg32_t FLASH_OTP_DATA4;
83  reg32_t MISC_TRIM;
84  reg32_t RCOSC_HF_TEMPCOMP;
85  reg32_t __reserved9;
86  reg32_t ICEPICK_DEVICE_ID;
87  reg32_t FCFG1_REVISION;
88  reg32_t MISC_OTP_DATA;
89  reg32_t __reserved10[0x8];
90  reg32_t IOCONF;
91  reg32_t __reserved11;
92  reg32_t CONFIG_IF_ADC;
93  reg32_t CONFIG_OSC_TOP;
94  reg32_t __reserved12[0x2];
95  reg32_t SOC_ADC_ABS_GAIN;
96  reg32_t SOC_ADC_REL_GAIN;
97  reg32_t __reserved13;
98  reg32_t SOC_ADC_OFFSET_INT;
99  reg32_t SOC_ADC_REF_TRIM_AND_OFFSET_EXT;
100  reg32_t AMPCOMP_TH1;
101  reg32_t AMPCOMP_TH2;
102  reg32_t AMPCOMP_CTRL1;
103  reg32_t ANABYPASS_VALUE2;
104  reg32_t __reserved14[0x2];
105  reg32_t VOLT_TRIM;
106  reg32_t OSC_CONF;
107  reg32_t FREQ_OFFSET;
108  reg32_t __reserved15;
109  reg32_t MISC_OTP_DATA_1;
110  reg32_t __reserved16[0xC];
111  reg32_t SHDW_DIE_ID_0;
112  reg32_t SHDW_DIE_ID_1;
113  reg32_t SHDW_DIE_ID_2;
114  reg32_t SHDW_DIE_ID_3;
115  reg32_t __reserved17[0x7];
116  reg32_t SHDW_OSC_BIAS_LDO_TRIM;
117  reg32_t SHDW_ANA_TRIM;
118  reg32_t __reserved18[0x3];
119  reg32_t DAC_BIAS_CNF;
120  reg32_t __reserved19[0x2];
121  reg32_t TFW_PROBE;
122  reg32_t TFW_FT;
123  reg32_t DAC_CAL0;
124  reg32_t DAC_CAL1;
125  reg32_t DAC_CAL2;
126  reg32_t DAC_CAL3;
127 } fcfg_regs_t;
128 
133 #define FCFG1_DAC_BIAS_CNF_LPM_TRIM_IOUT_m 0x0003F000
134 #define FCFG1_DAC_BIAS_CNF_LPM_TRIM_IOUT_s 12
135 #define FCFG1_DAC_BIAS_CNF_LPM_BIAS_WIDTH_TRIM_m 0x00000E00
136 #define FCFG1_DAC_BIAS_CNF_LPM_BIAS_WIDTH_TRIM_s 9
137 #define FCFG1_DAC_BIAS_CNF_LPM_BIAS_BACKUP_EN 0x00000100
138 
147 #define FCFG_BASE (0x50001000)
148 
153 #define FCFG ((fcfg_regs_t *) (FCFG_BASE))
154 
155 #ifdef __cplusplus
156 } /* end extern "C" */
157 #endif
158 
159 #endif /* CC26X2_CC13X2_FCFG_H */
160 
fcfg_regs_t::TFW_PROBE
reg32_t TFW_PROBE
Internal.
Definition: cc26x2_cc13x2_fcfg.h:121
fcfg_regs_t::DAC_BIAS_CNF
reg32_t DAC_BIAS_CNF
Internal.
Definition: cc26x2_cc13x2_fcfg.h:119
fcfg_regs_t::DAC_CAL2
reg32_t DAC_CAL2
Internal.
Definition: cc26x2_cc13x2_fcfg.h:125
fcfg_regs_t::CONFIG_FE_CC26
reg32_t CONFIG_FE_CC26
Internal.
Definition: cc26x2_cc13x2_fcfg.h:38
fcfg_regs_t::FREQ_OFFSET
reg32_t FREQ_OFFSET
Internal.
Definition: cc26x2_cc13x2_fcfg.h:107
fcfg_regs_t::DAC_CAL1
reg32_t DAC_CAL1
Internal.
Definition: cc26x2_cc13x2_fcfg.h:124
fcfg_regs_t::CONFIG_SYNTH_DIV2_CC13_2G4
reg32_t CONFIG_SYNTH_DIV2_CC13_2G4
Config of synthesizer in divide-by-2-mode.
Definition: cc26x2_cc13x2_fcfg.h:42
fcfg_regs_t::DAC_CAL0
reg32_t DAC_CAL0
Internal.
Definition: cc26x2_cc13x2_fcfg.h:123
fcfg_regs_t::CONFIG_FE_CC13
reg32_t CONFIG_FE_CC13
Internal.
Definition: cc26x2_cc13x2_fcfg.h:39
fcfg_regs_t::CONFIG_SYNTH_DIV2_CC26_2G4
reg32_t CONFIG_SYNTH_DIV2_CC26_2G4
Config of synthesizer in divide-by-2-mode.
Definition: cc26x2_cc13x2_fcfg.h:41
fcfg_regs_t::CONFIG_SYNTH_DIV4_CC26
reg32_t CONFIG_SYNTH_DIV4_CC26
Config of synthesizer in divide-by-4-mode.
Definition: cc26x2_cc13x2_fcfg.h:45
fcfg_regs_t::HPOSC_MEAS_5
reg32_t HPOSC_MEAS_5
Internal.
Definition: cc26x2_cc13x2_fcfg.h:33
fcfg_regs_t::CONFIG_SYNTH_DIV12_CC13
reg32_t CONFIG_SYNTH_DIV12_CC13
Config of synthesizer in divide-by-12-mode.
Definition: cc26x2_cc13x2_fcfg.h:52
fcfg_regs_t::HPOSC_MEAS_1
reg32_t HPOSC_MEAS_1
Internal.
Definition: cc26x2_cc13x2_fcfg.h:37
fcfg_regs_t::HPOSC_MEAS_2
reg32_t HPOSC_MEAS_2
Internal.
Definition: cc26x2_cc13x2_fcfg.h:36
fcfg_regs_t::CONFIG_RF_COMMON
reg32_t CONFIG_RF_COMMON
Internal.
Definition: cc26x2_cc13x2_fcfg.h:40
cc26xx_cc13xx.h
CC26xx, CC13xx definitions.
fcfg_regs_t::MISC_CONF_2
reg32_t MISC_CONF_2
misc config
Definition: cc26x2_cc13x2_fcfg.h:31
fcfg_regs_t::HPOSC_MEAS_3
reg32_t HPOSC_MEAS_3
Internal.
Definition: cc26x2_cc13x2_fcfg.h:35
fcfg_regs_t::TFW_FT
reg32_t TFW_FT
Internal.
Definition: cc26x2_cc13x2_fcfg.h:122
fcfg_regs_t::CONFIG_SYNTH_DIV2_CC13_1G
reg32_t CONFIG_SYNTH_DIV2_CC13_1G
Config of synthesizer in divide-by-2-mode.
Definition: cc26x2_cc13x2_fcfg.h:44
fcfg_regs_t::CONFIG_SYNTH_DIV12_CC26
reg32_t CONFIG_SYNTH_DIV12_CC26
Config of synthesizer in divide-by-12-mode.
Definition: cc26x2_cc13x2_fcfg.h:51
fcfg_regs_t::DAC_CAL3
reg32_t DAC_CAL3
Internal.
Definition: cc26x2_cc13x2_fcfg.h:126
fcfg_regs_t::CONFIG_SYNTH_DIV2_CC26_1G
reg32_t CONFIG_SYNTH_DIV2_CC26_1G
Config of synthesizer in divide-by-2-mode.
Definition: cc26x2_cc13x2_fcfg.h:43
fcfg_regs_t
FCFG registers.
Definition: cc26x0_fcfg.h:34
fcfg_regs_t::CONFIG_SYNTH_DIV4_CC13
reg32_t CONFIG_SYNTH_DIV4_CC13
Config of synthesizer in divide-by-4-mode.
Definition: cc26x2_cc13x2_fcfg.h:46
fcfg_regs_t::HPOSC_MEAS_4
reg32_t HPOSC_MEAS_4
Internal.
Definition: cc26x2_cc13x2_fcfg.h:34
fcfg_regs_t::CONFIG_SYNTH_DIV6_CC13
reg32_t CONFIG_SYNTH_DIV6_CC13
Config of synthesizer in divide-by-5-mode.
Definition: cc26x2_cc13x2_fcfg.h:49
fcfg_regs_t::CONFIG_SYNTH_DIV6_CC26
reg32_t CONFIG_SYNTH_DIV6_CC26
Config of synthesizer in divide-by-5-mode.
Definition: cc26x2_cc13x2_fcfg.h:48