Go to the documentation of this file.
63 if(current_state >
Init){
69 if(current_state >
Init){
87 BOOST_THROW_EXCEPTION(
Exception(
"SYNC counter overflow is invalid"));
100 if(current_state >
Init){
122 return std::make_shared<SyncType>(properties,
interface_);
129 return std::make_shared<WrapMaster>(interface);
void listen(CommInterfaceSharedPtr interface)
virtual void handleInit(LayerStatus &status)
virtual SyncLayerSharedPtr getSync(const SyncProperties &properties)
virtual void addNode(void *const ptr)
virtual void handleRead(LayerStatus &status, const LayerState ¤t_state)
ManagingSyncLayer(const SyncProperties &p, can::CommInterfaceSharedPtr interface)
boost::chrono::milliseconds half_step_
virtual void handleRecover(LayerStatus &status)
CLASS_LOADER_REGISTER_CLASS(canopen::SimpleMaster::Allocator, canopen::Master::Allocator)
ExternalSyncLayer(const SyncProperties &p, can::CommInterfaceSharedPtr interface)
std::shared_ptr< CommInterface > CommInterfaceSharedPtr
virtual void handleDiag(LayerReport &report)
virtual void handleHalt(LayerStatus &status)
boost::chrono::high_resolution_clock::time_point time_point
virtual void removeNode(void *const ptr)
bool readUntil(can::Frame *msg, boost::chrono::high_resolution_clock::time_point abs_time)
std::shared_ptr< Master > MasterSharedPtr
WrapMaster(can::CommInterfaceSharedPtr interface)
virtual void handleInit(LayerStatus &status)
std::set< void * > nodes_
boost::mutex nodes_mutex_
const SyncProperties properties
can::BufferedReader reader_
WrapMaster< SimpleSyncLayer > SimpleMaster
std::array< value_type, 8 > data
SimpleSyncLayer(const SyncProperties &p, can::CommInterfaceSharedPtr interface)
virtual void handleWrite(LayerStatus &status, const LayerState ¤t_state)
WrapMaster< ExternalSyncLayer > ExternalMaster
virtual MasterSharedPtr allocate(const std::string &name, can::CommInterfaceSharedPtr interface)
virtual void handleWrite(LayerStatus &status, const LayerState ¤t_state)
boost::chrono::milliseconds step_
can::CommInterfaceSharedPtr interface_
can::CommInterfaceSharedPtr interface_
const can::Header header_
virtual void handleShutdown(LayerStatus &status)
time_point get_abs_time(const time_duration &timeout)
std::atomic< size_t > nodes_size_
virtual void handleRead(LayerStatus &status, const LayerState ¤t_state)
std::shared_ptr< SyncLayer > SyncLayerSharedPtr
canopen_master
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:26