Package peak.can.basic
Class RcvEventDispatcher
- java.lang.Object
-
- peak.can.basic.RcvEventDispatcher
-
public class RcvEventDispatcher extends java.lang.Object
This class is a gateway between the PCAN Light JNI and the application to dispatch the CAN Receive-Event. RcvEventDispatcher contains a public static method dispatchRcvEvent which is called from the JNI to notify the Java application when the handle of the Receive-Event detects a state change.
-
-
Constructor Summary
Constructors Constructor Description RcvEventDispatcher()
-
Method Summary
Modifier and Type Method Description static void
dispatchRcvEvent(TPCANHandle channel)
This static public method will call from JNI to process the Receive-Event by the listenerstatic IRcvEventProcessor
getListener()
Gets the Receive-Event processorstatic void
setListener(IRcvEventProcessor listener)
Sets the Receive-Event processor
-
-
-
Method Detail
-
getListener
public static IRcvEventProcessor getListener()
Gets the Receive-Event processor- Returns:
- a IRcvEventProcessor
-
setListener
public static void setListener(IRcvEventProcessor listener)
Sets the Receive-Event processor- Parameters:
listener
- a IRcvEventProcessor implementor
-
dispatchRcvEvent
public static void dispatchRcvEvent(TPCANHandle channel)
This static public method will call from JNI to process the Receive-Event by the listener- Parameters:
channel
- CAN Channel to dispatch the event to.
-
-