Class CANData

java.lang.Object
edu.wpi.first.hal.CANData

public class CANData
extends Object
  • 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()
    Default constructor.
  • 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

  • Constructor Details

  • Method Details

    • setData

      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.