public class AnalogJNI extends JNIWrapper
Modifier and Type | Class and Description |
---|---|
static interface |
AnalogJNI.AnalogTriggerType
native declaration : AthenaJava\target\native\include\HAL\Analog.h:58
enum values |
Constructor and Description |
---|
AnalogJNI() |
Modifier and Type | Method and Description |
---|---|
static byte |
checkAnalogInputChannel(int pin) |
static byte |
checkAnalogModule(byte module) |
static byte |
checkAnalogOutputChannel(int pin) |
static void |
cleanAnalogTrigger(java.nio.ByteBuffer analog_trigger_pointer,
java.nio.IntBuffer status) |
static int |
getAccumulatorCount(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static void |
getAccumulatorOutput(java.nio.ByteBuffer analog_port_pointer,
java.nio.LongBuffer value,
java.nio.IntBuffer count,
java.nio.IntBuffer status) |
static long |
getAccumulatorValue(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static int |
getAnalogAverageBits(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static int |
getAnalogAverageValue(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static double |
getAnalogAverageVoltage(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static int |
getAnalogLSBWeight(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static int |
getAnalogOffset(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static double |
getAnalogOutput(java.nio.ByteBuffer port_pointer,
java.nio.IntBuffer status) |
static int |
getAnalogOversampleBits(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static double |
getAnalogSampleRate(java.nio.IntBuffer status) |
static byte |
getAnalogTriggerInWindow(java.nio.ByteBuffer analog_trigger_pointer,
java.nio.IntBuffer status) |
static byte |
getAnalogTriggerOutput(java.nio.ByteBuffer analog_trigger_pointer,
int type,
java.nio.IntBuffer status) |
static byte |
getAnalogTriggerTriggerState(java.nio.ByteBuffer analog_trigger_pointer,
java.nio.IntBuffer status) |
static short |
getAnalogValue(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static double |
getAnalogVoltage(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static int |
getAnalogVoltsToValue(java.nio.ByteBuffer analog_port_pointer,
double voltage,
java.nio.IntBuffer status) |
static void |
initAccumulator(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static java.nio.ByteBuffer |
initializeAnalogInputPort(java.nio.ByteBuffer port_pointer,
java.nio.IntBuffer status) |
static java.nio.ByteBuffer |
initializeAnalogOutputPort(java.nio.ByteBuffer port_pointer,
java.nio.IntBuffer status) |
static java.nio.ByteBuffer |
initializeAnalogTrigger(java.nio.ByteBuffer port_pointer,
java.nio.IntBuffer index,
java.nio.IntBuffer status) |
static byte |
isAccumulatorChannel(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static void |
resetAccumulator(java.nio.ByteBuffer analog_port_pointer,
java.nio.IntBuffer status) |
static void |
setAccumulatorCenter(java.nio.ByteBuffer analog_port_pointer,
int center,
java.nio.IntBuffer status) |
static void |
setAccumulatorDeadband(java.nio.ByteBuffer analog_port_pointer,
int deadband,
java.nio.IntBuffer status) |
static void |
setAnalogAverageBits(java.nio.ByteBuffer analog_port_pointer,
int bits,
java.nio.IntBuffer status) |
static void |
setAnalogOutput(java.nio.ByteBuffer port_pointer,
double voltage,
java.nio.IntBuffer status) |
static void |
setAnalogOversampleBits(java.nio.ByteBuffer analog_port_pointer,
int bits,
java.nio.IntBuffer status) |
static void |
setAnalogSampleRate(double samplesPerSecond,
java.nio.IntBuffer status) |
static void |
setAnalogTriggerAveraged(java.nio.ByteBuffer analog_trigger_pointer,
byte useAveragedValue,
java.nio.IntBuffer status) |
static void |
setAnalogTriggerFiltered(java.nio.ByteBuffer analog_trigger_pointer,
byte useFilteredValue,
java.nio.IntBuffer status) |
static void |
setAnalogTriggerLimitsRaw(java.nio.ByteBuffer analog_trigger_pointer,
int lower,
int upper,
java.nio.IntBuffer status) |
static void |
setAnalogTriggerLimitsVoltage(java.nio.ByteBuffer analog_trigger_pointer,
double lower,
double upper,
java.nio.IntBuffer status) |
getPort, getPortWithModule
public AnalogJNI()
public static java.nio.ByteBuffer initializeAnalogInputPort(java.nio.ByteBuffer port_pointer, java.nio.IntBuffer status)
public static java.nio.ByteBuffer initializeAnalogOutputPort(java.nio.ByteBuffer port_pointer, java.nio.IntBuffer status)
public static byte checkAnalogModule(byte module)
public static byte checkAnalogInputChannel(int pin)
public static byte checkAnalogOutputChannel(int pin)
public static void setAnalogOutput(java.nio.ByteBuffer port_pointer, double voltage, java.nio.IntBuffer status)
public static double getAnalogOutput(java.nio.ByteBuffer port_pointer, java.nio.IntBuffer status)
public static void setAnalogSampleRate(double samplesPerSecond, java.nio.IntBuffer status)
public static double getAnalogSampleRate(java.nio.IntBuffer status)
public static void setAnalogAverageBits(java.nio.ByteBuffer analog_port_pointer, int bits, java.nio.IntBuffer status)
public static int getAnalogAverageBits(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static void setAnalogOversampleBits(java.nio.ByteBuffer analog_port_pointer, int bits, java.nio.IntBuffer status)
public static int getAnalogOversampleBits(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static short getAnalogValue(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static int getAnalogAverageValue(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static int getAnalogVoltsToValue(java.nio.ByteBuffer analog_port_pointer, double voltage, java.nio.IntBuffer status)
public static double getAnalogVoltage(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static double getAnalogAverageVoltage(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static int getAnalogLSBWeight(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static int getAnalogOffset(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static byte isAccumulatorChannel(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static void initAccumulator(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static void resetAccumulator(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static void setAccumulatorCenter(java.nio.ByteBuffer analog_port_pointer, int center, java.nio.IntBuffer status)
public static void setAccumulatorDeadband(java.nio.ByteBuffer analog_port_pointer, int deadband, java.nio.IntBuffer status)
public static long getAccumulatorValue(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static int getAccumulatorCount(java.nio.ByteBuffer analog_port_pointer, java.nio.IntBuffer status)
public static void getAccumulatorOutput(java.nio.ByteBuffer analog_port_pointer, java.nio.LongBuffer value, java.nio.IntBuffer count, java.nio.IntBuffer status)
public static java.nio.ByteBuffer initializeAnalogTrigger(java.nio.ByteBuffer port_pointer, java.nio.IntBuffer index, java.nio.IntBuffer status)
public static void cleanAnalogTrigger(java.nio.ByteBuffer analog_trigger_pointer, java.nio.IntBuffer status)
public static void setAnalogTriggerLimitsRaw(java.nio.ByteBuffer analog_trigger_pointer, int lower, int upper, java.nio.IntBuffer status)
public static void setAnalogTriggerLimitsVoltage(java.nio.ByteBuffer analog_trigger_pointer, double lower, double upper, java.nio.IntBuffer status)
public static void setAnalogTriggerAveraged(java.nio.ByteBuffer analog_trigger_pointer, byte useAveragedValue, java.nio.IntBuffer status)
public static void setAnalogTriggerFiltered(java.nio.ByteBuffer analog_trigger_pointer, byte useFilteredValue, java.nio.IntBuffer status)
public static byte getAnalogTriggerInWindow(java.nio.ByteBuffer analog_trigger_pointer, java.nio.IntBuffer status)
public static byte getAnalogTriggerTriggerState(java.nio.ByteBuffer analog_trigger_pointer, java.nio.IntBuffer status)
public static byte getAnalogTriggerOutput(java.nio.ByteBuffer analog_trigger_pointer, int type, java.nio.IntBuffer status)