Removed AnalogModule, DigitalModule, and Module from Java

Change-Id: I42c58237f1e14d0ebae1c7266aecda00d51eeae1
This commit is contained in:
thomasclark
2014-07-22 13:31:36 -04:00
parent 48e8b2136e
commit b5fb35c0c4
18 changed files with 702 additions and 1680 deletions

View File

@@ -23,3 +23,19 @@ JNIEXPORT jobject JNICALL Java_edu_wpi_first_wpilibj_hal_JNIWrapper_getPortWithM
return env->NewDirectByteBuffer( portPtr, 4);
}
/*
* Class: edu_wpi_first_wpilibj_hal_JNIWrapper
* Method: getPort
* Signature: (BB)Ljava/nio/ByteBuffer;
*/
JNIEXPORT jobject JNICALL Java_edu_wpi_first_wpilibj_hal_JNIWrapper_getPort
(JNIEnv * env, jclass, jbyte pin)
{
//FILE_LOG(logDEBUG) << "Calling JNIWrapper getPortWithModlue";
//FILE_LOG(logDEBUG) << "Module = " << (jint)module;
//FILE_LOG(logDEBUG) << "Pin = " << (jint)pin;
void** portPtr = (void**)new unsigned char[4];
*portPtr = getPort(pin);
//FILE_LOG(logDEBUG) << "Port Ptr = " << *portPtr;
return env->NewDirectByteBuffer( portPtr, 4);
}