Class SimulatedDigitalOutputPort
A simulated digital output port that tracks and logs state changes.
Assembly: Meadow.Foundation.dll
View Source
Declaration
public class SimulatedDigitalOutputPort : IDigitalOutputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable
Implements:
Meadow.Hardware.IDigitalOutputPort
, Meadow.Hardware.IDigitalPort
, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
, System.IDisposable
Properties
InitialState
Gets the initial state that the port was configured with.
View Source
Declaration
public bool InitialState { get; }
Name
Gets a name or identifier for this simulated port instance.
View Source
Declaration
public string Name { get; }
State
Gets or sets the current state of the simulated port.
View Source
Declaration
public virtual bool State { get; set; }
Channel
Returns null since the channel info is not meaningful for a simulated port.
View Source
Declaration
public IDigitalChannelInfo Channel { get; }
Pin
Returns null since no physical pin is used.
View Source
Declaration
public IPin Pin { get; }
Methods
Dispose()
Disposes of the simulated port. Currently, this does nothing for the simulation.
View Source
Declaration
public void Dispose()
Implements
Meadow.Hardware.IDigitalOutputPort
Meadow.Hardware.IDigitalPort
Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
System.IDisposable