Skip to main content

Class Pcx857x.DigitalInterruptPort

A Pcx857x-specific implementation of the IDigitalInterruptPort

Assembly: Pcx857x.dll
View Source
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
public override ResistorMode Resistor { get; set; }

State

Gets the current state of the port

View Source
public override bool State { get; }

DebounceDuration

Debouce duration

View Source
public override TimeSpan DebounceDuration { get; set; }

GlitchDuration

Glitch duration

View Source
public override TimeSpan GlitchDuration { get; set; }

Methods

Dispose(bool)

Releases allocated port resources

View Source
protected override void Dispose(bool disposing)
Parameters
TypeName
System.Booleandisposing

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>>