-
Field Summary
Fields
Modifier and Type |
Field |
Description |
byte[] |
data |
Contents of the CAN frame.
|
int |
length |
Length of the frame in bytes.
|
long |
timestamp |
CAN frame timestamp in milliseconds.
|
-
Constructor Summary
Constructors
Constructor |
Description |
CANData() |
|
-
Method Summary
Modifier and Type |
Method |
Description |
byte[] |
setData(int length,
long timestamp) |
API used from JNI to set the data.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Contents of the CAN frame.
-
Length of the frame in bytes.
-
CAN frame timestamp in milliseconds.
-
-
Method Details
-
public byte[] setData(
int length,
long timestamp)
API used from JNI to set the data.
- Parameters:
length
- Length of packet in bytes.
timestamp
- CAN frame timestamp in milliseconds.
- Returns:
- Buffer to place CAN frame data in.