Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
configuration_constants_LTC2986.h
Go to the documentation of this file.
1
/*!
2
LTC2986: Multi-Sensor High Accuracy Digital Temperature Measurement System.
3
@verbatim
4
5
configuration_constants_LTC2986.h:
6
The configuration constants used to configure the LTC2986.
7
@endverbatim
8
9
http://www.linear.com/product/LTC2986
10
11
http://www.linear.com/product/LTC2986#demoboards
12
13
14
Copyright 2018(c) Analog Devices, Inc.
15
16
All rights reserved.
17
18
Redistribution and use in source and binary forms, with or without
19
modification, are permitted provided that the following conditions are met:
20
- Redistributions of source code must retain the above copyright
21
notice, this list of conditions and the following disclaimer.
22
- Redistributions in binary form must reproduce the above copyright
23
notice, this list of conditions and the following disclaimer in
24
the documentation and/or other materials provided with the
25
distribution.
26
- Neither the name of Analog Devices, Inc. nor the names of its
27
contributors may be used to endorse or promote products derived
28
from this software without specific prior written permission.
29
- The use of this software may or may not infringe the patent rights
30
of one or more patent holders. This license does not release you
31
from the requirement that you obtain separate licenses from these
32
patent holders to use this software.
33
- Use of the software either in source or binary form, must be run
34
on or directly connected to an Analog Devices Inc. component.
35
36
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
37
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
38
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39
IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
40
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41
LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
42
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
43
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46
*/
47
48
49
50
/*! @file
51
@ingroup LTC2986
52
Header for LTC2986: Multi-Sensor High Accuracy Digital Temperature Measurement System
53
*/
54
55
56
//**********************************************************************************************************
57
// -- SENSOR TYPES --
58
//**********************************************************************************************************
59
#define SENSOR_TYPE_LSB 27
60
// RTD
61
#define SENSOR_TYPE__RTD_PT_10 (uint32_t) 0xA << SENSOR_TYPE_LSB
62
#define SENSOR_TYPE__RTD_PT_50 (uint32_t) 0xB << SENSOR_TYPE_LSB
63
#define SENSOR_TYPE__RTD_PT_100 (uint32_t) 0xC << SENSOR_TYPE_LSB
64
#define SENSOR_TYPE__RTD_PT_200 (uint32_t) 0xD << SENSOR_TYPE_LSB
65
#define SENSOR_TYPE__RTD_PT_500 (uint32_t) 0xE << SENSOR_TYPE_LSB
66
#define SENSOR_TYPE__RTD_PT_1000 (uint32_t) 0xF << SENSOR_TYPE_LSB
67
#define SENSOR_TYPE__RTD_PT_1000_375 (uint32_t) 0x10 << SENSOR_TYPE_LSB
68
#define SENSOR_TYPE__RTD_NI_120 (uint32_t) 0x11 << SENSOR_TYPE_LSB
69
#define SENSOR_TYPE__RTD_CUSTOM (uint32_t) 0x12 << SENSOR_TYPE_LSB
70
// Sense Resistor
71
#define SENSOR_TYPE__SENSE_RESISTOR (uint32_t) 0x1D << SENSOR_TYPE_LSB
72
// -
73
#define SENSOR_TYPE__NONE (uint32_t) 0x0 << SENSOR_TYPE_LSB
74
#define SENSOR_TYPE__ACTIVE_ANALOG (uint32_t) 0x1F << SENSOR_TYPE_LSB
75
// Direct ADC
76
#define SENSOR_TYPE__DIRECT_ADC (uint32_t) 0x1E << SENSOR_TYPE_LSB
77
// Thermistor
78
#define SENSOR_TYPE__THERMISTOR_44004_2P252K_25C (uint32_t) 0x13 << SENSOR_TYPE_LSB
79
#define SENSOR_TYPE__THERMISTOR_44005_3K_25C (uint32_t) 0x14 << SENSOR_TYPE_LSB
80
#define SENSOR_TYPE__THERMISTOR_44007_5K_25C (uint32_t) 0x15 << SENSOR_TYPE_LSB
81
#define SENSOR_TYPE__THERMISTOR_44006_10K_25C (uint32_t) 0x16 << SENSOR_TYPE_LSB
82
#define SENSOR_TYPE__THERMISTOR_44008_30K_25C (uint32_t) 0x17 << SENSOR_TYPE_LSB
83
#define SENSOR_TYPE__THERMISTOR_YSI_400_2P252K_25C (uint32_t) 0x18 << SENSOR_TYPE_LSB
84
#define SENSOR_TYPE__THERMISTOR_1003K_1K_25C (uint32_t) 0x19 << SENSOR_TYPE_LSB
85
#define SENSOR_TYPE__THERMISTOR_CUSTOM_STEINHART_HART (uint32_t) 0x1A << SENSOR_TYPE_LSB
86
#define SENSOR_TYPE__THERMISTOR_CUSTOM_TABLE (uint32_t) 0x1B << SENSOR_TYPE_LSB
87
// Thermocouple
88
#define SENSOR_TYPE__TYPE_J_THERMOCOUPLE (uint32_t) 0x1 << SENSOR_TYPE_LSB
89
#define SENSOR_TYPE__TYPE_K_THERMOCOUPLE (uint32_t) 0x2 << SENSOR_TYPE_LSB
90
#define SENSOR_TYPE__TYPE_E_THERMOCOUPLE (uint32_t) 0x3 << SENSOR_TYPE_LSB
91
#define SENSOR_TYPE__TYPE_N_THERMOCOUPLE (uint32_t) 0x4 << SENSOR_TYPE_LSB
92
#define SENSOR_TYPE__TYPE_R_THERMOCOUPLE (uint32_t) 0x5 << SENSOR_TYPE_LSB
93
#define SENSOR_TYPE__TYPE_S_THERMOCOUPLE (uint32_t) 0x6 << SENSOR_TYPE_LSB
94
#define SENSOR_TYPE__TYPE_T_THERMOCOUPLE (uint32_t) 0x7 << SENSOR_TYPE_LSB
95
#define SENSOR_TYPE__TYPE_B_THERMOCOUPLE (uint32_t) 0x8 << SENSOR_TYPE_LSB
96
#define SENSOR_TYPE__CUSTOM_THERMOCOUPLE (uint32_t) 0x9 << SENSOR_TYPE_LSB
97
// Off-Chip Diode
98
#define SENSOR_TYPE__OFF_CHIP_DIODE (uint32_t) 0x1C << SENSOR_TYPE_LSB
99
//**********************************************************************************************************
100
// -- RTD --
101
//**********************************************************************************************************
102
// rtd - rsense channel
103
#define RTD_RSENSE_CHANNEL_LSB 22
104
#define RTD_RSENSE_CHANNEL__NONE (uint32_t) 0x0 << RTD_RSENSE_CHANNEL_LSB
105
#define RTD_RSENSE_CHANNEL__1 (uint32_t) 0x1 << RTD_RSENSE_CHANNEL_LSB
106
#define RTD_RSENSE_CHANNEL__2 (uint32_t) 0x2 << RTD_RSENSE_CHANNEL_LSB
107
#define RTD_RSENSE_CHANNEL__3 (uint32_t) 0x3 << RTD_RSENSE_CHANNEL_LSB
108
#define RTD_RSENSE_CHANNEL__4 (uint32_t) 0x4 << RTD_RSENSE_CHANNEL_LSB
109
#define RTD_RSENSE_CHANNEL__5 (uint32_t) 0x5 << RTD_RSENSE_CHANNEL_LSB
110
#define RTD_RSENSE_CHANNEL__6 (uint32_t) 0x6 << RTD_RSENSE_CHANNEL_LSB
111
#define RTD_RSENSE_CHANNEL__7 (uint32_t) 0x7 << RTD_RSENSE_CHANNEL_LSB
112
#define RTD_RSENSE_CHANNEL__8 (uint32_t) 0x8 << RTD_RSENSE_CHANNEL_LSB
113
#define RTD_RSENSE_CHANNEL__9 (uint32_t) 0x9 << RTD_RSENSE_CHANNEL_LSB
114
#define RTD_RSENSE_CHANNEL__10 (uint32_t) 0xA << RTD_RSENSE_CHANNEL_LSB
115
// rtd - num wires
116
#define RTD_NUM_WIRES_LSB 20
117
#define RTD_NUM_WIRES__2_WIRE (uint32_t) 0x0 << RTD_NUM_WIRES_LSB
118
#define RTD_NUM_WIRES__3_WIRE (uint32_t) 0x1 << RTD_NUM_WIRES_LSB
119
#define RTD_NUM_WIRES__4_WIRE (uint32_t) 0x2 << RTD_NUM_WIRES_LSB
120
#define RTD_NUM_WIRES__4_WIRE_KELVIN_RSENSE (uint32_t) 0x3 << RTD_NUM_WIRES_LSB
121
// rtd - excitation mode
122
#define RTD_EXCITATION_MODE_LSB 18
123
#define RTD_EXCITATION_MODE__NO_ROTATION_NO_SHARING (uint32_t) 0x0 << RTD_EXCITATION_MODE_LSB
124
#define RTD_EXCITATION_MODE__NO_ROTATION_SHARING (uint32_t) 0x1 << RTD_EXCITATION_MODE_LSB
125
#define RTD_EXCITATION_MODE__ROTATION_SHARING (uint32_t) 0x2 << RTD_EXCITATION_MODE_LSB
126
// rtd - excitation current
127
#define RTD_EXCITATION_CURRENT_LSB 14
128
#define RTD_EXCITATION_CURRENT__EXTERNAL (uint32_t) 0x0 << RTD_EXCITATION_CURRENT_LSB
129
#define RTD_EXCITATION_CURRENT__5UA (uint32_t) 0x1 << RTD_EXCITATION_CURRENT_LSB
130
#define RTD_EXCITATION_CURRENT__10UA (uint32_t) 0x2 << RTD_EXCITATION_CURRENT_LSB
131
#define RTD_EXCITATION_CURRENT__25UA (uint32_t) 0x3 << RTD_EXCITATION_CURRENT_LSB
132
#define RTD_EXCITATION_CURRENT__50UA (uint32_t) 0x4 << RTD_EXCITATION_CURRENT_LSB
133
#define RTD_EXCITATION_CURRENT__100UA (uint32_t) 0x5 << RTD_EXCITATION_CURRENT_LSB
134
#define RTD_EXCITATION_CURRENT__250UA (uint32_t) 0x6 << RTD_EXCITATION_CURRENT_LSB
135
#define RTD_EXCITATION_CURRENT__500UA (uint32_t) 0x7 << RTD_EXCITATION_CURRENT_LSB
136
#define RTD_EXCITATION_CURRENT__1MA (uint32_t) 0x8 << RTD_EXCITATION_CURRENT_LSB
137
// rtd - standard
138
#define RTD_STANDARD_LSB 12
139
#define RTD_STANDARD__EUROPEAN (uint32_t) 0x0 << RTD_STANDARD_LSB
140
#define RTD_STANDARD__AMERICAN (uint32_t) 0x1 << RTD_STANDARD_LSB
141
#define RTD_STANDARD__JAPANESE (uint32_t) 0x2 << RTD_STANDARD_LSB
142
#define RTD_STANDARD__ITS_90 (uint32_t) 0x3 << RTD_STANDARD_LSB
143
// rtd - custom address
144
#define RTD_CUSTOM_ADDRESS_LSB 6
145
// rtd - custom length-1
146
#define RTD_CUSTOM_LENGTH_1_LSB 0
147
// rtd - custom values
148
#define RTD_CUSTOM_VALUES_LSB 31
149
//**********************************************************************************************************
150
// -- Sense Resistor --
151
//**********************************************************************************************************
152
// sense resistor - value
153
#define SENSE_RESISTOR_VALUE_LSB 0
154
//**********************************************************************************************************
155
// -- - --
156
//**********************************************************************************************************
157
// active analog - differential?
158
#define ACTIVE_ANALOG_DIFFERENTIAL_LSB 26
159
#define ACTIVE_ANALOG_DIFFERENTIAL (uint32_t) 0x0 << ACTIVE_ANALOG_DIFFERENTIAL_LSB
160
#define ACTIVE_ANALOG_SINGLE_ENDED (uint32_t) 0x1 << ACTIVE_ANALOG_DIFFERENTIAL_LSB
161
// active analog - custom address
162
#define ACTIVE_ANALOG_CUSTOM_ADDRESS_LSB 6
163
// active analog - custom length-1
164
#define ACTIVE_ANALOG_CUSTOM_LENGTH_1_LSB 0
165
// active analog - custom values
166
#define ACTIVE_ANALOG_CUSTOM_VALUES_LSB 31
167
//**********************************************************************************************************
168
// -- Direct ADC --
169
//**********************************************************************************************************
170
// Direct ADC - differential?
171
#define DIRECT_ADC_DIFFERENTIAL_LSB 26
172
#define DIRECT_ADC_DIFFERENTIAL (uint32_t) 0x0 << DIRECT_ADC_DIFFERENTIAL_LSB
173
#define DIRECT_ADC_SINGLE_ENDED (uint32_t) 0x1 << DIRECT_ADC_DIFFERENTIAL_LSB
174
// Direct ADC - custom?
175
#define DIRECT_ADC_CUSTOM_LSB 25
176
#define DIRECT_ADC_CUSTOM__NO (uint32_t) 0x0 << DIRECT_ADC_CUSTOM_LSB
177
#define DIRECT_ADC_CUSTOM__YES (uint32_t) 0x1 << DIRECT_ADC_CUSTOM_LSB
178
// Direct ADC - custom address
179
#define DIRECT_ADC_CUSTOM_ADDRESS_LSB 6
180
// Direct ADC - custom length-1
181
#define DIRECT_ADC_CUSTOM_LENGTH_1_LSB 0
182
// Direct ADC - custom values
183
#define DIRECT_ADC_CUSTOM_VALUES_LSB 31
184
//**********************************************************************************************************
185
// -- Thermistor --
186
//**********************************************************************************************************
187
// thermistor - rsense channel
188
#define THERMISTOR_RSENSE_CHANNEL_LSB 22
189
#define THERMISTOR_RSENSE_CHANNEL__NONE (uint32_t) 0x0 << THERMISTOR_RSENSE_CHANNEL_LSB
190
#define THERMISTOR_RSENSE_CHANNEL__1 (uint32_t) 0x1 << THERMISTOR_RSENSE_CHANNEL_LSB
191
#define THERMISTOR_RSENSE_CHANNEL__2 (uint32_t) 0x2 << THERMISTOR_RSENSE_CHANNEL_LSB
192
#define THERMISTOR_RSENSE_CHANNEL__3 (uint32_t) 0x3 << THERMISTOR_RSENSE_CHANNEL_LSB
193
#define THERMISTOR_RSENSE_CHANNEL__4 (uint32_t) 0x4 << THERMISTOR_RSENSE_CHANNEL_LSB
194
#define THERMISTOR_RSENSE_CHANNEL__5 (uint32_t) 0x5 << THERMISTOR_RSENSE_CHANNEL_LSB
195
#define THERMISTOR_RSENSE_CHANNEL__6 (uint32_t) 0x6 << THERMISTOR_RSENSE_CHANNEL_LSB
196
#define THERMISTOR_RSENSE_CHANNEL__7 (uint32_t) 0x7 << THERMISTOR_RSENSE_CHANNEL_LSB
197
#define THERMISTOR_RSENSE_CHANNEL__8 (uint32_t) 0x8 << THERMISTOR_RSENSE_CHANNEL_LSB
198
#define THERMISTOR_RSENSE_CHANNEL__9 (uint32_t) 0x9 << THERMISTOR_RSENSE_CHANNEL_LSB
199
#define THERMISTOR_RSENSE_CHANNEL__10 (uint32_t) 0xA << THERMISTOR_RSENSE_CHANNEL_LSB
200
// thermistor - differential?
201
#define THERMISTOR_DIFFERENTIAL_LSB 21
202
#define THERMISTOR_DIFFERENTIAL (uint32_t) 0x0 << THERMISTOR_DIFFERENTIAL_LSB
203
#define THERMISTOR_SINGLE_ENDED (uint32_t) 0x1 << THERMISTOR_DIFFERENTIAL_LSB
204
// thermistor - excitation mode
205
#define THERMISTOR_EXCITATION_MODE_LSB 19
206
#define THERMISTOR_EXCITATION_MODE__NO_SHARING_NO_ROTATION (uint32_t) 0x0 << THERMISTOR_EXCITATION_MODE_LSB
207
#define THERMISTOR_EXCITATION_MODE__SHARING_ROTATION (uint32_t) 0x1 << THERMISTOR_EXCITATION_MODE_LSB
208
#define THERMISTOR_EXCITATION_MODE__SHARING_NO_ROTATION (uint32_t) 0x2 << THERMISTOR_EXCITATION_MODE_LSB
209
// thermistor - excitation current
210
#define THERMISTOR_EXCITATION_CURRENT_LSB 15
211
#define THERMISTOR_EXCITATION_CURRENT__INVALID (uint32_t) 0x0 << THERMISTOR_EXCITATION_CURRENT_LSB
212
#define THERMISTOR_EXCITATION_CURRENT__250NA (uint32_t) 0x1 << THERMISTOR_EXCITATION_CURRENT_LSB
213
#define THERMISTOR_EXCITATION_CURRENT__500NA (uint32_t) 0x2 << THERMISTOR_EXCITATION_CURRENT_LSB
214
#define THERMISTOR_EXCITATION_CURRENT__1UA (uint32_t) 0x3 << THERMISTOR_EXCITATION_CURRENT_LSB
215
#define THERMISTOR_EXCITATION_CURRENT__5UA (uint32_t) 0x4 << THERMISTOR_EXCITATION_CURRENT_LSB
216
#define THERMISTOR_EXCITATION_CURRENT__10UA (uint32_t) 0x5 << THERMISTOR_EXCITATION_CURRENT_LSB
217
#define THERMISTOR_EXCITATION_CURRENT__25UA (uint32_t) 0x6 << THERMISTOR_EXCITATION_CURRENT_LSB
218
#define THERMISTOR_EXCITATION_CURRENT__50UA (uint32_t) 0x7 << THERMISTOR_EXCITATION_CURRENT_LSB
219
#define THERMISTOR_EXCITATION_CURRENT__100UA (uint32_t) 0x8 << THERMISTOR_EXCITATION_CURRENT_LSB
220
#define THERMISTOR_EXCITATION_CURRENT__250UA (uint32_t) 0x9 << THERMISTOR_EXCITATION_CURRENT_LSB
221
#define THERMISTOR_EXCITATION_CURRENT__500UA (uint32_t) 0xA << THERMISTOR_EXCITATION_CURRENT_LSB
222
#define THERMISTOR_EXCITATION_CURRENT__1MA (uint32_t) 0xB << THERMISTOR_EXCITATION_CURRENT_LSB
223
#define THERMISTOR_EXCITATION_CURRENT__AUTORANGE (uint32_t) 0xC << THERMISTOR_EXCITATION_CURRENT_LSB
224
#define THERMISTOR_EXCITATION_CURRENT__INVALID_ (uint32_t) 0xD << THERMISTOR_EXCITATION_CURRENT_LSB
225
#define THERMISTOR_EXCITATION_CURRENT__INVALID__ (uint32_t) 0xE << THERMISTOR_EXCITATION_CURRENT_LSB
226
#define THERMISTOR_EXCITATION_CURRENT__EXTERNAL (uint32_t) 0xF << THERMISTOR_EXCITATION_CURRENT_LSB
227
// thermistor - custom address
228
#define THERMISTOR_CUSTOM_ADDRESS_LSB 6
229
// thermistor - custom length-1
230
#define THERMISTOR_CUSTOM_LENGTH_1_LSB 0
231
// thermistor - custom values
232
#define THERMISTOR_CUSTOM_VALUES_LSB 31
233
//**********************************************************************************************************
234
// -- Thermocouple --
235
//**********************************************************************************************************
236
// tc - cold junction ch
237
#define TC_COLD_JUNCTION_CH_LSB 22
238
#define TC_COLD_JUNCTION_CH__NONE (uint32_t) 0x0 << TC_COLD_JUNCTION_CH_LSB
239
#define TC_COLD_JUNCTION_CH__1 (uint32_t) 0x1 << TC_COLD_JUNCTION_CH_LSB
240
#define TC_COLD_JUNCTION_CH__2 (uint32_t) 0x2 << TC_COLD_JUNCTION_CH_LSB
241
#define TC_COLD_JUNCTION_CH__3 (uint32_t) 0x3 << TC_COLD_JUNCTION_CH_LSB
242
#define TC_COLD_JUNCTION_CH__4 (uint32_t) 0x4 << TC_COLD_JUNCTION_CH_LSB
243
#define TC_COLD_JUNCTION_CH__5 (uint32_t) 0x5 << TC_COLD_JUNCTION_CH_LSB
244
#define TC_COLD_JUNCTION_CH__6 (uint32_t) 0x6 << TC_COLD_JUNCTION_CH_LSB
245
#define TC_COLD_JUNCTION_CH__7 (uint32_t) 0x7 << TC_COLD_JUNCTION_CH_LSB
246
#define TC_COLD_JUNCTION_CH__8 (uint32_t) 0x8 << TC_COLD_JUNCTION_CH_LSB
247
#define TC_COLD_JUNCTION_CH__9 (uint32_t) 0x9 << TC_COLD_JUNCTION_CH_LSB
248
#define TC_COLD_JUNCTION_CH__10 (uint32_t) 0xA << TC_COLD_JUNCTION_CH_LSB
249
// tc - differential?
250
#define TC_DIFFERENTIAL_LSB 21
251
#define TC_DIFFERENTIAL (uint32_t) 0x0 << TC_DIFFERENTIAL_LSB
252
#define TC_SINGLE_ENDED (uint32_t) 0x1 << TC_DIFFERENTIAL_LSB
253
// tc - open ckt detect?
254
#define TC_OPEN_CKT_DETECT_LSB 20
255
#define TC_OPEN_CKT_DETECT__NO (uint32_t) 0x0 << TC_OPEN_CKT_DETECT_LSB
256
#define TC_OPEN_CKT_DETECT__YES (uint32_t) 0x1 << TC_OPEN_CKT_DETECT_LSB
257
// tc - open ckt detect current
258
#define TC_OPEN_CKT_DETECT_CURRENT_LSB 18
259
#define TC_OPEN_CKT_DETECT_CURRENT__10UA (uint32_t) 0x0 << TC_OPEN_CKT_DETECT_CURRENT_LSB
260
#define TC_OPEN_CKT_DETECT_CURRENT__100UA (uint32_t) 0x1 << TC_OPEN_CKT_DETECT_CURRENT_LSB
261
#define TC_OPEN_CKT_DETECT_CURRENT__500UA (uint32_t) 0x2 << TC_OPEN_CKT_DETECT_CURRENT_LSB
262
#define TC_OPEN_CKT_DETECT_CURRENT__1MA (uint32_t) 0x3 << TC_OPEN_CKT_DETECT_CURRENT_LSB
263
// tc - custom address
264
#define TC_CUSTOM_ADDRESS_LSB 6
265
// tc - custom length-1
266
#define TC_CUSTOM_LENGTH_1_LSB 0
267
// tc - custom values
268
#define TC_CUSTOM_VALUES_LSB 31
269
//**********************************************************************************************************
270
// -- Off-Chip Diode --
271
//**********************************************************************************************************
272
// diode - differential?
273
#define DIODE_DIFFERENTIAL_LSB 26
274
#define DIODE_DIFFERENTIAL (uint32_t) 0x0 << DIODE_DIFFERENTIAL_LSB
275
#define DIODE_SINGLE_ENDED (uint32_t) 0x1 << DIODE_DIFFERENTIAL_LSB
276
// diode - num readings
277
#define DIODE_NUM_READINGS_LSB 25
278
#define DIODE_NUM_READINGS__2 (uint32_t) 0x0 << DIODE_NUM_READINGS_LSB
279
#define DIODE_NUM_READINGS__3 (uint32_t) 0x1 << DIODE_NUM_READINGS_LSB
280
// diode - averaging on?
281
#define DIODE_AVERAGING_ON_LSB 24
282
#define DIODE_AVERAGING_OFF (uint32_t) 0x0 << DIODE_AVERAGING_ON_LSB
283
#define DIODE_AVERAGING_ON (uint32_t) 0x1 << DIODE_AVERAGING_ON_LSB
284
// diode - current
285
#define DIODE_CURRENT_LSB 22
286
#define DIODE_CURRENT__10UA_40UA_80UA (uint32_t) 0x0 << DIODE_CURRENT_LSB
287
#define DIODE_CURRENT__20UA_80UA_160UA (uint32_t) 0x1 << DIODE_CURRENT_LSB
288
#define DIODE_CURRENT__40UA_160UA_320UA (uint32_t) 0x2 << DIODE_CURRENT_LSB
289
#define DIODE_CURRENT__80UA_320UA_640UA (uint32_t) 0x3 << DIODE_CURRENT_LSB
290
// diode - ideality factor(eta)
291
#define DIODE_IDEALITY_FACTOR_LSB 0
292
//**********************************************************************************************************
293
// -- GLOBAL CONFIGURATION CONSTANTS --
294
//**********************************************************************************************************
295
#define REJECTION__50_60_HZ (uint8_t) 0x0
296
#define REJECTION__60_HZ (uint8_t) 0x1
297
#define REJECTION__50_HZ (uint8_t) 0x2
298
#define TEMP_UNIT__C (uint8_t) 0x0
299
#define TEMP_UNIT__F (uint8_t) 0x4
300
#define ENABLE_KELVIN_3_WIRE_RTD_MODE (uint8_t) 0x10
301
#define ENABLE_KELVIN_2_WIRE_RTD_MODE (uint8_t) 0x20
302
#define ENABLE_KELVIN_DIFFERENTIAL_THERMISTOR_MODE (uint8_t) 0x40
303
#define DISABLE_MINUS_999 (uint8_t) 0x80
304
//**********************************************************************************************************
305
// -- STATUS BYTE CONSTANTS --
306
//**********************************************************************************************************
307
#define SENSOR_HARD_FAILURE (uint8_t) 0x80
308
#define ADC_HARD_FAILURE (uint8_t) 0x40
309
#define CJ_HARD_FAILURE (uint8_t) 0x20
310
#define CJ_SOFT_FAILURE (uint8_t) 0x10
311
#define SENSOR_ABOVE (uint8_t) 0x8
312
#define SENSOR_BELOW (uint8_t) 0x4
313
#define ADC_RANGE_ERROR (uint8_t) 0x2
314
#define VALID (uint8_t) 0x1
315
//**********************************************************************************************************
316
// -- ADDRESSES --
317
//**********************************************************************************************************
318
#define COMMAND_STATUS_REGISTER (uint16_t) 0x0000
319
#define CH_ADDRESS_BASE (uint16_t) 0x0200
320
#define VOUT_CH_BASE (uint16_t) 0x0060
321
#define READ_CH_BASE (uint16_t) 0x0010
322
#define CONVERSION_RESULT_MEMORY_BASE (uint16_t) 0x0010
323
//**********************************************************************************************************
324
// -- MISC CONSTANTS --
325
//**********************************************************************************************************
326
#define WRITE_TO_RAM (uint8_t) 0x02
327
#define READ_FROM_RAM (uint8_t) 0x03
328
#define CONVERSION_CONTROL_BYTE (uint8_t) 0x80
329
330
#define VOLTAGE (uint8_t) 0x01
331
#define TEMPERATURE (uint8_t) 0x02
332
#define CODE (uint8_t) 0x03
LTSketchbook
libraries
LTC2986
configuration_constants_LTC2986.h
Generated on Thu Mar 19 2020 10:59:01 for Linduino by
1.8.13