Class PWMJNI


  • public class PWMJNI
    extends DIOJNI
    • Constructor Detail

      • PWMJNI

        public PWMJNI()
    • Method Detail

      • initializePWMPort

        public static int initializePWMPort​(int halPortHandle)
      • checkPWMChannel

        public static boolean checkPWMChannel​(int channel)
      • freePWMPort

        public static void freePWMPort​(int pwmPortHandle)
      • 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)
      • setPWMEliminateDeadband

        public static void setPWMEliminateDeadband​(int pwmPortHandle,
                                                   boolean eliminateDeadband)
      • getPWMEliminateDeadband

        public static boolean getPWMEliminateDeadband​(int pwmPortHandle)
      • setPWMRaw

        public static void setPWMRaw​(int pwmPortHandle,
                                     short value)
      • setPWMSpeed

        public static void setPWMSpeed​(int pwmPortHandle,
                                       double speed)
      • setPWMPosition

        public static void setPWMPosition​(int pwmPortHandle,
                                          double position)
      • getPWMRaw

        public static short getPWMRaw​(int pwmPortHandle)
      • getPWMSpeed

        public static double getPWMSpeed​(int pwmPortHandle)
      • getPWMPosition

        public static double getPWMPosition​(int pwmPortHandle)
      • setPWMDisabled

        public static void setPWMDisabled​(int pwmPortHandle)
      • latchPWMZero

        public static void latchPWMZero​(int pwmPortHandle)
      • setPWMPeriodScale

        public static void setPWMPeriodScale​(int pwmPortHandle,
                                             int squelchMask)