Status.cs 861 字节
Newer Older
D
Darren Fahy 已提交
1 2 3
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

R
Rich Lander 已提交
4 5
#pragma warning disable CS1591, CS1572, CS1573

D
Darren Fahy 已提交
6 7 8 9 10
namespace Iot.Device.PiJuiceDevice.Models
{
    /// <summary>
    /// PiJuice Status
    /// </summary>
R
Rich Lander 已提交
11 12 13 14 15 16
    /// <param name="IsFault">True if there faults or fault events waiting to be read, otherwise False.</param>
    /// <param name="IsButton">True if there are button events, otherwise False.</param>
    /// <param name="Battery">Current battery status.</param>
    /// <param name="PowerInput">Current USB Micro power input status.</param>
    /// <param name="PowerInput5VoltInput">Current 5V GPIO power input status.</param>
    public record Status(bool IsFault, bool IsButton, BatteryState Battery, PowerInState PowerInput, PowerInState PowerInput5VoltInput);
D
Darren Fahy 已提交
17
}