forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SlewRate.cs
95 lines (78 loc) · 2.16 KB
/
SlewRate.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
////
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
////
namespace Iot.Device.Dac63004
{
/// <summary>
/// Configuration for Slew Rate.
/// </summary>
public enum SlewRate : byte
{
// these correspond to the bit values [3-0] in DAC-X-FUNC-CONFIG register
/// <summary>
/// No slew rate.
/// </summary>
NoSlewRate = 0,
/// <summary>
/// Time period is 4µs.
/// </summary>
Time4us = 0b0000_0001,
/// <summary>
/// Time period is 8µs.
/// </summary>
Time8us = 0b0000_0010,
/// <summary>
/// Time period is 12µs.
/// </summary>
Time12us = 0b0000_0011,
/// <summary>
/// Time period is 18µs.
/// </summary>
Time18us = 0b0000_0100,
/// <summary>
/// Time period is 27µs.
/// </summary>
Time27us = 0b0000_0101,
/// <summary>
/// Time period is 40.5µs.
/// </summary>
Time40_5us = 0b0000_0110,
/// <summary>
/// Time period is 60.75µs.
/// </summary>
Time60_75us = 0b0000_0111,
/// <summary>
/// Time period is 91.13µs.
/// </summary>
Time91_13us = 0b0000_1000,
/// <summary>
/// Time period is 136.69µs.
/// </summary>
Time136_69us = 0b0000_1001,
/// <summary>
/// Time period is 239.2µs.
/// </summary>
Time239_2us = 0b0000_1010,
/// <summary>
/// Time period is 418.61µs.
/// </summary>
Time418_61us = 0b0000_1011,
/// <summary>
/// Time period is 732.56µs.
/// </summary>
Time732_56us = 0b0000_1100,
/// <summary>
/// Time period is 1281.98µs.
/// </summary>
Time1281_98us = 0b0000_1101,
/// <summary>
/// Time period is 2563.96µs.
/// </summary>
Time2563_96us = 0b0000_1110,
/// <summary>
/// Time period is 5127.92µs.
/// </summary>
Time5127_92us = 0b0000_1111
}
}