-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathSeesawFunction.cs
93 lines (64 loc) · 2.36 KB
/
SeesawFunction.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
// 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.Seesaw
{
/// <summary>
/// Seesaw function.
/// </summary>
public enum SeesawFunction : byte
{
// status functions
/// <summary>Hardware identifier status.</summary>
StatusHwId = 0x01,
/// <summary>Version status.</summary>
StatusVersion = 0x02,
/// <summary>Options status.</summary>
StatusOptions = 0x03,
/// <summary>Temperature status.</summary>
StatusTemp = 0x04,
/// <summary>Software reset status.</summary>
StatusSwrst = 0x7F,
// GPIO functions
/// <summary>Set direction for bulk GPIO operation.</summary>
GpioDirsetBulk = 0x02,
/// <summary>Clear direction for bulk GPIO operation.</summary>
GpioDirclrBulk = 0x03,
/// <summary>Bulk set GPIO.</summary>
GpioBulk = 0x04,
/// <summary>Bulk set GPIO.</summary>
GpioBulkSet = 0x05,
/// <summary>Bulk clear GPIO.</summary>
GpioBulkClr = 0x06,
/// <summary>Bulk toggle GPIO.</summary>
GpioBulkToggle = 0x07,
/// <summary>Enable interrupt.</summary>
GpioIntenset = 0x08,
/// <summary>Clear interrupt.</summary>
GpioIntenclr = 0x09,
/// <summary>Interrupt status.</summary>
GpioIntflag = 0x0A,
/// <summary>Sets pull up or down for pins.</summary>
GpioPullenset = 0x0B,
/// <summary>Clears pull up or down for pins.</summary>
GpioPullenclr = 0x0C,
// ADC Functions
/// <summary>ADC status.</summary>
AdcStatus = 0x00,
/// <summary>Set ADC interrupt enable.</summary>
AdcInten = 0x02,
/// <summary>Clear ADC interrupt enable.</summary>
AdcIntenclr = 0x03,
/// <summary>ADC window mode.</summary>
AdcWinmode = 0x04,
/// <summary>ADC window threshold.</summary>
AdcWinthresh = 0x05,
/// <summary>ADC channel offset.</summary>
AdcChannelOffset = 0x07,
// EEProm Addresses
/// <summary>EEPROM I2C address.</summary>
EepromI2cAddr = 0x3F,
// touch functions
/// <summary>Touch channel offset.</summary>
TouchChannelOffset = 0x10,
}
}