Files
DP44/Common/DTS.Common.DAS.Concepts/IGpioEnabled.cs
2026-04-17 14:55:32 -04:00

32 lines
741 B
C#

/*
* IGpioEnabled.cs
*
* Copyright © 2010
* Diversified Technical Systems, Inc.
* All Rights Reserved.
*/
namespace DTS.DAS.Concepts.GPIOPin
{
public enum Directions
{
Output = 0x00, Peripheral = 0x01, Input = 0x02,
InputPulledUp = 0x03, InputPulledDown = 0x04
};
}
namespace DTS.DAS.Concepts
{ ///
/// <summary>
/// Representation of GPIO functionality.
/// </summary>
///
public interface IGpioEnabled
{
// TODO: Well have to bring these in as soon as we figure out where to get that enum from.
void SetGpio(uint Port, uint Pin, GPIOPin.Directions Direction, bool State);
bool GetGpio(uint Port, uint Pin);
}
}