#include <can_layer.h>
Public Member Functions | |
CANLayer (const can::DriverInterfaceSharedPtr &driver, const std::string &device, bool loopback) | |
virtual void | handleDiag (LayerReport &report) |
virtual void | handleHalt (LayerStatus &status) |
virtual void | handleInit (LayerStatus &status) |
virtual void | handleRead (LayerStatus &status, const LayerState ¤t_state) |
virtual void | handleRecover (LayerStatus &status) |
virtual void | handleShutdown (LayerStatus &status) |
virtual void | handleWrite (LayerStatus &status, const LayerState ¤t_state) |
Public Member Functions inherited from canopen::Layer | |
void | diag (LayerReport &report) |
LayerState | getLayerState () |
void | halt (LayerStatus &status) |
void | init (LayerStatus &status) |
Layer (const std::string &n) | |
void | read (LayerStatus &status) |
void | recover (LayerStatus &status) |
void | shutdown (LayerStatus &status) |
void | write (LayerStatus &status) |
virtual | ~Layer () |
Private Member Functions | |
void | handleFrame (const can::Frame &msg) |
Private Attributes | |
const std::string | device_ |
can::DriverInterfaceSharedPtr | driver_ |
can::FrameListenerConstSharedPtr | error_listener_ |
can::Frame | last_error_ |
const bool | loopback_ |
boost::mutex | mutex_ |
boost::shared_ptr< boost::thread > | thread_ |
Additional Inherited Members | |
Public Types inherited from canopen::Layer | |
enum | LayerState { Off, Init, Shutdown, Error, Halt, Recover, Ready } |
Public Attributes inherited from canopen::Layer | |
const std::string | name |
Definition at line 9 of file can_layer.h.
|
inline |
Definition at line 24 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 38 of file can_layer.h.
|
inlineprivate |
Definition at line 16 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 98 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 65 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 27 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 100 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 84 of file can_layer.h.
|
inlinevirtual |
Implements canopen::Layer.
Definition at line 32 of file can_layer.h.
|
private |
Definition at line 12 of file can_layer.h.
|
private |
Definition at line 11 of file can_layer.h.
|
private |
Definition at line 15 of file can_layer.h.
|
private |
Definition at line 14 of file can_layer.h.
|
private |
Definition at line 13 of file can_layer.h.
|
private |
Definition at line 10 of file can_layer.h.
|
private |
Definition at line 21 of file can_layer.h.