init
This commit is contained in:
33
Common/DTS.Common.DAS.Concepts/Interfaces/IGpioEnabled.cs
Normal file
33
Common/DTS.Common.DAS.Concepts/Interfaces/IGpioEnabled.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user