Line data Source code
1 0 : /*
2 : * Copyright (c) 2025 Thomas Schmid <tom@lfence.de>
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_MICRO_MCP9600_H_
7 : #define ZEPHYR_INCLUDE_DT_BINDINGS_MICRO_MCP9600_H_
8 :
9 : /**
10 : * @defgroup mcp9600 MCP9600 DT Options
11 : * @ingroup sensor_interface
12 : * @{
13 : */
14 :
15 : /**
16 : * @defgroup mcp9600_thermocouple_type Thermocouple type selection
17 : * @{
18 : */
19 0 : #define MCP9600_DT_TYPE_K 0x0
20 0 : #define MCP9600_DT_TYPE_J 0x1
21 0 : #define MCP9600_DT_TYPE_T 0x2
22 0 : #define MCP9600_DT_TYPE_N 0x3
23 0 : #define MCP9600_DT_TYPE_S 0x4
24 0 : #define MCP9600_DT_TYPE_E 0x5
25 0 : #define MCP9600_DT_TYPE_B 0x6
26 0 : #define MCP9600_DT_TYPE_R 0x7
27 : /** @} */
28 :
29 : /**
30 : * @defgroup mcp9600_adc_resolution ADC resolution
31 : * @{
32 : */
33 0 : #define MCP9600_DT_ADC_RES_18BIT 0x0
34 0 : #define MCP9600_DT_ADC_RES_16BIT 0x1
35 0 : #define MCP9600_DT_ADC_RES_14BIT 0x2
36 0 : #define MCP9600_DT_ADC_RES_12BIT 0x3
37 : /** @} */
38 :
39 : /**
40 : * @defgroup mcp9600_cold_junction_temp_resolution Cold junction temperature resultion
41 : * @{
42 : */
43 0 : #define MCP9600_DT_COLD_JUNC_TMP_RES_0_0625C 0x0
44 0 : #define MCP9600_DT_COLD_JUNC_TMP_RES_0_25C 0x1
45 : /** @} */
46 :
47 : /** @} */
48 :
49 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_MICRO_MCP9600_H_ */
|