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 int
getPulseTimeMicroseconds(int pwmPortHandle)
static PWMConfigDataResult
getPWMConfigMicroseconds(int pwmPortHandle)
static boolean
getPWMEliminateDeadband(int pwmPortHandle)
static double
getPWMPosition(int pwmPortHandle)
static double
getPWMSpeed(int pwmPortHandle)
static int
initializePWMPort(int halPortHandle)
static void
latchPWMZero(int pwmPortHandle)
static void
setAlwaysHighMode(int pwmPortHandle)
static void
setPulseTimeMicroseconds(int pwmPortHandle, int microsecondPulseTime)
static void
setPWMConfigMicroseconds(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
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
-
setPWMConfigMicroseconds
public static void setPWMConfigMicroseconds(int pwmPortHandle, int maxPwm, int deadbandMaxPwm, int centerPwm, int deadbandMinPwm, int minPwm) -
getPWMConfigMicroseconds
-
setPWMEliminateDeadband
-
getPWMEliminateDeadband
-
setPulseTimeMicroseconds
-
setPWMSpeed
-
setPWMPosition
-
getPulseTimeMicroseconds
-
getPWMSpeed
-
getPWMPosition
-
setPWMDisabled
-
latchPWMZero
-
setAlwaysHighMode
-
setPWMPeriodScale
-