aboutsummaryrefslogtreecommitdiffstats
path: root/Java/com_phidgets_AnalogPhidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'Java/com_phidgets_AnalogPhidget.c')
-rw-r--r--Java/com_phidgets_AnalogPhidget.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Java/com_phidgets_AnalogPhidget.c b/Java/com_phidgets_AnalogPhidget.c
new file mode 100644
index 0000000..35bd2d5
--- /dev/null
+++ b/Java/com_phidgets_AnalogPhidget.c
@@ -0,0 +1,17 @@
+#include "../stdafx.h"
+#include "phidget_jni.h"
+#include "com_phidgets_AnalogPhidget.h"
+#include "../cphidgetanalog.h"
+
+JNI_LOAD(analog, Analog)
+}
+
+JNI_CREATE(Analog)
+
+JNI_GETFUNC(Analog, OutputCount, OutputCount, jint)
+JNI_INDEXED_GETFUNC(Analog, Voltage, Voltage, jdouble)
+JNI_INDEXED_SETFUNC(Analog, Voltage, Voltage, jdouble)
+JNI_INDEXED_GETFUNC(Analog, VoltageMax, VoltageMax, jdouble)
+JNI_INDEXED_GETFUNC(Analog, VoltageMin, VoltageMin, jdouble)
+JNI_INDEXED_GETFUNCBOOL(Analog, Enabled, Enabled)
+JNI_INDEXED_SETFUNC(Analog, Enabled, Enabled, jboolean) \ No newline at end of file