mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Move examples into tree
See history at https://github.com/intrepidcs/libicsneo-examples/tree/v0.2.0-dev
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
project(icsneojava VERSION 0.2.0)
|
||||
|
||||
find_package(Java REQUIRED)
|
||||
find_package(JNI REQUIRED)
|
||||
|
||||
include(UseJava)
|
||||
include_directories(${JNI_INCLUDE_DIRS})
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../third-party/libicsneo ${CMAKE_CURRENT_BINARY_DIR}/third-party/libicsneo)
|
||||
|
||||
add_library(icsneojava SHARED ${CMAKE_CURRENT_SOURCE_DIR}/java_wrap.c)
|
||||
target_link_libraries(icsneojava icsneoc)
|
||||
@@ -0,0 +1,91 @@
|
||||
# libicsneo Java Example
|
||||
|
||||
This is an example console application which uses icsneojava to connect to an Intrepid Control Systems hardware device. It has both interactive and simple examples for sending and receiving CAN & CAN FD traffic.
|
||||
|
||||
## Cloning
|
||||
|
||||
This will create a copy of the repository on your local machine.
|
||||
|
||||
Run:
|
||||
|
||||
```shell
|
||||
git clone https://github.com/intrepidcs/libicsneo-examples -b v0.2.0-dev --recursive
|
||||
```
|
||||
|
||||
Alternatively, if you cloned without the `--recursive flag`, you must enter the `libicsneo-examples` folder and run the following:
|
||||
|
||||
```shell
|
||||
git submodule update --recursive --init
|
||||
```
|
||||
|
||||
If you haven't done this, `third-party/libicsneo` will be empty and you won't be able to build!
|
||||
|
||||
## Windows
|
||||
|
||||
### Building the DLL's
|
||||
|
||||
#### icsneoc
|
||||
|
||||
First, we are going to build the icsneoc library into a .dll file that is used by the Java wrapper to access the library functions.
|
||||
|
||||
1. Change directories to the `libicsneo-examples/third-party/libicsneo` folder.
|
||||
2. Create a build directory by running `mkdir -p build`
|
||||
3. Enter the build directory with `cd build`
|
||||
4. Run `cmake ..` to generate your Makefile.
|
||||
* Hint! Running `cmake -DCMAKE_BUILD_TYPE=Debug ..` will generate the proper scripts to build debug, and `cmake -DCMAKE_BUILD_TYPE=Release ..` will generate the proper scripts to build with all optimizations on.
|
||||
5. Run `cmake --build .` to build the library.
|
||||
* Hint! Speed up your build by using multiple processors! Use `make -j#` where `#` is the number of cores/threads your system has plus one. For instance, on a standard 8 thread Intel i7, you might use `-j9` for an ~8x speedup.
|
||||
6. The `icsneoc.dll` file will be generated in `libicsneo-examples/third-party/libicsneo/build/Debug`. Move this file to the `/C/Windows/System32` folder.
|
||||
|
||||
#### icsneojava
|
||||
|
||||
Next, we are going to build the wrapper functions into a .dll file that is used to access the library functions in Java.
|
||||
|
||||
1. Change directories to the `libicsneo-examples/libicsneojava-example` folder.
|
||||
2. Create a build directory by running `mkdir -p build`
|
||||
3. Enter the build directory with `cd build`
|
||||
4. Run `cmake ..` to generate your Makefile.
|
||||
* Hint! Running `cmake -DCMAKE_BUILD_TYPE=Debug ..` will generate the proper scripts to build debug, and `cmake -DCMAKE_BUILD_TYPE=Release ..` will generate the proper scripts to build with all optimizations on.
|
||||
5. Run `cmake --build .` to build the library.
|
||||
* Hint! Speed up your build by using multiple processors! Use `make -j#` where `#` is the number of cores/threads your system has plus one. For instance, on a standard 8 thread Intel i7, you might use `-j9` for an ~8x speedup.
|
||||
6. The `icsneojava.dll` file will be generated in `libicsneo-examples/libicsneojava-example/build/Debug`. Move this file to the `/C/Windows/System32` folder.
|
||||
|
||||
### Building and running the example program
|
||||
|
||||
1. Change directories to the `libicsneo-examples/libicsneojava-example/src` folder.
|
||||
2. Run `javac Run.java`
|
||||
3. Run `java Run`
|
||||
|
||||
## Ubuntu 18.04 LTS
|
||||
|
||||
### Building the .so's
|
||||
|
||||
#### icsneoc
|
||||
|
||||
1. Install dependencies with `sudo apt update` then `sudo apt install build-essential cmake libusb-1.0-0-dev libpcap0.8-dev`
|
||||
2. Change directories to `libicsneo-examples/third-party/libicsneo` and create a build directory by running `mkdir -p build`
|
||||
3. Enter the build directory with `cd build`
|
||||
4. Run `cmake ..` to generate your Makefile.
|
||||
* Hint! Running `cmake -DCMAKE_BUILD_TYPE=Debug ..` will generate the proper scripts to build debug, and `cmake -DCMAKE_BUILD_TYPE=Release ..` will generate the proper scripts to build with all optimizations on.
|
||||
5. Run `make` to build the library.
|
||||
* Hint! Speed up your build by using multiple processors! Use `make -j#` where `#` is the number of cores/threads your system has plus one. For instance, on a standard 8 thread Intel i7, you might use `-j9` for an ~8x speedup.
|
||||
6. Run `sudo cp libicsneoc.so /usr/lib` so that it can be found via the default ubuntu .so search path. For more information, see the [ld.so.8 man page](http://man7.org/linux/man-pages/man8/ld.so.8.html).
|
||||
|
||||
#### icsneojava
|
||||
|
||||
Next, we are going to build the wrapper functions into a .so file that is used to access the library functions in Java.
|
||||
|
||||
1. Change directories to the `libicsneo-examples/libicsneojava-example` folder.
|
||||
2. Create a build directory by running `mkdir -p build`
|
||||
3. Enter the build directory with `cd build`
|
||||
4. Run `cmake ..` to generate your Makefile.
|
||||
* Hint! Running `cmake -DCMAKE_BUILD_TYPE=Debug ..` will generate the proper scripts to build debug, and `cmake -DCMAKE_BUILD_TYPE=Release ..` will generate the proper scripts to build with all optimizations on.
|
||||
5. Run `cmake --build .` to build the library.
|
||||
* Hint! Speed up your build by using multiple processors! Use `make -j#` where `#` is the number of cores/threads your system has plus one. For instance, on a standard 8 thread Intel i7, you might use `-j9` for an ~8x speedup.
|
||||
6. The `icsneojava.so` file will be generated in `libicsneo-examples/libicsneojava-example/build/Debug`. Run `sudo cp libicsneojava.so /usr/lib` so that it can be found via the default ubuntu .so search path. For more information, see the [ld.so.8 man page](http://man7.org/linux/man-pages/man8/ld.so.8.html).
|
||||
|
||||
### Building and running the example program
|
||||
|
||||
1. Change directories to the `libicsneo-examples/libicsneojava-example/src` folder.
|
||||
2. Run `javac Run.java`
|
||||
3. Run `java Run`
|
||||
@@ -0,0 +1,125 @@
|
||||
%module icsneojava
|
||||
%include <windows.i>
|
||||
%include <typemaps.i>
|
||||
%include <stdint.i>
|
||||
%include <carrays.i>
|
||||
%include <various.i>
|
||||
%include <java.i>
|
||||
%include <arrays_java.i>
|
||||
|
||||
#define DLLExport
|
||||
|
||||
%typemap(jni) uint8_t const *data "jbyteArray"
|
||||
%typemap(jtype) uint8_t const *data "byte[]"
|
||||
%typemap(jstype) uint8_t const *data "byte[]"
|
||||
%typemap(javain) uint8_t const *data "$javainput"
|
||||
|
||||
%typemap(javaout) uint8_t const *data {
|
||||
return $jnicall;
|
||||
}
|
||||
|
||||
%typemap(out) uint8_t const *data %{
|
||||
$result = (*jenv)->NewByteArray(jenv, (int) arg1->length);
|
||||
(*jenv)->SetByteArrayRegion(jenv, $result, 0, (int) arg1->length, $1);
|
||||
%}
|
||||
|
||||
%typemap(in) uint8_t const *data %{
|
||||
bool isCopy;
|
||||
arg2 = (*jenv)->GetByteArrayElements(jenv, jarg2, &isCopy);
|
||||
%}
|
||||
|
||||
%typemap(jni) char *str "jobject"
|
||||
%typemap(jtype) char *str "StringBuffer"
|
||||
%typemap(jstype) char *str "StringBuffer"
|
||||
|
||||
/* How to convert Java(JNI) type to requested C type */
|
||||
%typemap(in) char *str {
|
||||
|
||||
$1 = NULL;
|
||||
if($input != NULL) {
|
||||
/* Get the String from the StringBuffer */
|
||||
jmethodID setLengthID;
|
||||
jclass strClass = (*jenv)->GetObjectClass(jenv, $input);
|
||||
jmethodID toStringID = (*jenv)->GetMethodID(jenv, strClass, "toString", "()Ljava/lang/String;");
|
||||
jstring js = (jstring) (*jenv)->CallObjectMethod(jenv, $input, toStringID);
|
||||
|
||||
/* Convert the String to a C string */
|
||||
const char *pCharStr = (*jenv)->GetStringUTFChars(jenv, js, 0);
|
||||
|
||||
/* Take a copy of the C string as the typemap is for a non const C string */
|
||||
jmethodID capacityID = (*jenv)->GetMethodID(jenv, strClass, "capacity", "()I");
|
||||
jint capacity = (*jenv)->CallIntMethod(jenv, $input, capacityID);
|
||||
$1 = (char *) malloc(capacity+1);
|
||||
strcpy($1, pCharStr);
|
||||
|
||||
/* Release the UTF string we obtained with GetStringUTFChars */
|
||||
(*jenv)->ReleaseStringUTFChars(jenv, js, pCharStr);
|
||||
|
||||
/* Zero the original StringBuffer, so we can replace it with the result */
|
||||
setLengthID = (*jenv)->GetMethodID(jenv, strClass, "setLength", "(I)V");
|
||||
(*jenv)->CallVoidMethod(jenv, $input, setLengthID, (jint) 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* How to convert the C type to the Java(JNI) type */
|
||||
%typemap(argout) char *str {
|
||||
|
||||
if($1 != NULL) {
|
||||
/* Append the result to the empty StringBuffer */
|
||||
jstring newString = (*jenv)->NewStringUTF(jenv, $1);
|
||||
jclass strClass = (*jenv)->GetObjectClass(jenv, $input);
|
||||
jmethodID appendStringID = (*jenv)->GetMethodID(jenv, strClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
|
||||
(*jenv)->CallObjectMethod(jenv, $input, appendStringID, newString);
|
||||
|
||||
/* Clean up the string object, no longer needed */
|
||||
free($1);
|
||||
$1 = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* Prevent the default freearg typemap from being used */
|
||||
%typemap(freearg) char *str ""
|
||||
|
||||
/* Convert the jstype to jtype typemap type */
|
||||
%typemap(javain) char *str "$javainput"
|
||||
|
||||
%{
|
||||
#include "icsneo/icsneoc.h"
|
||||
%}
|
||||
|
||||
%apply int *INOUT {size_t *};
|
||||
|
||||
%ignore icsneo_addMessageCallback;
|
||||
%ignore icsneo_removeMessageCallback;
|
||||
%ignore icsneo_addEventCallback;
|
||||
%ignore icsneo_removeEventCallback;
|
||||
|
||||
%include "icsneo/icsneoc.h"
|
||||
%include "icsneo/device/neodevice.h"
|
||||
%include "icsneo/communication/message/neomessage.h"
|
||||
%include "icsneo/device/devicetype.h"
|
||||
%include "icsneo/api/version.h"
|
||||
%include "icsneo/api/event.h"
|
||||
%include "icsneo/communication/network.h"
|
||||
|
||||
%inline %{
|
||||
static neomessage_can_t* neomessage_can_t_cast(neomessage_t* msg) {
|
||||
return (neomessage_can_t*) msg;
|
||||
}
|
||||
|
||||
static neomessage_eth_t* neomessage_eth_t_cast(neomessage_t* msg) {
|
||||
return (neomessage_eth_t*) msg;
|
||||
}
|
||||
|
||||
static neomessage_t* from_can_neomessage_t_cast(neomessage_can_t* msg) {
|
||||
return (neomessage_t*) msg;
|
||||
}
|
||||
|
||||
static neomessage_t* from_eth_neomessage_t_cast(neomessage_eth_t* msg) {
|
||||
return (neomessage_t*) msg;
|
||||
}
|
||||
%}
|
||||
|
||||
%array_functions(neodevice_t, neodevice_t_array);
|
||||
%array_functions(neoevent_t, neoevent_t_array);
|
||||
%array_functions(neomessage_t, neomessage_t_array);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,511 @@
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class InteractiveExample {
|
||||
|
||||
private int msgLimit = 50000;
|
||||
private neodevice_t selectedDevice;
|
||||
private ArrayList<neodevice_t> devices = new ArrayList<neodevice_t>();
|
||||
private int numDevices = 0;
|
||||
|
||||
private void printAllDevices() {
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.");
|
||||
}
|
||||
|
||||
for(int i = 0; i < numDevices; i++) {
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
if(icsneojava.icsneo_describeDevice(devices.get(i), description, maxLength)) {
|
||||
System.out.print("[" + (i + 1) + "] " + description + "\tConnected: ");
|
||||
|
||||
if(icsneojava.icsneo_isOpen(devices.get(i))) {
|
||||
System.out.print("Yes\t");
|
||||
} else System.out.print("No\t");
|
||||
|
||||
System.out.print("Online: ");
|
||||
if(icsneojava.icsneo_isOnline(devices.get(i))) {
|
||||
System.out.print("Yes\t");
|
||||
} else System.out.print("No\t");
|
||||
|
||||
System.out.print("Msg Polling: ");
|
||||
if(icsneojava.icsneo_isMessagePollingEnabled(devices.get(i))) {
|
||||
System.out.print("On\n");
|
||||
} else System.out.print("Off\n");
|
||||
} else {
|
||||
System.out.println("Description for device " + (i + 1) + " not available!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private int scanNewDevices() {
|
||||
neodevice_t newDevices = icsneojava.new_neodevice_t_array(99);
|
||||
|
||||
int[] count = {10};
|
||||
|
||||
icsneojava.icsneo_findAllDevices(newDevices, count);
|
||||
|
||||
numDevices += count[0];
|
||||
|
||||
for(int i = 0; i < numDevices; i++) {
|
||||
devices.add(icsneojava.neodevice_t_array_getitem(newDevices, i));
|
||||
}
|
||||
|
||||
icsneojava.delete_neodevice_t_array(newDevices);
|
||||
return count[0];
|
||||
}
|
||||
|
||||
private void printMainMenu() {
|
||||
System.out.println("Press the letter next to the function you want to use:");
|
||||
System.out.println("A - List all devices");
|
||||
System.out.println("B - Scan for new devices");
|
||||
System.out.println("C - Open/close");
|
||||
System.out.println("D - Go online/offline");
|
||||
System.out.println("E - Enable/disable message polling");
|
||||
System.out.println("F - Get messages");
|
||||
System.out.println("G - Send message");
|
||||
System.out.println("H - Get events");
|
||||
System.out.println("I - Set HS CAN to 250K");
|
||||
System.out.println("J - Set HS CAN to 500K");
|
||||
System.out.println("X - Exit");
|
||||
}
|
||||
|
||||
private void printLastError() {
|
||||
neoevent_t error = new neoevent_t();
|
||||
if(icsneojava.icsneo_getLastError(error))
|
||||
System.out.println("Error 0x" + error.getEventNumber() + ": " + error.getDescription());
|
||||
else
|
||||
System.out.println("No errors found!");
|
||||
}
|
||||
|
||||
private void printAPIEvents() {
|
||||
neoevent_t events = icsneojava.new_neoevent_t_array(99);
|
||||
int[] eventCount = {99};
|
||||
if(icsneojava.icsneo_getEvents(events, eventCount)) {
|
||||
if(eventCount[0] == 1) {
|
||||
neoevent_t evt = icsneojava.neoevent_t_array_getitem(events, 0);
|
||||
System.out.println("1 API event found!");
|
||||
System.out.println("Event 0x" + evt.getEventNumber() + ": " + evt.getDescription());
|
||||
} else {
|
||||
System.out.println(eventCount[0] + " API events found!");
|
||||
for(var i = 0; i < eventCount[0]; ++i) {
|
||||
neoevent_t evt = icsneojava.neoevent_t_array_getitem(events, i);
|
||||
System.out.println("Event 0x" + evt.getEventNumber() + ": " + evt.getDescription());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
System.out.println("Failed to get API events!");
|
||||
}
|
||||
icsneojava.delete_neoevent_t_array(events);
|
||||
}
|
||||
|
||||
private void printDeviceEvents(neodevice_t device) {
|
||||
neoevent_t events = icsneojava.new_neoevent_t_array(99);
|
||||
int[] eventCount = {99};
|
||||
if(icsneojava.icsneo_getDeviceEvents(device, events, eventCount)) {
|
||||
if(eventCount[0] == 1) {
|
||||
neoevent_t evt = icsneojava.neoevent_t_array_getitem(events, 0);
|
||||
System.out.println("1 device event found!");
|
||||
System.out.println("Event 0x" + evt.getEventNumber() + ": " + evt.getDescription());
|
||||
} else {
|
||||
System.out.println(eventCount[0] + " device events found!");
|
||||
for(int i = 0; i < eventCount[0]; ++i) {
|
||||
neoevent_t evt = icsneojava.neoevent_t_array_getitem(events, i);
|
||||
System.out.println("Event 0x" + evt.getEventNumber() + ": " + evt.getDescription());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
System.out.println("Failed to get API events!");
|
||||
}
|
||||
icsneojava.delete_neoevent_t_array(events);
|
||||
}
|
||||
|
||||
private char getCharInput(char[] allowed) {
|
||||
boolean found = false;
|
||||
char key = '0';
|
||||
Scanner sc = new Scanner(System.in);
|
||||
while(!found) {
|
||||
key = sc.next().charAt(0);
|
||||
System.out.println();
|
||||
for(char compare : allowed) {
|
||||
if(compare == key) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!found) {
|
||||
System.out.println("Input did not match expected options. Please try again.");
|
||||
}
|
||||
}
|
||||
return key;
|
||||
}
|
||||
|
||||
private neodevice_t selectDevice() {
|
||||
System.out.println("Please select a device:");
|
||||
printAllDevices();
|
||||
System.out.println();
|
||||
|
||||
int selectedDeviceNum = 10;
|
||||
while(selectedDeviceNum > numDevices) {
|
||||
char deviceSelection = getCharInput(new char[] { '1', '2', '3', '4', '5', '6', '7', '8', '9' });
|
||||
selectedDeviceNum = deviceSelection - '0';
|
||||
if(selectedDeviceNum > numDevices) {
|
||||
System.out.println("Selected device out of range!");
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println();
|
||||
|
||||
return devices.get(selectedDeviceNum - 1);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
neoversion_t version = icsneojava.icsneo_getVersion();
|
||||
System.out.println("ICS libicsneojava.dll version " + version.getMajor() + "." + version.getMinor() + "." + version.getPatch());
|
||||
System.out.println();
|
||||
|
||||
while(true) {
|
||||
printMainMenu();
|
||||
System.out.println();
|
||||
char input = getCharInput(new char[] { 'A', 'a', 'B', 'b', 'C', 'c', 'D', 'd', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'I', 'i', 'J', 'j', 'X', 'x' });
|
||||
System.out.println();
|
||||
switch(input) {
|
||||
// List current devices
|
||||
case 'A':
|
||||
case 'a':
|
||||
printAllDevices();
|
||||
System.out.println();
|
||||
break;
|
||||
// Scan for new devices
|
||||
case 'B':
|
||||
case 'b': {
|
||||
var numNewDevices = scanNewDevices();
|
||||
if(numNewDevices == 1) {
|
||||
System.out.println("1 new device found!");
|
||||
} else {
|
||||
System.out.println(numNewDevices + " new devices found!");
|
||||
}
|
||||
printAllDevices();
|
||||
System.out.println();
|
||||
break;
|
||||
}
|
||||
// Open/close a device
|
||||
case 'C':
|
||||
case 'c': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
System.out.println("Would you like to open or close " + description + "?");
|
||||
System.out.println("[1] Open\n[2] Close\n[3] Cancel\n");
|
||||
|
||||
char option = getCharInput(new char[] { '1', '2', '3' });
|
||||
System.out.println();
|
||||
|
||||
switch(option) {
|
||||
case '1':
|
||||
// Attempt to open the selected device
|
||||
if(icsneojava.icsneo_openDevice(selectedDevice)) {
|
||||
System.out.println(description + " successfully opened!\n");
|
||||
} else {
|
||||
System.out.println(description + " failed to open!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
case '2':
|
||||
// Attempt to close the device
|
||||
if(icsneojava.icsneo_closeDevice(selectedDevice)) {
|
||||
numDevices--;
|
||||
System.out.println("Successfully closed " + description + "!\n");
|
||||
devices.remove(selectedDevice);
|
||||
selectedDevice = null;
|
||||
} else {
|
||||
System.out.println("Failed to close " + description + "!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.out.println("Canceling!\n");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
// Go online/offline
|
||||
case 'D':
|
||||
case 'd': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
System.out.println("Would you like to have " + description + " go online or offline?");
|
||||
System.out.println("[1] Online\n[2] Offline\n[3] Cancel\n");
|
||||
|
||||
char option = getCharInput(new char[] { '1', '2', '3' });
|
||||
System.out.println();
|
||||
|
||||
switch(option) {
|
||||
case '1':
|
||||
// Attempt to go online
|
||||
if(icsneojava.icsneo_goOnline(selectedDevice)) {
|
||||
System.out.println(description + " successfully went online!\n");
|
||||
} else {
|
||||
System.out.println(description + " failed to go online!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
case '2':
|
||||
// Attempt to go offline
|
||||
if(icsneojava.icsneo_goOffline(selectedDevice)) {
|
||||
System.out.println(description + " successfully went offline!\n");
|
||||
} else {
|
||||
System.out.println(description + " failed to go offline!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.out.println("Canceling!\n");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
// Enable/disable message polling
|
||||
case 'E':
|
||||
case 'e': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
System.out.println("Would you like to enable or disable message polling for " + description + "?");
|
||||
System.out.println("[1] Enable\n[2] Disable\n[3] Cancel\n");
|
||||
|
||||
char option = getCharInput(new char[] { '1', '2', '3' });
|
||||
System.out.println();
|
||||
|
||||
switch(option) {
|
||||
case '1':
|
||||
// Attempt to enable message polling
|
||||
if(icsneojava.icsneo_enableMessagePolling(selectedDevice)) {
|
||||
System.out.println("Successfully enabled message polling for " + description + "!\n");
|
||||
} else {
|
||||
System.out.println("Failed to enable message polling for " + description + "!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
// Manually setting the polling message limit as done below is optional
|
||||
// It will default to 20k if not set
|
||||
// Attempt to set the polling message limit
|
||||
if(icsneojava.icsneo_setPollingMessageLimit(selectedDevice, msgLimit)) {
|
||||
System.out.println("Successfully set message polling limit for " + description + "!\n");
|
||||
} else {
|
||||
System.out.println("Failed to set polling message limit for " + description + "!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
case '2':
|
||||
// Attempt to disable message polling
|
||||
if(icsneojava.icsneo_disableMessagePolling(selectedDevice)) {
|
||||
System.out.println("Successfully disabled message polling for " + description + "!\n");
|
||||
} else {
|
||||
System.out.println("Failed to disable message polling for " + description + "!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.out.println("Canceling!\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'F':
|
||||
case 'f': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
// Prepare the neomessage_t array and size for reading in the messages
|
||||
neomessage_t msgs = icsneojava.new_neomessage_t_array((int)msgLimit);
|
||||
int[] msgCount = {msgLimit};
|
||||
|
||||
if(!icsneojava.icsneo_getMessages(selectedDevice, msgs, msgCount, BigInteger.ZERO)) {
|
||||
System.out.println("Failed to get messages for " + description + "!\n");
|
||||
icsneojava.delete_neomessage_t_array(msgs);
|
||||
printLastError();
|
||||
System.out.println();
|
||||
break;
|
||||
}
|
||||
|
||||
if(msgCount[0] == 1) {
|
||||
System.out.println("1 message received from " + description + "!");
|
||||
} else {
|
||||
System.out.println(msgCount[0] + " messages received from " + description + "!");
|
||||
}
|
||||
|
||||
// Print out the received messages
|
||||
for(int i = 0; i < msgCount[0]; i++) {
|
||||
neomessage_t msg = icsneojava.neomessage_t_array_getitem(msgs, i);
|
||||
if(msg.getType() == icsneojava.ICSNEO_NETWORK_TYPE_CAN) {
|
||||
System.out.print("\t0x" + String.format("%03x", icsneojava.neomessage_can_t_cast(msg).getArbid()) + " [" + msg.getLength() + "] ");
|
||||
for(int j = 0; j < msg.getLength(); j++) {
|
||||
System.out.print(String.format("%02x ", icsneojava.neomessage_can_t_cast(msg).getData()[j]));
|
||||
}
|
||||
System.out.println("(" + msg.getTimestamp() + ")");
|
||||
} else {
|
||||
if(msg.getNetid() != 0)
|
||||
System.out.println("\tMessage on netid " + msg.getNetid() + " with length " + msg.getLength());
|
||||
}
|
||||
}
|
||||
icsneojava.delete_neomessage_t_array(msgs);
|
||||
break;
|
||||
}
|
||||
// Send message
|
||||
case 'G':
|
||||
case 'g': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
// Start generating sample msg
|
||||
neomessage_can_t msg = new neomessage_can_t();
|
||||
msg.setArbid(0x120);
|
||||
msg.setLength(6);
|
||||
msg.setNetid(icsneojava.ICSNEO_NETID_HSCAN);
|
||||
msg.setData(new byte[] { (byte) 0xaa, (byte) 0xbb, (byte) 0xcc, (byte) 0xdd, (byte) 0xee, (byte) 0xff});
|
||||
msg.getStatus().setCanfdFDF(0);
|
||||
msg.getStatus().setExtendedFrame(0);
|
||||
msg.getStatus().setCanfdBRS(0);
|
||||
// End generating sample msg
|
||||
|
||||
// Attempt to transmit the sample msg
|
||||
if(icsneojava.icsneo_transmit(selectedDevice, icsneojava.from_can_neomessage_t_cast(msg))) {
|
||||
System.out.println("Message transmit successful!");
|
||||
} else {
|
||||
System.out.println("Failed to transmit message to " + description + "!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
}
|
||||
// Get events
|
||||
case 'H':
|
||||
case 'h':
|
||||
printAPIEvents();
|
||||
System.out.println();
|
||||
break;
|
||||
// Set HS CAN to 250k
|
||||
case 'I':
|
||||
case 'i': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
// Attempt to set baudrate and apply settings
|
||||
if(icsneojava.icsneo_setBaudrate(selectedDevice, icsneojava.ICSNEO_NETID_HSCAN, 250000) && icsneojava.icsneo_settingsApply(selectedDevice)) {
|
||||
System.out.println("Successfully set HS CAN baudrate for " + description + "to 250k!\n");
|
||||
} else {
|
||||
System.out.println("Failed to set HS CAN for " + description + " to 250k!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
}
|
||||
// Set HS CAN to 500k
|
||||
case 'J':
|
||||
case 'j': {
|
||||
// Select a device and get its description
|
||||
if(numDevices == 0) {
|
||||
System.out.println("No devices found! Please scan for new devices.\n");
|
||||
break;
|
||||
}
|
||||
selectedDevice = selectDevice();
|
||||
|
||||
// Get the product description for the device
|
||||
StringBuffer description = new StringBuffer(icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION);
|
||||
int[] maxLength = {icsneojava.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION};
|
||||
|
||||
icsneojava.icsneo_describeDevice(selectedDevice, description, maxLength);
|
||||
|
||||
// Attempt to set baudrate and apply settings
|
||||
if(icsneojava.icsneo_setBaudrate(selectedDevice, icsneojava.ICSNEO_NETID_HSCAN, 500000) && icsneojava.icsneo_settingsApply(selectedDevice)) {
|
||||
System.out.println("Successfully set HS CAN baudrate for " + description + "to 500k!\n");
|
||||
} else {
|
||||
System.out.println("Failed to set HS CAN for " + description + " to 500k!\n");
|
||||
printLastError();
|
||||
System.out.println();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'X':
|
||||
case 'x':
|
||||
System.out.println("Exiting program");
|
||||
return;
|
||||
default:
|
||||
System.out.println("Unexpected input, exiting!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
public class Run {
|
||||
static {
|
||||
System.loadLibrary("icsneojava");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
InteractiveExample example = new InteractiveExample();
|
||||
example.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class SWIGTYPE_p_time_t {
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_time_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_time_t() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SWIGTYPE_p_time_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class SWIGTYPE_p_unsigned_char {
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_unsigned_char(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_unsigned_char() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SWIGTYPE_p_unsigned_char obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class SWIGTYPE_p_unsigned_int {
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_unsigned_int(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_unsigned_int() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SWIGTYPE_p_unsigned_int obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class SWIGTYPE_p_unsigned_short {
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_unsigned_short(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_unsigned_short() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SWIGTYPE_p_unsigned_short obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class SWIGTYPE_p_void {
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_void(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_void() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SWIGTYPE_p_void obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,262 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class icsneojava implements icsneojavaConstants {
|
||||
public static void icsneo_findAllDevices(neodevice_t devices, int[] count) {
|
||||
icsneojavaJNI.icsneo_findAllDevices(neodevice_t.getCPtr(devices), devices, count);
|
||||
}
|
||||
|
||||
public static void icsneo_freeUnconnectedDevices() {
|
||||
icsneojavaJNI.icsneo_freeUnconnectedDevices();
|
||||
}
|
||||
|
||||
public static boolean icsneo_serialNumToString(long num, StringBuffer str, int[] count) {
|
||||
return icsneojavaJNI.icsneo_serialNumToString(num, str, count);
|
||||
}
|
||||
|
||||
public static long icsneo_serialStringToNum(StringBuffer str) {
|
||||
return icsneojavaJNI.icsneo_serialStringToNum(str);
|
||||
}
|
||||
|
||||
public static boolean icsneo_isValidNeoDevice(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_isValidNeoDevice(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_openDevice(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_openDevice(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_closeDevice(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_closeDevice(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_isOpen(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_isOpen(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_goOnline(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_goOnline(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_goOffline(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_goOffline(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_isOnline(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_isOnline(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_enableMessagePolling(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_enableMessagePolling(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_disableMessagePolling(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_disableMessagePolling(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_isMessagePollingEnabled(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_isMessagePollingEnabled(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getMessages(neodevice_t device, neomessage_t messages, int[] items, java.math.BigInteger timeout) {
|
||||
return icsneojavaJNI.icsneo_getMessages(neodevice_t.getCPtr(device), device, neomessage_t.getCPtr(messages), messages, items, timeout);
|
||||
}
|
||||
|
||||
public static long icsneo_getPollingMessageLimit(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_getPollingMessageLimit(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_setPollingMessageLimit(neodevice_t device, long newLimit) {
|
||||
return icsneojavaJNI.icsneo_setPollingMessageLimit(neodevice_t.getCPtr(device), device, newLimit);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getProductName(neodevice_t device, StringBuffer str, int[] maxLength) {
|
||||
return icsneojavaJNI.icsneo_getProductName(neodevice_t.getCPtr(device), device, str, maxLength);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getProductNameForType(long type, StringBuffer str, int[] maxLength) {
|
||||
return icsneojavaJNI.icsneo_getProductNameForType(type, str, maxLength);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsRefresh(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_settingsRefresh(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsApply(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_settingsApply(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsApplyTemporary(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_settingsApplyTemporary(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsApplyDefaults(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_settingsApplyDefaults(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsApplyDefaultsTemporary(neodevice_t device) {
|
||||
return icsneojavaJNI.icsneo_settingsApplyDefaultsTemporary(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static int icsneo_settingsReadStructure(neodevice_t device, SWIGTYPE_p_void structure, long structureSize) {
|
||||
return icsneojavaJNI.icsneo_settingsReadStructure(neodevice_t.getCPtr(device), device, SWIGTYPE_p_void.getCPtr(structure), structureSize);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsApplyStructure(neodevice_t device, SWIGTYPE_p_void structure, long structureSize) {
|
||||
return icsneojavaJNI.icsneo_settingsApplyStructure(neodevice_t.getCPtr(device), device, SWIGTYPE_p_void.getCPtr(structure), structureSize);
|
||||
}
|
||||
|
||||
public static boolean icsneo_settingsApplyStructureTemporary(neodevice_t device, SWIGTYPE_p_void structure, long structureSize) {
|
||||
return icsneojavaJNI.icsneo_settingsApplyStructureTemporary(neodevice_t.getCPtr(device), device, SWIGTYPE_p_void.getCPtr(structure), structureSize);
|
||||
}
|
||||
|
||||
public static long icsneo_getBaudrate(neodevice_t device, int netid) {
|
||||
return icsneojavaJNI.icsneo_getBaudrate(neodevice_t.getCPtr(device), device, netid);
|
||||
}
|
||||
|
||||
public static boolean icsneo_setBaudrate(neodevice_t device, int netid, long newBaudrate) {
|
||||
return icsneojavaJNI.icsneo_setBaudrate(neodevice_t.getCPtr(device), device, netid, newBaudrate);
|
||||
}
|
||||
|
||||
public static long icsneo_getFDBaudrate(neodevice_t device, int netid) {
|
||||
return icsneojavaJNI.icsneo_getFDBaudrate(neodevice_t.getCPtr(device), device, netid);
|
||||
}
|
||||
|
||||
public static boolean icsneo_setFDBaudrate(neodevice_t device, int netid, long newBaudrate) {
|
||||
return icsneojavaJNI.icsneo_setFDBaudrate(neodevice_t.getCPtr(device), device, netid, newBaudrate);
|
||||
}
|
||||
|
||||
public static boolean icsneo_transmit(neodevice_t device, neomessage_t message) {
|
||||
return icsneojavaJNI.icsneo_transmit(neodevice_t.getCPtr(device), device, neomessage_t.getCPtr(message), message);
|
||||
}
|
||||
|
||||
public static boolean icsneo_transmitMessages(neodevice_t device, neomessage_t messages, long count) {
|
||||
return icsneojavaJNI.icsneo_transmitMessages(neodevice_t.getCPtr(device), device, neomessage_t.getCPtr(messages), messages, count);
|
||||
}
|
||||
|
||||
public static void icsneo_setWriteBlocks(neodevice_t device, boolean blocks) {
|
||||
icsneojavaJNI.icsneo_setWriteBlocks(neodevice_t.getCPtr(device), device, blocks);
|
||||
}
|
||||
|
||||
public static boolean icsneo_describeDevice(neodevice_t device, StringBuffer str, int[] maxLength) {
|
||||
return icsneojavaJNI.icsneo_describeDevice(neodevice_t.getCPtr(device), device, str, maxLength);
|
||||
}
|
||||
|
||||
public static neoversion_t icsneo_getVersion() {
|
||||
return new neoversion_t(icsneojavaJNI.icsneo_getVersion(), true);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getEvents(neoevent_t events, int[] size) {
|
||||
return icsneojavaJNI.icsneo_getEvents(neoevent_t.getCPtr(events), events, size);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getDeviceEvents(neodevice_t device, neoevent_t events, int[] size) {
|
||||
return icsneojavaJNI.icsneo_getDeviceEvents(neodevice_t.getCPtr(device), device, neoevent_t.getCPtr(events), events, size);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getLastError(neoevent_t error) {
|
||||
return icsneojavaJNI.icsneo_getLastError(neoevent_t.getCPtr(error), error);
|
||||
}
|
||||
|
||||
public static void icsneo_discardAllEvents() {
|
||||
icsneojavaJNI.icsneo_discardAllEvents();
|
||||
}
|
||||
|
||||
public static void icsneo_discardDeviceEvents(neodevice_t device) {
|
||||
icsneojavaJNI.icsneo_discardDeviceEvents(neodevice_t.getCPtr(device), device);
|
||||
}
|
||||
|
||||
public static void icsneo_setEventLimit(long newLimit) {
|
||||
icsneojavaJNI.icsneo_setEventLimit(newLimit);
|
||||
}
|
||||
|
||||
public static long icsneo_getEventLimit() {
|
||||
return icsneojavaJNI.icsneo_getEventLimit();
|
||||
}
|
||||
|
||||
public static boolean icsneo_getSupportedDevices(SWIGTYPE_p_unsigned_int devices, int[] count) {
|
||||
return icsneojavaJNI.icsneo_getSupportedDevices(SWIGTYPE_p_unsigned_int.getCPtr(devices), count);
|
||||
}
|
||||
|
||||
public static boolean icsneo_getTimestampResolution(neodevice_t device, SWIGTYPE_p_unsigned_short resolution) {
|
||||
return icsneojavaJNI.icsneo_getTimestampResolution(neodevice_t.getCPtr(device), device, SWIGTYPE_p_unsigned_short.getCPtr(resolution));
|
||||
}
|
||||
|
||||
public static neomessage_can_t neomessage_can_t_cast(neomessage_t msg) {
|
||||
long cPtr = icsneojavaJNI.neomessage_can_t_cast(neomessage_t.getCPtr(msg), msg);
|
||||
return (cPtr == 0) ? null : new neomessage_can_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static neomessage_eth_t neomessage_eth_t_cast(neomessage_t msg) {
|
||||
long cPtr = icsneojavaJNI.neomessage_eth_t_cast(neomessage_t.getCPtr(msg), msg);
|
||||
return (cPtr == 0) ? null : new neomessage_eth_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static neomessage_t from_can_neomessage_t_cast(neomessage_can_t msg) {
|
||||
long cPtr = icsneojavaJNI.from_can_neomessage_t_cast(neomessage_can_t.getCPtr(msg), msg);
|
||||
return (cPtr == 0) ? null : new neomessage_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static neomessage_t from_eth_neomessage_t_cast(neomessage_eth_t msg) {
|
||||
long cPtr = icsneojavaJNI.from_eth_neomessage_t_cast(neomessage_eth_t.getCPtr(msg), msg);
|
||||
return (cPtr == 0) ? null : new neomessage_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static neodevice_t new_neodevice_t_array(int nelements) {
|
||||
long cPtr = icsneojavaJNI.new_neodevice_t_array(nelements);
|
||||
return (cPtr == 0) ? null : new neodevice_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static void delete_neodevice_t_array(neodevice_t ary) {
|
||||
icsneojavaJNI.delete_neodevice_t_array(neodevice_t.getCPtr(ary), ary);
|
||||
}
|
||||
|
||||
public static neodevice_t neodevice_t_array_getitem(neodevice_t ary, int index) {
|
||||
return new neodevice_t(icsneojavaJNI.neodevice_t_array_getitem(neodevice_t.getCPtr(ary), ary, index), true);
|
||||
}
|
||||
|
||||
public static void neodevice_t_array_setitem(neodevice_t ary, int index, neodevice_t value) {
|
||||
icsneojavaJNI.neodevice_t_array_setitem(neodevice_t.getCPtr(ary), ary, index, neodevice_t.getCPtr(value), value);
|
||||
}
|
||||
|
||||
public static neoevent_t new_neoevent_t_array(int nelements) {
|
||||
long cPtr = icsneojavaJNI.new_neoevent_t_array(nelements);
|
||||
return (cPtr == 0) ? null : new neoevent_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static void delete_neoevent_t_array(neoevent_t ary) {
|
||||
icsneojavaJNI.delete_neoevent_t_array(neoevent_t.getCPtr(ary), ary);
|
||||
}
|
||||
|
||||
public static neoevent_t neoevent_t_array_getitem(neoevent_t ary, int index) {
|
||||
return new neoevent_t(icsneojavaJNI.neoevent_t_array_getitem(neoevent_t.getCPtr(ary), ary, index), true);
|
||||
}
|
||||
|
||||
public static void neoevent_t_array_setitem(neoevent_t ary, int index, neoevent_t value) {
|
||||
icsneojavaJNI.neoevent_t_array_setitem(neoevent_t.getCPtr(ary), ary, index, neoevent_t.getCPtr(value), value);
|
||||
}
|
||||
|
||||
public static neomessage_t new_neomessage_t_array(int nelements) {
|
||||
long cPtr = icsneojavaJNI.new_neomessage_t_array(nelements);
|
||||
return (cPtr == 0) ? null : new neomessage_t(cPtr, false);
|
||||
}
|
||||
|
||||
public static void delete_neomessage_t_array(neomessage_t ary) {
|
||||
icsneojavaJNI.delete_neomessage_t_array(neomessage_t.getCPtr(ary), ary);
|
||||
}
|
||||
|
||||
public static neomessage_t neomessage_t_array_getitem(neomessage_t ary, int index) {
|
||||
return new neomessage_t(icsneojavaJNI.neomessage_t_array_getitem(neomessage_t.getCPtr(ary), ary, index), true);
|
||||
}
|
||||
|
||||
public static void neomessage_t_array_setitem(neomessage_t ary, int index, neomessage_t value) {
|
||||
icsneojavaJNI.neomessage_t_array_setitem(neomessage_t.getCPtr(ary), ary, index, neomessage_t.getCPtr(value), value);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public interface icsneojavaConstants {
|
||||
public final static int ICSNEO_DEVICETYPE_LONGEST_NAME = icsneojavaJNI.ICSNEO_DEVICETYPE_LONGEST_NAME_get();
|
||||
public final static int ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION = icsneojavaJNI.ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION_get();
|
||||
public final static int ICSNEO_NETID_DEVICE = icsneojavaJNI.ICSNEO_NETID_DEVICE_get();
|
||||
public final static int ICSNEO_NETID_HSCAN = icsneojavaJNI.ICSNEO_NETID_HSCAN_get();
|
||||
public final static int ICSNEO_NETID_MSCAN = icsneojavaJNI.ICSNEO_NETID_MSCAN_get();
|
||||
public final static int ICSNEO_NETID_SWCAN = icsneojavaJNI.ICSNEO_NETID_SWCAN_get();
|
||||
public final static int ICSNEO_NETID_LSFTCAN = icsneojavaJNI.ICSNEO_NETID_LSFTCAN_get();
|
||||
public final static int ICSNEO_NETID_FORDSCP = icsneojavaJNI.ICSNEO_NETID_FORDSCP_get();
|
||||
public final static int ICSNEO_NETID_J1708 = icsneojavaJNI.ICSNEO_NETID_J1708_get();
|
||||
public final static int ICSNEO_NETID_AUX = icsneojavaJNI.ICSNEO_NETID_AUX_get();
|
||||
public final static int ICSNEO_NETID_J1850VPW = icsneojavaJNI.ICSNEO_NETID_J1850VPW_get();
|
||||
public final static int ICSNEO_NETID_ISO = icsneojavaJNI.ICSNEO_NETID_ISO_get();
|
||||
public final static int ICSNEO_NETID_ISOPIC = icsneojavaJNI.ICSNEO_NETID_ISOPIC_get();
|
||||
public final static int ICSNEO_NETID_MAIN51 = icsneojavaJNI.ICSNEO_NETID_MAIN51_get();
|
||||
public final static int ICSNEO_NETID_RED = icsneojavaJNI.ICSNEO_NETID_RED_get();
|
||||
public final static int ICSNEO_NETID_SCI = icsneojavaJNI.ICSNEO_NETID_SCI_get();
|
||||
public final static int ICSNEO_NETID_ISO2 = icsneojavaJNI.ICSNEO_NETID_ISO2_get();
|
||||
public final static int ICSNEO_NETID_ISO14230 = icsneojavaJNI.ICSNEO_NETID_ISO14230_get();
|
||||
public final static int ICSNEO_NETID_LIN = icsneojavaJNI.ICSNEO_NETID_LIN_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET1 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET1_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET2 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET2_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET3 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET3_get();
|
||||
public final static int ICSNEO_NETID_RED_EXT_MEMORYREAD = icsneojavaJNI.ICSNEO_NETID_RED_EXT_MEMORYREAD_get();
|
||||
public final static int ICSNEO_NETID_RED_INT_MEMORYREAD = icsneojavaJNI.ICSNEO_NETID_RED_INT_MEMORYREAD_get();
|
||||
public final static int ICSNEO_NETID_RED_DFLASH_READ = icsneojavaJNI.ICSNEO_NETID_RED_DFLASH_READ_get();
|
||||
public final static int ICSNEO_NETID_RED_SDCARD_READ = icsneojavaJNI.ICSNEO_NETID_RED_SDCARD_READ_get();
|
||||
public final static int ICSNEO_NETID_CAN_ERRBITS = icsneojavaJNI.ICSNEO_NETID_CAN_ERRBITS_get();
|
||||
public final static int ICSNEO_NETID_RED_DFLASH_WRITE_DONE = icsneojavaJNI.ICSNEO_NETID_RED_DFLASH_WRITE_DONE_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_CAN1_LOGICAL = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_CAN1_LOGICAL_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_CAN2_LOGICAL = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_CAN2_LOGICAL_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_LIN1_LOGICAL = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_LIN1_LOGICAL_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_LIN2_LOGICAL = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_LIN2_LOGICAL_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_LIN1_ANALOG = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_LIN1_ANALOG_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_LIN2_ANALOG = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_LIN2_ANALOG_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_MISC_ANALOG = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_MISC_ANALOG_get();
|
||||
public final static int ICSNEO_NETID_RED_WAVE_MISCDIO2_LOGICAL = icsneojavaJNI.ICSNEO_NETID_RED_WAVE_MISCDIO2_LOGICAL_get();
|
||||
public final static int ICSNEO_NETID_RED_NETWORK_COM_ENABLE_EX = icsneojavaJNI.ICSNEO_NETID_RED_NETWORK_COM_ENABLE_EX_get();
|
||||
public final static int ICSNEO_NETID_RED_NEOVI_NETWORK = icsneojavaJNI.ICSNEO_NETID_RED_NEOVI_NETWORK_get();
|
||||
public final static int ICSNEO_NETID_RED_READ_BAUD_SETTINGS = icsneojavaJNI.ICSNEO_NETID_RED_READ_BAUD_SETTINGS_get();
|
||||
public final static int ICSNEO_NETID_RED_OLDFORMAT = icsneojavaJNI.ICSNEO_NETID_RED_OLDFORMAT_get();
|
||||
public final static int ICSNEO_NETID_RED_SCOPE_CAPTURE = icsneojavaJNI.ICSNEO_NETID_RED_SCOPE_CAPTURE_get();
|
||||
public final static int ICSNEO_NETID_RED_HARDWARE_EXCEP = icsneojavaJNI.ICSNEO_NETID_RED_HARDWARE_EXCEP_get();
|
||||
public final static int ICSNEO_NETID_RED_GET_RTC = icsneojavaJNI.ICSNEO_NETID_RED_GET_RTC_get();
|
||||
public final static int ICSNEO_NETID_ISO3 = icsneojavaJNI.ICSNEO_NETID_ISO3_get();
|
||||
public final static int ICSNEO_NETID_HSCAN2 = icsneojavaJNI.ICSNEO_NETID_HSCAN2_get();
|
||||
public final static int ICSNEO_NETID_HSCAN3 = icsneojavaJNI.ICSNEO_NETID_HSCAN3_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET4 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET4_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET5 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET5_get();
|
||||
public final static int ICSNEO_NETID_ISO4 = icsneojavaJNI.ICSNEO_NETID_ISO4_get();
|
||||
public final static int ICSNEO_NETID_LIN2 = icsneojavaJNI.ICSNEO_NETID_LIN2_get();
|
||||
public final static int ICSNEO_NETID_LIN3 = icsneojavaJNI.ICSNEO_NETID_LIN3_get();
|
||||
public final static int ICSNEO_NETID_LIN4 = icsneojavaJNI.ICSNEO_NETID_LIN4_get();
|
||||
public final static int ICSNEO_NETID_RED_APP_ERROR = icsneojavaJNI.ICSNEO_NETID_RED_APP_ERROR_get();
|
||||
public final static int ICSNEO_NETID_CGI = icsneojavaJNI.ICSNEO_NETID_CGI_get();
|
||||
public final static int ICSNEO_NETID_RESET_STATUS = icsneojavaJNI.ICSNEO_NETID_RESET_STATUS_get();
|
||||
public final static int ICSNEO_NETID_FB_STATUS = icsneojavaJNI.ICSNEO_NETID_FB_STATUS_get();
|
||||
public final static int ICSNEO_NETID_APP_SIGNAL_STATUS = icsneojavaJNI.ICSNEO_NETID_APP_SIGNAL_STATUS_get();
|
||||
public final static int ICSNEO_NETID_READ_DATALINK_CM_TX_MSG = icsneojavaJNI.ICSNEO_NETID_READ_DATALINK_CM_TX_MSG_get();
|
||||
public final static int ICSNEO_NETID_READ_DATALINK_CM_RX_MSG = icsneojavaJNI.ICSNEO_NETID_READ_DATALINK_CM_RX_MSG_get();
|
||||
public final static int ICSNEO_NETID_LOGGING_OVERFLOW = icsneojavaJNI.ICSNEO_NETID_LOGGING_OVERFLOW_get();
|
||||
public final static int ICSNEO_NETID_READ_SETTINGS = icsneojavaJNI.ICSNEO_NETID_READ_SETTINGS_get();
|
||||
public final static int ICSNEO_NETID_HSCAN4 = icsneojavaJNI.ICSNEO_NETID_HSCAN4_get();
|
||||
public final static int ICSNEO_NETID_HSCAN5 = icsneojavaJNI.ICSNEO_NETID_HSCAN5_get();
|
||||
public final static int ICSNEO_NETID_RS232 = icsneojavaJNI.ICSNEO_NETID_RS232_get();
|
||||
public final static int ICSNEO_NETID_UART = icsneojavaJNI.ICSNEO_NETID_UART_get();
|
||||
public final static int ICSNEO_NETID_UART2 = icsneojavaJNI.ICSNEO_NETID_UART2_get();
|
||||
public final static int ICSNEO_NETID_UART3 = icsneojavaJNI.ICSNEO_NETID_UART3_get();
|
||||
public final static int ICSNEO_NETID_UART4 = icsneojavaJNI.ICSNEO_NETID_UART4_get();
|
||||
public final static int ICSNEO_NETID_SWCAN2 = icsneojavaJNI.ICSNEO_NETID_SWCAN2_get();
|
||||
public final static int ICSNEO_NETID_ETHERNET_DAQ = icsneojavaJNI.ICSNEO_NETID_ETHERNET_DAQ_get();
|
||||
public final static int ICSNEO_NETID_DATA_TO_HOST = icsneojavaJNI.ICSNEO_NETID_DATA_TO_HOST_get();
|
||||
public final static int ICSNEO_NETID_TEXTAPI_TO_HOST = icsneojavaJNI.ICSNEO_NETID_TEXTAPI_TO_HOST_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET6 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET6_get();
|
||||
public final static int ICSNEO_NETID_RED_VBAT = icsneojavaJNI.ICSNEO_NETID_RED_VBAT_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET7 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET7_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET8 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET8_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET9 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET9_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET10 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET10_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET11 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET11_get();
|
||||
public final static int ICSNEO_NETID_FLEXRAY1A = icsneojavaJNI.ICSNEO_NETID_FLEXRAY1A_get();
|
||||
public final static int ICSNEO_NETID_FLEXRAY1B = icsneojavaJNI.ICSNEO_NETID_FLEXRAY1B_get();
|
||||
public final static int ICSNEO_NETID_FLEXRAY2A = icsneojavaJNI.ICSNEO_NETID_FLEXRAY2A_get();
|
||||
public final static int ICSNEO_NETID_FLEXRAY2B = icsneojavaJNI.ICSNEO_NETID_FLEXRAY2B_get();
|
||||
public final static int ICSNEO_NETID_LIN5 = icsneojavaJNI.ICSNEO_NETID_LIN5_get();
|
||||
public final static int ICSNEO_NETID_FLEXRAY = icsneojavaJNI.ICSNEO_NETID_FLEXRAY_get();
|
||||
public final static int ICSNEO_NETID_FLEXRAY2 = icsneojavaJNI.ICSNEO_NETID_FLEXRAY2_get();
|
||||
public final static int ICSNEO_NETID_OP_ETHERNET12 = icsneojavaJNI.ICSNEO_NETID_OP_ETHERNET12_get();
|
||||
public final static int ICSNEO_NETID_MOST25 = icsneojavaJNI.ICSNEO_NETID_MOST25_get();
|
||||
public final static int ICSNEO_NETID_MOST50 = icsneojavaJNI.ICSNEO_NETID_MOST50_get();
|
||||
public final static int ICSNEO_NETID_MOST150 = icsneojavaJNI.ICSNEO_NETID_MOST150_get();
|
||||
public final static int ICSNEO_NETID_ETHERNET = icsneojavaJNI.ICSNEO_NETID_ETHERNET_get();
|
||||
public final static int ICSNEO_NETID_GMFSA = icsneojavaJNI.ICSNEO_NETID_GMFSA_get();
|
||||
public final static int ICSNEO_NETID_TCP = icsneojavaJNI.ICSNEO_NETID_TCP_get();
|
||||
public final static int ICSNEO_NETID_HSCAN6 = icsneojavaJNI.ICSNEO_NETID_HSCAN6_get();
|
||||
public final static int ICSNEO_NETID_HSCAN7 = icsneojavaJNI.ICSNEO_NETID_HSCAN7_get();
|
||||
public final static int ICSNEO_NETID_LIN6 = icsneojavaJNI.ICSNEO_NETID_LIN6_get();
|
||||
public final static int ICSNEO_NETID_LSFTCAN2 = icsneojavaJNI.ICSNEO_NETID_LSFTCAN2_get();
|
||||
public final static int ICSNEO_NETID_HW_COM_LATENCY_TEST = icsneojavaJNI.ICSNEO_NETID_HW_COM_LATENCY_TEST_get();
|
||||
public final static int ICSNEO_NETID_DEVICE_STATUS = icsneojavaJNI.ICSNEO_NETID_DEVICE_STATUS_get();
|
||||
public final static int ICSNEO_NETID_ANY = icsneojavaJNI.ICSNEO_NETID_ANY_get();
|
||||
public final static int ICSNEO_NETID_INVALID = icsneojavaJNI.ICSNEO_NETID_INVALID_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_INVALID = icsneojavaJNI.ICSNEO_NETWORK_TYPE_INVALID_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_INTERNAL = icsneojavaJNI.ICSNEO_NETWORK_TYPE_INTERNAL_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_CAN = icsneojavaJNI.ICSNEO_NETWORK_TYPE_CAN_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_LIN = icsneojavaJNI.ICSNEO_NETWORK_TYPE_LIN_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_FLEXRAY = icsneojavaJNI.ICSNEO_NETWORK_TYPE_FLEXRAY_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_MOST = icsneojavaJNI.ICSNEO_NETWORK_TYPE_MOST_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_ETHERNET = icsneojavaJNI.ICSNEO_NETWORK_TYPE_ETHERNET_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_ANY = icsneojavaJNI.ICSNEO_NETWORK_TYPE_ANY_get();
|
||||
public final static int ICSNEO_NETWORK_TYPE_OTHER = icsneojavaJNI.ICSNEO_NETWORK_TYPE_OTHER_get();
|
||||
}
|
||||
@@ -0,0 +1,400 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class icsneojavaJNI {
|
||||
public final static native void icsneo_findAllDevices(long jarg1, neodevice_t jarg1_, int[] jarg2);
|
||||
public final static native void icsneo_freeUnconnectedDevices();
|
||||
public final static native boolean icsneo_serialNumToString(long jarg1, StringBuffer jarg2, int[] jarg3);
|
||||
public final static native long icsneo_serialStringToNum(StringBuffer jarg1);
|
||||
public final static native boolean icsneo_isValidNeoDevice(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_openDevice(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_closeDevice(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_isOpen(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_goOnline(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_goOffline(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_isOnline(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_enableMessagePolling(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_disableMessagePolling(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_isMessagePollingEnabled(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_getMessages(long jarg1, neodevice_t jarg1_, long jarg2, neomessage_t jarg2_, int[] jarg3, java.math.BigInteger jarg4);
|
||||
public final static native long icsneo_getPollingMessageLimit(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_setPollingMessageLimit(long jarg1, neodevice_t jarg1_, long jarg2);
|
||||
public final static native boolean icsneo_getProductName(long jarg1, neodevice_t jarg1_, StringBuffer jarg2, int[] jarg3);
|
||||
public final static native boolean icsneo_getProductNameForType(long jarg1, StringBuffer jarg2, int[] jarg3);
|
||||
public final static native boolean icsneo_settingsRefresh(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_settingsApply(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_settingsApplyTemporary(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_settingsApplyDefaults(long jarg1, neodevice_t jarg1_);
|
||||
public final static native boolean icsneo_settingsApplyDefaultsTemporary(long jarg1, neodevice_t jarg1_);
|
||||
public final static native int icsneo_settingsReadStructure(long jarg1, neodevice_t jarg1_, long jarg2, long jarg3);
|
||||
public final static native boolean icsneo_settingsApplyStructure(long jarg1, neodevice_t jarg1_, long jarg2, long jarg3);
|
||||
public final static native boolean icsneo_settingsApplyStructureTemporary(long jarg1, neodevice_t jarg1_, long jarg2, long jarg3);
|
||||
public final static native long icsneo_getBaudrate(long jarg1, neodevice_t jarg1_, int jarg2);
|
||||
public final static native boolean icsneo_setBaudrate(long jarg1, neodevice_t jarg1_, int jarg2, long jarg3);
|
||||
public final static native long icsneo_getFDBaudrate(long jarg1, neodevice_t jarg1_, int jarg2);
|
||||
public final static native boolean icsneo_setFDBaudrate(long jarg1, neodevice_t jarg1_, int jarg2, long jarg3);
|
||||
public final static native boolean icsneo_transmit(long jarg1, neodevice_t jarg1_, long jarg2, neomessage_t jarg2_);
|
||||
public final static native boolean icsneo_transmitMessages(long jarg1, neodevice_t jarg1_, long jarg2, neomessage_t jarg2_, long jarg3);
|
||||
public final static native void icsneo_setWriteBlocks(long jarg1, neodevice_t jarg1_, boolean jarg2);
|
||||
public final static native boolean icsneo_describeDevice(long jarg1, neodevice_t jarg1_, StringBuffer jarg2, int[] jarg3);
|
||||
public final static native long icsneo_getVersion();
|
||||
public final static native boolean icsneo_getEvents(long jarg1, neoevent_t jarg1_, int[] jarg2);
|
||||
public final static native boolean icsneo_getDeviceEvents(long jarg1, neodevice_t jarg1_, long jarg2, neoevent_t jarg2_, int[] jarg3);
|
||||
public final static native boolean icsneo_getLastError(long jarg1, neoevent_t jarg1_);
|
||||
public final static native void icsneo_discardAllEvents();
|
||||
public final static native void icsneo_discardDeviceEvents(long jarg1, neodevice_t jarg1_);
|
||||
public final static native void icsneo_setEventLimit(long jarg1);
|
||||
public final static native long icsneo_getEventLimit();
|
||||
public final static native boolean icsneo_getSupportedDevices(long jarg1, int[] jarg2);
|
||||
public final static native boolean icsneo_getTimestampResolution(long jarg1, neodevice_t jarg1_, long jarg2);
|
||||
public final static native void neodevice_t_device_set(long jarg1, neodevice_t jarg1_, long jarg2);
|
||||
public final static native long neodevice_t_device_get(long jarg1, neodevice_t jarg1_);
|
||||
public final static native void neodevice_t_handle_set(long jarg1, neodevice_t jarg1_, int jarg2);
|
||||
public final static native int neodevice_t_handle_get(long jarg1, neodevice_t jarg1_);
|
||||
public final static native void neodevice_t_type_set(long jarg1, neodevice_t jarg1_, long jarg2);
|
||||
public final static native long neodevice_t_type_get(long jarg1, neodevice_t jarg1_);
|
||||
public final static native void neodevice_t_serial_set(long jarg1, neodevice_t jarg1_, String jarg2);
|
||||
public final static native String neodevice_t_serial_get(long jarg1, neodevice_t jarg1_);
|
||||
public final static native long new_neodevice_t();
|
||||
public final static native void delete_neodevice_t(long jarg1);
|
||||
public final static native void neomessage_statusbitfield_t_globalError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_globalError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_transmitMessage_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_transmitMessage_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_extendedFrame_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_extendedFrame_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_remoteFrame_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_remoteFrame_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_crcError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_crcError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canErrorPassive_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canErrorPassive_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_incompleteFrame_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_incompleteFrame_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_lostArbitration_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_lostArbitration_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_undefinedError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_undefinedError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canBusOff_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canBusOff_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canErrorWarning_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canErrorWarning_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canBusShortedPlus_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canBusShortedPlus_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canBusShortedGround_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canBusShortedGround_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_checksumError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_checksumError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_badMessageBitTimeError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_badMessageBitTimeError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_ifrData_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_ifrData_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_hardwareCommError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_hardwareCommError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_expectedLengthError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_expectedLengthError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_incomingNoMatch_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_incomingNoMatch_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_statusBreak_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_statusBreak_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_avsiRecOverflow_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_avsiRecOverflow_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_testTrigger_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_testTrigger_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_audioComment_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_audioComment_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_gpsData_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_gpsData_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_analogDigitalInput_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_analogDigitalInput_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_textComment_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_textComment_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_networkMessageType_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_networkMessageType_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_vsiTXUnderrun_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_vsiTXUnderrun_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_vsiIFRCRCBit_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_vsiIFRCRCBit_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_initMessage_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_initMessage_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_flexraySecondStartupFrame_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_flexraySecondStartupFrame_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_extended_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_extended_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_hasValue_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_hasValue_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_valueIsBoolean_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_valueIsBoolean_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_highVoltage_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_highVoltage_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_longMessage_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_longMessage_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_globalChange_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_globalChange_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_errorFrame_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_errorFrame_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_endOfLongMessage_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_endOfLongMessage_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linErrorRXBreakNotZero_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linErrorRXBreakNotZero_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linErrorRXBreakTooShort_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linErrorRXBreakTooShort_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linErrorRXSyncNot55_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linErrorRXSyncNot55_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linErrorRXDataGreaterEight_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linErrorRXDataGreaterEight_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linErrorTXRXMismatch_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linErrorTXRXMismatch_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linErrorMessageIDParity_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linErrorMessageIDParity_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linSyncFrameError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linSyncFrameError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linIDFrameError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linIDFrameError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linSlaveByteError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linSlaveByteError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_rxTimeoutError_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_rxTimeoutError_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_linNoSlaveData_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_linNoSlaveData_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canfdESI_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canfdESI_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canfdIDE_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canfdIDE_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canfdRTR_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canfdRTR_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canfdFDF_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canfdFDF_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_canfdBRS_set(long jarg1, neomessage_statusbitfield_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_statusbitfield_t_canfdBRS_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native void neomessage_statusbitfield_t_statusBitfield_set(long jarg1, neomessage_statusbitfield_t jarg1_, long[] jarg2);
|
||||
public final static native long[] neomessage_statusbitfield_t_statusBitfield_get(long jarg1, neomessage_statusbitfield_t jarg1_);
|
||||
public final static native long new_neomessage_statusbitfield_t();
|
||||
public final static native void delete_neomessage_statusbitfield_t(long jarg1);
|
||||
public final static native void neomessage_t_status_set(long jarg1, neomessage_t jarg1_, long jarg2, neomessage_statusbitfield_t jarg2_);
|
||||
public final static native long neomessage_t_status_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_timestamp_set(long jarg1, neomessage_t jarg1_, java.math.BigInteger jarg2);
|
||||
public final static native java.math.BigInteger neomessage_t_timestamp_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_timestampReserved_set(long jarg1, neomessage_t jarg1_, java.math.BigInteger jarg2);
|
||||
public final static native java.math.BigInteger neomessage_t_timestampReserved_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_data_set(long jarg1, neomessage_t jarg1_, byte[] jarg2);
|
||||
public final static native byte[] neomessage_t_data_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_length_set(long jarg1, neomessage_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_t_length_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_header_set(long jarg1, neomessage_t jarg1_, short[] jarg2);
|
||||
public final static native short[] neomessage_t_header_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_netid_set(long jarg1, neomessage_t jarg1_, int jarg2);
|
||||
public final static native int neomessage_t_netid_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_type_set(long jarg1, neomessage_t jarg1_, short jarg2);
|
||||
public final static native short neomessage_t_type_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native void neomessage_t_reserved_set(long jarg1, neomessage_t jarg1_, short[] jarg2);
|
||||
public final static native short[] neomessage_t_reserved_get(long jarg1, neomessage_t jarg1_);
|
||||
public final static native long new_neomessage_t();
|
||||
public final static native void delete_neomessage_t(long jarg1);
|
||||
public final static native void neomessage_can_t_status_set(long jarg1, neomessage_can_t jarg1_, long jarg2, neomessage_statusbitfield_t jarg2_);
|
||||
public final static native long neomessage_can_t_status_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_timestamp_set(long jarg1, neomessage_can_t jarg1_, java.math.BigInteger jarg2);
|
||||
public final static native java.math.BigInteger neomessage_can_t_timestamp_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_timestampReserved_set(long jarg1, neomessage_can_t jarg1_, java.math.BigInteger jarg2);
|
||||
public final static native java.math.BigInteger neomessage_can_t_timestampReserved_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_data_set(long jarg1, neomessage_can_t jarg1_, byte[] jarg2);
|
||||
public final static native byte[] neomessage_can_t_data_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_length_set(long jarg1, neomessage_can_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_can_t_length_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_arbid_set(long jarg1, neomessage_can_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_can_t_arbid_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_netid_set(long jarg1, neomessage_can_t jarg1_, int jarg2);
|
||||
public final static native int neomessage_can_t_netid_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_type_set(long jarg1, neomessage_can_t jarg1_, short jarg2);
|
||||
public final static native short neomessage_can_t_type_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_dlcOnWire_set(long jarg1, neomessage_can_t jarg1_, short jarg2);
|
||||
public final static native short neomessage_can_t_dlcOnWire_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native void neomessage_can_t_reserved_set(long jarg1, neomessage_can_t jarg1_, short[] jarg2);
|
||||
public final static native short[] neomessage_can_t_reserved_get(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native long new_neomessage_can_t();
|
||||
public final static native void delete_neomessage_can_t(long jarg1);
|
||||
public final static native void neomessage_eth_t_status_set(long jarg1, neomessage_eth_t jarg1_, long jarg2, neomessage_statusbitfield_t jarg2_);
|
||||
public final static native long neomessage_eth_t_status_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_timestamp_set(long jarg1, neomessage_eth_t jarg1_, java.math.BigInteger jarg2);
|
||||
public final static native java.math.BigInteger neomessage_eth_t_timestamp_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_timestampReserved_set(long jarg1, neomessage_eth_t jarg1_, java.math.BigInteger jarg2);
|
||||
public final static native java.math.BigInteger neomessage_eth_t_timestampReserved_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_data_set(long jarg1, neomessage_eth_t jarg1_, byte[] jarg2);
|
||||
public final static native byte[] neomessage_eth_t_data_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_length_set(long jarg1, neomessage_eth_t jarg1_, long jarg2);
|
||||
public final static native long neomessage_eth_t_length_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_preemptionFlags_set(long jarg1, neomessage_eth_t jarg1_, short jarg2);
|
||||
public final static native short neomessage_eth_t_preemptionFlags_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_reservedHeader_set(long jarg1, neomessage_eth_t jarg1_, short[] jarg2);
|
||||
public final static native short[] neomessage_eth_t_reservedHeader_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_netid_set(long jarg1, neomessage_eth_t jarg1_, int jarg2);
|
||||
public final static native int neomessage_eth_t_netid_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_type_set(long jarg1, neomessage_eth_t jarg1_, short jarg2);
|
||||
public final static native short neomessage_eth_t_type_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native void neomessage_eth_t_reserved_set(long jarg1, neomessage_eth_t jarg1_, short[] jarg2);
|
||||
public final static native short[] neomessage_eth_t_reserved_get(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native long new_neomessage_eth_t();
|
||||
public final static native void delete_neomessage_eth_t(long jarg1);
|
||||
public final static native int ICSNEO_DEVICETYPE_LONGEST_NAME_get();
|
||||
public final static native int ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION_get();
|
||||
public final static native void neoversion_t_major_set(long jarg1, neoversion_t jarg1_, int jarg2);
|
||||
public final static native int neoversion_t_major_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native void neoversion_t_minor_set(long jarg1, neoversion_t jarg1_, int jarg2);
|
||||
public final static native int neoversion_t_minor_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native void neoversion_t_patch_set(long jarg1, neoversion_t jarg1_, int jarg2);
|
||||
public final static native int neoversion_t_patch_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native void neoversion_t_metadata_set(long jarg1, neoversion_t jarg1_, String jarg2);
|
||||
public final static native String neoversion_t_metadata_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native void neoversion_t_buildBranch_set(long jarg1, neoversion_t jarg1_, String jarg2);
|
||||
public final static native String neoversion_t_buildBranch_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native void neoversion_t_buildTag_set(long jarg1, neoversion_t jarg1_, String jarg2);
|
||||
public final static native String neoversion_t_buildTag_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native void neoversion_t_reserved_set(long jarg1, neoversion_t jarg1_, String jarg2);
|
||||
public final static native String neoversion_t_reserved_get(long jarg1, neoversion_t jarg1_);
|
||||
public final static native long new_neoversion_t();
|
||||
public final static native void delete_neoversion_t(long jarg1);
|
||||
public final static native void neoevent_t_description_set(long jarg1, neoevent_t jarg1_, String jarg2);
|
||||
public final static native String neoevent_t_description_get(long jarg1, neoevent_t jarg1_);
|
||||
public final static native void neoevent_t_timestamp_set(long jarg1, neoevent_t jarg1_, long jarg2);
|
||||
public final static native long neoevent_t_timestamp_get(long jarg1, neoevent_t jarg1_);
|
||||
public final static native void neoevent_t_eventNumber_set(long jarg1, neoevent_t jarg1_, long jarg2);
|
||||
public final static native long neoevent_t_eventNumber_get(long jarg1, neoevent_t jarg1_);
|
||||
public final static native void neoevent_t_severity_set(long jarg1, neoevent_t jarg1_, short jarg2);
|
||||
public final static native short neoevent_t_severity_get(long jarg1, neoevent_t jarg1_);
|
||||
public final static native void neoevent_t_serial_set(long jarg1, neoevent_t jarg1_, String jarg2);
|
||||
public final static native String neoevent_t_serial_get(long jarg1, neoevent_t jarg1_);
|
||||
public final static native void neoevent_t_reserved_set(long jarg1, neoevent_t jarg1_, short[] jarg2);
|
||||
public final static native short[] neoevent_t_reserved_get(long jarg1, neoevent_t jarg1_);
|
||||
public final static native long new_neoevent_t();
|
||||
public final static native void delete_neoevent_t(long jarg1);
|
||||
public final static native int ICSNEO_NETID_DEVICE_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN_get();
|
||||
public final static native int ICSNEO_NETID_MSCAN_get();
|
||||
public final static native int ICSNEO_NETID_SWCAN_get();
|
||||
public final static native int ICSNEO_NETID_LSFTCAN_get();
|
||||
public final static native int ICSNEO_NETID_FORDSCP_get();
|
||||
public final static native int ICSNEO_NETID_J1708_get();
|
||||
public final static native int ICSNEO_NETID_AUX_get();
|
||||
public final static native int ICSNEO_NETID_J1850VPW_get();
|
||||
public final static native int ICSNEO_NETID_ISO_get();
|
||||
public final static native int ICSNEO_NETID_ISOPIC_get();
|
||||
public final static native int ICSNEO_NETID_MAIN51_get();
|
||||
public final static native int ICSNEO_NETID_RED_get();
|
||||
public final static native int ICSNEO_NETID_SCI_get();
|
||||
public final static native int ICSNEO_NETID_ISO2_get();
|
||||
public final static native int ICSNEO_NETID_ISO14230_get();
|
||||
public final static native int ICSNEO_NETID_LIN_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET1_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET2_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET3_get();
|
||||
public final static native int ICSNEO_NETID_RED_EXT_MEMORYREAD_get();
|
||||
public final static native int ICSNEO_NETID_RED_INT_MEMORYREAD_get();
|
||||
public final static native int ICSNEO_NETID_RED_DFLASH_READ_get();
|
||||
public final static native int ICSNEO_NETID_RED_SDCARD_READ_get();
|
||||
public final static native int ICSNEO_NETID_CAN_ERRBITS_get();
|
||||
public final static native int ICSNEO_NETID_RED_DFLASH_WRITE_DONE_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_CAN1_LOGICAL_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_CAN2_LOGICAL_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_LIN1_LOGICAL_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_LIN2_LOGICAL_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_LIN1_ANALOG_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_LIN2_ANALOG_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_MISC_ANALOG_get();
|
||||
public final static native int ICSNEO_NETID_RED_WAVE_MISCDIO2_LOGICAL_get();
|
||||
public final static native int ICSNEO_NETID_RED_NETWORK_COM_ENABLE_EX_get();
|
||||
public final static native int ICSNEO_NETID_RED_NEOVI_NETWORK_get();
|
||||
public final static native int ICSNEO_NETID_RED_READ_BAUD_SETTINGS_get();
|
||||
public final static native int ICSNEO_NETID_RED_OLDFORMAT_get();
|
||||
public final static native int ICSNEO_NETID_RED_SCOPE_CAPTURE_get();
|
||||
public final static native int ICSNEO_NETID_RED_HARDWARE_EXCEP_get();
|
||||
public final static native int ICSNEO_NETID_RED_GET_RTC_get();
|
||||
public final static native int ICSNEO_NETID_ISO3_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN2_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN3_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET4_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET5_get();
|
||||
public final static native int ICSNEO_NETID_ISO4_get();
|
||||
public final static native int ICSNEO_NETID_LIN2_get();
|
||||
public final static native int ICSNEO_NETID_LIN3_get();
|
||||
public final static native int ICSNEO_NETID_LIN4_get();
|
||||
public final static native int ICSNEO_NETID_RED_APP_ERROR_get();
|
||||
public final static native int ICSNEO_NETID_CGI_get();
|
||||
public final static native int ICSNEO_NETID_RESET_STATUS_get();
|
||||
public final static native int ICSNEO_NETID_FB_STATUS_get();
|
||||
public final static native int ICSNEO_NETID_APP_SIGNAL_STATUS_get();
|
||||
public final static native int ICSNEO_NETID_READ_DATALINK_CM_TX_MSG_get();
|
||||
public final static native int ICSNEO_NETID_READ_DATALINK_CM_RX_MSG_get();
|
||||
public final static native int ICSNEO_NETID_LOGGING_OVERFLOW_get();
|
||||
public final static native int ICSNEO_NETID_READ_SETTINGS_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN4_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN5_get();
|
||||
public final static native int ICSNEO_NETID_RS232_get();
|
||||
public final static native int ICSNEO_NETID_UART_get();
|
||||
public final static native int ICSNEO_NETID_UART2_get();
|
||||
public final static native int ICSNEO_NETID_UART3_get();
|
||||
public final static native int ICSNEO_NETID_UART4_get();
|
||||
public final static native int ICSNEO_NETID_SWCAN2_get();
|
||||
public final static native int ICSNEO_NETID_ETHERNET_DAQ_get();
|
||||
public final static native int ICSNEO_NETID_DATA_TO_HOST_get();
|
||||
public final static native int ICSNEO_NETID_TEXTAPI_TO_HOST_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET6_get();
|
||||
public final static native int ICSNEO_NETID_RED_VBAT_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET7_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET8_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET9_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET10_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET11_get();
|
||||
public final static native int ICSNEO_NETID_FLEXRAY1A_get();
|
||||
public final static native int ICSNEO_NETID_FLEXRAY1B_get();
|
||||
public final static native int ICSNEO_NETID_FLEXRAY2A_get();
|
||||
public final static native int ICSNEO_NETID_FLEXRAY2B_get();
|
||||
public final static native int ICSNEO_NETID_LIN5_get();
|
||||
public final static native int ICSNEO_NETID_FLEXRAY_get();
|
||||
public final static native int ICSNEO_NETID_FLEXRAY2_get();
|
||||
public final static native int ICSNEO_NETID_OP_ETHERNET12_get();
|
||||
public final static native int ICSNEO_NETID_MOST25_get();
|
||||
public final static native int ICSNEO_NETID_MOST50_get();
|
||||
public final static native int ICSNEO_NETID_MOST150_get();
|
||||
public final static native int ICSNEO_NETID_ETHERNET_get();
|
||||
public final static native int ICSNEO_NETID_GMFSA_get();
|
||||
public final static native int ICSNEO_NETID_TCP_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN6_get();
|
||||
public final static native int ICSNEO_NETID_HSCAN7_get();
|
||||
public final static native int ICSNEO_NETID_LIN6_get();
|
||||
public final static native int ICSNEO_NETID_LSFTCAN2_get();
|
||||
public final static native int ICSNEO_NETID_HW_COM_LATENCY_TEST_get();
|
||||
public final static native int ICSNEO_NETID_DEVICE_STATUS_get();
|
||||
public final static native int ICSNEO_NETID_ANY_get();
|
||||
public final static native int ICSNEO_NETID_INVALID_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_INVALID_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_INTERNAL_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_CAN_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_LIN_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_FLEXRAY_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_MOST_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_ETHERNET_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_ANY_get();
|
||||
public final static native int ICSNEO_NETWORK_TYPE_OTHER_get();
|
||||
public final static native long neomessage_can_t_cast(long jarg1, neomessage_t jarg1_);
|
||||
public final static native long neomessage_eth_t_cast(long jarg1, neomessage_t jarg1_);
|
||||
public final static native long from_can_neomessage_t_cast(long jarg1, neomessage_can_t jarg1_);
|
||||
public final static native long from_eth_neomessage_t_cast(long jarg1, neomessage_eth_t jarg1_);
|
||||
public final static native long new_neodevice_t_array(int jarg1);
|
||||
public final static native void delete_neodevice_t_array(long jarg1, neodevice_t jarg1_);
|
||||
public final static native long neodevice_t_array_getitem(long jarg1, neodevice_t jarg1_, int jarg2);
|
||||
public final static native void neodevice_t_array_setitem(long jarg1, neodevice_t jarg1_, int jarg2, long jarg3, neodevice_t jarg3_);
|
||||
public final static native long new_neoevent_t_array(int jarg1);
|
||||
public final static native void delete_neoevent_t_array(long jarg1, neoevent_t jarg1_);
|
||||
public final static native long neoevent_t_array_getitem(long jarg1, neoevent_t jarg1_, int jarg2);
|
||||
public final static native void neoevent_t_array_setitem(long jarg1, neoevent_t jarg1_, int jarg2, long jarg3, neoevent_t jarg3_);
|
||||
public final static native long new_neomessage_t_array(int jarg1);
|
||||
public final static native void delete_neomessage_t_array(long jarg1, neomessage_t jarg1_);
|
||||
public final static native long neomessage_t_array_getitem(long jarg1, neomessage_t jarg1_, int jarg2);
|
||||
public final static native void neomessage_t_array_setitem(long jarg1, neomessage_t jarg1_, int jarg2, long jarg3, neomessage_t jarg3_);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neodevice_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neodevice_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neodevice_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neodevice_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setDevice(SWIGTYPE_p_void value) {
|
||||
icsneojavaJNI.neodevice_t_device_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_void getDevice() {
|
||||
long cPtr = icsneojavaJNI.neodevice_t_device_get(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
|
||||
}
|
||||
|
||||
public void setHandle(int value) {
|
||||
icsneojavaJNI.neodevice_t_handle_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getHandle() {
|
||||
return icsneojavaJNI.neodevice_t_handle_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setType(long value) {
|
||||
icsneojavaJNI.neodevice_t_type_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getType() {
|
||||
return icsneojavaJNI.neodevice_t_type_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setSerial(String value) {
|
||||
icsneojavaJNI.neodevice_t_serial_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getSerial() {
|
||||
return icsneojavaJNI.neodevice_t_serial_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neodevice_t() {
|
||||
this(icsneojavaJNI.new_neodevice_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neoevent_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neoevent_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neoevent_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neoevent_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setDescription(String value) {
|
||||
icsneojavaJNI.neoevent_t_description_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return icsneojavaJNI.neoevent_t_description_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTimestamp(SWIGTYPE_p_time_t value) {
|
||||
icsneojavaJNI.neoevent_t_timestamp_set(swigCPtr, this, SWIGTYPE_p_time_t.getCPtr(value));
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_time_t getTimestamp() {
|
||||
return new SWIGTYPE_p_time_t(icsneojavaJNI.neoevent_t_timestamp_get(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
public void setEventNumber(long value) {
|
||||
icsneojavaJNI.neoevent_t_eventNumber_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getEventNumber() {
|
||||
return icsneojavaJNI.neoevent_t_eventNumber_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setSeverity(short value) {
|
||||
icsneojavaJNI.neoevent_t_severity_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short getSeverity() {
|
||||
return icsneojavaJNI.neoevent_t_severity_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setSerial(String value) {
|
||||
icsneojavaJNI.neoevent_t_serial_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getSerial() {
|
||||
return icsneojavaJNI.neoevent_t_serial_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setReserved(short[] value) {
|
||||
icsneojavaJNI.neoevent_t_reserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short[] getReserved() {
|
||||
return icsneojavaJNI.neoevent_t_reserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neoevent_t() {
|
||||
this(icsneojavaJNI.new_neoevent_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neomessage_can_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neomessage_can_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neomessage_can_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neomessage_can_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setStatus(neomessage_statusbitfield_t value) {
|
||||
icsneojavaJNI.neomessage_can_t_status_set(swigCPtr, this, neomessage_statusbitfield_t.getCPtr(value), value);
|
||||
}
|
||||
|
||||
public neomessage_statusbitfield_t getStatus() {
|
||||
long cPtr = icsneojavaJNI.neomessage_can_t_status_get(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new neomessage_statusbitfield_t(cPtr, false);
|
||||
}
|
||||
|
||||
public void setTimestamp(java.math.BigInteger value) {
|
||||
icsneojavaJNI.neomessage_can_t_timestamp_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public java.math.BigInteger getTimestamp() {
|
||||
return icsneojavaJNI.neomessage_can_t_timestamp_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTimestampReserved(java.math.BigInteger value) {
|
||||
icsneojavaJNI.neomessage_can_t_timestampReserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public java.math.BigInteger getTimestampReserved() {
|
||||
return icsneojavaJNI.neomessage_can_t_timestampReserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setData(byte[] value) {
|
||||
icsneojavaJNI.neomessage_can_t_data_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return icsneojavaJNI.neomessage_can_t_data_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLength(long value) {
|
||||
icsneojavaJNI.neomessage_can_t_length_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLength() {
|
||||
return icsneojavaJNI.neomessage_can_t_length_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setArbid(long value) {
|
||||
icsneojavaJNI.neomessage_can_t_arbid_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getArbid() {
|
||||
return icsneojavaJNI.neomessage_can_t_arbid_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setNetid(int value) {
|
||||
icsneojavaJNI.neomessage_can_t_netid_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getNetid() {
|
||||
return icsneojavaJNI.neomessage_can_t_netid_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setType(short value) {
|
||||
icsneojavaJNI.neomessage_can_t_type_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short getType() {
|
||||
return icsneojavaJNI.neomessage_can_t_type_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setDlcOnWire(short value) {
|
||||
icsneojavaJNI.neomessage_can_t_dlcOnWire_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short getDlcOnWire() {
|
||||
return icsneojavaJNI.neomessage_can_t_dlcOnWire_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setReserved(short[] value) {
|
||||
icsneojavaJNI.neomessage_can_t_reserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short[] getReserved() {
|
||||
return icsneojavaJNI.neomessage_can_t_reserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neomessage_can_t() {
|
||||
this(icsneojavaJNI.new_neomessage_can_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neomessage_eth_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neomessage_eth_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neomessage_eth_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neomessage_eth_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setStatus(neomessage_statusbitfield_t value) {
|
||||
icsneojavaJNI.neomessage_eth_t_status_set(swigCPtr, this, neomessage_statusbitfield_t.getCPtr(value), value);
|
||||
}
|
||||
|
||||
public neomessage_statusbitfield_t getStatus() {
|
||||
long cPtr = icsneojavaJNI.neomessage_eth_t_status_get(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new neomessage_statusbitfield_t(cPtr, false);
|
||||
}
|
||||
|
||||
public void setTimestamp(java.math.BigInteger value) {
|
||||
icsneojavaJNI.neomessage_eth_t_timestamp_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public java.math.BigInteger getTimestamp() {
|
||||
return icsneojavaJNI.neomessage_eth_t_timestamp_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTimestampReserved(java.math.BigInteger value) {
|
||||
icsneojavaJNI.neomessage_eth_t_timestampReserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public java.math.BigInteger getTimestampReserved() {
|
||||
return icsneojavaJNI.neomessage_eth_t_timestampReserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setData(byte[] value) {
|
||||
icsneojavaJNI.neomessage_eth_t_data_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return icsneojavaJNI.neomessage_eth_t_data_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLength(long value) {
|
||||
icsneojavaJNI.neomessage_eth_t_length_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLength() {
|
||||
return icsneojavaJNI.neomessage_eth_t_length_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setPreemptionFlags(short value) {
|
||||
icsneojavaJNI.neomessage_eth_t_preemptionFlags_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short getPreemptionFlags() {
|
||||
return icsneojavaJNI.neomessage_eth_t_preemptionFlags_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setReservedHeader(short[] value) {
|
||||
icsneojavaJNI.neomessage_eth_t_reservedHeader_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short[] getReservedHeader() {
|
||||
return icsneojavaJNI.neomessage_eth_t_reservedHeader_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setNetid(int value) {
|
||||
icsneojavaJNI.neomessage_eth_t_netid_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getNetid() {
|
||||
return icsneojavaJNI.neomessage_eth_t_netid_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setType(short value) {
|
||||
icsneojavaJNI.neomessage_eth_t_type_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short getType() {
|
||||
return icsneojavaJNI.neomessage_eth_t_type_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setReserved(short[] value) {
|
||||
icsneojavaJNI.neomessage_eth_t_reserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short[] getReserved() {
|
||||
return icsneojavaJNI.neomessage_eth_t_reserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neomessage_eth_t() {
|
||||
this(icsneojavaJNI.new_neomessage_eth_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,490 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neomessage_statusbitfield_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neomessage_statusbitfield_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neomessage_statusbitfield_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neomessage_statusbitfield_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setGlobalError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_globalError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getGlobalError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_globalError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTransmitMessage(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_transmitMessage_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getTransmitMessage() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_transmitMessage_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setExtendedFrame(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_extendedFrame_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getExtendedFrame() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_extendedFrame_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setRemoteFrame(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_remoteFrame_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getRemoteFrame() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_remoteFrame_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCrcError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_crcError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCrcError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_crcError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanErrorPassive(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canErrorPassive_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanErrorPassive() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canErrorPassive_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setIncompleteFrame(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_incompleteFrame_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getIncompleteFrame() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_incompleteFrame_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLostArbitration(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_lostArbitration_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLostArbitration() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_lostArbitration_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setUndefinedError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_undefinedError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getUndefinedError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_undefinedError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanBusOff(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canBusOff_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanBusOff() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canBusOff_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanErrorWarning(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canErrorWarning_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanErrorWarning() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canErrorWarning_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanBusShortedPlus(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canBusShortedPlus_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanBusShortedPlus() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canBusShortedPlus_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanBusShortedGround(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canBusShortedGround_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanBusShortedGround() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canBusShortedGround_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setChecksumError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_checksumError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getChecksumError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_checksumError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setBadMessageBitTimeError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_badMessageBitTimeError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getBadMessageBitTimeError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_badMessageBitTimeError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setIfrData(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_ifrData_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getIfrData() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_ifrData_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setHardwareCommError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_hardwareCommError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getHardwareCommError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_hardwareCommError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setExpectedLengthError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_expectedLengthError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getExpectedLengthError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_expectedLengthError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setIncomingNoMatch(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_incomingNoMatch_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getIncomingNoMatch() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_incomingNoMatch_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setStatusBreak(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_statusBreak_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getStatusBreak() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_statusBreak_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setAvsiRecOverflow(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_avsiRecOverflow_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getAvsiRecOverflow() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_avsiRecOverflow_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTestTrigger(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_testTrigger_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getTestTrigger() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_testTrigger_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setAudioComment(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_audioComment_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getAudioComment() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_audioComment_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setGpsData(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_gpsData_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getGpsData() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_gpsData_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setAnalogDigitalInput(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_analogDigitalInput_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getAnalogDigitalInput() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_analogDigitalInput_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTextComment(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_textComment_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getTextComment() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_textComment_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setNetworkMessageType(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_networkMessageType_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getNetworkMessageType() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_networkMessageType_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setVsiTXUnderrun(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_vsiTXUnderrun_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getVsiTXUnderrun() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_vsiTXUnderrun_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setVsiIFRCRCBit(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_vsiIFRCRCBit_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getVsiIFRCRCBit() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_vsiIFRCRCBit_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setInitMessage(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_initMessage_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getInitMessage() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_initMessage_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setFlexraySecondStartupFrame(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_flexraySecondStartupFrame_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getFlexraySecondStartupFrame() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_flexraySecondStartupFrame_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setExtended(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_extended_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getExtended() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_extended_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setHasValue(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_hasValue_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getHasValue() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_hasValue_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setValueIsBoolean(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_valueIsBoolean_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getValueIsBoolean() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_valueIsBoolean_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setHighVoltage(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_highVoltage_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getHighVoltage() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_highVoltage_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLongMessage(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_longMessage_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLongMessage() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_longMessage_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setGlobalChange(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_globalChange_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getGlobalChange() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_globalChange_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setErrorFrame(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_errorFrame_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getErrorFrame() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_errorFrame_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setEndOfLongMessage(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_endOfLongMessage_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getEndOfLongMessage() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_endOfLongMessage_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinErrorRXBreakNotZero(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXBreakNotZero_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinErrorRXBreakNotZero() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXBreakNotZero_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinErrorRXBreakTooShort(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXBreakTooShort_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinErrorRXBreakTooShort() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXBreakTooShort_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinErrorRXSyncNot55(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXSyncNot55_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinErrorRXSyncNot55() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXSyncNot55_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinErrorRXDataGreaterEight(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXDataGreaterEight_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinErrorRXDataGreaterEight() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linErrorRXDataGreaterEight_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinErrorTXRXMismatch(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linErrorTXRXMismatch_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinErrorTXRXMismatch() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linErrorTXRXMismatch_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinErrorMessageIDParity(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linErrorMessageIDParity_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinErrorMessageIDParity() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linErrorMessageIDParity_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinSyncFrameError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linSyncFrameError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinSyncFrameError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linSyncFrameError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinIDFrameError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linIDFrameError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinIDFrameError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linIDFrameError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinSlaveByteError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linSlaveByteError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinSlaveByteError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linSlaveByteError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setRxTimeoutError(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_rxTimeoutError_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getRxTimeoutError() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_rxTimeoutError_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLinNoSlaveData(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_linNoSlaveData_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLinNoSlaveData() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_linNoSlaveData_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanfdESI(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canfdESI_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanfdESI() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canfdESI_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanfdIDE(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canfdIDE_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanfdIDE() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canfdIDE_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanfdRTR(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canfdRTR_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanfdRTR() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canfdRTR_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanfdFDF(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canfdFDF_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanfdFDF() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canfdFDF_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setCanfdBRS(long value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_canfdBRS_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getCanfdBRS() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_canfdBRS_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setStatusBitfield(long[] value) {
|
||||
icsneojavaJNI.neomessage_statusbitfield_t_statusBitfield_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long[] getStatusBitfield() {
|
||||
return icsneojavaJNI.neomessage_statusbitfield_t_statusBitfield_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neomessage_statusbitfield_t() {
|
||||
this(icsneojavaJNI.new_neomessage_statusbitfield_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neomessage_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neomessage_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neomessage_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neomessage_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setStatus(neomessage_statusbitfield_t value) {
|
||||
icsneojavaJNI.neomessage_t_status_set(swigCPtr, this, neomessage_statusbitfield_t.getCPtr(value), value);
|
||||
}
|
||||
|
||||
public neomessage_statusbitfield_t getStatus() {
|
||||
long cPtr = icsneojavaJNI.neomessage_t_status_get(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new neomessage_statusbitfield_t(cPtr, false);
|
||||
}
|
||||
|
||||
public void setTimestamp(java.math.BigInteger value) {
|
||||
icsneojavaJNI.neomessage_t_timestamp_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public java.math.BigInteger getTimestamp() {
|
||||
return icsneojavaJNI.neomessage_t_timestamp_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setTimestampReserved(java.math.BigInteger value) {
|
||||
icsneojavaJNI.neomessage_t_timestampReserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public java.math.BigInteger getTimestampReserved() {
|
||||
return icsneojavaJNI.neomessage_t_timestampReserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setData(byte[] value) {
|
||||
icsneojavaJNI.neomessage_t_data_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return icsneojavaJNI.neomessage_t_data_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setLength(long value) {
|
||||
icsneojavaJNI.neomessage_t_length_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public long getLength() {
|
||||
return icsneojavaJNI.neomessage_t_length_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setHeader(short[] value) {
|
||||
icsneojavaJNI.neomessage_t_header_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short[] getHeader() {
|
||||
return icsneojavaJNI.neomessage_t_header_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setNetid(int value) {
|
||||
icsneojavaJNI.neomessage_t_netid_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getNetid() {
|
||||
return icsneojavaJNI.neomessage_t_netid_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setType(short value) {
|
||||
icsneojavaJNI.neomessage_t_type_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short getType() {
|
||||
return icsneojavaJNI.neomessage_t_type_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setReserved(short[] value) {
|
||||
icsneojavaJNI.neomessage_t_reserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public short[] getReserved() {
|
||||
return icsneojavaJNI.neomessage_t_reserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neomessage_t() {
|
||||
this(icsneojavaJNI.new_neomessage_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 4.0.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public class neoversion_t {
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected neoversion_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(neoversion_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
icsneojavaJNI.delete_neoversion_t(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setMajor(int value) {
|
||||
icsneojavaJNI.neoversion_t_major_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getMajor() {
|
||||
return icsneojavaJNI.neoversion_t_major_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setMinor(int value) {
|
||||
icsneojavaJNI.neoversion_t_minor_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getMinor() {
|
||||
return icsneojavaJNI.neoversion_t_minor_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setPatch(int value) {
|
||||
icsneojavaJNI.neoversion_t_patch_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public int getPatch() {
|
||||
return icsneojavaJNI.neoversion_t_patch_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setMetadata(String value) {
|
||||
icsneojavaJNI.neoversion_t_metadata_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getMetadata() {
|
||||
return icsneojavaJNI.neoversion_t_metadata_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setBuildBranch(String value) {
|
||||
icsneojavaJNI.neoversion_t_buildBranch_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getBuildBranch() {
|
||||
return icsneojavaJNI.neoversion_t_buildBranch_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setBuildTag(String value) {
|
||||
icsneojavaJNI.neoversion_t_buildTag_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getBuildTag() {
|
||||
return icsneojavaJNI.neoversion_t_buildTag_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setReserved(String value) {
|
||||
icsneojavaJNI.neoversion_t_reserved_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public String getReserved() {
|
||||
return icsneojavaJNI.neoversion_t_reserved_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public neoversion_t() {
|
||||
this(icsneojavaJNI.new_neoversion_t(), true);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user