-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
InputMultiplexer.cs
61 lines (52 loc) · 1.74 KB
/
InputMultiplexer.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
// 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.Ads1115
{
/// <summary>
/// Configure the Input Multiplexer.
/// </summary>
public enum InputMultiplexer
{
// Details in Datasheet P12 Figure24
/// <summary>
/// AIN Positive = AIN0 and AIN Negative = GND
/// Measure the Voltage between AIN0 and GND.
/// </summary>
AIN0 = 0x04,
/// <summary>
/// AIN Positive = AIN1 and AIN Negative = GND
/// Measure the Voltage between AIN1 and GND.
/// </summary>
AIN1 = 0x05,
/// <summary>
/// AIN Positive = AIN2 and AIN Negative = GND
/// Measure the Voltage between AIN2 and GND.
/// </summary>
AIN2 = 0x06,
/// <summary>
/// AIN Positive = AIN3 and AIN Negative = GND
/// Measure the Voltage between AIN3 and GND.
/// </summary>
AIN3 = 0x07,
/// <summary>
/// AIN Positive = AIN0 and AIN Negative = AIN1
/// Measure the Voltage between AIN0 and AIN1.
/// </summary>
AIN0_AIN1 = 0x00,
/// <summary>
/// AIN Positive = AIN0 and AIN Negative = AIN3
/// Measure the Voltage between AIN0 and AIN3.
/// </summary>
AIN0_AIN3 = 0x01,
/// <summary>
/// AIN Positive = AIN1 and AIN Negative = AIN3
/// Measure the Voltage between AIN1 and AIN3.
/// </summary>
AIN1_AIN3 = 0x02,
/// <summary>
/// AIN Positive = AIN2 and AIN Negative = AIN3
/// Measure the Voltage between AIN2 and AIN3.
/// </summary>
AIN2_AIN3 = 0x03,
}
}