ros2_canopen  master
C++ ROS CANopen Library
Public Types | Public Member Functions | Public Attributes | List of all members
ros2_canopen::Mode Class Referenceabstract

#include <mode.hpp>

Inheritance diagram for ros2_canopen::Mode:
Inheritance graph
[legend]

Public Types

typedef WordAccessor<(1<< Command402::CW_Operation_mode_specific0)|(1<< Command402::CW_Operation_mode_specific1)|(1<< Command402::CW_Operation_mode_specific2)|(1<< Command402::CW_Operation_mode_specific3)> OpModeAccesser
 

Public Member Functions

 Mode (uint16_t id)
 
virtual bool start ()=0
 
virtual bool read (const uint16_t &sw)=0
 
virtual bool write (OpModeAccesser &cw)=0
 
virtual bool setTarget (const double &val)
 
virtual ~Mode ()
 

Public Attributes

const uint16_t mode_id_
 

Member Typedef Documentation

◆ OpModeAccesser

Constructor & Destructor Documentation

◆ Mode()

ros2_canopen::Mode::Mode ( uint16_t  id)
inline

◆ ~Mode()

virtual ros2_canopen::Mode::~Mode ( )
inlinevirtual

Member Function Documentation

◆ start()

virtual bool ros2_canopen::Mode::start ( )
pure virtual

◆ read()

virtual bool ros2_canopen::Mode::read ( const uint16_t &  sw)
pure virtual

◆ write()

virtual bool ros2_canopen::Mode::write ( OpModeAccesser cw)
pure virtual

◆ setTarget()

virtual bool ros2_canopen::Mode::setTarget ( const double &  val)
inlinevirtual

Member Data Documentation

◆ mode_id_

const uint16_t ros2_canopen::Mode::mode_id_

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