ANYdrive SDK
The SDK for interfacing ANYdrive.
anydrive::fsm Namespace Reference

Classes

class  StateBase
 
class  StateCalibrate
 
class  StateColdStart
 
class  StateConfigure
 
class  StateControlOp
 
class  StateDeviceMissing
 
class  StateError
 
class  StateFatal
 
class  StateMachine
 
class  StateMotorOp
 
class  StateMotorPreOp
 
class  StateStandby
 
class  StateWarmStart
 

Typedefs

using StateBasePtr = std::shared_ptr< StateBase >
 

Enumerations

enum  StateEnum {
  StateEnum::Calibrate, StateEnum::ColdStart, StateEnum::Configure, StateEnum::ControlOp,
  StateEnum::DeviceMissing, StateEnum::Error, StateEnum::Fatal, StateEnum::MotorOp,
  StateEnum::MotorPreOp, StateEnum::NA, StateEnum::Standby, StateEnum::WarmStart
}
 

Functions

std::string controlwordIdToString (const uint16_t controlwordId)
 
uint16_t controlwordStringToId (const std::string &controlwordString)
 
uint16_t stateEnumToId (const StateEnum stateEnum)
 
StateEnum stateIdToEnum (uint16_t stateId)
 
std::string stateEnumToName (const StateEnum stateEnum)
 
StateEnum stateNameToEnum (const std::string &string)
 
std::ostream & operator<< (std::ostream &out, const StateEnum stateEnum)
 

Typedef Documentation

◆ StateBasePtr

using anydrive::fsm::StateBasePtr = typedef std::shared_ptr<StateBase>

Enumeration Type Documentation

◆ StateEnum

Enumerator
Calibrate 
ColdStart 
Configure 
ControlOp 
DeviceMissing 
Error 
Fatal 
MotorOp 
MotorPreOp 
NA 
Standby 
WarmStart 

Function Documentation

◆ controlwordIdToString()

std::string anydrive::fsm::controlwordIdToString ( const uint16_t  controlwordId)

◆ controlwordStringToId()

uint16_t anydrive::fsm::controlwordStringToId ( const std::string &  controlwordString)

◆ operator<<()

std::ostream & anydrive::fsm::operator<< ( std::ostream &  out,
const StateEnum  stateEnum 
)

◆ stateEnumToId()

uint16_t anydrive::fsm::stateEnumToId ( const StateEnum  stateEnum)

◆ stateEnumToName()

std::string anydrive::fsm::stateEnumToName ( const StateEnum  stateEnum)

◆ stateIdToEnum()

StateEnum anydrive::fsm::stateIdToEnum ( uint16_t  stateId)

◆ stateNameToEnum()

StateEnum anydrive::fsm::stateNameToEnum ( const std::string &  string)