|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Generic interface to a digital input port which supports pulse input timing.
| Method Summary | |
void |
enablePulseMeasurement(boolean enable)
Enables or disables pulse measurement. |
int |
readEdgeCount()
Reads the count of rising and falling edges detected on this input since pulse measurement was enabled by the enablePulseMeasurement method. |
int |
readPulseDuration()
Reads the duration of the last high pulse. |
int |
readPulseDuration(boolean highPulse)
Reads the duration of the last pulse. |
| Methods inherited from interface com.ridgesoft.robotics.DigitalInput |
isSet |
| Method Detail |
public void enablePulseMeasurement(boolean enable)
enable - true enables pulse measurement, false disables pulse
measurementpublic int readEdgeCount()
public int readPulseDuration()
The method enablePulseMeasurement must be called prior to calling this method.
public int readPulseDuration(boolean highPulse)
The method enablePulseMeasurement must be called prior to calling this method.
highPulse - true for duration of high pulse, false for duration of low
pulse
|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||