summaryrefslogtreecommitdiff
path: root/plugins/common/cansocketadapter.h
diff options
context:
space:
mode:
authorKevron Rees <tripzero.kev@gmail.com>2015-04-06 08:33:33 -0700
committerKevron Rees <tripzero.kev@gmail.com>2015-04-06 08:33:33 -0700
commit4279804ec1986e918af017c8110dd5caf64e4887 (patch)
treec6897aa13d102f53e380c07aa096658b0452530d /plugins/common/cansocketadapter.h
parent9e370e5052ec254aa80306f6741dbc12bfb6bd5c (diff)
parent947be368482abf6f5d38a79213d9ba9d1c5debd4 (diff)
downloadautomotive-message-broker-4279804ec1986e918af017c8110dd5caf64e4887.tar.gz
Merge pull request #48 from CogentEmbedded/master
Fixes and improvements in CAN support
Diffstat (limited to 'plugins/common/cansocketadapter.h')
-rw-r--r--plugins/common/cansocketadapter.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/common/cansocketadapter.h b/plugins/common/cansocketadapter.h
index 350563ce..811d26a7 100644
--- a/plugins/common/cansocketadapter.h
+++ b/plugins/common/cansocketadapter.h
@@ -63,6 +63,22 @@ public:
* @return True if frame was sent
*/
virtual bool sendFrame(const can_frame& frame);
+ /**
+ * Registers CAN ID of a cyclic message for receiving
+ * @fn registerCyclicMessageForReceive
+ * @param canId CAN ID of the message.
+ * @param minCycleTime Minimal interval between messages in seconds. Set to 0 if not used.
+ * @param maxCycleTime Maximum interval between messages for timeout detection in seconds. Set to 0 if no timeout detection is necessary.
+ * @return True if registration succeeds.
+ */
+ virtual bool registerCyclicMessageForReceive(int canId, double minCycleTime, double maxCycleTime);
+ /**
+ * Un-registers CAN ID of a message used of receiving. Valid for cyclic and sporadic messages.
+ * @fn unregisterMessageForReceive
+ * @param canId CAN ID of the message.
+ * @return True if de-registration succeeds.
+ */
+ virtual bool unregisterMessageForReceive(int canId);
protected:
/**