Port.InterruptMode Enumeration

Contains the values you use to set the port interrupt mode. There are six port interrupt modes to choose from.

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

Syntax

public enum Port.InterruptMode

Members

  Member name Description
InterruptEdgeBoth A value that sets the port so that its interrupt is triggered on both the rising and falling edges.
InterruptEdgeHigh A value that sets the port so that its interrupt is triggered on the rising edge.
InterruptEdgeLevelHigh A value that sets the port so that its interrupt is triggered when the input level is high.
InterruptEdgeLevelLow A value that sets the port so that its interrupt is triggered when the input level is low.
InterruptEdgeLow A value that sets the port so that its interrupt is triggered on the falling edge.
InterruptNone A value that sets the port not to generate an interrupt.

Remarks

A level interrupt, which is either an InterruptEdgeLevelHigh or InterruptEdgeLevelLow interrupt, is dispatched when the value on a pin matches the specified high or low value, respectively. The system dispatches only the first occurrence of a level interrupt until it is cleared by means of the InterruptPort.ClearInterrupt method.

With a nonlevel interrupt, every specified edge is dispatched, and the InterruptPort.ClearInterrupt method has no effect.

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

Microsoft.SPOT.Hardware Namespace