Export (0) Print
Expand All

Port.InterruptMode Enumeration

.NET Micro Framework 3.0
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 Port.InterruptMode

 Member nameDescription
InterruptEdgeBothA value that sets the port so that its interrupt is triggered on both the rising and falling edges.
InterruptEdgeHighA value that sets the port so that its interrupt is triggered on the rising edge.
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.
InterruptEdgeLowA value that sets the port so that its interrupt is triggered on the falling edge.
InterruptNoneA value that sets the port not to generate an interrupt.

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.

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

Community Additions

ADD
Show:
© 2014 Microsoft