-
-
Notifications
You must be signed in to change notification settings - Fork 106
/
MeasuringRange.cs
46 lines (39 loc) · 1.19 KB
/
MeasuringRange.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
// 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 Programmable Gain Amplifier, i.e. Measuring Range
/// Note that the maximum input value on any input pin is VDD+0.3V and the maximum value that can be measured is VDD.
/// So if the supply voltage is 3.3V, using FS6144 may not be useful, because it just reduces the accuracy to 14 bit
/// (excluding the sign bit).
/// </summary>
public enum MeasuringRange
{
// Details in Datasheet P19
/// <summary>
/// Range ±6.144V.
/// </summary>
FS6144 = 0x00,
/// <summary>
/// Range ±4.096V.
/// </summary>
FS4096 = 0x01,
/// <summary>
/// Range ±2.048V.
/// </summary>
FS2048 = 0x02,
/// <summary>
/// Range ±1.024V.
/// </summary>
FS1024 = 0x03,
/// <summary>
/// Range ±0.512V.
/// </summary>
FS0512 = 0x04,
/// <summary>
/// Range ±0.256V.
/// </summary>
FS0256 = 0x05
}
}