#include <can_layer.h>
Public Member Functions | |
CANLayer (const boost::shared_ptr< can::DriverInterface > &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) |
Private Member Functions | |
void | handleFrame (const can::Frame &msg) |
Private Attributes | |
const std::string | device_ |
boost::shared_ptr < can::DriverInterface > | driver_ |
can::CommInterface::FrameListener::Ptr | error_listener_ |
can::Frame | last_error_ |
const bool | loopback_ |
boost::mutex | mutex_ |
boost::shared_ptr< boost::thread > | thread_ |
Definition at line 9 of file can_layer.h.
canopen::CANLayer::CANLayer | ( | const boost::shared_ptr< can::DriverInterface > & | driver, |
const std::string & | device, | ||
bool | loopback | ||
) | [inline] |
Definition at line 24 of file can_layer.h.
virtual void canopen::CANLayer::handleDiag | ( | LayerReport & | report | ) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 38 of file can_layer.h.
void canopen::CANLayer::handleFrame | ( | const can::Frame & | msg | ) | [inline, private] |
Definition at line 16 of file can_layer.h.
virtual void canopen::CANLayer::handleHalt | ( | LayerStatus & | status | ) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 98 of file can_layer.h.
virtual void canopen::CANLayer::handleInit | ( | LayerStatus & | status | ) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 65 of file can_layer.h.
virtual void canopen::CANLayer::handleRead | ( | LayerStatus & | status, |
const LayerState & | current_state | ||
) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 27 of file can_layer.h.
virtual void canopen::CANLayer::handleRecover | ( | LayerStatus & | status | ) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 100 of file can_layer.h.
virtual void canopen::CANLayer::handleShutdown | ( | LayerStatus & | status | ) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 84 of file can_layer.h.
virtual void canopen::CANLayer::handleWrite | ( | LayerStatus & | status, |
const LayerState & | current_state | ||
) | [inline, virtual] |
Implements canopen::Layer.
Definition at line 32 of file can_layer.h.
const std::string canopen::CANLayer::device_ [private] |
Definition at line 12 of file can_layer.h.
boost::shared_ptr<can::DriverInterface> canopen::CANLayer::driver_ [private] |
Definition at line 11 of file can_layer.h.
Definition at line 15 of file can_layer.h.
can::Frame canopen::CANLayer::last_error_ [private] |
Definition at line 14 of file can_layer.h.
const bool canopen::CANLayer::loopback_ [private] |
Definition at line 13 of file can_layer.h.
boost::mutex canopen::CANLayer::mutex_ [private] |
Definition at line 10 of file can_layer.h.
boost::shared_ptr<boost::thread> canopen::CANLayer::thread_ [private] |
Definition at line 21 of file can_layer.h.