Package edu.wpi.first.hal.can
Class CANJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.can.CANJNI
public class CANJNI extends JNIWrapper
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static int
CAN_IS_FRAME_11BIT
static int
CAN_IS_FRAME_REMOTE
static int
CAN_SEND_PERIOD_NO_REPEAT
static int
CAN_SEND_PERIOD_STOP_REPEATING
-
Constructor Summary
Constructors Constructor Description CANJNI()
-
Method Summary
Modifier and Type Method Description static void
closeCANStreamSession(int sessionHandle)
static byte[]
FRCNetCommCANSessionMuxReceiveMessage(IntBuffer messageID, int messageIDMask, ByteBuffer timeStamp)
static void
FRCNetCommCANSessionMuxSendMessage(int messageID, byte[] data, int periodMs)
static void
getCANStatus(CANStatus status)
static int
openCANStreamSession(int messageID, int messageIDMask, int maxMessages)
static int
readCANStreamSession(int sessionHandle, CANStreamMessage[] messages, int messagesToRead)
-
Field Details
-
CAN_SEND_PERIOD_NO_REPEAT
- See Also:
- Constant Field Values
-
CAN_SEND_PERIOD_STOP_REPEATING
- See Also:
- Constant Field Values
-
CAN_IS_FRAME_REMOTE
- See Also:
- Constant Field Values
-
CAN_IS_FRAME_11BIT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
FRCNetCommCANSessionMuxSendMessage
-
FRCNetCommCANSessionMuxReceiveMessage
public static byte[] FRCNetCommCANSessionMuxReceiveMessage(IntBuffer messageID, int messageIDMask, ByteBuffer timeStamp) -
getCANStatus
-
openCANStreamSession
-
closeCANStreamSession
-
readCANStreamSession
public static int readCANStreamSession(int sessionHandle, CANStreamMessage[] messages, int messagesToRead)
-