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_
 
std::atomic< size_t > nodes_size_
 
boost::chrono::milliseconds step_
 

Detailed Description

Definition at line 44 of file master_plugin.cpp.

Constructor & Destructor Documentation

◆ SimpleSyncLayer()

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

Definition at line 84 of file master_plugin.cpp.

Member Function Documentation

◆ handleInit()

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

Implements canopen::Layer.

Definition at line 79 of file master_plugin.cpp.

◆ handleRead()

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

Implements canopen::Layer.

Definition at line 62 of file master_plugin.cpp.

◆ handleWrite()

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

Implements canopen::Layer.

Definition at line 68 of file master_plugin.cpp.

◆ resetCounter()

void canopen::SimpleSyncLayer::resetCounter ( )
inlineprivate

Definition at line 49 of file master_plugin.cpp.

◆ tryUpdateCounter()

void canopen::SimpleSyncLayer::tryUpdateCounter ( )
inlineprivate

Definition at line 52 of file master_plugin.cpp.

Member Data Documentation

◆ frame_

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

Definition at line 46 of file master_plugin.cpp.

◆ overflow_

uint8_t canopen::SimpleSyncLayer::overflow_
private

Definition at line 47 of file master_plugin.cpp.

◆ read_time_

time_point canopen::SimpleSyncLayer::read_time_
private

Definition at line 45 of file master_plugin.cpp.

◆ write_time_

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 Wed Mar 2 2022 00:52:27