Package edu.wpi.first.hal
Class CANData
java.lang.Object
edu.wpi.first.hal.CANData
Represents a received CAN message.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
setData
(int length, long timestamp) API used from JNI to set the data.
-
Field Details
-
data
Contents of the CAN frame. -
length
Length of the frame in bytes. -
timestamp
CAN frame timestamp in milliseconds.
-
-
Constructor Details
-
CANData
public CANData()Default constructor.
-
-
Method Details
-
setData
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.
-