|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.ftcontroller.DigitalIn
public class DigitalIn
A class the represents the digital input ports (I1..I8).
Method Summary | |
---|---|
int |
getValue()
Polls the digital input ports (all 8 at the same time) and returns their states as a bit pattern: I1->bit 0 (LSB),... |
boolean |
isPortOff(int portNb)
Polls the digital input ports (all 8 at the same time) and returns true if the specified port is turned off. |
boolean |
isPortOn(int portNb)
Polls the digital input ports (all 8 at the same time) and returns true if the specified port is turned on. |
void |
waitPortOff(int portNb)
Wait until the specified port is set to 0. |
void |
waitPortOn(int portNb)
Wait until the specified port is set to 1. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getValue()
public boolean isPortOn(int portNb)
portNb
- the port number 1..8
public boolean isPortOff(int portNb)
portNb
- the port number 1..8
public void waitPortOn(int portNb)
portNb
- the port number 1..8public void waitPortOff(int portNb)
portNb
- the port number 1..8
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |