Public Member Functions | Private Types | Private Member Functions | Private Attributes
canopen::DefaultHomingMode Class Reference

#include <motor.h>

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

List of all members.

Public Member Functions

 DefaultHomingMode (boost::shared_ptr< ObjectStorage > storage)
virtual bool executeHoming (canopen::LayerStatus &status)
virtual bool read (const uint16_t &sw)
virtual bool start ()
virtual bool write (OpModeAccesser &cw)

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_

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 ( boost::shared_ptr< ObjectStorage storage) [inline]

Definition at line 281 of file motor.h.


Member Function Documentation

bool canopen::DefaultHomingMode::error ( canopen::LayerStatus status,
const std::string &  msg 
) [inline, private]

Definition at line 279 of file motor.h.

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.

Implements canopen::Mode.

Definition at line 167 of file motor.cpp.

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.

Definition at line 267 of file motor.h.

boost::mutex canopen::DefaultHomingMode::mutex_ [private]

Definition at line 270 of file motor.h.

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 Sun Sep 3 2017 03:10:49