Class Cp2112DigitalInputPort
Represents a digital input port implementation for the CP2112 bus.
Assembly: Cp2112.dll
View Source
Declaration
public sealed class Cp2112DigitalInputPort : DigitalInputPortBase, IDigitalInputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable
Inheritance: System.Object
-> Meadow.Hardware.PortBase<Meadow.Hardware.IDigitalChannelInfo>
-> Meadow.Hardware.DigitalPortBase
-> Meadow.Hardware.DigitalInputPortBase
Implements:
Meadow.Hardware.IDigitalInputPort
, Meadow.Hardware.IDigitalPort
, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
, System.IDisposable
Properties
State
Gets the current state of the input port.
View Source
Declaration
public override bool State { get; }
Resistor
Gets or sets the resistor mode of the input port.
View Source
Declaration
public override ResistorMode Resistor { get; set; }
Implements
Meadow.Hardware.IDigitalInputPort
Meadow.Hardware.IDigitalPort
Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
System.IDisposable