Package edu.wpi.first.hal
Class PWMJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.DIOJNI
edu.wpi.first.hal.PWMJNI
public class PWMJNI extends DIOJNI
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description PWMJNI()
-
Method Summary
Modifier and Type Method Description static boolean
checkPWMChannel(int channel)
static void
freePWMPort(int pwmPortHandle)
static PWMConfigDataResult
getPWMConfigRaw(int pwmPortHandle)
static boolean
getPWMEliminateDeadband(int pwmPortHandle)
static double
getPWMPosition(int pwmPortHandle)
static short
getPWMRaw(int pwmPortHandle)
static double
getPWMSpeed(int pwmPortHandle)
static int
initializePWMPort(int halPortHandle)
static void
latchPWMZero(int pwmPortHandle)
static void
setPWMConfig(int pwmPortHandle, double maxPwm, double deadbandMaxPwm, double centerPwm, double deadbandMinPwm, double minPwm)
static void
setPWMConfigRaw(int pwmPortHandle, int maxPwm, int deadbandMaxPwm, int centerPwm, int deadbandMinPwm, int minPwm)
static void
setPWMDisabled(int pwmPortHandle)
static void
setPWMEliminateDeadband(int pwmPortHandle, boolean eliminateDeadband)
static void
setPWMPeriodScale(int pwmPortHandle, int squelchMask)
static void
setPWMPosition(int pwmPortHandle, double position)
static void
setPWMRaw(int pwmPortHandle, short value)
static void
setPWMSpeed(int pwmPortHandle, double speed)
Methods inherited from class edu.wpi.first.hal.DIOJNI
allocateDigitalPWM, checkDIOChannel, freeDigitalPWM, freeDIOPort, getDIO, getDIODirection, getLoopTiming, initializeDIOPort, isAnyPulsing, isPulsing, pulse, pulseMultiple, setDigitalPWMDutyCycle, setDigitalPWMOutputChannel, setDigitalPWMPPS, setDigitalPWMRate, setDIO, setDIODirection, setDIOSimDevice
-
Constructor Details
-
Method Details
-
initializePWMPort
-
checkPWMChannel
-
freePWMPort
-
setPWMConfigRaw
public static void setPWMConfigRaw(int pwmPortHandle, int maxPwm, int deadbandMaxPwm, int centerPwm, int deadbandMinPwm, int minPwm) -
setPWMConfig
public static void setPWMConfig(int pwmPortHandle, double maxPwm, double deadbandMaxPwm, double centerPwm, double deadbandMinPwm, double minPwm) -
getPWMConfigRaw
-
setPWMEliminateDeadband
-
getPWMEliminateDeadband
-
setPWMRaw
-
setPWMSpeed
-
setPWMPosition
-
getPWMRaw
-
getPWMSpeed
-
getPWMPosition
-
setPWMDisabled
-
latchPWMZero
-
setPWMPeriodScale
-