forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBatteryStatus.cs
35 lines (28 loc) · 1 KB
/
BatteryStatus.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
// 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>
/// The battery status.
/// <remarks>
/// <br>For more information see table REG01H, page 33 in datasheet</br>
/// </remarks>
/// </summary>
[Flags]
public enum BatteryStatus
{
/// <summary>Overheating status.</summary>
Overheating = 0b1000_0000,
/// <summary>Charging status.</summary>
Charging = 0b0100_0000,
/// <summary>Battery Connected.</summary>
BatteryConnected = 0b0010_0000,
/// <summary>Battery Activation Mode.</summary>
BatteryActivationMode = 0b0000_1000,
/// <summary>Charging CurrentLess Than Expected.</summary>
ChargingCurrentLessThanExpected = 0b0000_0100,
/// <summary>Mode B, when not present, the Mode A (sleep) is activated.</summary>
ModeB = 0b0000_0010,
}
}