-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathVoutGain.cs
45 lines (38 loc) · 1.16 KB
/
VoutGain.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
////
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
////
namespace Iot.Device.Dac63004
{
/// <summary>
/// Selection of Vout gain.
/// </summary>
public enum VoutGain : byte
{
// the enum values correspond to the bit values in the register, MSB
/// <summary>
/// Using external reference on VREF pin. Multiply factor is 1x.
/// </summary>
ExternalRef1x = 0x0,
/// <summary>
/// Using VDD as reference. Multiply factor is 1x.
/// </summary>
VddRef1x = 0b0000_0100,
/// <summary>
/// Internal reference. Multiply factor is 1.5x.
/// </summary>
Internal1_5x = 0b0000_1000,
/// <summary>
/// Internal reference. Multiply factor is 2x.
/// </summary>
Internal2x = 0b0000_1100,
/// <summary>
/// Internal reference. Multiply factor is 3x.
/// </summary>
Internal3x = 0b0001_0000,
/// <summary>
/// Internal reference. Multiply factor is 4x.
/// </summary>
Internal4x = 0b0001_0100,
}
}