Share via


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)

Syntax

'Declaration
Public Enumeration InterruptMode
public enum InterruptMode
public enum class InterruptMode
type InterruptMode
public enum InterruptMode

Members

Member name Description
InterruptNone A value that sets the port not to generate an interrupt.
InterruptEdgeLow A value that sets the port so that its interrupt is triggered on the falling edge.
InterruptEdgeHigh A value that sets the port so that its interrupt is triggered on the rising edge.
InterruptEdgeBoth A value that sets the port so that its interrupt is triggered on both the rising and falling edges.
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.

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

See Also

Reference

Microsoft.SPOT.Hardware Namespace