aboutsummaryrefslogtreecommitdiffstats
path: root/Java/com_phidgets_LEDPhidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'Java/com_phidgets_LEDPhidget.c')
-rw-r--r--Java/com_phidgets_LEDPhidget.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Java/com_phidgets_LEDPhidget.c b/Java/com_phidgets_LEDPhidget.c
index 20097b9..c5fb201 100644
--- a/Java/com_phidgets_LEDPhidget.c
+++ b/Java/com_phidgets_LEDPhidget.c
@@ -9,10 +9,14 @@ JNI_LOAD(accel, LED)
JNI_CREATE(LED)
JNI_INDEXED_GETFUNC(LED, DiscreteLED, DiscreteLED, jint)
JNI_INDEXED_SETFUNC(LED, DiscreteLED, DiscreteLED, jint)
+JNI_INDEXED_GETFUNC(LED, Brightness, Brightness, jdouble)
+JNI_INDEXED_SETFUNC(LED, Brightness, Brightness, jdouble)
+JNI_INDEXED_GETFUNC(LED, CurrentLimit__I, CurrentLimitIndexed, jdouble)
+JNI_INDEXED_SETFUNC(LED, CurrentLimit__ID, CurrentLimitIndexed, jdouble)
JNI_GETFUNC(LED, LEDCount, LEDCount, jint)
JNIEXPORT jint JNICALL
-Java_com_phidgets_LEDPhidget_getCurrentLimit(JNIEnv *env, jobject obj)
+Java_com_phidgets_LEDPhidget_getCurrentLimit__(JNIEnv *env, jobject obj)
{
CPhidgetLEDHandle h = (CPhidgetLEDHandle)(uintptr_t)
(*env)->GetLongField(env, obj, handle_fid);
@@ -22,7 +26,7 @@ Java_com_phidgets_LEDPhidget_getCurrentLimit(JNIEnv *env, jobject obj)
PH_THROW(error);
return (jint)v;
}
-JNI_SETFUNC(LED, CurrentLimit, CurrentLimit, jint)
+JNI_SETFUNC(LED, CurrentLimit__I, CurrentLimit, jint)
JNIEXPORT jint JNICALL
Java_com_phidgets_LEDPhidget_getVoltage(JNIEnv *env, jobject obj)