Files
DP44/Common/DTS.Common.DAS.Concepts/.svn/pristine/1d/1dfd4ca7e5f06912ef85c6c37c862e2a0887b3e4.svn-base
2026-04-17 14:55:32 -04:00

34 lines
803 B
Plaintext

/*
* IGpioEnabled.cs
*
* Copyright © 2010
* Diversified Technical Systems, Inc.
* All Rights Reserved.
*/
using DTS.Common.Common.DAS.Concepts.GPIOPin;
namespace DTS.Common.Common.DAS.Concepts.GPIOPin
{
public enum Directions
{
Output = 0x00, Peripheral = 0x01, Input = 0x02,
InputPulledUp = 0x03, InputPulledDown = 0x04
};
}
namespace DTS.Common.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, Directions Direction, bool State);
bool GetGpio(uint Port, uint Pin);
}
}