#include <canopen.h>
Public Member Functions | |
EMCYHandler (const can::CommInterfaceSharedPtr interface, const ObjectStorageSharedPtr storage) | |
void | resetErrors (LayerStatus &status) |
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 | |
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::FrameListenerConstSharedPtr | emcy_listener_ |
ObjectStorage::Entry< uint8_t > | error_register_ |
std::atomic< bool > | has_error_ |
ObjectStorage::Entry< uint8_t > | num_errors_ |
const ObjectStorageSharedPtr | storage_ |
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 |
EMCYHandler::EMCYHandler | ( | const can::CommInterfaceSharedPtr | interface, |
const ObjectStorageSharedPtr | storage | ||
) |
|
privatevirtual |
Implements canopen::Layer.
|
private |
|
privatevirtual |
Implements canopen::Layer.
|
privatevirtual |
Implements canopen::Layer.
|
privatevirtual |
Implements canopen::Layer.
|
privatevirtual |
Implements canopen::Layer.
|
privatevirtual |
Implements canopen::Layer.
|
privatevirtual |
Implements canopen::Layer.
void EMCYHandler::resetErrors | ( | LayerStatus & | status | ) |
|
private |
|
private |
|
private |
|
private |
|
private |