InterruptPort Constructor

Windows Automotive 5.0/5.5
Initializes a new instance of the InterruptPort class.

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

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.

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

Community Additions

ADD
Show: