Package com.tinkerforge
Interface BrickletIndustrialDigitalIn4.InterruptListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletIndustrialDigitalIn4
public static interface BrickletIndustrialDigitalIn4.InterruptListener extends DeviceListener
This listener is triggered whenever a change of the voltage level is detected on pins where the interrupt was activated withBrickletIndustrialDigitalIn4.setInterrupt(int)
. The values are a bitmask that specifies which interrupts occurred and the current value bitmask. For example: * (1, 1) or (0b0001, 0b0001) means that an interrupt on pin 0 occurred and currently pin 0 is high and pins 1-3 are low. * (9, 14) or (0b1001, 0b1110) means that interrupts on pins 0 and 3 occurred and currently pin 0 is low and pins 1-3 are high. The interrupts use the grouping as set byBrickletIndustrialDigitalIn4.setGroup(char[])
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
interrupt(int interruptMask, int valueMask)
-