Package edu.wpi.first.hal
Class CANAPIJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.CANAPIJNI
public class CANAPIJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description CANAPIJNI()
-
Method Summary
Modifier and Type Method Description static void
cleanCAN(int handle)
static int
initializeCAN(int manufacturer, int deviceId, int deviceType)
static boolean
readCANPacketLatest(int handle, int apiId, CANData data)
static boolean
readCANPacketNew(int handle, int apiId, CANData data)
static boolean
readCANPacketTimeout(int handle, int apiId, int timeoutMs, CANData data)
static void
stopCANPacketRepeating(int handle, int apiId)
static void
writeCANPacket(int handle, byte[] data, int apiId)
static int
writeCANPacketNoThrow(int handle, byte[] data, int apiId)
static void
writeCANPacketRepeating(int handle, byte[] data, int apiId, int repeatMs)
static int
writeCANPacketRepeatingNoThrow(int handle, byte[] data, int apiId, int repeatMs)
static void
writeCANRTRFrame(int handle, int length, int apiId)
static int
writeCANRTRFrameNoThrow(int handle, int length, int apiId)