forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChargerStatus0.cs
58 lines (50 loc) · 2.09 KB
/
ChargerStatus0.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
////
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
////
using System;
namespace Iot.Device.Bq2579x
{
/// <summary>
/// Charger status 0.
/// </summary>
[Flags]
public enum ChargerStatus0 : byte
{
/// <summary>
/// IINDPM status (forward mode) or IOTG status (OTG mode).
/// </summary>
/// <remarks><see langword="true"/> if in INDPM regulation or IOTG regulation, <see langword="false"/> for normal regulation.</remarks>
InDpm = 0b1000_0000,
/// <summary>
/// VINDPM status (forward mode) or VOTG status (OTG mode).
/// </summary>
/// <remarks><see langword="true"/> if in VINDPM regulation or VOTG regualtion, <see langword="false"/> for normal mode.</remarks>
VinDpm = 0b0100_0000,
/// <summary>
/// I2C watch dog timer status.
/// </summary>
/// <remarks><see langword="true"/> if I2C watchdog timer expired, <see langword="false"/> for normal status.</remarks>
I2cWatchdogExpired = 0b0010_0000,
/// <summary>
/// Power Good Status.
/// </summary>
/// <remarks><see langword="true"/> if power is good, <see langword="false"/> for power NOT good.</remarks>
PowerGood = 0b0000_1000,
/// <summary>
/// VAC2 insert status.
/// </summary>
/// <remarks><see langword="true"/> if VAC2 is present (above present threshold), <see langword="false"/> for VAC2 NOT present.</remarks>
Vac2Inserted = 0b0000_0100,
/// <summary>
/// VAC1 insert status.
/// </summary>
/// <remarks><see langword="true"/> if VAC1 is present (above present threshold), <see langword="false"/> for VAC1 NOT present.</remarks>
Vac1Inserted = 0b0000_0010,
/// <summary>
/// VBUS present status.
/// </summary>
/// <remarks><see langword="true"/> if VBUS is present (above present threshold), <see langword="false"/> for VBUS NOT present.</remarks>
VbusPresent = 0b0000_0001,
}
}