Package edu.wpi.first.hal
Class CANStreamMessage
java.lang.Object
edu.wpi.first.hal.CANStreamMessage
Represents a CAN message read from a stream.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
setStreamData
(int length, int messageID, long timestamp) API used from JNI to set the data.
-
Field Details
-
data
The message data. -
length
The length of the data received (0-8 bytes). -
timestamp
Timestamp message was received, in milliseconds (based off of CLOCK_MONOTONIC). -
messageID
The message ID.
-
-
Constructor Details
-
CANStreamMessage
public CANStreamMessage()Default constructor.
-
-
Method Details
-
setStreamData
API used from JNI to set the data.- Parameters:
length
- Length of packet in bytes.messageID
- CAN message ID of the message.timestamp
- CAN frame timestamp in microseconds.- Returns:
- Buffer containing CAN frame.
-