MotionLib  1.0.0
SamBuCa motion library
Classes | Typedefs | Enumerations | Functions | Variables
smc Namespace Reference

main motion-lib namespace More...

Classes

class  Axis
 
class  AxisPositionMonitor
 This object represent a link between an axis and a position sensor. More...
 
class  DeviceBase
 
class  Gpio
 
class  PlatformDevice
 
class  PositionSensor
 
class  Trigger
 
struct  ErrorCategory
 
class  Exception
 Exception thrown by MotionController in case of issues with command. More...
 
class  MotionController
 main entry-point More...
 

Typedefs

typedef std::string DeviceId
 

Enumerations

enum class  DeviceType {
  AXIS , POSITION_SENSOR , GPIO , TRIGGER ,
  PLATFORM , AXIS_POSITION_MONITOR , UNKNOWN = -1
}
 List of possible device types supported. More...
 
enum class  ErrorCode {
  Ok = 0 , InvalidArguments = EINVAL , IO = EIO , Canceled = ECANCELED ,
  Runtime = EFAULT , NotSupported = ENOTSUP , InternalError = 1000 , IncompatibleUnits
}
 Error related to MotionController.
 

Functions

const std::string & to_string (Axis::State state)
 convert State to string More...
 
template<>
const std::set< AxisPositionMonitor::State > & getEnumValues ()
 Get devices types list (to be iterated) More...
 
const std::string & to_string (AxisPositionMonitor::State state)
 convert state to string More...
 
template<>
AxisPositionMonitor::State from_string (const std::string &)
 convert string to state More...
 
const std::string & to_string (DeviceType type)
 convert DeviceType to string More...
 
template<>
DeviceType from_string< DeviceType > (const std::string &str)
 
template<>
const std::set< DeviceType > & getEnumValues< DeviceType > ()
 
std::error_code make_error_code (ErrorCode e)
 
Exception make_errno_exception (std::error_code ev)
 
const std::string & to_string (units::Unit unit)
 convert Unit to string More...
 
template<>
Unit from_string< Unit > (const std::string &str)
 
template<>
units::io_port_t from_string< units::io_port_t > (const std::string &str)
 
std::string to_string (const units::Value &value)
 convert Value to string More...
 
std::string to_string (const units::io_port_t &port)
 convert IOPort to string More...
 

Variables

const ErrorCategory errorCategory {}
 

Detailed Description

main motion-lib namespace

Function Documentation

◆ to_string() [1/3]

std::string smc::to_string ( const units::io_port_t port)
inline

convert IOPort to string

Parameters
portthe IOPort to convert

Definition at line 258 of file Units.hpp.

◆ to_string() [2/3]

std::string smc::to_string ( const units::Value value)
inline

convert Value to string

Parameters
valuethe value to convert

Definition at line 240 of file Units.hpp.

◆ to_string() [3/3]

const std::string & smc::to_string ( units::Unit  unit)

convert Unit to string

Parameters
unitthe unit to convert

Definition at line 58 of file Units.cpp.