00001
00002 #include <jni.h>
00003
00004
00005 #ifndef _Included_com_phidgets_StepperPhidget
00006 #define _Included_com_phidgets_StepperPhidget
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 #undef com_phidgets_StepperPhidget_PHIDGET_LOG_CRITICAL
00011 #define com_phidgets_StepperPhidget_PHIDGET_LOG_CRITICAL 1L
00012 #undef com_phidgets_StepperPhidget_PHIDGET_LOG_ERROR
00013 #define com_phidgets_StepperPhidget_PHIDGET_LOG_ERROR 2L
00014 #undef com_phidgets_StepperPhidget_PHIDGET_LOG_WARNING
00015 #define com_phidgets_StepperPhidget_PHIDGET_LOG_WARNING 3L
00016 #undef com_phidgets_StepperPhidget_PHIDGET_LOG_DEBUG
00017 #define com_phidgets_StepperPhidget_PHIDGET_LOG_DEBUG 4L
00018 #undef com_phidgets_StepperPhidget_PHIDGET_LOG_INFO
00019 #define com_phidgets_StepperPhidget_PHIDGET_LOG_INFO 5L
00020 #undef com_phidgets_StepperPhidget_PHIDGET_LOG_VERBOSE
00021 #define com_phidgets_StepperPhidget_PHIDGET_LOG_VERBOSE 6L
00022 #undef com_phidgets_StepperPhidget_PHIDID_NOTHING
00023 #define com_phidgets_StepperPhidget_PHIDID_NOTHING 1L
00024 #undef com_phidgets_StepperPhidget_PHIDID_ACCELEROMETER_3AXIS
00025 #define com_phidgets_StepperPhidget_PHIDID_ACCELEROMETER_3AXIS 126L
00026 #undef com_phidgets_StepperPhidget_PHIDID_ADVANCEDSERVO_1MOTOR
00027 #define com_phidgets_StepperPhidget_PHIDID_ADVANCEDSERVO_1MOTOR 130L
00028 #undef com_phidgets_StepperPhidget_PHIDID_ADVANCEDSERVO_8MOTOR
00029 #define com_phidgets_StepperPhidget_PHIDID_ADVANCEDSERVO_8MOTOR 58L
00030 #undef com_phidgets_StepperPhidget_PHIDID_ANALOG_4OUTPUT
00031 #define com_phidgets_StepperPhidget_PHIDID_ANALOG_4OUTPUT 55L
00032 #undef com_phidgets_StepperPhidget_PHIDID_BIPOLAR_STEPPER_1MOTOR
00033 #define com_phidgets_StepperPhidget_PHIDID_BIPOLAR_STEPPER_1MOTOR 123L
00034 #undef com_phidgets_StepperPhidget_PHIDID_BRIDGE_4INPUT
00035 #define com_phidgets_StepperPhidget_PHIDID_BRIDGE_4INPUT 59L
00036 #undef com_phidgets_StepperPhidget_PHIDID_ENCODER_1ENCODER_1INPUT
00037 #define com_phidgets_StepperPhidget_PHIDID_ENCODER_1ENCODER_1INPUT 75L
00038 #undef com_phidgets_StepperPhidget_PHIDID_ENCODER_HS_1ENCODER
00039 #define com_phidgets_StepperPhidget_PHIDID_ENCODER_HS_1ENCODER 128L
00040 #undef com_phidgets_StepperPhidget_PHIDID_ENCODER_HS_4ENCODER_4INPUT
00041 #define com_phidgets_StepperPhidget_PHIDID_ENCODER_HS_4ENCODER_4INPUT 79L
00042 #undef com_phidgets_StepperPhidget_PHIDID_FREQUENCYCOUNTER_2INPUT
00043 #define com_phidgets_StepperPhidget_PHIDID_FREQUENCYCOUNTER_2INPUT 53L
00044 #undef com_phidgets_StepperPhidget_PHIDID_GPS
00045 #define com_phidgets_StepperPhidget_PHIDID_GPS 121L
00046 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_0_4
00047 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_0_4 64L
00048 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_0_8
00049 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_0_8 129L
00050 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_16_16
00051 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_16_16 68L
00052 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_2_2_2
00053 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_2_2_2 54L
00054 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_8_8_8
00055 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_8_8_8 69L
00056 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_8_8_8_w_LCD
00057 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_8_8_8_w_LCD 125L
00058 #undef com_phidgets_StepperPhidget_PHIDID_IR
00059 #define com_phidgets_StepperPhidget_PHIDID_IR 77L
00060 #undef com_phidgets_StepperPhidget_PHIDID_LED_64_ADV
00061 #define com_phidgets_StepperPhidget_PHIDID_LED_64_ADV 76L
00062 #undef com_phidgets_StepperPhidget_PHIDID_LINEAR_TOUCH
00063 #define com_phidgets_StepperPhidget_PHIDID_LINEAR_TOUCH 118L
00064 #undef com_phidgets_StepperPhidget_PHIDID_MOTORCONTROL_1MOTOR
00065 #define com_phidgets_StepperPhidget_PHIDID_MOTORCONTROL_1MOTOR 62L
00066 #undef com_phidgets_StepperPhidget_PHIDID_MOTORCONTROL_HC_2MOTOR
00067 #define com_phidgets_StepperPhidget_PHIDID_MOTORCONTROL_HC_2MOTOR 89L
00068 #undef com_phidgets_StepperPhidget_PHIDID_RFID_2OUTPUT
00069 #define com_phidgets_StepperPhidget_PHIDID_RFID_2OUTPUT 49L
00070 #undef com_phidgets_StepperPhidget_PHIDID_RFID_2OUTPUT_READ_WRITE
00071 #define com_phidgets_StepperPhidget_PHIDID_RFID_2OUTPUT_READ_WRITE 52L
00072 #undef com_phidgets_StepperPhidget_PHIDID_ROTARY_TOUCH
00073 #define com_phidgets_StepperPhidget_PHIDID_ROTARY_TOUCH 119L
00074 #undef com_phidgets_StepperPhidget_PHIDID_SPATIAL_ACCEL_3AXIS
00075 #define com_phidgets_StepperPhidget_PHIDID_SPATIAL_ACCEL_3AXIS 127L
00076 #undef com_phidgets_StepperPhidget_PHIDID_SPATIAL_ACCEL_GYRO_COMPASS
00077 #define com_phidgets_StepperPhidget_PHIDID_SPATIAL_ACCEL_GYRO_COMPASS 51L
00078 #undef com_phidgets_StepperPhidget_PHIDID_TEMPERATURESENSOR
00079 #define com_phidgets_StepperPhidget_PHIDID_TEMPERATURESENSOR 112L
00080 #undef com_phidgets_StepperPhidget_PHIDID_TEMPERATURESENSOR_4
00081 #define com_phidgets_StepperPhidget_PHIDID_TEMPERATURESENSOR_4 50L
00082 #undef com_phidgets_StepperPhidget_PHIDID_TEMPERATURESENSOR_IR
00083 #define com_phidgets_StepperPhidget_PHIDID_TEMPERATURESENSOR_IR 60L
00084 #undef com_phidgets_StepperPhidget_PHIDID_TEXTLCD_2x20_w_8_8_8
00085 #define com_phidgets_StepperPhidget_PHIDID_TEXTLCD_2x20_w_8_8_8 381L
00086 #undef com_phidgets_StepperPhidget_PHIDID_TEXTLCD_ADAPTER
00087 #define com_phidgets_StepperPhidget_PHIDID_TEXTLCD_ADAPTER 61L
00088 #undef com_phidgets_StepperPhidget_PHIDID_UNIPOLAR_STEPPER_4MOTOR
00089 #define com_phidgets_StepperPhidget_PHIDID_UNIPOLAR_STEPPER_4MOTOR 122L
00090 #undef com_phidgets_StepperPhidget_PHIDID_ACCELEROMETER_2AXIS
00091 #define com_phidgets_StepperPhidget_PHIDID_ACCELEROMETER_2AXIS 113L
00092 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_8_8_w_LCD
00093 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_0_8_8_w_LCD 83L
00094 #undef com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_4_8_8
00095 #define com_phidgets_StepperPhidget_PHIDID_INTERFACEKIT_4_8_8 4L
00096 #undef com_phidgets_StepperPhidget_PHIDID_LED_64
00097 #define com_phidgets_StepperPhidget_PHIDID_LED_64 74L
00098 #undef com_phidgets_StepperPhidget_PHIDID_MOTORCONTROL_LV_2MOTOR_4INPUT
00099 #define com_phidgets_StepperPhidget_PHIDID_MOTORCONTROL_LV_2MOTOR_4INPUT 88L
00100 #undef com_phidgets_StepperPhidget_PHIDID_PHSENSOR
00101 #define com_phidgets_StepperPhidget_PHIDID_PHSENSOR 116L
00102 #undef com_phidgets_StepperPhidget_PHIDID_RFID
00103 #define com_phidgets_StepperPhidget_PHIDID_RFID 48L
00104 #undef com_phidgets_StepperPhidget_PHIDID_SERVO_1MOTOR
00105 #define com_phidgets_StepperPhidget_PHIDID_SERVO_1MOTOR 57L
00106 #undef com_phidgets_StepperPhidget_PHIDID_SERVO_1MOTOR_OLD
00107 #define com_phidgets_StepperPhidget_PHIDID_SERVO_1MOTOR_OLD 2L
00108 #undef com_phidgets_StepperPhidget_PHIDID_SERVO_4MOTOR
00109 #define com_phidgets_StepperPhidget_PHIDID_SERVO_4MOTOR 56L
00110 #undef com_phidgets_StepperPhidget_PHIDID_SERVO_4MOTOR_OLD
00111 #define com_phidgets_StepperPhidget_PHIDID_SERVO_4MOTOR_OLD 3L
00112 #undef com_phidgets_StepperPhidget_PHIDID_TEXTLCD_2x20
00113 #define com_phidgets_StepperPhidget_PHIDID_TEXTLCD_2x20 82L
00114 #undef com_phidgets_StepperPhidget_PHIDID_TEXTLCD_2x20_w_0_8_8
00115 #define com_phidgets_StepperPhidget_PHIDID_TEXTLCD_2x20_w_0_8_8 339L
00116 #undef com_phidgets_StepperPhidget_PHIDID_TEXTLED_1x8
00117 #define com_phidgets_StepperPhidget_PHIDID_TEXTLED_1x8 73L
00118 #undef com_phidgets_StepperPhidget_PHIDID_TEXTLED_4x8
00119 #define com_phidgets_StepperPhidget_PHIDID_TEXTLED_4x8 72L
00120 #undef com_phidgets_StepperPhidget_PHIDID_WEIGHTSENSOR
00121 #define com_phidgets_StepperPhidget_PHIDID_WEIGHTSENSOR 114L
00122 #undef com_phidgets_StepperPhidget_PHIDCLASS_NOTHING
00123 #define com_phidgets_StepperPhidget_PHIDCLASS_NOTHING 1L
00124 #undef com_phidgets_StepperPhidget_PHIDCLASS_ACCELEROMETER
00125 #define com_phidgets_StepperPhidget_PHIDCLASS_ACCELEROMETER 2L
00126 #undef com_phidgets_StepperPhidget_PHIDCLASS_ADVANCEDSERVO
00127 #define com_phidgets_StepperPhidget_PHIDCLASS_ADVANCEDSERVO 3L
00128 #undef com_phidgets_StepperPhidget_PHIDCLASS_ANALOG
00129 #define com_phidgets_StepperPhidget_PHIDCLASS_ANALOG 22L
00130 #undef com_phidgets_StepperPhidget_PHIDCLASS_BRIDGE
00131 #define com_phidgets_StepperPhidget_PHIDCLASS_BRIDGE 23L
00132 #undef com_phidgets_StepperPhidget_PHIDCLASS_ENCODER
00133 #define com_phidgets_StepperPhidget_PHIDCLASS_ENCODER 4L
00134 #undef com_phidgets_StepperPhidget_PHIDCLASS_FREQUENCYCOUNTER
00135 #define com_phidgets_StepperPhidget_PHIDCLASS_FREQUENCYCOUNTER 21L
00136 #undef com_phidgets_StepperPhidget_PHIDCLASS_GPS
00137 #define com_phidgets_StepperPhidget_PHIDCLASS_GPS 5L
00138 #undef com_phidgets_StepperPhidget_PHIDCLASS_INTERFACEKIT
00139 #define com_phidgets_StepperPhidget_PHIDCLASS_INTERFACEKIT 7L
00140 #undef com_phidgets_StepperPhidget_PHIDCLASS_LED
00141 #define com_phidgets_StepperPhidget_PHIDCLASS_LED 8L
00142 #undef com_phidgets_StepperPhidget_PHIDCLASS_MOTORCONTROL
00143 #define com_phidgets_StepperPhidget_PHIDCLASS_MOTORCONTROL 9L
00144 #undef com_phidgets_StepperPhidget_PHIDCLASS_PHSENSOR
00145 #define com_phidgets_StepperPhidget_PHIDCLASS_PHSENSOR 10L
00146 #undef com_phidgets_StepperPhidget_PHIDCLASS_RFID
00147 #define com_phidgets_StepperPhidget_PHIDCLASS_RFID 11L
00148 #undef com_phidgets_StepperPhidget_PHIDCLASS_SERVO
00149 #define com_phidgets_StepperPhidget_PHIDCLASS_SERVO 12L
00150 #undef com_phidgets_StepperPhidget_PHIDCLASS_STEPPER
00151 #define com_phidgets_StepperPhidget_PHIDCLASS_STEPPER 13L
00152 #undef com_phidgets_StepperPhidget_PHIDCLASS_TEMPERATURESENSOR
00153 #define com_phidgets_StepperPhidget_PHIDCLASS_TEMPERATURESENSOR 14L
00154 #undef com_phidgets_StepperPhidget_PHIDCLASS_TEXTLCD
00155 #define com_phidgets_StepperPhidget_PHIDCLASS_TEXTLCD 15L
00156 #undef com_phidgets_StepperPhidget_PHIDCLASS_TEXTLED
00157 #define com_phidgets_StepperPhidget_PHIDCLASS_TEXTLED 16L
00158 #undef com_phidgets_StepperPhidget_PHIDCLASS_WEIGHTSENSOR
00159 #define com_phidgets_StepperPhidget_PHIDCLASS_WEIGHTSENSOR 17L
00160
00161
00162
00163
00164
00165 JNIEXPORT jlong JNICALL Java_com_phidgets_StepperPhidget_create
00166 (JNIEnv *, jclass);
00167
00168
00169
00170
00171
00172
00173 JNIEXPORT jint JNICALL Java_com_phidgets_StepperPhidget_getMotorCount
00174 (JNIEnv *, jobject);
00175
00176
00177
00178
00179
00180
00181 JNIEXPORT jint JNICALL Java_com_phidgets_StepperPhidget_getInputCount
00182 (JNIEnv *, jobject);
00183
00184
00185
00186
00187
00188
00189 JNIEXPORT jboolean JNICALL Java_com_phidgets_StepperPhidget_getInputState
00190 (JNIEnv *, jobject, jint);
00191
00192
00193
00194
00195
00196
00197 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getAcceleration
00198 (JNIEnv *, jobject, jint);
00199
00200
00201
00202
00203
00204
00205 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getAccelerationMax
00206 (JNIEnv *, jobject, jint);
00207
00208
00209
00210
00211
00212
00213 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getAccelerationMin
00214 (JNIEnv *, jobject, jint);
00215
00216
00217
00218
00219
00220
00221 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_setAcceleration
00222 (JNIEnv *, jobject, jint, jdouble);
00223
00224
00225
00226
00227
00228
00229 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getVelocity
00230 (JNIEnv *, jobject, jint);
00231
00232
00233
00234
00235
00236
00237 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getVelocityMax
00238 (JNIEnv *, jobject, jint);
00239
00240
00241
00242
00243
00244
00245 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getVelocityMin
00246 (JNIEnv *, jobject, jint);
00247
00248
00249
00250
00251
00252
00253 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_setVelocityLimit
00254 (JNIEnv *, jobject, jint, jdouble);
00255
00256
00257
00258
00259
00260
00261 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getVelocityLimit
00262 (JNIEnv *, jobject, jint);
00263
00264
00265
00266
00267
00268
00269 JNIEXPORT jlong JNICALL Java_com_phidgets_StepperPhidget_getPositionMax
00270 (JNIEnv *, jobject, jint);
00271
00272
00273
00274
00275
00276
00277 JNIEXPORT jlong JNICALL Java_com_phidgets_StepperPhidget_getPositionMin
00278 (JNIEnv *, jobject, jint);
00279
00280
00281
00282
00283
00284
00285 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_setCurrentPosition
00286 (JNIEnv *, jobject, jint, jlong);
00287
00288
00289
00290
00291
00292
00293 JNIEXPORT jlong JNICALL Java_com_phidgets_StepperPhidget_getCurrentPosition
00294 (JNIEnv *, jobject, jint);
00295
00296
00297
00298
00299
00300
00301 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_setTargetPosition
00302 (JNIEnv *, jobject, jint, jlong);
00303
00304
00305
00306
00307
00308
00309 JNIEXPORT jlong JNICALL Java_com_phidgets_StepperPhidget_getTargetPosition
00310 (JNIEnv *, jobject, jint);
00311
00312
00313
00314
00315
00316
00317 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getCurrent
00318 (JNIEnv *, jobject, jint);
00319
00320
00321
00322
00323
00324
00325 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getCurrentLimit
00326 (JNIEnv *, jobject, jint);
00327
00328
00329
00330
00331
00332
00333 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_setCurrentLimit
00334 (JNIEnv *, jobject, jint, jdouble);
00335
00336
00337
00338
00339
00340
00341 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getCurrentMax
00342 (JNIEnv *, jobject, jint);
00343
00344
00345
00346
00347
00348
00349 JNIEXPORT jdouble JNICALL Java_com_phidgets_StepperPhidget_getCurrentMin
00350 (JNIEnv *, jobject, jint);
00351
00352
00353
00354
00355
00356
00357 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_setEngaged
00358 (JNIEnv *, jobject, jint, jboolean);
00359
00360
00361
00362
00363
00364
00365 JNIEXPORT jboolean JNICALL Java_com_phidgets_StepperPhidget_getEngaged
00366 (JNIEnv *, jobject, jint);
00367
00368
00369
00370
00371
00372
00373 JNIEXPORT jboolean JNICALL Java_com_phidgets_StepperPhidget_getStopped
00374 (JNIEnv *, jobject, jint);
00375
00376
00377
00378
00379
00380
00381 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_enableStepperPositionChangeEvents
00382 (JNIEnv *, jobject, jboolean);
00383
00384
00385
00386
00387
00388
00389 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_enableStepperVelocityChangeEvents
00390 (JNIEnv *, jobject, jboolean);
00391
00392
00393
00394
00395
00396
00397 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_enableCurrentChangeEvents
00398 (JNIEnv *, jobject, jboolean);
00399
00400
00401
00402
00403
00404
00405 JNIEXPORT void JNICALL Java_com_phidgets_StepperPhidget_enableInputChangeEvents
00406 (JNIEnv *, jobject, jboolean);
00407
00408 #ifdef __cplusplus
00409 }
00410 #endif
00411 #endif