*/
virtual bool registerCyclicMessageForReceive(int canId, double minCycleTime, double maxCycleTime) = 0;
/**
- * Unregisters CAN ID for receiving
+ * 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.
class CANBus
{
public:
- virtual ~CANBus(){} /*LCOV_EXCL_LINE*/
+ virtual ~CANBus(){} /*LCOV_EXCL_LINE*/
/**
* Starts the CAN bus instance on the specified interface
* @param name Name of the CAN bus network interface
* @return True if no error occurs.
*/
- virtual bool start(const char* name) = 0;
+ virtual bool start(const char* name) = 0;
/**
* Stops the CAN bus instance
* @fn stop
*/
- virtual void stop() = 0;
+ virtual void stop() = 0;
/**
* Sends standard(11bit) CAN frame over the bus
* @fn sendStandardFrame
* @param frame CAN frame to be sent
* @return True if frame was sent
*/
- virtual bool sendStandardFrame(const can_frame& frame) = 0;
+ virtual bool sendStandardFrame(const can_frame& frame) = 0;
/**
* Sends extended(29bit) CAN frame over the bus
* @fn sendExtendedFrame
* @param frame CAN frame to be sent
* @return True if frame was sent
*/
- virtual bool sendExtendedFrame(const can_frame& frame) = 0;
+ virtual bool sendExtendedFrame(const can_frame& frame) = 0;
/**
* Registers CAN ID of a cyclic message for receiving
* @fn registerCyclicMessageForReceive
*/
virtual bool registerMessageForReceive(int canId)
{
- return registerCyclicMessageForReceive(canId, 0, 0);
+ return registerCyclicMessageForReceive(canId, 0, 0);
}
/**
- * Unregisters CAN ID for receiving
+ * 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 registerCyclicMessageForReceive(int canId, double minCycleTime, double maxCycleTime);
/**
- * Unregisters CAN ID for receiving
+ * 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 registerCyclicMessageForReceive(int canId, double minCycleTime, double maxCycleTime);
/**
- * Unregisters CAN ID for receiving
+ * 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 registerCyclicMessageForReceive(int canId, double minCycleTime, double maxCycleTime);
/**
- * Unregisters CAN ID for receiving
+ * 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.