Interfacing ADE9000 with mbed platform

Dependencies:   mbed

Committer:
ksnjth
Date:
Fri Apr 20 08:45:34 2018 +0000
Revision:
0:32e7a5fadacc
ADE9000 SPI

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ksnjth 0:32e7a5fadacc 1 /*******************************************************************************
ksnjth 0:32e7a5fadacc 2 Copyright(c) 2014 Analog Devices, Inc. All Rights Reserved.
ksnjth 0:32e7a5fadacc 3
ksnjth 0:32e7a5fadacc 4 This software is proprietary and confidential. By using this software you agree
ksnjth 0:32e7a5fadacc 5 to the terms of the associated Analog Devices License Agreement.
ksnjth 0:32e7a5fadacc 6 --------------------------------------------------------------------------------
ksnjth 0:32e7a5fadacc 7 Filename : ade9000.h
ksnjth 0:32e7a5fadacc 8 Abstract : The file define the address of ADE90XX register, and deafult value of each register
ksnjth 0:32e7a5fadacc 9
ksnjth 0:32e7a5fadacc 10 Author : Yiyi.zhao
ksnjth 0:32e7a5fadacc 11 Accomplished date: 06/09/2015
ksnjth 0:32e7a5fadacc 12 *******************************************************************************/
ksnjth 0:32e7a5fadacc 13
ksnjth 0:32e7a5fadacc 14
ksnjth 0:32e7a5fadacc 15 //address of ADE90XX registers
ksnjth 0:32e7a5fadacc 16 #define ADDR_AIGAIN 0x000
ksnjth 0:32e7a5fadacc 17 #define ADDR_AIGAIN0 0x001
ksnjth 0:32e7a5fadacc 18 #define ADDR_AIGAIN1 0x002
ksnjth 0:32e7a5fadacc 19 #define ADDR_AIGAIN2 0x003
ksnjth 0:32e7a5fadacc 20 #define ADDR_AIGAIN3 0x004
ksnjth 0:32e7a5fadacc 21 #define ADDR_AIGAIN4 0x005
ksnjth 0:32e7a5fadacc 22 #define ADDR_APHCAL0 0x006
ksnjth 0:32e7a5fadacc 23 #define ADDR_APHCAL1 0x007
ksnjth 0:32e7a5fadacc 24 #define ADDR_APHCAL2 0x008
ksnjth 0:32e7a5fadacc 25 #define ADDR_APHCAL3 0x009
ksnjth 0:32e7a5fadacc 26 #define ADDR_APHCAL4 0x00A
ksnjth 0:32e7a5fadacc 27 #define ADDR_AVGAIN 0x00B
ksnjth 0:32e7a5fadacc 28 #define ADDR_AIRMSOS 0x00C
ksnjth 0:32e7a5fadacc 29 #define ADDR_AVRMSOS 0x00D
ksnjth 0:32e7a5fadacc 30 #define ADDR_APGAIN 0x00E
ksnjth 0:32e7a5fadacc 31 #define ADDR_AWATTOS 0x00F
ksnjth 0:32e7a5fadacc 32 #define ADDR_AVAROS 0x010
ksnjth 0:32e7a5fadacc 33 #define ADDR_AFWATTOS 0x011
ksnjth 0:32e7a5fadacc 34 #define ADDR_AFVAROS 0x012
ksnjth 0:32e7a5fadacc 35 #define ADDR_AIFRMSOS 0x013
ksnjth 0:32e7a5fadacc 36 #define ADDR_AVFRMSOS 0x014
ksnjth 0:32e7a5fadacc 37 #define ADDR_AVRMSONEOS 0x015
ksnjth 0:32e7a5fadacc 38 #define ADDR_AIRMSONEOS 0x016
ksnjth 0:32e7a5fadacc 39 #define ADDR_AVRMS1012OS 0x017
ksnjth 0:32e7a5fadacc 40 #define ADDR_AIRMS1012OS 0x018
ksnjth 0:32e7a5fadacc 41 #define ADDR_BIGAIN 0x020
ksnjth 0:32e7a5fadacc 42 #define ADDR_BIGAIN0 0x021
ksnjth 0:32e7a5fadacc 43 #define ADDR_BIGAIN1 0x022
ksnjth 0:32e7a5fadacc 44 #define ADDR_BIGAIN2 0x023
ksnjth 0:32e7a5fadacc 45 #define ADDR_BIGAIN3 0x024
ksnjth 0:32e7a5fadacc 46 #define ADDR_BIGAIN4 0x025
ksnjth 0:32e7a5fadacc 47 #define ADDR_BPHCAL0 0x026
ksnjth 0:32e7a5fadacc 48 #define ADDR_BPHCAL1 0x027
ksnjth 0:32e7a5fadacc 49 #define ADDR_BPHCAL2 0x028
ksnjth 0:32e7a5fadacc 50 #define ADDR_BPHCAL3 0x029
ksnjth 0:32e7a5fadacc 51 #define ADDR_BPHCAL4 0x02A
ksnjth 0:32e7a5fadacc 52 #define ADDR_BVGAIN 0x02B
ksnjth 0:32e7a5fadacc 53 #define ADDR_BIRMSOS 0x02C
ksnjth 0:32e7a5fadacc 54 #define ADDR_BVRMSOS 0x02D
ksnjth 0:32e7a5fadacc 55 #define ADDR_BPGAIN 0x02E
ksnjth 0:32e7a5fadacc 56 #define ADDR_BWATTOS 0x02F
ksnjth 0:32e7a5fadacc 57 #define ADDR_BVAROS 0x030
ksnjth 0:32e7a5fadacc 58 #define ADDR_BFWATTOS 0x031
ksnjth 0:32e7a5fadacc 59 #define ADDR_BFVAROS 0x032
ksnjth 0:32e7a5fadacc 60 #define ADDR_BIFRMSOS 0x033
ksnjth 0:32e7a5fadacc 61 #define ADDR_BVFRMSOS 0x034
ksnjth 0:32e7a5fadacc 62 #define ADDR_BVRMSONEOS 0x035
ksnjth 0:32e7a5fadacc 63 #define ADDR_BIRMSONEOS 0x036
ksnjth 0:32e7a5fadacc 64 #define ADDR_BVRMS1012OS 0x037
ksnjth 0:32e7a5fadacc 65 #define ADDR_BIRMS1012OS 0x038
ksnjth 0:32e7a5fadacc 66 #define ADDR_CIGAIN 0x040
ksnjth 0:32e7a5fadacc 67 #define ADDR_CIGAIN0 0x041
ksnjth 0:32e7a5fadacc 68 #define ADDR_CIGAIN1 0x042
ksnjth 0:32e7a5fadacc 69 #define ADDR_CIGAIN2 0x043
ksnjth 0:32e7a5fadacc 70 #define ADDR_CIGAIN3 0x044
ksnjth 0:32e7a5fadacc 71 #define ADDR_CIGAIN4 0x045
ksnjth 0:32e7a5fadacc 72 #define ADDR_CPHCAL0 0x046
ksnjth 0:32e7a5fadacc 73 #define ADDR_CPHCAL1 0x047
ksnjth 0:32e7a5fadacc 74 #define ADDR_CPHCAL2 0x048
ksnjth 0:32e7a5fadacc 75 #define ADDR_CPHCAL3 0x049
ksnjth 0:32e7a5fadacc 76 #define ADDR_CPHCAL4 0x04A
ksnjth 0:32e7a5fadacc 77 #define ADDR_CVGAIN 0x04B
ksnjth 0:32e7a5fadacc 78 #define ADDR_CIRMSOS 0x04C
ksnjth 0:32e7a5fadacc 79 #define ADDR_CVRMSOS 0x04D
ksnjth 0:32e7a5fadacc 80 #define ADDR_CPGAIN 0x04E
ksnjth 0:32e7a5fadacc 81 #define ADDR_CWATTOS 0x04F
ksnjth 0:32e7a5fadacc 82 #define ADDR_CVAROS 0x050
ksnjth 0:32e7a5fadacc 83 #define ADDR_CFWATTOS 0x051
ksnjth 0:32e7a5fadacc 84 #define ADDR_CFVAROS 0x052
ksnjth 0:32e7a5fadacc 85 #define ADDR_CIFRMSOS 0x053
ksnjth 0:32e7a5fadacc 86 #define ADDR_CVFRMSOS 0x054
ksnjth 0:32e7a5fadacc 87 #define ADDR_CVRMSONEOS 0x055
ksnjth 0:32e7a5fadacc 88 #define ADDR_CIRMSONEOS 0x056
ksnjth 0:32e7a5fadacc 89 #define ADDR_CVRMS1012OS 0x057
ksnjth 0:32e7a5fadacc 90 #define ADDR_CIRMS1012OS 0x058
ksnjth 0:32e7a5fadacc 91 #define ADDR_CONFIG0 0x060
ksnjth 0:32e7a5fadacc 92 #define ADDR_MTTHR_L0 0x061
ksnjth 0:32e7a5fadacc 93 #define ADDR_MTTHR_L1 0x062
ksnjth 0:32e7a5fadacc 94 #define ADDR_MTTHR_L2 0x063
ksnjth 0:32e7a5fadacc 95 #define ADDR_MTTHR_L3 0x064
ksnjth 0:32e7a5fadacc 96 #define ADDR_MTTHR_L4 0x065
ksnjth 0:32e7a5fadacc 97 #define ADDR_MTTHR_H0 0x066
ksnjth 0:32e7a5fadacc 98 #define ADDR_MTTHR_H1 0x067
ksnjth 0:32e7a5fadacc 99 #define ADDR_MTTHR_H2 0x068
ksnjth 0:32e7a5fadacc 100 #define ADDR_MTTHR_H3 0x069
ksnjth 0:32e7a5fadacc 101 #define ADDR_MTTHR_H4 0x06A
ksnjth 0:32e7a5fadacc 102 #define ADDR_NIRMSOS 0x06B
ksnjth 0:32e7a5fadacc 103 #define ADDR_ISUMRMSOS 0x06C
ksnjth 0:32e7a5fadacc 104 #define ADDR_NIGAIN 0x06D
ksnjth 0:32e7a5fadacc 105 #define ADDR_NPHCAL 0x06E
ksnjth 0:32e7a5fadacc 106 #define ADDR_NIRMSONEOS 0x06F
ksnjth 0:32e7a5fadacc 107 #define ADDR_NIRMS1012OS 0x070
ksnjth 0:32e7a5fadacc 108 #define ADDR_VNOM 0x071
ksnjth 0:32e7a5fadacc 109 #define ADDR_DICOEFF 0x072
ksnjth 0:32e7a5fadacc 110 #define ADDR_ISUMLVL 0x073
ksnjth 0:32e7a5fadacc 111 #define ADDR_AI_PCF 0x20A
ksnjth 0:32e7a5fadacc 112 #define ADDR_AV_PCF 0x20B
ksnjth 0:32e7a5fadacc 113 #define ADDR_AIRMS 0x20C
ksnjth 0:32e7a5fadacc 114 #define ADDR_AVRMS 0x20D
ksnjth 0:32e7a5fadacc 115 #define ADDR_AIFRMS 0x20E
ksnjth 0:32e7a5fadacc 116 #define ADDR_AVFRMS 0x20F
ksnjth 0:32e7a5fadacc 117 #define ADDR_AWATT 0x210
ksnjth 0:32e7a5fadacc 118 #define ADDR_AVAR 0x211
ksnjth 0:32e7a5fadacc 119 #define ADDR_AVA 0x212
ksnjth 0:32e7a5fadacc 120 #define ADDR_AFWATT 0x213
ksnjth 0:32e7a5fadacc 121 #define ADDR_AFVAR 0x214
ksnjth 0:32e7a5fadacc 122 #define ADDR_AFVA 0x215
ksnjth 0:32e7a5fadacc 123 #define ADDR_APF 0x216
ksnjth 0:32e7a5fadacc 124 #define ADDR_AVTHD 0x217
ksnjth 0:32e7a5fadacc 125 #define ADDR_AITHD 0x218
ksnjth 0:32e7a5fadacc 126 #define ADDR_AIRMSONE 0x219
ksnjth 0:32e7a5fadacc 127 #define ADDR_AVRMSONE 0x21A
ksnjth 0:32e7a5fadacc 128 #define ADDR_AIRMS1012 0x21B
ksnjth 0:32e7a5fadacc 129 #define ADDR_AVRMS1012 0x21C
ksnjth 0:32e7a5fadacc 130 #define ADDR_AMTREGION 0x21D
ksnjth 0:32e7a5fadacc 131 #define ADDR_BI_PCF 0x22A
ksnjth 0:32e7a5fadacc 132 #define ADDR_BV_PCF 0x22B
ksnjth 0:32e7a5fadacc 133 #define ADDR_BIRMS 0x22C
ksnjth 0:32e7a5fadacc 134 #define ADDR_BVRMS 0x22D
ksnjth 0:32e7a5fadacc 135 #define ADDR_BIFRMS 0x22E
ksnjth 0:32e7a5fadacc 136 #define ADDR_BVFRMS 0x22F
ksnjth 0:32e7a5fadacc 137 #define ADDR_BWATT 0x230
ksnjth 0:32e7a5fadacc 138 #define ADDR_BVAR 0x231
ksnjth 0:32e7a5fadacc 139 #define ADDR_BVA 0x232
ksnjth 0:32e7a5fadacc 140 #define ADDR_BFWATT 0x233
ksnjth 0:32e7a5fadacc 141 #define ADDR_BFVAR 0x234
ksnjth 0:32e7a5fadacc 142 #define ADDR_BFVA 0x235
ksnjth 0:32e7a5fadacc 143 #define ADDR_BPF 0x236
ksnjth 0:32e7a5fadacc 144 #define ADDR_BVTHD 0x237
ksnjth 0:32e7a5fadacc 145 #define ADDR_BITHD 0x238
ksnjth 0:32e7a5fadacc 146 #define ADDR_BIRMSONE 0x239
ksnjth 0:32e7a5fadacc 147 #define ADDR_BVRMSONE 0x23A
ksnjth 0:32e7a5fadacc 148 #define ADDR_BIRMS1012 0x23B
ksnjth 0:32e7a5fadacc 149 #define ADDR_BVRMS1012 0x23C
ksnjth 0:32e7a5fadacc 150 #define ADDR_BMTREGION 0x23D
ksnjth 0:32e7a5fadacc 151 #define ADDR_CI_PCF 0x24A
ksnjth 0:32e7a5fadacc 152 #define ADDR_CV_PCF 0x24B
ksnjth 0:32e7a5fadacc 153 #define ADDR_CIRMS 0x24C
ksnjth 0:32e7a5fadacc 154 #define ADDR_CVRMS 0x24D
ksnjth 0:32e7a5fadacc 155 #define ADDR_CIFRMS 0x24E
ksnjth 0:32e7a5fadacc 156 #define ADDR_CVFRMS 0x24F
ksnjth 0:32e7a5fadacc 157 #define ADDR_CWATT 0x250
ksnjth 0:32e7a5fadacc 158 #define ADDR_CVAR 0x251
ksnjth 0:32e7a5fadacc 159 #define ADDR_CVA 0x252
ksnjth 0:32e7a5fadacc 160 #define ADDR_CFWATT 0x253
ksnjth 0:32e7a5fadacc 161 #define ADDR_CFVAR 0x254
ksnjth 0:32e7a5fadacc 162 #define ADDR_CFVA 0x255
ksnjth 0:32e7a5fadacc 163 #define ADDR_CPF 0x256
ksnjth 0:32e7a5fadacc 164 #define ADDR_CVTHD 0x257
ksnjth 0:32e7a5fadacc 165 #define ADDR_CITHD 0x258
ksnjth 0:32e7a5fadacc 166 #define ADDR_CIRMSONE 0x259
ksnjth 0:32e7a5fadacc 167 #define ADDR_CVRMSONE 0x25A
ksnjth 0:32e7a5fadacc 168 #define ADDR_CIRMS1012 0x25B
ksnjth 0:32e7a5fadacc 169 #define ADDR_CVRMS1012 0x25C
ksnjth 0:32e7a5fadacc 170 #define ADDR_CMTREGION 0x25D
ksnjth 0:32e7a5fadacc 171 #define ADDR_NI_PCF 0x265
ksnjth 0:32e7a5fadacc 172 #define ADDR_NIRMS 0x266
ksnjth 0:32e7a5fadacc 173 #define ADDR_NIRMSONE 0x267
ksnjth 0:32e7a5fadacc 174 #define ADDR_NIRMS1012 0x268
ksnjth 0:32e7a5fadacc 175 #define ADDR_ISUMRMS 0x269
ksnjth 0:32e7a5fadacc 176 #define ADDR_VERSION2 0x26A
ksnjth 0:32e7a5fadacc 177 #define ADDR_AWATT_ACC 0x2E5
ksnjth 0:32e7a5fadacc 178 #define ADDR_AWATTHR_LO 0x2E6
ksnjth 0:32e7a5fadacc 179 #define ADDR_AWATTHR_HI 0x2E7
ksnjth 0:32e7a5fadacc 180 #define ADDR_AVAR_ACC 0x2EF
ksnjth 0:32e7a5fadacc 181 #define ADDR_AVARHR_LO 0x2F0
ksnjth 0:32e7a5fadacc 182 #define ADDR_AVARHR_HI 0x2F1
ksnjth 0:32e7a5fadacc 183 #define ADDR_AVA_ACC 0x2F9
ksnjth 0:32e7a5fadacc 184 #define ADDR_AVAHR_LO 0x2FA
ksnjth 0:32e7a5fadacc 185 #define ADDR_AVAHR_HI 0x2FB
ksnjth 0:32e7a5fadacc 186 #define ADDR_AFWATT_ACC 0x303
ksnjth 0:32e7a5fadacc 187 #define ADDR_AFWATTHR_LO 0x304
ksnjth 0:32e7a5fadacc 188 #define ADDR_AFWATTHR_HI 0x305
ksnjth 0:32e7a5fadacc 189 #define ADDR_AFVAR_ACC 0x30D
ksnjth 0:32e7a5fadacc 190 #define ADDR_AFVARHR_LO 0x30E
ksnjth 0:32e7a5fadacc 191 #define ADDR_AFVARHR_HI 0x30F
ksnjth 0:32e7a5fadacc 192 #define ADDR_AFVA_ACC 0x317
ksnjth 0:32e7a5fadacc 193 #define ADDR_AFVAHR_LO 0x318
ksnjth 0:32e7a5fadacc 194 #define ADDR_AFVAHR_HI 0x319
ksnjth 0:32e7a5fadacc 195 #define ADDR_BWATT_ACC 0x321
ksnjth 0:32e7a5fadacc 196 #define ADDR_BWATTHR_LO 0x322
ksnjth 0:32e7a5fadacc 197 #define ADDR_BWATTHR_HI 0x323
ksnjth 0:32e7a5fadacc 198 #define ADDR_BVAR_ACC 0x32B
ksnjth 0:32e7a5fadacc 199 #define ADDR_BVARHR_LO 0x32C
ksnjth 0:32e7a5fadacc 200 #define ADDR_BVARHR_HI 0x32D
ksnjth 0:32e7a5fadacc 201 #define ADDR_BVA_ACC 0x335
ksnjth 0:32e7a5fadacc 202 #define ADDR_BVAHR_LO 0x336
ksnjth 0:32e7a5fadacc 203 #define ADDR_BVAHR_HI 0x337
ksnjth 0:32e7a5fadacc 204 #define ADDR_BFWATT_ACC 0x33F
ksnjth 0:32e7a5fadacc 205 #define ADDR_BFWATTHR_LO 0x340
ksnjth 0:32e7a5fadacc 206 #define ADDR_BFWATTHR_HI 0x341
ksnjth 0:32e7a5fadacc 207 #define ADDR_BFVAR_ACC 0x349
ksnjth 0:32e7a5fadacc 208 #define ADDR_BFVARHR_LO 0x34A
ksnjth 0:32e7a5fadacc 209 #define ADDR_BFVARHR_HI 0x34B
ksnjth 0:32e7a5fadacc 210 #define ADDR_BFVA_ACC 0x353
ksnjth 0:32e7a5fadacc 211 #define ADDR_BFVAHR_LO 0x354
ksnjth 0:32e7a5fadacc 212 #define ADDR_BFVAHR_HI 0x355
ksnjth 0:32e7a5fadacc 213 #define ADDR_CWATT_ACC 0x35D
ksnjth 0:32e7a5fadacc 214 #define ADDR_CWATTHR_LO 0x35E
ksnjth 0:32e7a5fadacc 215 #define ADDR_CWATTHR_HI 0x35F
ksnjth 0:32e7a5fadacc 216 #define ADDR_CVAR_ACC 0x367
ksnjth 0:32e7a5fadacc 217 #define ADDR_CVARHR_LO 0x368
ksnjth 0:32e7a5fadacc 218 #define ADDR_CVARHR_HI 0x369
ksnjth 0:32e7a5fadacc 219 #define ADDR_CVA_ACC 0x371
ksnjth 0:32e7a5fadacc 220 #define ADDR_CVAHR_LO 0x372
ksnjth 0:32e7a5fadacc 221 #define ADDR_CVAHR_HI 0x373
ksnjth 0:32e7a5fadacc 222 #define ADDR_CFWATT_ACC 0x37B
ksnjth 0:32e7a5fadacc 223 #define ADDR_CFWATTHR_LO 0x37C
ksnjth 0:32e7a5fadacc 224 #define ADDR_CFWATTHR_HI 0x37D
ksnjth 0:32e7a5fadacc 225 #define ADDR_CFVAR_ACC 0x385
ksnjth 0:32e7a5fadacc 226 #define ADDR_CFVARHR_LO 0x386
ksnjth 0:32e7a5fadacc 227 #define ADDR_CFVARHR_HI 0x387
ksnjth 0:32e7a5fadacc 228 #define ADDR_CFVA_ACC 0x38F
ksnjth 0:32e7a5fadacc 229 #define ADDR_CFVAHR_LO 0x390
ksnjth 0:32e7a5fadacc 230 #define ADDR_CFVAHR_HI 0x391
ksnjth 0:32e7a5fadacc 231 #define ADDR_PWATT_ACC 0x397
ksnjth 0:32e7a5fadacc 232 #define ADDR_NWATT_ACC 0x39B
ksnjth 0:32e7a5fadacc 233 #define ADDR_PVAR_ACC 0x39F
ksnjth 0:32e7a5fadacc 234 #define ADDR_NVAR_ACC 0x3A3
ksnjth 0:32e7a5fadacc 235 #define ADDR_IPEAK 0x400
ksnjth 0:32e7a5fadacc 236 #define ADDR_VPEAK 0x401
ksnjth 0:32e7a5fadacc 237 #define ADDR_STATUS0 0x402
ksnjth 0:32e7a5fadacc 238 #define ADDR_STATUS1 0x403
ksnjth 0:32e7a5fadacc 239 #define ADDR_EVENT_STATUS 0x404
ksnjth 0:32e7a5fadacc 240 #define ADDR_MASK0 0x405
ksnjth 0:32e7a5fadacc 241 #define ADDR_MASK1 0x406
ksnjth 0:32e7a5fadacc 242 #define ADDR_EVENT_MASK 0x407
ksnjth 0:32e7a5fadacc 243 #define ADDR_OILVL 0x409
ksnjth 0:32e7a5fadacc 244 #define ADDR_OIA 0x40A
ksnjth 0:32e7a5fadacc 245 #define ADDR_OIB 0x40B
ksnjth 0:32e7a5fadacc 246 #define ADDR_OIC 0x40C
ksnjth 0:32e7a5fadacc 247 #define ADDR_OIN 0x40D
ksnjth 0:32e7a5fadacc 248 #define ADDR_USER_PERIOD 0x40E
ksnjth 0:32e7a5fadacc 249 #define ADDR_VLEVEL 0x40F
ksnjth 0:32e7a5fadacc 250 #define ADDR_DIP_LVL 0x410
ksnjth 0:32e7a5fadacc 251 #define ADDR_DIPA 0x411
ksnjth 0:32e7a5fadacc 252 #define ADDR_DIPB 0x412
ksnjth 0:32e7a5fadacc 253 #define ADDR_DIPC 0x413
ksnjth 0:32e7a5fadacc 254 #define ADDR_SWELL_LVL 0x414
ksnjth 0:32e7a5fadacc 255 #define ADDR_SWELLA 0x415
ksnjth 0:32e7a5fadacc 256 #define ADDR_SWELLB 0x416
ksnjth 0:32e7a5fadacc 257 #define ADDR_SWELLC 0x417
ksnjth 0:32e7a5fadacc 258 #define ADDR_APERIOD 0x418
ksnjth 0:32e7a5fadacc 259 #define ADDR_BPERIOD 0x419
ksnjth 0:32e7a5fadacc 260 #define ADDR_CPERIOD 0x41A
ksnjth 0:32e7a5fadacc 261 #define ADDR_COM_PERIOD 0x41B
ksnjth 0:32e7a5fadacc 262 #define ADDR_ACT_NL_LVL 0x41C
ksnjth 0:32e7a5fadacc 263 #define ADDR_REACT_NL_LVL 0x41D
ksnjth 0:32e7a5fadacc 264 #define ADDR_APP_NL_LVL 0x41E
ksnjth 0:32e7a5fadacc 265 #define ADDR_PHNOLOAD 0x41F
ksnjth 0:32e7a5fadacc 266 #define ADDR_WTHR 0x420
ksnjth 0:32e7a5fadacc 267 #define ADDR_VARTHR 0x421
ksnjth 0:32e7a5fadacc 268 #define ADDR_VATHR 0x422
ksnjth 0:32e7a5fadacc 269 #define ADDR_LAST_DATA_32 0x423
ksnjth 0:32e7a5fadacc 270 #define ADDR_ADC_REDIRECT 0x424
ksnjth 0:32e7a5fadacc 271 #define ADDR_CF_LCFG 0x425
ksnjth 0:32e7a5fadacc 272 #define ADDR_TEMP_TRIM 0x474
ksnjth 0:32e7a5fadacc 273 #define ADDR_RUN 0x480
ksnjth 0:32e7a5fadacc 274 #define ADDR_CONFIG1 0x481
ksnjth 0:32e7a5fadacc 275 #define ADDR_ANGL_VA_VB 0x482
ksnjth 0:32e7a5fadacc 276 #define ADDR_ANGL_VB_VC 0x483
ksnjth 0:32e7a5fadacc 277 #define ADDR_ANGL_VA_VC 0x484
ksnjth 0:32e7a5fadacc 278 #define ADDR_ANGL_VA_IA 0x485
ksnjth 0:32e7a5fadacc 279 #define ADDR_ANGL_VB_IB 0x486
ksnjth 0:32e7a5fadacc 280 #define ADDR_ANGL_VC_IC 0x487
ksnjth 0:32e7a5fadacc 281 #define ADDR_ANGL_IA_IB 0x488
ksnjth 0:32e7a5fadacc 282 #define ADDR_ANGL_IB_IC 0x489
ksnjth 0:32e7a5fadacc 283 #define ADDR_ANGL_IA_IC 0x48A
ksnjth 0:32e7a5fadacc 284 #define ADDR_DIP_CYC 0x48B
ksnjth 0:32e7a5fadacc 285 #define ADDR_SWELL_CYC 0x48C
ksnjth 0:32e7a5fadacc 286 #define ADDR_OISTATUS 0x48F
ksnjth 0:32e7a5fadacc 287 #define ADDR_CFMODE 0x490
ksnjth 0:32e7a5fadacc 288 #define ADDR_COMPMODE 0x491
ksnjth 0:32e7a5fadacc 289 #define ADDR_ACCMODE 0x492
ksnjth 0:32e7a5fadacc 290 #define ADDR_CONFIG3 0x493
ksnjth 0:32e7a5fadacc 291 #define ADDR_CF1DEN 0x494
ksnjth 0:32e7a5fadacc 292 #define ADDR_CF2DEN 0x495
ksnjth 0:32e7a5fadacc 293 #define ADDR_CF3DEN 0x496
ksnjth 0:32e7a5fadacc 294 #define ADDR_CF4DEN 0x497
ksnjth 0:32e7a5fadacc 295 #define ADDR_ZXTOUT 0x498
ksnjth 0:32e7a5fadacc 296 #define ADDR_ZXTHRSH 0x499
ksnjth 0:32e7a5fadacc 297 #define ADDR_ZX_LP_SEL 0x49A
ksnjth 0:32e7a5fadacc 298 #define ADDR_SEQ_CYC 0x49C
ksnjth 0:32e7a5fadacc 299 #define ADDR_PHSIGN 0x49D
ksnjth 0:32e7a5fadacc 300 #define ADDR_WFB_CFG 0x4A0
ksnjth 0:32e7a5fadacc 301 #define ADDR_WFB_PG_IRQEN 0x4A1
ksnjth 0:32e7a5fadacc 302 #define ADDR_WFB_TRG_CFG 0x4A2
ksnjth 0:32e7a5fadacc 303 #define ADDR_WFB_TRG_STAT 0x4A3
ksnjth 0:32e7a5fadacc 304 #define ADDR_CONFIG5 0x4A4
ksnjth 0:32e7a5fadacc 305 #define ADDR_CRC_RSLT 0x4A8
ksnjth 0:32e7a5fadacc 306 #define ADDR_CRC_SPI 0x4A9
ksnjth 0:32e7a5fadacc 307 #define ADDR_LAST_DATA_16 0x4AC
ksnjth 0:32e7a5fadacc 308 #define ADDR_LAST_CMD 0x4AE
ksnjth 0:32e7a5fadacc 309 #define ADDR_CONFIG2 0x4AF
ksnjth 0:32e7a5fadacc 310 #define ADDR_EP_CFG 0x4B0
ksnjth 0:32e7a5fadacc 311 #define ADDR_PWR_TIME 0x4B1
ksnjth 0:32e7a5fadacc 312 #define ADDR_EGY_TIME 0x4B2
ksnjth 0:32e7a5fadacc 313 #define ADDR_CRC_FORCE 0x4B4
ksnjth 0:32e7a5fadacc 314 #define ADDR_CRC_OPTEN 0x4B5
ksnjth 0:32e7a5fadacc 315 #define ADDR_TEMP_CFG 0x4B6
ksnjth 0:32e7a5fadacc 316 #define ADDR_TEMP_RSLT 0x4B7
ksnjth 0:32e7a5fadacc 317 #define ADDR_PSM2_CFG 0x4B8
ksnjth 0:32e7a5fadacc 318 #define ADDR_PGA_GAIN 0x4B9
ksnjth 0:32e7a5fadacc 319 #define ADDR_CHNL_DIS 0x4BA
ksnjth 0:32e7a5fadacc 320 #define ADDR_WR_LOCK 0x4BF
ksnjth 0:32e7a5fadacc 321 #define ADDR_VAR_DIS 0x4E0
ksnjth 0:32e7a5fadacc 322 #define ADDR_RESERVED1 0x4F0
ksnjth 0:32e7a5fadacc 323 #define ADDR_VERSION 0x4FE
ksnjth 0:32e7a5fadacc 324 #define ADDR_AI_SINC_DAT 0x500
ksnjth 0:32e7a5fadacc 325 #define ADDR_AV_SINC_DAT 0x501
ksnjth 0:32e7a5fadacc 326 #define ADDR_BI_SINC_DAT 0x502
ksnjth 0:32e7a5fadacc 327 #define ADDR_BV_SINC_DAT 0x503
ksnjth 0:32e7a5fadacc 328 #define ADDR_CI_SINC_DAT 0x504
ksnjth 0:32e7a5fadacc 329 #define ADDR_CV_SINC_DAT 0x505
ksnjth 0:32e7a5fadacc 330 #define ADDR_NI_SINC_DAT 0x506
ksnjth 0:32e7a5fadacc 331 #define ADDR_AI_LPF_DAT 0x510
ksnjth 0:32e7a5fadacc 332 #define ADDR_AV_LPF_DAT 0x511
ksnjth 0:32e7a5fadacc 333 #define ADDR_BI_LPF_DAT 0x512
ksnjth 0:32e7a5fadacc 334 #define ADDR_BV_LPF_DAT 0x513
ksnjth 0:32e7a5fadacc 335 #define ADDR_CI_LPF_DAT 0x514
ksnjth 0:32e7a5fadacc 336 #define ADDR_CV_LPF_DAT 0x515
ksnjth 0:32e7a5fadacc 337 #define ADDR_NI_LPF_DAT 0x516
ksnjth 0:32e7a5fadacc 338 #define ADDR_AV_PCF_1 0x600
ksnjth 0:32e7a5fadacc 339 #define ADDR_BV_PCF_1 0x601
ksnjth 0:32e7a5fadacc 340 #define ADDR_CV_PCF_1 0x602
ksnjth 0:32e7a5fadacc 341 #define ADDR_NI_PCF_1 0x603
ksnjth 0:32e7a5fadacc 342 #define ADDR_AI_PCF_1 0x604
ksnjth 0:32e7a5fadacc 343 #define ADDR_BI_PCF_1 0x605
ksnjth 0:32e7a5fadacc 344 #define ADDR_CI_PCF_1 0x606
ksnjth 0:32e7a5fadacc 345 #define ADDR_AIRMS_1 0x607
ksnjth 0:32e7a5fadacc 346 #define ADDR_BIRMS_1 0x608
ksnjth 0:32e7a5fadacc 347 #define ADDR_CIRMS_1 0x609
ksnjth 0:32e7a5fadacc 348 #define ADDR_AVRMS_1 0x60A
ksnjth 0:32e7a5fadacc 349 #define ADDR_BVRMS_1 0x60B
ksnjth 0:32e7a5fadacc 350 #define ADDR_CVRMS_1 0x60C
ksnjth 0:32e7a5fadacc 351 #define ADDR_NIRMS_1 0x60D
ksnjth 0:32e7a5fadacc 352 #define ADDR_AWATT_1 0x60E
ksnjth 0:32e7a5fadacc 353 #define ADDR_BWATT_1 0x60F
ksnjth 0:32e7a5fadacc 354 #define ADDR_CWATT_1 0x610
ksnjth 0:32e7a5fadacc 355 #define ADDR_AVA_1 0x611
ksnjth 0:32e7a5fadacc 356 #define ADDR_BVA_1 0x612
ksnjth 0:32e7a5fadacc 357 #define ADDR_CVA_1 0x613
ksnjth 0:32e7a5fadacc 358 #define ADDR_AVAR_1 0x614
ksnjth 0:32e7a5fadacc 359 #define ADDR_BVAR_1 0x615
ksnjth 0:32e7a5fadacc 360 #define ADDR_CVAR_1 0x616
ksnjth 0:32e7a5fadacc 361 #define ADDR_AFVAR_1 0x617
ksnjth 0:32e7a5fadacc 362 #define ADDR_BFVAR_1 0x618
ksnjth 0:32e7a5fadacc 363 #define ADDR_CFVAR_1 0x619
ksnjth 0:32e7a5fadacc 364 #define ADDR_APF_1 0x61A
ksnjth 0:32e7a5fadacc 365 #define ADDR_BPF_1 0x61B
ksnjth 0:32e7a5fadacc 366 #define ADDR_CPF_1 0x61C
ksnjth 0:32e7a5fadacc 367 #define ADDR_AVTHD_1 0x61D
ksnjth 0:32e7a5fadacc 368 #define ADDR_BVTHD_1 0x61E
ksnjth 0:32e7a5fadacc 369 #define ADDR_CVTHD_1 0x61F
ksnjth 0:32e7a5fadacc 370 #define ADDR_AITHD_1 0x620
ksnjth 0:32e7a5fadacc 371 #define ADDR_BITHD_1 0x621
ksnjth 0:32e7a5fadacc 372 #define ADDR_CITHD_1 0x622
ksnjth 0:32e7a5fadacc 373 #define ADDR_AFWATT_1 0x623
ksnjth 0:32e7a5fadacc 374 #define ADDR_BFWATT_1 0x624
ksnjth 0:32e7a5fadacc 375 #define ADDR_CFWATT_1 0x625
ksnjth 0:32e7a5fadacc 376 #define ADDR_AFVA_1 0x626
ksnjth 0:32e7a5fadacc 377 #define ADDR_BFVA_1 0x627
ksnjth 0:32e7a5fadacc 378 #define ADDR_CFVA_1 0x628
ksnjth 0:32e7a5fadacc 379 #define ADDR_AFIRMS_1 0x629
ksnjth 0:32e7a5fadacc 380 #define ADDR_BFIRMS_1 0x62A
ksnjth 0:32e7a5fadacc 381 #define ADDR_CFIRMS_1 0x62B
ksnjth 0:32e7a5fadacc 382 #define ADDR_AFVRMS_1 0x62C
ksnjth 0:32e7a5fadacc 383 #define ADDR_BFVRMS_1 0x62D
ksnjth 0:32e7a5fadacc 384 #define ADDR_CFVRMS_1 0x62E
ksnjth 0:32e7a5fadacc 385 #define ADDR_AIRMSONE_1 0x62F
ksnjth 0:32e7a5fadacc 386 #define ADDR_BIRMSONE_1 0x630
ksnjth 0:32e7a5fadacc 387 #define ADDR_CIRMSONE_1 0x631
ksnjth 0:32e7a5fadacc 388 #define ADDR_AVRMSONE_1 0x632
ksnjth 0:32e7a5fadacc 389 #define ADDR_BVRMSONE_1 0x633
ksnjth 0:32e7a5fadacc 390 #define ADDR_CVRMSONE_1 0x634
ksnjth 0:32e7a5fadacc 391 #define ADDR_NIRMSONE_1 0x635
ksnjth 0:32e7a5fadacc 392 #define ADDR_AIRMS1012_1 0x636
ksnjth 0:32e7a5fadacc 393 #define ADDR_BIRMS1012_1 0x637
ksnjth 0:32e7a5fadacc 394 #define ADDR_CIRMS1012_1 0x638
ksnjth 0:32e7a5fadacc 395 #define ADDR_AVRMS1012_1 0x639
ksnjth 0:32e7a5fadacc 396 #define ADDR_BVRMS1012_1 0x63A
ksnjth 0:32e7a5fadacc 397 #define ADDR_CVRMS1012_1 0x63B
ksnjth 0:32e7a5fadacc 398 #define ADDR_NIRMS1012_1 0x63C
ksnjth 0:32e7a5fadacc 399 #define ADDR_AV_PCF_2 0x680
ksnjth 0:32e7a5fadacc 400 #define ADDR_AI_PCF_2 0x681
ksnjth 0:32e7a5fadacc 401 #define ADDR_AIRMS_2 0x682
ksnjth 0:32e7a5fadacc 402 #define ADDR_AVRMS_2 0x683
ksnjth 0:32e7a5fadacc 403 #define ADDR_AWATT_2 0x684
ksnjth 0:32e7a5fadacc 404 #define ADDR_AVA_2 0x685
ksnjth 0:32e7a5fadacc 405 #define ADDR_AVAR_2 0x686
ksnjth 0:32e7a5fadacc 406 #define ADDR_AFVAR_2 0x687
ksnjth 0:32e7a5fadacc 407 #define ADDR_APF_2 0x688
ksnjth 0:32e7a5fadacc 408 #define ADDR_AVTHD_2 0x689
ksnjth 0:32e7a5fadacc 409 #define ADDR_AITHD_2 0x68A
ksnjth 0:32e7a5fadacc 410 #define ADDR_AFWATT_2 0x68B
ksnjth 0:32e7a5fadacc 411 #define ADDR_AFVA_2 0x68C
ksnjth 0:32e7a5fadacc 412 #define ADDR_AFIRMS_2 0x68D
ksnjth 0:32e7a5fadacc 413 #define ADDR_AFVRMS_2 0x68E
ksnjth 0:32e7a5fadacc 414 #define ADDR_AIRMSONE_2 0x68F
ksnjth 0:32e7a5fadacc 415 #define ADDR_AVRMSONE_2 0x690
ksnjth 0:32e7a5fadacc 416 #define ADDR_AIRMS1012_2 0x691
ksnjth 0:32e7a5fadacc 417 #define ADDR_AVRMS1012_2 0x692
ksnjth 0:32e7a5fadacc 418 #define ADDR_BV_PCF_2 0x693
ksnjth 0:32e7a5fadacc 419 #define ADDR_BI_PCF_2 0x694
ksnjth 0:32e7a5fadacc 420 #define ADDR_BIRMS_2 0x695
ksnjth 0:32e7a5fadacc 421 #define ADDR_BVRMS_2 0x696
ksnjth 0:32e7a5fadacc 422 #define ADDR_BWATT_2 0x697
ksnjth 0:32e7a5fadacc 423 #define ADDR_BVA_2 0x698
ksnjth 0:32e7a5fadacc 424 #define ADDR_BVAR_2 0x699
ksnjth 0:32e7a5fadacc 425 #define ADDR_BFVAR_2 0x69A
ksnjth 0:32e7a5fadacc 426 #define ADDR_BPF_2 0x69B
ksnjth 0:32e7a5fadacc 427 #define ADDR_BVTHD_2 0x69C
ksnjth 0:32e7a5fadacc 428 #define ADDR_BITHD_2 0x69D
ksnjth 0:32e7a5fadacc 429 #define ADDR_BFWATT_2 0x69E
ksnjth 0:32e7a5fadacc 430 #define ADDR_BFVA_2 0x69F
ksnjth 0:32e7a5fadacc 431 #define ADDR_BFIRMS_2 0x6A0
ksnjth 0:32e7a5fadacc 432 #define ADDR_BFVRMS_2 0x6A1
ksnjth 0:32e7a5fadacc 433 #define ADDR_BIRMSONE_2 0x6A2
ksnjth 0:32e7a5fadacc 434 #define ADDR_BVRMSONE_2 0x6A3
ksnjth 0:32e7a5fadacc 435 #define ADDR_BIRMS1012_2 0x6A4
ksnjth 0:32e7a5fadacc 436 #define ADDR_BVRMS1012_2 0x6A5
ksnjth 0:32e7a5fadacc 437 #define ADDR_CV_PCF_2 0x6A6
ksnjth 0:32e7a5fadacc 438 #define ADDR_CI_PCF_2 0x6A7
ksnjth 0:32e7a5fadacc 439 #define ADDR_CIRMS_2 0x6A8
ksnjth 0:32e7a5fadacc 440 #define ADDR_CVRMS_2 0x6A9
ksnjth 0:32e7a5fadacc 441 #define ADDR_CWATT_2 0x6AA
ksnjth 0:32e7a5fadacc 442 #define ADDR_CVA_2 0x6AB
ksnjth 0:32e7a5fadacc 443 #define ADDR_CVAR_2 0x6AC
ksnjth 0:32e7a5fadacc 444 #define ADDR_CFVAR_2 0x6AD
ksnjth 0:32e7a5fadacc 445 #define ADDR_CPF_2 0x6AE
ksnjth 0:32e7a5fadacc 446 #define ADDR_CVTHD_2 0x6AF
ksnjth 0:32e7a5fadacc 447 #define ADDR_CITHD_2 0x6B0
ksnjth 0:32e7a5fadacc 448 #define ADDR_CFWATT_2 0x6B1
ksnjth 0:32e7a5fadacc 449 #define ADDR_CFVA_2 0x6B2
ksnjth 0:32e7a5fadacc 450 #define ADDR_CFIRMS_2 0x6B3
ksnjth 0:32e7a5fadacc 451 #define ADDR_CFVRMS_2 0x6B4
ksnjth 0:32e7a5fadacc 452 #define ADDR_CIRMSONE_2 0x6B5
ksnjth 0:32e7a5fadacc 453 #define ADDR_CVRMSONE_2 0x6B6
ksnjth 0:32e7a5fadacc 454 #define ADDR_CIRMS1012_2 0x6B7
ksnjth 0:32e7a5fadacc 455 #define ADDR_CVRMS1012_2 0x6B8
ksnjth 0:32e7a5fadacc 456 #define ADDR_NI_PCF_2 0x6B9
ksnjth 0:32e7a5fadacc 457 #define ADDR_NIRMS_2 0x6BA
ksnjth 0:32e7a5fadacc 458 #define ADDR_NIRMSONE_2 0x6BB
ksnjth 0:32e7a5fadacc 459 #define ADDR_NIRMS1012_2 0x6BC
ksnjth 0:32e7a5fadacc 460
ksnjth 0:32e7a5fadacc 461
ksnjth 0:32e7a5fadacc 462 #define DATA_AIGAIN 0x000
ksnjth 0:32e7a5fadacc 463 #define DATA_AIGAIN0 0x000
ksnjth 0:32e7a5fadacc 464 #define DATA_AIGAIN1 0x000
ksnjth 0:32e7a5fadacc 465 #define DATA_AIGAIN2 0x000
ksnjth 0:32e7a5fadacc 466 #define DATA_AIGAIN3 0x000
ksnjth 0:32e7a5fadacc 467 #define DATA_AIGAIN4 0x000
ksnjth 0:32e7a5fadacc 468 #define DATA_APHCAL0 0x000
ksnjth 0:32e7a5fadacc 469 #define DATA_APHCAL1 0x000
ksnjth 0:32e7a5fadacc 470 #define DATA_APHCAL2 0x000
ksnjth 0:32e7a5fadacc 471 #define DATA_APHCAL3 0x000
ksnjth 0:32e7a5fadacc 472 #define DATA_APHCAL4 0x000
ksnjth 0:32e7a5fadacc 473 #define DATA_AVGAIN 0x000
ksnjth 0:32e7a5fadacc 474 #define DATA_AIRMSOS 0x000
ksnjth 0:32e7a5fadacc 475 #define DATA_AVRMSOS 0x000
ksnjth 0:32e7a5fadacc 476 #define DATA_APGAIN 0x000
ksnjth 0:32e7a5fadacc 477 #define DATA_AWATTOS 0x000
ksnjth 0:32e7a5fadacc 478 #define DATA_AVAROS 0x000
ksnjth 0:32e7a5fadacc 479 #define DATA_AFWATTOS 0x000
ksnjth 0:32e7a5fadacc 480 #define DATA_AFVAROS 0x000
ksnjth 0:32e7a5fadacc 481 #define DATA_AIFRMSOS 0x000
ksnjth 0:32e7a5fadacc 482 #define DATA_AVFRMSOS 0x000
ksnjth 0:32e7a5fadacc 483 #define DATA_AVRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 484 #define DATA_AIRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 485 #define DATA_AVRMS1012OS 0x000
ksnjth 0:32e7a5fadacc 486 #define DATA_AIRMS1012OS 0x000
ksnjth 0:32e7a5fadacc 487 #define DATA_BIGAIN 0x000
ksnjth 0:32e7a5fadacc 488 #define DATA_BIGAIN0 0x000
ksnjth 0:32e7a5fadacc 489 #define DATA_BIGAIN1 0x000
ksnjth 0:32e7a5fadacc 490 #define DATA_BIGAIN2 0x000
ksnjth 0:32e7a5fadacc 491 #define DATA_BIGAIN3 0x000
ksnjth 0:32e7a5fadacc 492 #define DATA_BIGAIN4 0x000
ksnjth 0:32e7a5fadacc 493 #define DATA_BPHCAL0 0x000
ksnjth 0:32e7a5fadacc 494 #define DATA_BPHCAL1 0x000
ksnjth 0:32e7a5fadacc 495 #define DATA_BPHCAL2 0x000
ksnjth 0:32e7a5fadacc 496 #define DATA_BPHCAL3 0x000
ksnjth 0:32e7a5fadacc 497 #define DATA_BPHCAL4 0x000
ksnjth 0:32e7a5fadacc 498 #define DATA_BVGAIN 0x000
ksnjth 0:32e7a5fadacc 499 #define DATA_BIRMSOS 0x000
ksnjth 0:32e7a5fadacc 500 #define DATA_BVRMSOS 0x000
ksnjth 0:32e7a5fadacc 501 #define DATA_BPGAIN 0x000
ksnjth 0:32e7a5fadacc 502 #define DATA_BWATTOS 0x000
ksnjth 0:32e7a5fadacc 503 #define DATA_BVAROS 0x000
ksnjth 0:32e7a5fadacc 504 #define DATA_BFWATTOS 0x000
ksnjth 0:32e7a5fadacc 505 #define DATA_BFVAROS 0x000
ksnjth 0:32e7a5fadacc 506 #define DATA_BIFRMSOS 0x000
ksnjth 0:32e7a5fadacc 507 #define DATA_BVFRMSOS 0x000
ksnjth 0:32e7a5fadacc 508 #define DATA_BVRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 509 #define DATA_BIRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 510 #define DATA_BVRMS1012OS 0x000
ksnjth 0:32e7a5fadacc 511 #define DATA_BIRMS1012OS 0x038
ksnjth 0:32e7a5fadacc 512 #define DATA_CIGAIN 0x000
ksnjth 0:32e7a5fadacc 513 #define DATA_CIGAIN0 0x000
ksnjth 0:32e7a5fadacc 514 #define DATA_CIGAIN1 0x000
ksnjth 0:32e7a5fadacc 515 #define DATA_CIGAIN2 0x000
ksnjth 0:32e7a5fadacc 516 #define DATA_CIGAIN3 0x000
ksnjth 0:32e7a5fadacc 517 #define DATA_CIGAIN4 0x000
ksnjth 0:32e7a5fadacc 518 #define DATA_CPHCAL0 0x000
ksnjth 0:32e7a5fadacc 519 #define DATA_CPHCAL1 0x000
ksnjth 0:32e7a5fadacc 520 #define DATA_CPHCAL2 0x000
ksnjth 0:32e7a5fadacc 521 #define DATA_CPHCAL3 0x000
ksnjth 0:32e7a5fadacc 522 #define DATA_CPHCAL4 0x000
ksnjth 0:32e7a5fadacc 523 #define DATA_CVGAIN 0x000
ksnjth 0:32e7a5fadacc 524 #define DATA_CIRMSOS 0x000
ksnjth 0:32e7a5fadacc 525 #define DATA_CVRMSOS 0x000
ksnjth 0:32e7a5fadacc 526 #define DATA_CPGAIN 0x000
ksnjth 0:32e7a5fadacc 527 #define DATA_CWATTOS 0x000
ksnjth 0:32e7a5fadacc 528 #define DATA_CVAROS 0x000
ksnjth 0:32e7a5fadacc 529 #define DATA_CFWATTOS 0x000
ksnjth 0:32e7a5fadacc 530 #define DATA_CFVAROS 0x000
ksnjth 0:32e7a5fadacc 531 #define DATA_CIFRMSOS 0x000
ksnjth 0:32e7a5fadacc 532 #define DATA_CVFRMSOS 0x000
ksnjth 0:32e7a5fadacc 533 #define DATA_CVRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 534 #define DATA_CIRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 535 #define DATA_CVRMS1012OS 0x000
ksnjth 0:32e7a5fadacc 536 #define DATA_CIRMS1012OS 0x000
ksnjth 0:32e7a5fadacc 537 #define DATA_CONFIG0 0x000
ksnjth 0:32e7a5fadacc 538 #define DATA_MTTHR_L0 0x000
ksnjth 0:32e7a5fadacc 539 #define DATA_MTTHR_L1 0x000
ksnjth 0:32e7a5fadacc 540 #define DATA_MTTHR_L2 0x000
ksnjth 0:32e7a5fadacc 541 #define DATA_MTTHR_L3 0x000
ksnjth 0:32e7a5fadacc 542 #define DATA_MTTHR_L4 0x000
ksnjth 0:32e7a5fadacc 543 #define DATA_MTTHR_H0 0x000
ksnjth 0:32e7a5fadacc 544 #define DATA_MTTHR_H1 0x000
ksnjth 0:32e7a5fadacc 545 #define DATA_MTTHR_H2 0x000
ksnjth 0:32e7a5fadacc 546 #define DATA_MTTHR_H3 0x000
ksnjth 0:32e7a5fadacc 547 #define DATA_MTTHR_H4 0x000
ksnjth 0:32e7a5fadacc 548 #define DATA_NIRMSOS 0x000
ksnjth 0:32e7a5fadacc 549 #define DATA_ISUMRMSOS 0x000
ksnjth 0:32e7a5fadacc 550 #define DATA_NIGAIN 0x000
ksnjth 0:32e7a5fadacc 551 #define DATA_NPHCAL 0x000
ksnjth 0:32e7a5fadacc 552 #define DATA_NIRMSONEOS 0x000
ksnjth 0:32e7a5fadacc 553 #define DATA_NIRMS1012OS 0x000
ksnjth 0:32e7a5fadacc 554 #define DATA_VNOM 0x000
ksnjth 0:32e7a5fadacc 555 #define DATA_DICOEFF 0x000
ksnjth 0:32e7a5fadacc 556 #define DATA_ISUMLVL 0x000
ksnjth 0:32e7a5fadacc 557
ksnjth 0:32e7a5fadacc 558 #define DATA_STATUS0 0x0
ksnjth 0:32e7a5fadacc 559 #define DATA_STATUS1 0x0
ksnjth 0:32e7a5fadacc 560 #define DATA_MASK0 0x0
ksnjth 0:32e7a5fadacc 561 #define DATA_MASK1 0x0
ksnjth 0:32e7a5fadacc 562 #define DATA_EVENT_MASK 0x0
ksnjth 0:32e7a5fadacc 563 #define DATA_OILVL 0x0
ksnjth 0:32e7a5fadacc 564 #define DATA_USER_PERIOD 0x500000
ksnjth 0:32e7a5fadacc 565 #define DATA_VLEVEL 0x45D45
ksnjth 0:32e7a5fadacc 566 #define DATA_DIP_LVL 0x00FFFFFF
ksnjth 0:32e7a5fadacc 567 #define DATA_SWELL_LVL 0x0
ksnjth 0:32e7a5fadacc 568 #define DATA_ACT_NL_LVL 0x0
ksnjth 0:32e7a5fadacc 569 #define DATA_REACT_NL_LVL 0x0
ksnjth 0:32e7a5fadacc 570 #define DATA_APP_NL_LVL 0x0
ksnjth 0:32e7a5fadacc 571 #define DATA_WTHR 0x100000
ksnjth 0:32e7a5fadacc 572 #define DATA_VARTHR 0x100000
ksnjth 0:32e7a5fadacc 573 #define DATA_VATHR 0x100000
ksnjth 0:32e7a5fadacc 574 #define DATA_BSDIN_CFG 0x1FFFFF
ksnjth 0:32e7a5fadacc 575 #define DATA_CF_LCFG 0x0
ksnjth 0:32e7a5fadacc 576
ksnjth 0:32e7a5fadacc 577
ksnjth 0:32e7a5fadacc 578 #define DATA_RUN 0x0
ksnjth 0:32e7a5fadacc 579 #define DATA_CONFIG1 0x0
ksnjth 0:32e7a5fadacc 580 #define DATA_DIP_CYC 0xFFFF
ksnjth 0:32e7a5fadacc 581 #define DATA_SWELL_CYC 0xFFFF
ksnjth 0:32e7a5fadacc 582 #define DATA_CFMODE 0x8
ksnjth 0:32e7a5fadacc 583 #define DATA_COMPMODE 0x0FFF
ksnjth 0:32e7a5fadacc 584 #define DATA_ACCMODE 0x0
ksnjth 0:32e7a5fadacc 585 #define DATA_MMODE 0x0
ksnjth 0:32e7a5fadacc 586 #define DATA_CF1DEN 0x0F3E
ksnjth 0:32e7a5fadacc 587 #define DATA_CF2DEN 0x0F3E
ksnjth 0:32e7a5fadacc 588 #define DATA_CF3DEN 0x0F3E
ksnjth 0:32e7a5fadacc 589 #define DATA_CF4DEN 0x0F3E
ksnjth 0:32e7a5fadacc 590 #define DATA_ZXTOUT 0xFFFF
ksnjth 0:32e7a5fadacc 591 #define DATA_ZXTHRSH 0x9
ksnjth 0:32e7a5fadacc 592 #define DATA_ZX_CFG 0x1E
ksnjth 0:32e7a5fadacc 593 #define DATA_SEQ_CYC 0x00FF
ksnjth 0:32e7a5fadacc 594 #define DATA_WFB_CFG 0x0
ksnjth 0:32e7a5fadacc 595 #define DATA_WFB_PG_IRQEN 0x0
ksnjth 0:32e7a5fadacc 596 #define DATA_WFB_TRG_CFG 0x0
ksnjth 0:32e7a5fadacc 597 #define DATA_CONFIG2 0x0C00
ksnjth 0:32e7a5fadacc 598 #define DATA_EP_CFG 0x0
ksnjth 0:32e7a5fadacc 599 #define DATA_PWR_TIME 0x001
ksnjth 0:32e7a5fadacc 600 #define DATA_EGY_TIME 0x001
ksnjth 0:32e7a5fadacc 601 #define DATA_CONFIG4 0x0
ksnjth 0:32e7a5fadacc 602 #define DATA_CONFIG_STC_CRC 0x0
ksnjth 0:32e7a5fadacc 603 #define DATA_CONFIG_TSENS 0x0
ksnjth 0:32e7a5fadacc 604 #define DATA_CONFIG_3V3 0x001F
ksnjth 0:32e7a5fadacc 605 #define DATA_PGA_GAIN 0x0
ksnjth 0:32e7a5fadacc 606 #define DATA_CHNL_DIS 0x0
ksnjth 0:32e7a5fadacc 607 #define DATA_WR_LOCK 0x0
ksnjth 0:32e7a5fadacc 608
ksnjth 0:32e7a5fadacc 609 #define Register_32 0x04
ksnjth 0:32e7a5fadacc 610 #define Register_16 0x02
ksnjth 0:32e7a5fadacc 611
ksnjth 0:32e7a5fadacc 612 typedef union{
ksnjth 0:32e7a5fadacc 613 uint8_t uc_Register[4];
ksnjth 0:32e7a5fadacc 614 uint16_t us_Register[2];
ksnjth 0:32e7a5fadacc 615 uint32_t ul_Register;
ksnjth 0:32e7a5fadacc 616 }ADE_REGISTER_UNION;
ksnjth 0:32e7a5fadacc 617
ksnjth 0:32e7a5fadacc 618 typedef union{
ksnjth 0:32e7a5fadacc 619 uint8_t uc_Address[2];
ksnjth 0:32e7a5fadacc 620 uint16_t us_Address;
ksnjth 0:32e7a5fadacc 621 }ADE_ADDRESS_UNION;
ksnjth 0:32e7a5fadacc 622
ksnjth 0:32e7a5fadacc 623 typedef union{
ksnjth 0:32e7a5fadacc 624 uint8_t uc_Data[8];
ksnjth 0:32e7a5fadacc 625 uint64_t ull_Data;
ksnjth 0:32e7a5fadacc 626 }ADE_Energy_UNION;
ksnjth 0:32e7a5fadacc 627
ksnjth 0:32e7a5fadacc 628
ksnjth 0:32e7a5fadacc 629