TxtSmartFactoryLib  0.8.0
Smart Factory Library
ft::TxtAxis Class Reference

#include <TxtAxis.h>

Inheritance diagram for ft::TxtAxis:
Collaboration diagram for ft::TxtAxis:

Public Member Functions

 TxtAxis (std::string name, TxtTransfer *pT, uint8_t chM, uint8_t chS1)
 
virtual ~TxtAxis ()
 
TxtAxis_status_t getStatus ()
 
void setSpeed (int16_t s)
 
int16_t getSpeed ()
 
void stop ()
 
virtual void setMotorOff ()
 
virtual void setMotorLeft ()
 
virtual void setMotorRight ()
 

Protected Member Functions

void configInputs (uint8_t chS)
 
bool isSwitchPressed (uint8_t chS)
 
void setStatus (TxtAxis_status_t status)
 

Protected Attributes

std::string name
 
TxtTransferpT
 
TxtAxis_status_t status
 
int16_t speed
 
bool stopReq
 
uint8_t chM
 
uint8_t chS1
 

Constructor & Destructor Documentation

ft::TxtAxis::TxtAxis ( std::string  name,
TxtTransfer pT,
uint8_t  chM,
uint8_t  chS1 
)
virtual ft::TxtAxis::~TxtAxis ( )
virtual

Member Function Documentation

void ft::TxtAxis::configInputs ( uint8_t  chS)
protected
int16_t ft::TxtAxis::getSpeed ( )
inline
TxtAxis_status_t ft::TxtAxis::getStatus ( )
inline
bool ft::TxtAxis::isSwitchPressed ( uint8_t  chS)
protected
virtual void ft::TxtAxis::setMotorLeft ( )
virtual
virtual void ft::TxtAxis::setMotorOff ( )
virtual
virtual void ft::TxtAxis::setMotorRight ( )
virtual

Reimplemented in ft::TxtAxis1RefSwitch.

void ft::TxtAxis::setSpeed ( int16_t  s)
void ft::TxtAxis::setStatus ( TxtAxis_status_t  status)
protected
void ft::TxtAxis::stop ( )

Member Data Documentation

uint8_t ft::TxtAxis::chM
protected
uint8_t ft::TxtAxis::chS1
protected
std::string ft::TxtAxis::name
protected
TxtTransfer* ft::TxtAxis::pT
protected
int16_t ft::TxtAxis::speed
protected
TxtAxis_status_t ft::TxtAxis::status
protected
bool ft::TxtAxis::stopReq
protected

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