-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathCommandAddress.cs
106 lines (87 loc) · 2.76 KB
/
CommandAddress.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
// 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.Ms5611
{
/// <summary>
/// MS5611 command addresses
/// </summary>
internal enum CommandAddress : byte
{
/// <summary>
/// ADC read
/// </summary>
AdcRead = 0x00,
/// <summary>
/// Reset
/// </summary>
Reset = 0x1E,
/// <summary>
/// Sampling rate for pressure
/// </summary>
SamplingRatePressure = 0x40,
/// <summary>
/// Sampling rate for temperature
/// </summary>
SamplingRateTemperature = 0x50,
/// <summary>
/// Read PROM command
/// </summary>
ReadProm = 0xA2,
/// <summary>
/// Calibration data - pressure sensitivity
/// </summary>
PressureSensitivity = 0xA2,
/// <summary>
/// Calibration data - pressure offset
/// </summary>
PressureOffset = 0xA4,
/// <summary>
/// Calibration data - temperature coefficient of pressure sensitivity
/// </summary>
TemperatureCoefficientOfPressureSensitivity = 0xA6,
/// <summary>
/// Calibration data - temperature coefficient of pressure offset
/// </summary>
TemperatureCoefficientOfPressureOffset = 0xA8,
/// <summary>
/// Calibration data - reference temperature
/// </summary>
ReferenceTemperature = 0xAA,
/// <summary>
/// Calibration data - temperature coefficient of the temperature
/// </summary>
TemperatureCoefficientOfTheTemperature = 0xAC,
/// <summary>
/// Low sampling rate temperature
/// </summary>
LowSamplingRateTemperature = 0x52,
/// <summary>
/// Standard sampling rate temperature
/// </summary>
StandardSamplingRateTemperature = 0x54,
/// <summary>
/// High sampling rate temperature
/// </summary>
HighSamplingRateTemperature = 0x56,
/// <summary>
/// Ultra high sampling rate temperature
/// </summary>
UltraHighSamplingRateTemperature = 0x58,
/// <summary>
/// Low sampling rate pressure
/// </summary>
LowSamplingRatePressure = 0x42,
/// <summary>
/// Standard sampling rate pressure
/// </summary>
StandardSamplingRatePressure = 0x44,
/// <summary>
/// High sampling rate pressure
/// </summary>
HighSamplingRatePressure = 0x46,
/// <summary>
/// Ultra high sampling rate pressure
/// </summary>
UltraHighSamplingRatePressure = 0x48
}
}