Package edu.wpi.first.hal
Class AnalogJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.AnalogJNI
public class AnalogJNI extends JNIWrapper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AnalogJNI.AnalogTriggerType
native declaration : AthenaJava\target\native\include\HAL\Analog.h:58
enum values -
Constructor Summary
Constructors Constructor Description AnalogJNI()
-
Method Summary
Modifier and Type Method Description static boolean
checkAnalogInputChannel(int channel)
static boolean
checkAnalogModule(byte module)
static boolean
checkAnalogOutputChannel(int channel)
static void
cleanAnalogTrigger(int analogTriggerHandle)
static void
freeAnalogInputPort(int portHandle)
static void
freeAnalogOutputPort(int portHandle)
static int
getAccumulatorCount(int analogPortHandle)
static void
getAccumulatorOutput(int analogPortHandle, AccumulatorResult result)
static long
getAccumulatorValue(int analogPortHandle)
static int
getAnalogAverageBits(int analogPortHandle)
static int
getAnalogAverageValue(int analogPortHandle)
static double
getAnalogAverageVoltage(int analogPortHandle)
static int
getAnalogLSBWeight(int analogPortHandle)
static int
getAnalogOffset(int analogPortHandle)
static double
getAnalogOutput(int portHandle)
static int
getAnalogOversampleBits(int analogPortHandle)
static double
getAnalogSampleRate()
static int
getAnalogTriggerFPGAIndex(int analogTriggerHandle)
static boolean
getAnalogTriggerInWindow(int analogTriggerHandle)
static boolean
getAnalogTriggerOutput(int analogTriggerHandle, int type)
static boolean
getAnalogTriggerTriggerState(int analogTriggerHandle)
static short
getAnalogValue(int analogPortHandle)
static double
getAnalogValueToVolts(int analogPortHandle, int value)
static double
getAnalogVoltage(int analogPortHandle)
static int
getAnalogVoltsToValue(int analogPortHandle, double voltage)
static void
initAccumulator(int analogPortHandle)
static int
initializeAnalogInputPort(int halPortHandle)
static int
initializeAnalogOutputPort(int halPortHandle)
static int
initializeAnalogTrigger(int analogInputHandle)
static int
initializeAnalogTriggerDutyCycle(int dutyCycleHandle)
static boolean
isAccumulatorChannel(int analogPortHandle)
static void
resetAccumulator(int analogPortHandle)
static void
setAccumulatorCenter(int analogPortHandle, int center)
static void
setAccumulatorDeadband(int analogPortHandle, int deadband)
static void
setAnalogAverageBits(int analogPortHandle, int bits)
static void
setAnalogInputSimDevice(int handle, int device)
static void
setAnalogOutput(int portHandle, double voltage)
static void
setAnalogOversampleBits(int analogPortHandle, int bits)
static void
setAnalogSampleRate(double samplesPerSecond)
static void
setAnalogTriggerAveraged(int analogTriggerHandle, boolean useAveragedValue)
static void
setAnalogTriggerFiltered(int analogTriggerHandle, boolean useFilteredValue)
static void
setAnalogTriggerLimitsDutyCycle(int analogTriggerHandle, double lower, double higher)
static void
setAnalogTriggerLimitsRaw(int analogTriggerHandle, int lower, int upper)
static void
setAnalogTriggerLimitsVoltage(int analogTriggerHandle, double lower, double upper)
-
Constructor Details
-
Method Details
-
initializeAnalogInputPort
-
freeAnalogInputPort
-
initializeAnalogOutputPort
-
freeAnalogOutputPort
-
checkAnalogModule
-
checkAnalogInputChannel
-
checkAnalogOutputChannel
-
setAnalogInputSimDevice
-
setAnalogOutput
-
getAnalogOutput
-
setAnalogSampleRate
-
getAnalogSampleRate
-
setAnalogAverageBits
-
getAnalogAverageBits
-
setAnalogOversampleBits
-
getAnalogOversampleBits
-
getAnalogValue
-
getAnalogAverageValue
-
getAnalogVoltsToValue
-
getAnalogValueToVolts
-
getAnalogVoltage
-
getAnalogAverageVoltage
-
getAnalogLSBWeight
-
getAnalogOffset
-
isAccumulatorChannel
-
initAccumulator
-
resetAccumulator
-
setAccumulatorCenter
-
setAccumulatorDeadband
-
getAccumulatorValue
-
getAccumulatorCount
-
getAccumulatorOutput
-
initializeAnalogTrigger
-
initializeAnalogTriggerDutyCycle
-
cleanAnalogTrigger
-
setAnalogTriggerLimitsRaw
-
setAnalogTriggerLimitsDutyCycle
public static void setAnalogTriggerLimitsDutyCycle(int analogTriggerHandle, double lower, double higher) -
setAnalogTriggerLimitsVoltage
public static void setAnalogTriggerLimitsVoltage(int analogTriggerHandle, double lower, double upper) -
setAnalogTriggerAveraged
-
setAnalogTriggerFiltered
-
getAnalogTriggerInWindow
-
getAnalogTriggerTriggerState
-
getAnalogTriggerOutput
-
getAnalogTriggerFPGAIndex
-