forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodeStep.cs
55 lines (46 loc) · 1.11 KB
/
CodeStep.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
////
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
////
namespace Iot.Device.Dac63004
{
/// <summary>
/// Configuration for Code Step.
/// </summary>
public enum CodeStep : byte
{
// these correspond to the bit values [6-4] in DAC-X-FUNC-CONFIG register
/// <summary>
/// 1 LSB.
/// </summary>
Step1LSB = 0x0,
/// <summary>
/// 2 LSB.
/// </summary>
Step2LSB = 0b0001_0000,
/// <summary>
/// 3 LSB.
/// </summary>
Step3LSB = 0b0010_0000,
/// <summary>
/// 4 LSB.
/// </summary>
Step4LSB = 0b0011_0000,
/// <summary>
/// 6 LSB.
/// </summary>
Step6LSB = 0b0100_0000,
/// <summary>
/// 8 LSB.
/// </summary>
Step8LSB = 0b0101_0000,
/// <summary>
/// 16 LSB.
/// </summary>
Step16LSB = 0b0110_0000,
/// <summary>
/// 32 LSB.
/// </summary>
Step32LSB = 0b0111_0000
}
}