forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVbusStatus.cs
68 lines (57 loc) · 1.52 KB
/
VbusStatus.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
////
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
////
namespace Iot.Device.Bq2579x
{
/// <summary>
/// VBUS status.
/// </summary>
public enum VbusStatus : byte
{
/// <summary>
/// VBUS not present.
/// </summary>
NoInput = 0b0000_0000,
/// <summary>
/// USB SDP (500mA).
/// </summary>
UsbSdp = 0b000_00010,
/// <summary>
/// USB CDP (1.5A).
/// </summary>
UsbCdp = 0b000_00100,
/// <summary>
/// USB DCP (3.25A).
/// </summary>
UsbDcp = 0b000_00110,
/// <summary>
/// Adjustable High Voltage DCP (HVDCP) (1.5A).
/// </summary>
AdjustableHighVoltage = 0b000_01000,
/// <summary>
/// Unknown adaptor (3A).
/// </summary>
UnknownAdapter = 0b000_01010,
/// <summary>
/// Non-Standard Adapter (1A/2A/2.1A/2.4A).
/// </summary>
NonStandardAdapter = 0b000_01100,
/// <summary>
/// In OTG mode.
/// </summary>
OtgMode = 0b000_01110,
/// <summary>
/// Not qualified adaptor.
/// </summary>
NotQualifed = 0b000_10000,
/// <summary>
/// Device directly powered from VBUS.
/// </summary>
DevicePoweredFromVbus = 0b0000_10110,
/// <summary>
/// Backup mode.
/// </summary>
BackupMode = 0b0000_11000
}
}