/
Mcp960x.Enums.cs
172 lines (168 loc) · 5.4 KB
/
Mcp960x.Enums.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
namespace Meadow.Foundation.Sensors.Temperature
{
public partial class Mcp960x
{
/// <summary>
/// Valid I2C addresses for the sensor
/// </summary>
public enum Addresses : byte
{
/// <summary>
/// Bus address 0x60
/// </summary>
Address_0x60 = 0x60,
/// <summary>
/// Bus address 0x61
/// </summary>
Address_0x61 = 0x61,
/// <summary>
/// Bus address 0x62
/// </summary>
Address_0x62 = 0x62,
/// <summary>
/// Bus address 0x63
/// </summary>
Address_0x63 = 0x63,
/// <summary>
/// Bus address 0x64
/// </summary>
Address_0x64 = 0x64,
/// <summary>
/// Bus address 0x65
/// </summary>
Address_0x65 = 0x65,
/// <summary>
/// Bus address 0x60
/// </summary>
Address_0x66 = 0x66,
/// <summary>
/// Bus address 0x66
/// </summary>
Address_0x67 = 0x67,
/// <summary>
/// Default bus address 0x67
/// </summary>
Default = Address_0x67
}
/// <summary>
/// Represents the supported thermocouple types for the MCP960x
/// </summary>
public enum ThermocoupleType
{
/// <summary>
/// K-type thermocouple (chromel–alumel), widely used due to its broad temperature range and durability
/// </summary>
K = 0x00,
/// <summary>
/// J-type thermocouple (iron–constantan), commonly used in general-purpose applications
/// </summary>
J = 0x01,
/// <summary>
/// T-type thermocouple (copper–constantan), suitable for low-temperature measurements
/// </summary>
T = 0x02,
/// <summary>
/// N-type thermocouple (nicrosil–nisil), known for its stability and resistance to high temperatures
/// </summary>
N = 0x03,
/// <summary>
/// S-type thermocouple (platinum–rhodium), suitable for high-temperature measurements
/// </summary>
S = 0x04,
/// <summary>
/// E-type thermocouple (chromel–constantan), featuring a high output signal and excellent stability
/// </summary>
E = 0x05,
/// <summary>
/// B-type thermocouple (platinum–rhodium), used for very high-temperature measurements
/// </summary>
B = 0x06,
/// <summary>
/// R-type thermocouple (platinum–rhodium), suitable for high-temperature measurements
/// </summary>
R = 0x07
}
/// <summary>
/// Represents the available ADC resolutions for the MCP960x
/// </summary>
public enum AdcResolution
{
/// <summary>
/// 18-bit ADC resolution, providing the fastest conversion time
/// </summary>
_18Bit = 0x00,
/// <summary>
/// 16-bit ADC resolution, providing a balance between conversion time and resolution
/// </summary>
_16Bit = 0x01,
/// <summary>
/// 14-bit ADC resolution, providing a slower conversion time but higher resolution
/// </summary>
_14Bit = 0x02,
/// <summary>
/// 12-bit ADC resolution, providing the slowest conversion time but highest resolution
/// </summary>
_12Bit = 0x03
}
/// <summary>
/// Represents the available filter coefficients for the MCP960x
/// </summary>
public enum FilterCoefficient
{
/// <summary>
/// Filter coefficient value 0
/// </summary>
_0 = 0x00,
/// <summary>
/// Filter coefficient value 1
/// </summary>
_1 = 0x01,
/// <summary>
/// Filter coefficient value 2
/// </summary>
_2 = 0x02,
/// <summary>
/// Filter coefficient value 3
/// </summary>
_3 = 0x03,
/// <summary>
/// Filter coefficient value 4
/// </summary>
_4 = 0x04,
/// <summary>
/// Filter coefficient value 5
/// </summary>
_5 = 0x05,
/// <summary>
/// Filter coefficient value 4
/// </summary>
_6 = 0x06,
/// <summary>
/// Filter coefficient value 5
/// </summary>
_7 = 0x07
}
/// <summary>
/// Represents the alert number for the MCP9600
/// </summary>
public enum AlertNumber
{
/// <summary>
/// Alert number 1
/// </summary>
Alert1 = 1,
/// <summary>
/// Alert number 2
/// </summary>
Alert2 = 2,
/// <summary>
/// Alert number 3
/// </summary>
Alert3 = 3,
/// <summary>
/// Alert number 4
/// </summary>
Alert4 = 4
}
}
}