TMCStepper
TMC2208Stepper Class Reference

#include <TMCStepper.h>

+ Inheritance diagram for TMC2208Stepper:
+ Collaboration diagram for TMC2208Stepper:

Classes

struct  IFCNT_t
 
struct  OTP_PROG_t
 
struct  OTP_READ_t
 

Public Member Functions

 TMC2208Stepper (Stream *SerialPort, float RS, uint8_t addr, uint16_t mul_pin1, uint16_t mul_pin2)
 
 TMC2208Stepper (Stream *SerialPort, float RS)
 
 TMC2208Stepper (uint16_t, uint16_t, float)=delete
 
void defaults ()
 
void push ()
 
void begin ()
 
void beginSerial (uint32_t)=delete
 
bool isEnabled ()
 
void GCONF (uint32_t input)
 
void I_scale_analog (bool B)
 
void internal_Rsense (bool B)
 
void en_spreadCycle (bool B)
 
void shaft (bool B)
 
void index_otpw (bool B)
 
void index_step (bool B)
 
void pdn_disable (bool B)
 
void mstep_reg_select (bool B)
 
void multistep_filt (bool B)
 
uint32_t GCONF ()
 
bool I_scale_analog ()
 
bool internal_Rsense ()
 
bool en_spreadCycle ()
 
bool shaft ()
 
bool index_otpw ()
 
bool index_step ()
 
bool pdn_disable ()
 
bool mstep_reg_select ()
 
bool multistep_filt ()
 
uint8_t IFCNT ()
 
void SLAVECONF (uint16_t input)
 
uint16_t SLAVECONF ()
 
void senddelay (uint8_t B)
 
uint8_t senddelay ()
 
void OTP_PROG (uint16_t input)
 
uint32_t OTP_READ ()
 
uint32_t IOIN ()
 
bool enn ()
 
bool ms1 ()
 
bool ms2 ()
 
bool diag ()
 
bool pdn_uart ()
 
bool step ()
 
bool sel_a ()
 
bool dir ()
 
uint8_t version ()
 
void FACTORY_CONF (uint16_t input)
 
uint16_t FACTORY_CONF ()
 
void fclktrim (uint8_t B)
 
void ottrim (uint8_t B)
 
uint8_t fclktrim ()
 
uint8_t ottrim ()
 
void VACTUAL (uint32_t input)
 
uint32_t VACTUAL ()
 
void CHOPCONF (uint32_t input)
 
void toff (uint8_t B)
 
void hstrt (uint8_t B)
 
void hend (uint8_t B)
 
void tbl (uint8_t B)
 
void vsense (bool B)
 
void mres (uint8_t B)
 
void intpol (bool B)
 
void dedge (bool B)
 
void diss2g (bool B)
 
void diss2vs (bool B)
 
uint32_t CHOPCONF ()
 
uint8_t toff ()
 
uint8_t hstrt ()
 
uint8_t hend ()
 
uint8_t tbl ()
 
bool vsense ()
 
uint8_t mres ()
 
bool intpol ()
 
bool dedge ()
 
bool diss2g ()
 
bool diss2vs ()
 
uint32_t DRV_STATUS ()
 
bool otpw ()
 
bool ot ()
 
bool s2ga ()
 
bool s2gb ()
 
bool s2vsa ()
 
bool s2vsb ()
 
bool ola ()
 
bool olb ()
 
bool t120 ()
 
bool t143 ()
 
bool t150 ()
 
bool t157 ()
 
uint16_t cs_actual ()
 
bool stealth ()
 
bool stst ()
 
void PWMCONF (uint32_t input)
 
void pwm_ofs (uint8_t B)
 
void pwm_grad (uint8_t B)
 
void pwm_freq (uint8_t B)
 
void pwm_autoscale (bool B)
 
void pwm_autograd (bool B)
 
void freewheel (uint8_t B)
 
void pwm_reg (uint8_t B)
 
void pwm_lim (uint8_t B)
 
uint32_t PWMCONF ()
 
uint8_t pwm_ofs ()
 
uint8_t pwm_grad ()
 
uint8_t pwm_freq ()
 
bool pwm_autoscale ()
 
bool pwm_autograd ()
 
uint8_t freewheel ()
 
uint8_t pwm_reg ()
 
uint8_t pwm_lim ()
 
uint32_t PWM_SCALE ()
 
uint8_t pwm_scale_sum ()
 
int16_t pwm_scale_auto ()
 
uint32_t PWM_AUTO ()
 
uint8_t pwm_ofs_auto ()
 
uint8_t pwm_grad_auto ()
 
- Public Member Functions inherited from TMCStepper
uint16_t cs2rms (uint8_t CS)
 
void rms_current (uint16_t mA)
 
void rms_current (uint16_t mA, float mult)
 
uint16_t rms_current ()
 
void hold_multiplier (float val)
 
float hold_multiplier ()
 
uint8_t test_connection ()
 
void microsteps (uint16_t ms)
 
uint16_t microsteps ()
 
void blank_time (uint8_t value)
 
uint8_t blank_time ()
 
void hysteresis_end (int8_t value)
 
int8_t hysteresis_end ()
 
void hysteresis_start (uint8_t value)
 
uint8_t hysteresis_start ()
 
void GSTAT (uint8_t input)
 
uint8_t GSTAT ()
 
bool reset ()
 
bool drv_err ()
 
bool uv_cp ()
 
void IHOLD_IRUN (uint32_t input)
 
uint32_t IHOLD_IRUN ()
 
void ihold (uint8_t B)
 
void irun (uint8_t B)
 
void iholddelay (uint8_t B)
 
uint8_t ihold ()
 
uint8_t irun ()
 
uint8_t iholddelay ()
 
uint8_t TPOWERDOWN ()
 
void TPOWERDOWN (uint8_t input)
 
uint32_t TSTEP ()
 
uint32_t TPWMTHRS ()
 
void TPWMTHRS (uint32_t input)
 
uint16_t MSCNT ()
 
uint32_t MSCURACT ()
 
int16_t cur_a ()
 
int16_t cur_b ()
 

Public Attributes

uint16_t bytesWritten = 0
 
float Rsense = 0.11
 
bool CRCerror = false
 

Protected Member Functions

 INIT2208_REGISTER (GCONF)
 
 INIT_REGISTER (SLAVECONF)
 
 INIT_REGISTER (FACTORY_CONF)
 
 INIT2208_REGISTER (VACTUAL)
 
 INIT2208_REGISTER (CHOPCONF)
 
 INIT2208_REGISTER (PWMCONF)
 
 TMC2208Stepper (Stream *SerialPort, float RS, uint8_t addr)
 
template<class SERIAL_TYPE >
int16_t serial_read (SERIAL_TYPE &serPtr) __attribute__((weak))
 
template<class SERIAL_TYPE >
uint8_t serial_write (SERIAL_TYPE &serPtr, const uint8_t data) __attribute__((weak))
 
void write (uint8_t, uint32_t)
 
uint32_t read (uint8_t)
 
uint8_t calcCRC (uint8_t datagram[], uint8_t len)
 
template<typename SERIAL_TYPE >
uint64_t _sendDatagram (SERIAL_TYPE &, uint8_t[], const uint8_t, uint16_t)
 
- Protected Member Functions inherited from TMCStepper
 TMCStepper (float RS)
 
 INIT_REGISTER (IHOLD_IRUN)
 
 INIT_REGISTER (TPOWERDOWN)
 
 INIT_REGISTER (TPWMTHRS)
 

Protected Attributes

Stream * HWSerial = nullptr
 
SSwitchsswitch = nullptr
 
const uint8_t slave_address
 
- Protected Attributes inherited from TMCStepper
const float Rsense
 
float holdMultiplier = 0.5
 

Static Protected Attributes

static constexpr uint8_t TMC2208_SYNC = 0x05
 
static constexpr uint8_t TMC2208_SLAVE_ADDR = 0x00
 
static constexpr uint8_t replyDelay = 2
 
static constexpr uint8_t abort_window = 5
 
static constexpr uint8_t max_retries = 2
 
- Static Protected Attributes inherited from TMCStepper
static constexpr uint8_t TMC_READ = 0x00
 
static constexpr uint8_t TMC_WRITE = 0x80
 

Detailed Description

Definition at line 806 of file TMCStepper.h.

Constructor & Destructor Documentation

◆ TMC2208Stepper() [1/4]

TMC2208Stepper::TMC2208Stepper ( Stream *  SerialPort,
float  RS,
uint8_t  addr,
uint16_t  mul_pin1,
uint16_t  mul_pin2 
)

Definition at line 15 of file TMC2208Stepper.cpp.

◆ TMC2208Stepper() [2/4]

TMC2208Stepper::TMC2208Stepper ( Stream *  SerialPort,
float  RS 
)
inline

Definition at line 809 of file TMCStepper.h.

◆ TMC2208Stepper() [3/4]

TMC2208Stepper::TMC2208Stepper ( uint16_t  ,
uint16_t  ,
float   
)
delete

◆ TMC2208Stepper() [4/4]

TMC2208Stepper::TMC2208Stepper ( Stream *  SerialPort,
float  RS,
uint8_t  addr 
)
protected

Definition at line 7 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _sendDatagram()

template<typename SERIAL_TYPE >
uint64_t TMC2208Stepper::_sendDatagram ( SERIAL_TYPE &  serPtr,
uint8_t  datagram[],
const uint8_t  len,
uint16_t  timeout 
)
protected

Definition at line 144 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ begin()

void TMC2208Stepper::begin ( )

Definition at line 50 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ beginSerial()

void TMC2208Stepper::beginSerial ( uint32_t  )
delete
+ Here is the caller graph for this function:

◆ calcCRC()

uint8_t TMC2208Stepper::calcCRC ( uint8_t  datagram[],
uint8_t  len 
)
protected

Definition at line 92 of file TMC2208Stepper.cpp.

+ Here is the caller graph for this function:

◆ CHOPCONF() [1/2]

uint32_t TMC2208Stepper::CHOPCONF ( )

Definition at line 58 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CHOPCONF() [2/2]

void TMC2208Stepper::CHOPCONF ( uint32_t  input)

Definition at line 54 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ cs_actual()

uint16_t TMC2208Stepper::cs_actual ( )

Definition at line 36 of file DRV_STATUS.cpp.

◆ dedge() [1/2]

bool TMC2208Stepper::dedge ( )

Definition at line 79 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dedge() [2/2]

void TMC2208Stepper::dedge ( bool  B)

Definition at line 68 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ defaults()

void TMC2208Stepper::defaults ( )

Definition at line 59 of file TMC2208Stepper.cpp.

+ Here is the caller graph for this function:

◆ diag()

bool TMC2208Stepper::diag ( )

Definition at line 296 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ dir()

bool TMC2208Stepper::dir ( )

Definition at line 300 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ diss2g() [1/2]

bool TMC2208Stepper::diss2g ( )

Definition at line 80 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ diss2g() [2/2]

void TMC2208Stepper::diss2g ( bool  B)

Definition at line 69 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ diss2vs() [1/2]

bool TMC2208Stepper::diss2vs ( )

Definition at line 81 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ diss2vs() [2/2]

void TMC2208Stepper::diss2vs ( bool  B)

Definition at line 70 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ DRV_STATUS()

uint32_t TMC2208Stepper::DRV_STATUS ( )
virtual

Implements TMCStepper.

Definition at line 20 of file DRV_STATUS.cpp.

+ Here is the call graph for this function:

◆ en_spreadCycle() [1/2]

bool TMC2208Stepper::en_spreadCycle ( )

Definition at line 87 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ en_spreadCycle() [2/2]

void TMC2208Stepper::en_spreadCycle ( bool  B)

Definition at line 77 of file GCONF.cpp.

◆ enn()

bool TMC2208Stepper::enn ( )

Definition at line 293 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FACTORY_CONF() [1/2]

uint16_t TMC2208Stepper::FACTORY_CONF ( )

Definition at line 316 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FACTORY_CONF() [2/2]

void TMC2208Stepper::FACTORY_CONF ( uint16_t  input)

Definition at line 319 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ fclktrim() [1/2]

uint8_t TMC2208Stepper::fclktrim ( )

Definition at line 325 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ fclktrim() [2/2]

void TMC2208Stepper::fclktrim ( uint8_t  B)

Definition at line 323 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ freewheel() [1/2]

uint8_t TMC2208Stepper::freewheel ( )

Definition at line 76 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ freewheel() [2/2]

void TMC2208Stepper::freewheel ( uint8_t  B)

Definition at line 67 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ GCONF() [1/2]

uint32_t TMC2208Stepper::GCONF ( )

Definition at line 67 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GCONF() [2/2]

void TMC2208Stepper::GCONF ( uint32_t  input)

Definition at line 70 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ hend() [1/2]

uint8_t TMC2208Stepper::hend ( )
virtual

Implements TMCStepper.

Definition at line 74 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hend() [2/2]

void TMC2208Stepper::hend ( uint8_t  B)
virtual

Implements TMCStepper.

Definition at line 63 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ hstrt() [1/2]

uint8_t TMC2208Stepper::hstrt ( )
virtual

Implements TMCStepper.

Definition at line 73 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hstrt() [2/2]

void TMC2208Stepper::hstrt ( uint8_t  B)
virtual

Implements TMCStepper.

Definition at line 62 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ I_scale_analog() [1/2]

bool TMC2208Stepper::I_scale_analog ( )

Definition at line 85 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ I_scale_analog() [2/2]

void TMC2208Stepper::I_scale_analog ( bool  B)

Definition at line 75 of file GCONF.cpp.

◆ IFCNT()

uint8_t TMC2208Stepper::IFCNT ( )

Definition at line 268 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ index_otpw() [1/2]

bool TMC2208Stepper::index_otpw ( )

Definition at line 89 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ index_otpw() [2/2]

void TMC2208Stepper::index_otpw ( bool  B)

Definition at line 79 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ index_step() [1/2]

bool TMC2208Stepper::index_step ( )

Definition at line 90 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ index_step() [2/2]

void TMC2208Stepper::index_step ( bool  B)

Definition at line 80 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ INIT2208_REGISTER() [1/4]

TMC2208Stepper::INIT2208_REGISTER ( CHOPCONF  )
inlineprotected

Definition at line 973 of file TMCStepper.h.

◆ INIT2208_REGISTER() [2/4]

TMC2208Stepper::INIT2208_REGISTER ( GCONF  )
inlineprotected

Definition at line 969 of file TMCStepper.h.

◆ INIT2208_REGISTER() [3/4]

TMC2208Stepper::INIT2208_REGISTER ( PWMCONF  )
inlineprotected

Definition at line 974 of file TMCStepper.h.

◆ INIT2208_REGISTER() [4/4]

TMC2208Stepper::INIT2208_REGISTER ( VACTUAL  )
inlineprotected

Definition at line 972 of file TMCStepper.h.

◆ INIT_REGISTER() [1/2]

TMC2208Stepper::INIT_REGISTER ( FACTORY_CONF  )
inlineprotected

Definition at line 971 of file TMCStepper.h.

◆ INIT_REGISTER() [2/2]

TMC2208Stepper::INIT_REGISTER ( SLAVECONF  )
inlineprotected

Definition at line 970 of file TMCStepper.h.

◆ internal_Rsense() [1/2]

bool TMC2208Stepper::internal_Rsense ( )

Definition at line 86 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ internal_Rsense() [2/2]

void TMC2208Stepper::internal_Rsense ( bool  B)

Definition at line 76 of file GCONF.cpp.

◆ intpol() [1/2]

bool TMC2208Stepper::intpol ( )

Definition at line 78 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intpol() [2/2]

void TMC2208Stepper::intpol ( bool  B)

Definition at line 67 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ IOIN()

uint32_t TMC2208Stepper::IOIN ( )

Definition at line 290 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isEnabled()

bool TMC2208Stepper::isEnabled ( )

Definition at line 90 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ mres() [1/2]

uint8_t TMC2208Stepper::mres ( )
virtual

Implements TMCStepper.

Definition at line 77 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mres() [2/2]

void TMC2208Stepper::mres ( uint8_t  B)
virtual

Implements TMCStepper.

Definition at line 66 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ ms1()

bool TMC2208Stepper::ms1 ( )

Definition at line 294 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ ms2()

bool TMC2208Stepper::ms2 ( )

Definition at line 295 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mstep_reg_select() [1/2]

bool TMC2208Stepper::mstep_reg_select ( )

Definition at line 92 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mstep_reg_select() [2/2]

void TMC2208Stepper::mstep_reg_select ( bool  B)

Definition at line 82 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ multistep_filt() [1/2]

bool TMC2208Stepper::multistep_filt ( )

Definition at line 93 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ multistep_filt() [2/2]

void TMC2208Stepper::multistep_filt ( bool  B)

Definition at line 83 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ ola()

bool TMC2208Stepper::ola ( )

Definition at line 30 of file DRV_STATUS.cpp.

◆ olb()

bool TMC2208Stepper::olb ( )

Definition at line 31 of file DRV_STATUS.cpp.

◆ ot()

bool TMC2208Stepper::ot ( )

Definition at line 25 of file DRV_STATUS.cpp.

◆ OTP_PROG()

void TMC2208Stepper::OTP_PROG ( uint16_t  input)

Definition at line 282 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ OTP_READ()

uint32_t TMC2208Stepper::OTP_READ ( )

Definition at line 286 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ otpw()

bool TMC2208Stepper::otpw ( )

Definition at line 24 of file DRV_STATUS.cpp.

◆ ottrim() [1/2]

uint8_t TMC2208Stepper::ottrim ( )

Definition at line 326 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ ottrim() [2/2]

void TMC2208Stepper::ottrim ( uint8_t  B)

Definition at line 324 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ pdn_disable() [1/2]

bool TMC2208Stepper::pdn_disable ( )

Definition at line 91 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pdn_disable() [2/2]

void TMC2208Stepper::pdn_disable ( bool  B)

Definition at line 81 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ pdn_uart()

bool TMC2208Stepper::pdn_uart ( )

Definition at line 297 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ push()

void TMC2208Stepper::push ( )

Definition at line 79 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ PWM_AUTO()

uint32_t TMC2208Stepper::PWM_AUTO ( )

Definition at line 359 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pwm_autograd() [1/2]

bool TMC2208Stepper::pwm_autograd ( )

Definition at line 75 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_autograd() [2/2]

void TMC2208Stepper::pwm_autograd ( bool  B)

Definition at line 66 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_autoscale() [1/2]

bool TMC2208Stepper::pwm_autoscale ( )

Definition at line 74 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_autoscale() [2/2]

void TMC2208Stepper::pwm_autoscale ( bool  B)

Definition at line 65 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_freq() [1/2]

uint8_t TMC2208Stepper::pwm_freq ( )

Definition at line 73 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_freq() [2/2]

void TMC2208Stepper::pwm_freq ( uint8_t  B)

Definition at line 64 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_grad() [1/2]

uint8_t TMC2208Stepper::pwm_grad ( )

Definition at line 72 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_grad() [2/2]

void TMC2208Stepper::pwm_grad ( uint8_t  B)

Definition at line 63 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_grad_auto()

uint8_t TMC2208Stepper::pwm_grad_auto ( )

Definition at line 363 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ pwm_lim() [1/2]

uint8_t TMC2208Stepper::pwm_lim ( )

Definition at line 78 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_lim() [2/2]

void TMC2208Stepper::pwm_lim ( uint8_t  B)

Definition at line 69 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_ofs() [1/2]

uint8_t TMC2208Stepper::pwm_ofs ( )

Definition at line 71 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_ofs() [2/2]

void TMC2208Stepper::pwm_ofs ( uint8_t  B)

Definition at line 62 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_ofs_auto()

uint8_t TMC2208Stepper::pwm_ofs_auto ( )

Definition at line 362 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ pwm_reg() [1/2]

uint8_t TMC2208Stepper::pwm_reg ( )

Definition at line 77 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ pwm_reg() [2/2]

void TMC2208Stepper::pwm_reg ( uint8_t  B)

Definition at line 68 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ PWM_SCALE()

uint32_t TMC2208Stepper::PWM_SCALE ( )

Definition at line 336 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pwm_scale_auto()

int16_t TMC2208Stepper::pwm_scale_auto ( )

Definition at line 345 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ pwm_scale_sum()

uint8_t TMC2208Stepper::pwm_scale_sum ( )

Definition at line 339 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ PWMCONF() [1/2]

uint32_t TMC2208Stepper::PWMCONF ( )

Definition at line 54 of file PWMCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PWMCONF() [2/2]

void TMC2208Stepper::PWMCONF ( uint32_t  input)

Definition at line 57 of file PWMCONF.cpp.

+ Here is the call graph for this function:

◆ read()

uint32_t TMC2208Stepper::read ( uint8_t  addr)
protectedvirtual

Implements TMCStepper.

Definition at line 221 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ s2ga()

bool TMC2208Stepper::s2ga ( )

Definition at line 26 of file DRV_STATUS.cpp.

◆ s2gb()

bool TMC2208Stepper::s2gb ( )

Definition at line 27 of file DRV_STATUS.cpp.

◆ s2vsa()

bool TMC2208Stepper::s2vsa ( )

Definition at line 28 of file DRV_STATUS.cpp.

◆ s2vsb()

bool TMC2208Stepper::s2vsb ( )

Definition at line 29 of file DRV_STATUS.cpp.

◆ sel_a()

bool TMC2208Stepper::sel_a ( )

Definition at line 299 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ senddelay() [1/2]

uint8_t TMC2208Stepper::senddelay ( )

Definition at line 280 of file TMC2208Stepper.cpp.

◆ senddelay() [2/2]

void TMC2208Stepper::senddelay ( uint8_t  B)

Definition at line 279 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ serial_read()

template<class SERIAL_TYPE >
int16_t TMC2208Stepper::serial_read ( SERIAL_TYPE &  serPtr)
protected

Definition at line 110 of file TMC2208Stepper.cpp.

+ Here is the caller graph for this function:

◆ serial_write()

template<class SERIAL_TYPE >
uint8_t TMC2208Stepper::serial_write ( SERIAL_TYPE &  serPtr,
const uint8_t  data 
)
protected

Definition at line 114 of file TMC2208Stepper.cpp.

+ Here is the caller graph for this function:

◆ shaft() [1/2]

bool TMC2208Stepper::shaft ( )

Definition at line 88 of file GCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shaft() [2/2]

void TMC2208Stepper::shaft ( bool  B)

Definition at line 78 of file GCONF.cpp.

+ Here is the call graph for this function:

◆ SLAVECONF() [1/2]

uint16_t TMC2208Stepper::SLAVECONF ( )

Definition at line 276 of file TMC2208Stepper.cpp.

+ Here is the caller graph for this function:

◆ SLAVECONF() [2/2]

void TMC2208Stepper::SLAVECONF ( uint16_t  input)

Definition at line 272 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ stealth()

bool TMC2208Stepper::stealth ( )

Definition at line 37 of file DRV_STATUS.cpp.

◆ step()

bool TMC2208Stepper::step ( )

Definition at line 298 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ stst()

bool TMC2208Stepper::stst ( )

Definition at line 38 of file DRV_STATUS.cpp.

◆ t120()

bool TMC2208Stepper::t120 ( )

Definition at line 32 of file DRV_STATUS.cpp.

◆ t143()

bool TMC2208Stepper::t143 ( )

Definition at line 33 of file DRV_STATUS.cpp.

◆ t150()

bool TMC2208Stepper::t150 ( )

Definition at line 34 of file DRV_STATUS.cpp.

◆ t157()

bool TMC2208Stepper::t157 ( )

Definition at line 35 of file DRV_STATUS.cpp.

◆ tbl() [1/2]

uint8_t TMC2208Stepper::tbl ( )
virtual

Implements TMCStepper.

Definition at line 75 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tbl() [2/2]

void TMC2208Stepper::tbl ( uint8_t  B)
virtual

Implements TMCStepper.

Definition at line 64 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ toff() [1/2]

uint8_t TMC2208Stepper::toff ( )

Definition at line 72 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toff() [2/2]

void TMC2208Stepper::toff ( uint8_t  B)

Definition at line 61 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ VACTUAL() [1/2]

uint32_t TMC2208Stepper::VACTUAL ( )

Definition at line 332 of file TMC2208Stepper.cpp.

+ Here is the caller graph for this function:

◆ VACTUAL() [2/2]

void TMC2208Stepper::VACTUAL ( uint32_t  input)

Definition at line 328 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ version()

uint8_t TMC2208Stepper::version ( )

Definition at line 301 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:

◆ vsense() [1/2]

bool TMC2208Stepper::vsense ( )
virtual

Implements TMCStepper.

Definition at line 76 of file CHOPCONF.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vsense() [2/2]

void TMC2208Stepper::vsense ( bool  B)
virtual

Implements TMCStepper.

Definition at line 65 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ write()

void TMC2208Stepper::write ( uint8_t  addr,
uint32_t  regVal 
)
protectedvirtual

Implements TMCStepper.

Definition at line 118 of file TMC2208Stepper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ abort_window

constexpr uint8_t TMC2208Stepper::abort_window = 5
staticconstexprprotected

Definition at line 1002 of file TMCStepper.h.

◆ bytesWritten

uint16_t TMC2208Stepper::bytesWritten = 0

Definition at line 965 of file TMCStepper.h.

◆ CRCerror

bool TMC2208Stepper::CRCerror = false

Definition at line 967 of file TMCStepper.h.

◆ HWSerial

Stream* TMC2208Stepper::HWSerial = nullptr
protected

Definition at line 985 of file TMCStepper.h.

◆ max_retries

constexpr uint8_t TMC2208Stepper::max_retries = 2
staticconstexprprotected

Definition at line 1003 of file TMCStepper.h.

◆ replyDelay

constexpr uint8_t TMC2208Stepper::replyDelay = 2
staticconstexprprotected

Definition at line 1001 of file TMCStepper.h.

◆ Rsense

float TMC2208Stepper::Rsense = 0.11

Definition at line 966 of file TMCStepper.h.

◆ slave_address

const uint8_t TMC2208Stepper::slave_address
protected

Definition at line 997 of file TMCStepper.h.

◆ sswitch

SSwitch* TMC2208Stepper::sswitch = nullptr
protected

Definition at line 991 of file TMCStepper.h.

◆ TMC2208_SLAVE_ADDR

constexpr uint8_t TMC2208Stepper::TMC2208_SLAVE_ADDR = 0x00
staticprotected

Definition at line 1000 of file TMCStepper.h.

◆ TMC2208_SYNC

constexpr uint8_t TMC2208Stepper::TMC2208_SYNC = 0x05
staticconstexprprotected

Definition at line 999 of file TMCStepper.h.


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