public class Can
extends java.lang.Object
Constructor and Description |
---|
Can() |
Modifier and Type | Method and Description |
---|---|
static int |
close_port()
Calls a native C function through JNI to close the CAN port
|
static int |
open_port(java.lang.String port)
Calls a native C function through JNI to attempt to open a CAN port
|
static java.lang.String |
read_port()
Calls a native C function through JNI to attempt to read data from a CAN port
|
public static int close_port()
public static int open_port(java.lang.String port)
port
- "can0" or "vcan0" for testingpublic static java.lang.String read_port()