#include <canopen.h>
Public Member Functions | |
EMCYHandler (const boost::shared_ptr< can::CommInterface > interface, const boost::shared_ptr< ObjectStorage > storage) | |
void | resetErrors (LayerStatus &status) |
Private Member Functions | |
virtual void | handleDiag (LayerReport &report) |
void | handleEMCY (const can::Frame &msg) |
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 Attributes | |
can::CommInterface::FrameListener::Ptr | emcy_listener_ |
ObjectStorage::Entry< uint8_t > | error_register_ |
boost::atomic< bool > | has_error_ |
ObjectStorage::Entry< uint8_t > | num_errors_ |
const boost::shared_ptr < ObjectStorage > | storage_ |
EMCYHandler::EMCYHandler | ( | const boost::shared_ptr< can::CommInterface > | interface, |
const boost::shared_ptr< ObjectStorage > | storage | ||
) |
void EMCYHandler::handleDiag | ( | LayerReport & | report | ) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::handleEMCY | ( | const can::Frame & | msg | ) | [private] |
void EMCYHandler::handleHalt | ( | LayerStatus & | status | ) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::handleInit | ( | LayerStatus & | status | ) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::handleRead | ( | LayerStatus & | status, |
const LayerState & | current_state | ||
) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::handleRecover | ( | LayerStatus & | status | ) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::handleShutdown | ( | LayerStatus & | status | ) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::handleWrite | ( | LayerStatus & | status, |
const LayerState & | current_state | ||
) | [private, virtual] |
Implements canopen::Layer.
void EMCYHandler::resetErrors | ( | LayerStatus & | status | ) |
ObjectStorage::Entry<uint8_t> canopen::EMCYHandler::error_register_ [private] |
boost::atomic<bool> canopen::EMCYHandler::has_error_ [private] |
ObjectStorage::Entry<uint8_t> canopen::EMCYHandler::num_errors_ [private] |
const boost::shared_ptr<ObjectStorage> canopen::EMCYHandler::storage_ [private] |