mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Removed AnalogModule, DigitalModule, and Module from Java
Change-Id: I42c58237f1e14d0ebae1c7266aecda00d51eeae1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user