forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPowerStatus.cs
38 lines (29 loc) · 994 Bytes
/
PowerStatus.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Iot.Device.Axp192
{
/// <summary>
/// Power Status.
/// </summary>
[Flags]
public enum PowerStatus
{
/// <summary>Acin Exists.</summary>
AcinExists = 0b1000_0000,
/// <summary>Acin Available.</summary>
AcinAvailable = 0b0100_0000,
/// <summary>Vbux Exists.</summary>
VbuxExists = 0b0010_0000,
/// <summary>Vbus Available.</summary>
VbusAvailable = 0b0001_0000,
/// <summary>Vbus Large Vhold.</summary>
VbusLargeVhold = 0b0000_1000,
/// <summary>Battery Charged.</summary>
BatteryCharged = 0b0000_0100,
/// <summary>Acin Vbus Shorted.</summary>
AcinVbusShorted = 0b0000_0010,
/// <summary>Acin Vbus Startup Source.</summary>
AcinVbusStartupSource = 0b0000_0001,
}
}