Skip to main content

Class BiDirectionalPortBase

Provides a base implementation for BiDirectional Ports; digital ports that can be both input and output.

Assembly: Meadow.Contracts.dll
View Source
public abstract class BiDirectionalPortBase : DigitalPortBase, IBiDirectionalPort, IDigitalInputPort, IDigitalOutputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable

Inheritance: System.Object -> Meadow.Hardware.PortBase<C> -> Meadow.Hardware.DigitalPortBase

Derived:
Meadow.Hardware.BiDirectionalInterruptPortBase, Meadow.Hardware.BiDirectionalPort

Implements:
Meadow.Hardware.IBiDirectionalPort, Meadow.Hardware.IDigitalInputPort, Meadow.Hardware.IDigitalOutputPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<C>, System.IDisposable

Properties

InitialState

Gets the initial state of the port

View Source
public bool InitialState { get; }

InitialOutputType

Gets the initial output type of the port

View Source
public OutputType InitialOutputType { get; }

Resistor

Gets the resistor mode of the port

View Source
public virtual ResistorMode Resistor { get; set; }

State

Gets or sets the current state of the port

View Source
public abstract bool State { get; set; }

Direction

Gets or sets the current direction of the port

View Source
public abstract PortDirectionType Direction { get; set; }

Implements