Port.InterruptMode Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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)

public enum InterruptMode

Member nameDescription
InterruptNoneA value that sets the port not to generate an interrupt.
InterruptEdgeLowA value that sets the port so that its interrupt is triggered on the falling edge.
InterruptEdgeHighA value that sets the port so that its interrupt is triggered on the rising edge.
InterruptEdgeBothA value that sets the port so that its interrupt is triggered on both the rising and falling edges.
InterruptEdgeLevelHighA value that sets the port so that its interrupt is triggered when the input level is high.
InterruptEdgeLevelLowA value that sets the port so that its interrupt is triggered when the input level is low.

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 ClearInterrupt method.With a nonlevel interrupt, every specified edge is dispatched, and the ClearInterrupt method has no effect.

Show: