Package edu.wpi.first.hal
Class RelayJNI
- java.lang.Object
-
- edu.wpi.first.hal.JNIWrapper
-
- edu.wpi.first.hal.DIOJNI
-
- edu.wpi.first.hal.RelayJNI
-
public class RelayJNI extends DIOJNI
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.hal.JNIWrapper
JNIWrapper.Helper
-
-
Constructor Summary
Constructors Constructor Description RelayJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckRelayChannel(int channel)static voidfreeRelayPort(int relayPortHandle)static booleangetRelay(int relayPortHandle)static intinitializeRelayPort(int halPortHandle, boolean forward)static voidsetRelay(int relayPortHandle, boolean on)-
Methods inherited from class edu.wpi.first.hal.DIOJNI
allocateDigitalPWM, checkDIOChannel, freeDigitalPWM, freeDIOPort, getDIO, getDIODirection, getLoopTiming, initializeDIOPort, isAnyPulsing, isPulsing, pulse, setDigitalPWMDutyCycle, setDigitalPWMOutputChannel, setDigitalPWMRate, setDIO, setDIODirection, setDIOSimDevice
-
Methods inherited from class edu.wpi.first.hal.JNIWrapper
forceLoad
-
-
-
-
Method Detail
-
initializeRelayPort
public static int initializeRelayPort(int halPortHandle, boolean forward)
-
freeRelayPort
public static void freeRelayPort(int relayPortHandle)
-
checkRelayChannel
public static boolean checkRelayChannel(int channel)
-
setRelay
public static void setRelay(int relayPortHandle, boolean on)
-
getRelay
public static boolean getRelay(int relayPortHandle)
-
-