forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Register.cs
111 lines (91 loc) · 3 KB
/
Register.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Mcp960x
{
/// <summary>
/// Register of MCP960X
/// </summary>
internal enum Register : byte
{
/// <summary>
/// Read Only Register for Thermocouple Hot-Junction TH
/// </summary>
READ_TH = 0x00,
/// <summary>
/// Read Only Register for Junctions Delta Temperature TDELTA
/// </summary>
READ_TDELTA = 0x01,
/// <summary>
/// Read Only Register for Thermocouple Cold-Junction TC
/// </summary>
READ_TC = 0x02,
/// <summary>
/// Read Only Register for Raw Data from ADC
/// </summary>
READ_ADC_RAW = 0x03,
/// <summary>
/// Read Write Register for Status
/// </summary>
READ_WRITE_STATUS = 0x4,
/// <summary>
/// Read Write Register for Thermocouple Sensor Configuration
/// </summary>
READ_WRITE_CONFIGURATION_SENSOR = 0x5,
/// <summary>
/// Read Write Register for Device Configuration
/// </summary>
READ_WRITE_CONFIGURATION_DEVICE = 0x6,
/// <summary>
/// Write Register for Alert 1 Configuration
/// </summary>
READ_WRITE_ALERT_CONFIGURATION_1 = 0x8,
/// <summary>
/// Write Register for Alert 2 Configuration
/// </summary>
READ_WRITE_ALERT_CONFIGURATION_2 = 0x9,
/// <summary>
/// Write Register for Alert 3 Configuration
/// </summary>
READ_WRITE_ALERT_CONFIGURATION_3 = 0xA,
/// <summary>
/// Write Register for Alert 4 Configuration
/// </summary>
READ_WRITE_ALERT_CONFIGURATION_4 = 0xB,
/// <summary>
/// Write Register for Alert 1 Hysteresis
/// </summary>
WRITE_ALERT_HYSTERESIS_1 = 0xC,
/// <summary>
/// Write Register for Alert 2 Hysteresis
/// </summary>
WRITE_ALERT_HYSTERESIS_2 = 0xD,
/// <summary>
/// Write Register for Alert 1 Hysteresis
/// </summary>
WRITE_ALERT_HYSTERESIS_3 = 0xE,
/// <summary>
/// Write Register for Alert 1 Hysteresis
/// </summary>
WRITE_ALERT_HYSTERESIS_4 = 0xF,
/// <summary>
/// Write Register for Alert Limit 1
/// </summary>
WRITE_ALERT_LIMIT_1 = 0x10,
/// <summary>
/// Write Register for Alert Limit 2
/// </summary>
WRITE_ALERT_LIMIT_2 = 0x11,
/// <summary>
/// Write Register for Alert Limit 3
/// </summary>
WRITE_ALERT_LIMIT_3 = 0x12,
/// <summary>
/// Write Register for Alert Limit 4
/// </summary>
WRITE_ALERT_LIMIT_4 = 0x13,
/// <summary>
/// Read Only Register for Device ID/Revision for MCP9600/L00/RL00 and MCP9601/L01/RL01
/// </summary>
READ_DEVICE_ID = 0x20,
}
}