The InterruptMode enum defines the type of interrupt event which will trigger an InterruptPort's OnInterrupt event.
public enum InterruptMode { 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. InterruptNone }