Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
canopen::SimpleSyncLayer Class Reference
Inheritance diagram for canopen::SimpleSyncLayer:
Inheritance graph
[legend]

Public Member Functions

 SimpleSyncLayer (const SyncProperties &p, can::CommInterfaceSharedPtr interface)
 
- Public Member Functions inherited from canopen::ManagingSyncLayer
virtual void addNode (void *const ptr)
 
 ManagingSyncLayer (const SyncProperties &p, can::CommInterfaceSharedPtr interface)
 
virtual void removeNode (void *const ptr)
 
- Public Member Functions inherited from canopen::SyncLayer
 SyncLayer (const SyncProperties &p)
 
- 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 ()
 
- Public Member Functions inherited from canopen::SyncCounter
 SyncCounter (const SyncProperties &p)
 
virtual ~SyncCounter ()
 

Protected Member Functions

virtual void handleInit (LayerStatus &status)
 
virtual void handleRead (LayerStatus &status, const LayerState &current_state)
 
virtual void handleWrite (LayerStatus &status, const LayerState &current_state)
 
- Protected Member Functions inherited from canopen::ManagingSyncLayer
virtual void handleDiag (LayerReport &report)
 
virtual void handleHalt (LayerStatus &status)
 
virtual void handleRecover (LayerStatus &status)
 
virtual void handleShutdown (LayerStatus &status)
 

Private Member Functions

void resetCounter ()
 
void tryUpdateCounter ()
 

Private Attributes

can::Frame frame_
 
uint8_t overflow_
 
time_point read_time_
 
time_point write_time_
 

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
 
- Public Attributes inherited from canopen::SyncCounter
const SyncProperties properties
 
- Protected Attributes inherited from canopen::ManagingSyncLayer
boost::chrono::milliseconds half_step_
 
can::CommInterfaceSharedPtr interface_
 
std::set< void * > nodes_
 
boost::mutex nodes_mutex_
 
boost::atomic< size_t > nodes_size_
 
boost::chrono::milliseconds step_
 

Detailed Description

Definition at line 44 of file master_plugin.cpp.

Constructor & Destructor Documentation

canopen::SimpleSyncLayer::SimpleSyncLayer ( const SyncProperties p,
can::CommInterfaceSharedPtr  interface 
)
inline

Definition at line 84 of file master_plugin.cpp.

Member Function Documentation

virtual void canopen::SimpleSyncLayer::handleInit ( LayerStatus status)
inlineprotectedvirtual

Implements canopen::Layer.

Definition at line 79 of file master_plugin.cpp.

virtual void canopen::SimpleSyncLayer::handleRead ( LayerStatus status,
const LayerState current_state 
)
inlineprotectedvirtual

Implements canopen::Layer.

Definition at line 62 of file master_plugin.cpp.

virtual void canopen::SimpleSyncLayer::handleWrite ( LayerStatus status,
const LayerState current_state 
)
inlineprotectedvirtual

Implements canopen::Layer.

Definition at line 68 of file master_plugin.cpp.

void canopen::SimpleSyncLayer::resetCounter ( )
inlineprivate

Definition at line 49 of file master_plugin.cpp.

void canopen::SimpleSyncLayer::tryUpdateCounter ( )
inlineprivate

Definition at line 52 of file master_plugin.cpp.

Member Data Documentation

can::Frame canopen::SimpleSyncLayer::frame_
private

Definition at line 46 of file master_plugin.cpp.

uint8_t canopen::SimpleSyncLayer::overflow_
private

Definition at line 47 of file master_plugin.cpp.

time_point canopen::SimpleSyncLayer::read_time_
private

Definition at line 45 of file master_plugin.cpp.

time_point canopen::SimpleSyncLayer::write_time_
private

Definition at line 45 of file master_plugin.cpp.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Fri May 14 2021 02:59:41