Package edu.wpi.first.hal.can
Class CANReceiveMessage
java.lang.Object
edu.wpi.first.hal.can.CANReceiveMessage
Represents a CAN message read from a stream.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
setReceiveData
(int length, int flags, 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). -
flags
The flags of the message. -
timestamp
Timestamp message was received, in microseconds (wpi time).
-
-
Constructor Details
-
CANReceiveMessage
public CANReceiveMessage()Default constructor.
-
-
Method Details
-
setReceiveData
API used from JNI to set the data.- Parameters:
length
- Length of packet in bytes.flags
- Message flags.timestamp
- CAN frame timestamp in microseconds.- Returns:
- Buffer containing CAN frame.
-