automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | List of all members
CANObserver Class Referenceabstract

Interface. Receives notifications about the CAN bus traffic and errors. More...

#include <canobserver.h>

Inheritance diagram for CANObserver:
CANGenPlugin CANSimPlugin

Public Types

enum  CANError { GENERAL_ERROR = 0 }
 

Public Member Functions

virtual void errorOccured (CANObserver::CANError error)=0
 
virtual void standardFrameReceived (const can_frame &frame)=0
 
virtual void extendedFrameReceived (const can_frame &frame)=0
 
virtual void errorFrameReceived (const can_frame &frame)=0
 
virtual void remoteTransmissionRequest (const can_frame &frame)=0
 
virtual void timeoutDetected (const can_frame &frame)=0
 

Detailed Description

Interface. Receives notifications about the CAN bus traffic and errors.

CANBus user has to derive from this interface.

Member Enumeration Documentation

General CAN bus error. Currently only GENERAL_ERROR is specified.

Member Function Documentation

CANObserver::errorFrameReceived ( const can_frame &  frame)
pure virtual

Called when error frame was received from the bus.

Parameters
frameError frame

Implemented in CANGenPlugin, and CANSimPlugin.

CANObserver::errorOccured ( CANObserver::CANError  error)
pure virtual

Called when error occurred on the bus.

Parameters
errorBus error code

Implemented in CANGenPlugin, and CANSimPlugin.

CANObserver::extendedFrameReceived ( const can_frame &  frame)
pure virtual

Called when extended frame was is received from the bus.

Parameters
frameReceived frame

Implemented in CANGenPlugin, and CANSimPlugin.

CANObserver::remoteTransmissionRequest ( const can_frame &  frame)
pure virtual

Called when remote transmission frame was received from the bus.

Parameters
frameRTR frame

Implemented in CANGenPlugin, and CANSimPlugin.

CANObserver::standardFrameReceived ( const can_frame &  frame)
pure virtual

Called when standard frame was is received from the bus.

Parameters
frameReceived frame

Implemented in CANGenPlugin, and CANSimPlugin.

CANObserver::timeoutDetected ( const can_frame &  frame)
pure virtual

Called when timeout was detected for a cyclic message.

Parameters
frame

Implemented in CANGenPlugin, and CANSimPlugin.


The documentation for this class was generated from the following file: