Class DigitalPortBase
DigitalPortBase provides a base implementation for much of the common tasks of classes implementing IDigitalPort.
Assembly: Meadow.Contracts.dll
View Source
Declaration
public abstract class DigitalPortBase : PortBase<IDigitalChannelInfo>, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable
Inheritance: System.Object
-> Meadow.Hardware.PortBase<C>
Derived:
Meadow.Hardware.BiDirectionalPortBase
Implements:
Meadow.Hardware.IDigitalPort, System.IDisposable
Properties
Channel
Gets or sets the IDigitalChannelInfo for the port
View Source
Declaration
public IDigitalChannelInfo Channel { get; protected set; }
InverseLogic
Gets whether or not the channel has inverse boolean logic (low == true)
View Source
Declaration
protected bool InverseLogic { get; }
Implements
- Meadow.Hardware.IDigitalPort
- Meadow.Hardware.IPort<C>
System.IDisposable