Public Member Functions | Private Member Functions | Private Attributes | List of all members
canopen::EMCYHandler Class Reference

#include <canopen.h>

Inheritance diagram for canopen::EMCYHandler:
Inheritance graph
[legend]

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 &current_state)
 
virtual void handleRecover (LayerStatus &status)
 
virtual void handleShutdown (LayerStatus &status)
 
virtual void handleWrite (LayerStatus &status, const LayerState &current_state)
 

Private Attributes

can::FrameListenerConstSharedPtr emcy_listener_
 
ObjectStorage::Entry< uint8_t > error_register_
 
boost::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
 

Detailed Description

Definition at line 143 of file canopen.h.

Constructor & Destructor Documentation

EMCYHandler::EMCYHandler ( const can::CommInterfaceSharedPtr  interface,
const ObjectStorageSharedPtr  storage 
)

Definition at line 49 of file emcy.cpp.

Member Function Documentation

void EMCYHandler::handleDiag ( LayerReport report)
privatevirtual

Implements canopen::Layer.

Definition at line 77 of file emcy.cpp.

void EMCYHandler::handleEMCY ( const can::Frame msg)
private

Definition at line 43 of file emcy.cpp.

void EMCYHandler::handleHalt ( LayerStatus status)
privatevirtual

Implements canopen::Layer.

Definition at line 140 of file emcy.cpp.

void EMCYHandler::handleInit ( LayerStatus status)
privatevirtual

Implements canopen::Layer.

Definition at line 117 of file emcy.cpp.

void EMCYHandler::handleRead ( LayerStatus status,
const LayerState current_state 
)
privatevirtual

Implements canopen::Layer.

Definition at line 66 of file emcy.cpp.

void EMCYHandler::handleRecover ( LayerStatus status)
privatevirtual

Implements canopen::Layer.

Definition at line 135 of file emcy.cpp.

void EMCYHandler::handleShutdown ( LayerStatus status)
privatevirtual

Implements canopen::Layer.

Definition at line 138 of file emcy.cpp.

void EMCYHandler::handleWrite ( LayerStatus status,
const LayerState current_state 
)
privatevirtual

Implements canopen::Layer.

Definition at line 73 of file emcy.cpp.

void EMCYHandler::resetErrors ( LayerStatus status)

Definition at line 130 of file emcy.cpp.

Member Data Documentation

can::FrameListenerConstSharedPtr canopen::EMCYHandler::emcy_listener_
private

Definition at line 147 of file canopen.h.

ObjectStorage::Entry<uint8_t> canopen::EMCYHandler::error_register_
private

Definition at line 145 of file canopen.h.

boost::atomic<bool> canopen::EMCYHandler::has_error_
private

Definition at line 144 of file canopen.h.

ObjectStorage::Entry<uint8_t> canopen::EMCYHandler::num_errors_
private

Definition at line 146 of file canopen.h.

const ObjectStorageSharedPtr canopen::EMCYHandler::storage_
private

Definition at line 149 of file canopen.h.


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


canopen_master
Author(s): Mathias L├╝dtke
autogenerated on Sat May 4 2019 02:40:43