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

#include <motor.h>

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

Public Member Functions

 DefaultHomingMode (ObjectStorageSharedPtr storage)
 
virtual bool executeHoming (canopen::LayerStatus &status)
 
virtual bool read (const uint16_t &sw)
 
virtual bool start ()
 
virtual bool write (OpModeAccesser &cw)
 
- Public Member Functions inherited from canopen::HomingMode
 HomingMode ()
 
- Public Member Functions inherited from canopen::Mode
 Mode (uint16_t id)
 
virtual bool setTarget (const double &val)
 
virtual ~Mode ()
 

Private Types

enum  SW_masks { MASK_Reached = (1<<State402::SW_Target_reached), MASK_Attained = (1<<SW_Attained), MASK_Error = (1<<SW_Error) }
 

Private Member Functions

bool error (canopen::LayerStatus &status, const std::string &msg)
 

Private Attributes

boost::condition_variable cond_
 
boost::atomic< bool > execute_
 
canopen::ObjectStorage::Entry< int8_t > homing_method_
 
boost::mutex mutex_
 
uint16_t status_
 

Additional Inherited Members

- Public Types inherited from canopen::Mode
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 Attributes inherited from canopen::Mode
const uint16_t mode_id_
 
- Protected Types inherited from canopen::HomingMode
enum  CW_bits { CW_StartHoming = Command402::CW_Operation_mode_specific0 }
 
enum  SW_bits { SW_Attained = State402::SW_Operation_mode_specific0, SW_Error = State402::SW_Operation_mode_specific1 }
 

Detailed Description

Definition at line 266 of file motor.h.

Member Enumeration Documentation

Enumerator
MASK_Reached 
MASK_Attained 
MASK_Error 

Definition at line 274 of file motor.h.

Constructor & Destructor Documentation

canopen::DefaultHomingMode::DefaultHomingMode ( ObjectStorageSharedPtr  storage)
inline

Definition at line 281 of file motor.h.

Member Function Documentation

bool canopen::DefaultHomingMode::error ( canopen::LayerStatus status,
const std::string &  msg 
)
inlineprivate

Definition at line 279 of file motor.h.

bool canopen::DefaultHomingMode::executeHoming ( canopen::LayerStatus status)
virtual

Implements canopen::HomingMode.

Definition at line 189 of file motor.cpp.

bool canopen::DefaultHomingMode::read ( const uint16_t &  sw)
virtual

Implements canopen::Mode.

Definition at line 171 of file motor.cpp.

bool canopen::DefaultHomingMode::start ( )
virtual

Implements canopen::Mode.

Definition at line 167 of file motor.cpp.

bool canopen::DefaultHomingMode::write ( Mode::OpModeAccesser cw)
virtual

Implements canopen::Mode.

Definition at line 180 of file motor.cpp.

Member Data Documentation

boost::condition_variable canopen::DefaultHomingMode::cond_
private

Definition at line 271 of file motor.h.

boost::atomic<bool> canopen::DefaultHomingMode::execute_
private

Definition at line 268 of file motor.h.

canopen::ObjectStorage::Entry<int8_t> canopen::DefaultHomingMode::homing_method_
private

Definition at line 267 of file motor.h.

boost::mutex canopen::DefaultHomingMode::mutex_
private

Definition at line 270 of file motor.h.

uint16_t canopen::DefaultHomingMode::status_
private

Definition at line 272 of file motor.h.


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


canopen_402
Author(s): Thiago de Freitas , Mathias Lüdtke
autogenerated on Fri May 14 2021 02:59:42