InterruptPort Constructor

Initializes a new instance of the InterruptPort class.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public InterruptPort (
         Pin portId,
         bool glitchFilter,
         ResistorMode resistor,
         InterruptMode interrupt
)

Parameters

  • portId
    The identifier for the interrupt port. If the port with the specified identifier is already in use, an exception is thrown.
  • glitchFilter
    true if the glitch filter is currently enabled; otherwise, false.
  • resistor
    The resistor mode that establishes a default state for the port.
  • interrupt
    The interrupt mode that establishes the requisite conditions for the port to generate an interrupt.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

InterruptPort Class
InterruptPort Members
Microsoft.SPOT.Hardware Namespace