Class CANAPIJNI

java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.CANAPIJNI

public class CANAPIJNI
extends JNIWrapper
  • Constructor Details

  • Method Details

    • initializeCAN

      public static int initializeCAN​(int manufacturer, int deviceId, int deviceType)
    • cleanCAN

      public static void cleanCAN​(int handle)
    • writeCANPacket

      public static void writeCANPacket​(int handle, byte[] data, int apiId)
    • writeCANPacketRepeating

      public static void writeCANPacketRepeating​(int handle, byte[] data, int apiId, int repeatMs)
    • writeCANRTRFrame

      public static void writeCANRTRFrame​(int handle, int length, int apiId)
    • writeCANPacketNoThrow

      public static int writeCANPacketNoThrow​(int handle, byte[] data, int apiId)
    • writeCANPacketRepeatingNoThrow

      public static int writeCANPacketRepeatingNoThrow​(int handle, byte[] data, int apiId, int repeatMs)
    • writeCANRTRFrameNoThrow

      public static int writeCANRTRFrameNoThrow​(int handle, int length, int apiId)
    • stopCANPacketRepeating

      public static void stopCANPacketRepeating​(int handle, int apiId)
    • readCANPacketNew

      public static boolean readCANPacketNew​(int handle, int apiId, CANData data)
    • readCANPacketLatest

      public static boolean readCANPacketLatest​(int handle, int apiId, CANData data)
    • readCANPacketTimeout

      public static boolean readCANPacketTimeout​(int handle, int apiId, int timeoutMs, CANData data)