Class Pcx857x.DigitalInterruptPort
A Pcx857x-specific implementation of the IDigitalInterruptPort
Assembly: Pcx857x.dll
View Source
Declaration
public class Pcx857x.DigitalInterruptPort : DigitalInterruptPortBase, IDigitalInterruptPort, IDigitalInputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable, IObservable<IChangeResult<DigitalState>>
Inheritance: System.Object -> Meadow.Hardware.PortBase<Meadow.Hardware.IDigitalChannelInfo> -> Meadow.Hardware.DigitalPortBase -> Meadow.Hardware.DigitalInputPortBase -> Meadow.Hardware.DigitalInterruptPortBase
Implements:
Meadow.Hardware.IDigitalInterruptPort, Meadow.Hardware.IDigitalInputPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>, System.IDisposable, System.IObservable<Meadow.IChangeResult<Meadow.Hardware.DigitalState>>
Properties
Resistor
Gets or sets the internal resistor mode of the port
View Source
Declaration
public override ResistorMode Resistor { get; set; }
State
Gets the current state of the port
View Source
Declaration
public override bool State { get; }
DebounceDuration
Debouce duration
View Source
Declaration
public override TimeSpan DebounceDuration { get; set; }
GlitchDuration
Glitch duration
View Source
Declaration
public override TimeSpan GlitchDuration { get; set; }
Methods
Dispose(bool)
Releases allocated port resources
View Source
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name |
|---|---|
System.Boolean | disposing |
Implements
Meadow.Hardware.IDigitalInterruptPortMeadow.Hardware.IDigitalInputPortMeadow.Hardware.IDigitalPortMeadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>System.IDisposableSystem.IObservable<Meadow.IChangeResult<Meadow.Hardware.DigitalState>>