-
Notifications
You must be signed in to change notification settings - Fork 598
/
Copy pathPinUsage.cs
56 lines (47 loc) · 1.26 KB
/
PinUsage.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
// 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.Board
{
/// <summary>
/// Designated (or active) usage of a pin
/// </summary>
public enum PinUsage
{
/// <summary>
/// Pin not currently used (or usage unknown)
/// </summary>
None = 0,
/// <summary>
/// Pin used for GPIO (input or output)
/// </summary>
Gpio = 1,
/// <summary>
/// Pin used for I2C
/// </summary>
I2c = 2,
/// <summary>
/// Pin used for SPI
/// </summary>
Spi = 3,
/// <summary>
/// Pin used for PWM (or analog out)
/// </summary>
Pwm = 4,
/// <summary>
/// Pin used for RS-232
/// </summary>
Uart = 5,
/// <summary>
/// Pin used for analog input
/// </summary>
AnalogIn = 6,
/// <summary>
/// Pin used for analog output (Digital-to-Analog converter)
/// </summary>
AnalogOut = 7,
/// <summary>
/// Unknown usage (i.e. for boards where this state is write-only)
/// </summary>
Unknown = -1
}
}