Class BiDirectionalPortBase
Provides a base implementation for BiDirectional Ports; digital ports that can be both input and output.
Assembly: Meadow.Contracts.dll
View Source
Declaration
public abstract class BiDirectionalPortBase : DigitalPortBase, IBiDirectionalPort, IDigitalInputPort, IDigitalOutputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable
Inheritance: System.Object
-> Meadow.Hardware.PortBase<C>
Derived:
Meadow.Hardware.BiDirectionalInterruptPortBase
Implements:
Meadow.Hardware.IBiDirectionalPort, System.IDisposable
Properties
InitialState
Gets the initial state of the port
View Source
Declaration
public bool InitialState { get; }
InitialOutputType
Gets the initial output type of the port
View Source
Declaration
public OutputType InitialOutputType { get; }
Resistor
Gets the resistor mode of the port
View Source
Declaration
public virtual ResistorMode Resistor { get; set; }
State
Gets or sets the current state of the port
View Source
Declaration
public abstract bool State { get; set; }
Direction
Gets or sets the current direction of the port
View Source
Declaration
public abstract PortDirectionType Direction { get; set; }