mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[hal] Add no throw/error version of CAN Write methods (#2063)
This commit is contained in:
@@ -20,6 +20,13 @@ public class CANAPIJNI extends JNIWrapper {
|
||||
|
||||
public static native void writeCANRTRFrame(int handle, int length, int apiId);
|
||||
|
||||
public static native int writeCANPacketNoThrow(int handle, byte[] data, int apiId);
|
||||
|
||||
public static native int writeCANPacketRepeatingNoThrow(int handle, byte[] data, int apiId,
|
||||
int repeatMs);
|
||||
|
||||
public static native int writeCANRTRFrameNoThrow(int handle, int length, int apiId);
|
||||
|
||||
public static native void stopCANPacketRepeating(int handle, int apiId);
|
||||
|
||||
public static native boolean readCANPacketNew(int handle, int apiId, CANData data);
|
||||
|
||||
Reference in New Issue
Block a user