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