forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GpioMode.cs
72 lines (60 loc) · 1.95 KB
/
GpioMode.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
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Eclo Solutions
// See LICENSE file in the project root for full license information.
namespace Iot.Device.Swarm
{
/// <summary>
/// Operation mode for GPIO1 pin.
/// </summary>
public enum GpioMode : byte
{
/// <summary>
/// Analog, pin is internally disconnected and not used.
/// </summary>
Analog = 0,
/// <summary>
/// Input, low-to-high transition exits sleep mode.
/// </summary>
ExitSleepLowToHigh,
/// <summary>
/// Input, high-to-low transition exits sleep mode.
/// </summary>
ExitSleepHighToLow,
/// <summary>
/// Output, set low (see remark note 1).
/// </summary>
OutputLow,
/// <summary>
/// Output, set high (see remark note 1).
/// </summary>
OutputHigh,
/// <summary>
/// Output, low indicates messages pending for client (see remark note 2).
/// </summary>
MessagesPendingLow,
/// <summary>
/// Output, high indicates messages pending for client (see remark note 2).
/// </summary>
MessagesPendingHigh,
/// <summary>
/// Output, low while transmitting. Otherwise output is high (see remark note 3).
/// </summary>
TransmittingLow,
/// <summary>
/// Output, high while transmitting. Otherwise output is low (see remark note 3).
/// </summary>
TransmittingHigh,
/// <summary>
/// Output, low indicates in sleep mode (see remark note 4). Otherwise output is high.
/// </summary>
SleepLow,
/// <summary>
/// Output, high indicates in sleep mode (see remark note 4). Otherwise output is low.
/// </summary>
SleepHigh,
/// <summary>
/// Unknown mode.
/// </summary>
Unknwon = 255
}
}