|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PulseInput
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 |
---|
void enablePulseMeasurement(boolean enable)
enable
- true enables pulse measurement, false disables pulse
measurementint readEdgeCount()
int readPulseDuration()
The method enablePulseMeasurement must be called prior to calling this method.
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 v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |