TMCStepper
TMC2660Stepper Class Reference

#include <TMCStepper.h>

Public Member Functions

 TMC2660Stepper (uint16_t pinCS, float RS=default_RS)
 
 TMC2660Stepper (uint16_t pinCS, uint16_t pinMOSI, uint16_t pinMISO, uint16_t pinSCK)
 
 TMC2660Stepper (uint16_t pinCS, float RS, uint16_t pinMOSI, uint16_t pinMISO, uint16_t pinSCK)
 
void write (uint8_t addressByte, uint32_t config)
 
uint32_t read ()
 
void switchCSpin (bool state)
 
void begin ()
 
bool isEnabled ()
 
uint8_t test_connection ()
 
uint16_t cs2rms (uint8_t CS)
 
uint16_t rms_current ()
 
void rms_current (uint16_t mA)
 
void push ()
 
uint8_t savedToff ()
 
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 DRVCONF (uint32_t)
 
void tst (bool)
 
void slph (uint8_t)
 
void slpl (uint8_t)
 
void diss2g (bool)
 
void ts2g (uint8_t)
 
void sdoff (bool)
 
void vsense (bool)
 
void rdsel (uint8_t)
 
uint32_t DRVCONF ()
 
bool tst ()
 
uint8_t slph ()
 
uint8_t slpl ()
 
bool diss2g ()
 
uint8_t ts2g ()
 
bool sdoff ()
 
bool vsense ()
 
uint8_t rdsel ()
 
void DRVCTRL (uint32_t)
 
void pha (bool B)
 
void ca (uint8_t B)
 
void phb (bool B)
 
void cb (uint8_t B)
 
bool pha ()
 
uint8_t ca ()
 
bool phb ()
 
uint8_t cb ()
 
void intpol (bool)
 
void dedge (bool)
 
void mres (uint8_t)
 
uint32_t DRVCTRL ()
 
bool intpol ()
 
bool dedge ()
 
uint8_t mres ()
 
void CHOPCONF (uint32_t)
 
void tbl (uint8_t)
 
void chm (bool)
 
void rndtf (bool)
 
void hdec (uint8_t)
 
void hend (uint8_t)
 
void hstrt (uint8_t)
 
void toff (uint8_t)
 
uint32_t CHOPCONF ()
 
uint8_t tbl ()
 
bool chm ()
 
bool rndtf ()
 
uint8_t hdec ()
 
uint8_t hend ()
 
uint8_t hstrt ()
 
uint8_t toff ()
 
uint32_t DRV_STATUS ()
 
uint32_t DRVSTATUS ()
 
uint16_t mstep ()
 
uint8_t se ()
 
bool stst ()
 
bool olb ()
 
bool ola ()
 
bool s2gb ()
 
bool s2ga ()
 
bool otpw ()
 
bool ot ()
 
bool sg ()
 
uint16_t sg_result ()
 
uint32_t SGCSCONF ()
 
void sfilt (bool)
 
void sgt (uint8_t)
 
void cs (uint8_t)
 
void SGCSCONF (uint32_t)
 
bool sfilt ()
 
uint8_t sgt ()
 
uint8_t cs ()
 
void SMARTEN (uint32_t)
 
void seimin (bool B)
 
void sedn (uint8_t B)
 
void semax (uint8_t B)
 
void seup (uint8_t B)
 
void semin (uint8_t B)
 
uint32_t SMARTEN ()
 
bool seimin ()
 
uint8_t sedn ()
 
uint8_t semax ()
 
uint8_t seup ()
 
uint8_t semin ()
 

Public Attributes

uint8_t status_response
 

Detailed Description

Definition at line 1079 of file TMCStepper.h.

Constructor & Destructor Documentation

◆ TMC2660Stepper() [1/3]

TMC2660Stepper::TMC2660Stepper ( uint16_t  pinCS,
float  RS = default_RS 
)

Definition at line 4 of file TMC2660Stepper.cpp.

◆ TMC2660Stepper() [2/3]

TMC2660Stepper::TMC2660Stepper ( uint16_t  pinCS,
uint16_t  pinMOSI,
uint16_t  pinMISO,
uint16_t  pinSCK 
)

Definition at line 9 of file TMC2660Stepper.cpp.

◆ TMC2660Stepper() [3/3]

TMC2660Stepper::TMC2660Stepper ( uint16_t  pinCS,
float  RS,
uint16_t  pinMOSI,
uint16_t  pinMISO,
uint16_t  pinSCK 
)

Definition at line 17 of file TMC2660Stepper.cpp.

Member Function Documentation

◆ begin()

void TMC2660Stepper::begin ( )

Definition at line 72 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ blank_time() [1/2]

uint8_t TMC2660Stepper::blank_time ( )

Definition at line 187 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ blank_time() [2/2]

void TMC2660Stepper::blank_time ( uint8_t  value)

Definition at line 178 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ ca() [1/2]

uint8_t TMC2660Stepper::ca ( )

Definition at line 30 of file DRVCTRL.cpp.

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

◆ ca() [2/2]

void TMC2660Stepper::ca ( uint8_t  B)

Definition at line 25 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ cb() [1/2]

uint8_t TMC2660Stepper::cb ( )

Definition at line 32 of file DRVCTRL.cpp.

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

◆ cb() [2/2]

void TMC2660Stepper::cb ( uint8_t  B)

Definition at line 27 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ chm() [1/2]

bool TMC2660Stepper::chm ( )

Definition at line 107 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ chm() [2/2]

void TMC2660Stepper::chm ( bool  B)

Definition at line 99 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ CHOPCONF() [1/2]

uint32_t TMC2660Stepper::CHOPCONF ( )

Definition at line 85 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ CHOPCONF() [2/2]

void TMC2660Stepper::CHOPCONF ( uint32_t  data)

Definition at line 86 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ cs() [1/2]

uint8_t TMC2660Stepper::cs ( )

Definition at line 19 of file SGCSCONF.cpp.

+ Here is the caller graph for this function:

◆ cs() [2/2]

void TMC2660Stepper::cs ( uint8_t  B)

Definition at line 15 of file SGCSCONF.cpp.

+ Here is the call graph for this function:

◆ cs2rms()

uint16_t TMC2660Stepper::cs2rms ( uint8_t  CS)

Definition at line 110 of file TMC2660Stepper.cpp.

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

◆ dedge() [1/2]

bool TMC2660Stepper::dedge ( )

Definition at line 40 of file DRVCTRL.cpp.

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

◆ dedge() [2/2]

void TMC2660Stepper::dedge ( bool  B)

Definition at line 36 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ diss2g() [1/2]

bool TMC2660Stepper::diss2g ( )

Definition at line 25 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ diss2g() [2/2]

void TMC2660Stepper::diss2g ( bool  B)

Definition at line 16 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ DRV_STATUS()

uint32_t TMC2660Stepper::DRV_STATUS ( )
inline

Definition at line 1164 of file TMCStepper.h.

+ Here is the call graph for this function:

◆ DRVCONF() [1/2]

uint32_t TMC2660Stepper::DRVCONF ( )

Definition at line 7 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ DRVCONF() [2/2]

void TMC2660Stepper::DRVCONF ( uint32_t  data)

Definition at line 8 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ DRVCTRL() [1/2]

uint32_t TMC2660Stepper::DRVCTRL ( )

Definition at line 9 of file DRVCTRL.cpp.

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

◆ DRVCTRL() [2/2]

void TMC2660Stepper::DRVCTRL ( uint32_t  data)

Definition at line 13 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ DRVSTATUS()

uint32_t TMC2660Stepper::DRVSTATUS ( )

Definition at line 8 of file DRVSTATUS.cpp.

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

◆ hdec() [1/2]

uint8_t TMC2660Stepper::hdec ( )

Definition at line 105 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ hdec() [2/2]

void TMC2660Stepper::hdec ( uint8_t  B)

Definition at line 97 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ hend() [1/2]

uint8_t TMC2660Stepper::hend ( )

Definition at line 104 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ hend() [2/2]

void TMC2660Stepper::hend ( uint8_t  B)

Definition at line 96 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ hstrt() [1/2]

uint8_t TMC2660Stepper::hstrt ( )

Definition at line 103 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ hstrt() [2/2]

void TMC2660Stepper::hstrt ( uint8_t  B)

Definition at line 95 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ hysteresis_end() [1/2]

int8_t TMC2660Stepper::hysteresis_end ( )

Definition at line 143 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ hysteresis_end() [2/2]

void TMC2660Stepper::hysteresis_end ( int8_t  value)

Definition at line 142 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ hysteresis_start() [1/2]

uint8_t TMC2660Stepper::hysteresis_start ( )

Definition at line 146 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ hysteresis_start() [2/2]

void TMC2660Stepper::hysteresis_start ( uint8_t  value)

Definition at line 145 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ intpol() [1/2]

bool TMC2660Stepper::intpol ( )

Definition at line 39 of file DRVCTRL.cpp.

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

◆ intpol() [2/2]

void TMC2660Stepper::intpol ( bool  B)

Definition at line 35 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ isEnabled()

bool TMC2660Stepper::isEnabled ( )

Definition at line 83 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ microsteps() [1/2]

uint16_t TMC2660Stepper::microsteps ( )

Definition at line 163 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ microsteps() [2/2]

void TMC2660Stepper::microsteps ( uint16_t  ms)

Definition at line 148 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ mres() [1/2]

uint8_t TMC2660Stepper::mres ( )

Definition at line 41 of file DRVCTRL.cpp.

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

◆ mres() [2/2]

void TMC2660Stepper::mres ( uint8_t  B)

Definition at line 37 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ mstep()

uint16_t TMC2660Stepper::mstep ( )

Definition at line 22 of file DRVSTATUS.cpp.

+ Here is the call graph for this function:

◆ ola()

bool TMC2660Stepper::ola ( )

Definition at line 26 of file DRVSTATUS.cpp.

◆ olb()

bool TMC2660Stepper::olb ( )

Definition at line 25 of file DRVSTATUS.cpp.

◆ ot()

bool TMC2660Stepper::ot ( )

Definition at line 30 of file DRVSTATUS.cpp.

◆ otpw()

bool TMC2660Stepper::otpw ( )

Definition at line 29 of file DRVSTATUS.cpp.

◆ pha() [1/2]

bool TMC2660Stepper::pha ( )

Definition at line 29 of file DRVCTRL.cpp.

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

◆ pha() [2/2]

void TMC2660Stepper::pha ( bool  B)

Definition at line 24 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ phb() [1/2]

bool TMC2660Stepper::phb ( )

Definition at line 31 of file DRVCTRL.cpp.

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

◆ phb() [2/2]

void TMC2660Stepper::phb ( bool  B)

Definition at line 26 of file DRVCTRL.cpp.

+ Here is the call graph for this function:

◆ push()

void TMC2660Stepper::push ( )

Definition at line 134 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ rdsel() [1/2]

uint8_t TMC2660Stepper::rdsel ( )

Definition at line 29 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ rdsel() [2/2]

void TMC2660Stepper::rdsel ( uint8_t  B)

Definition at line 20 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ read()

uint32_t TMC2660Stepper::read ( )

Definition at line 30 of file TMC2660Stepper.cpp.

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

◆ rms_current() [1/2]

uint16_t TMC2660Stepper::rms_current ( )

Definition at line 114 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ rms_current() [2/2]

void TMC2660Stepper::rms_current ( uint16_t  mA)

Definition at line 117 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ rndtf() [1/2]

bool TMC2660Stepper::rndtf ( )

Definition at line 106 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ rndtf() [2/2]

void TMC2660Stepper::rndtf ( bool  B)

Definition at line 98 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ s2ga()

bool TMC2660Stepper::s2ga ( )

Definition at line 28 of file DRVSTATUS.cpp.

◆ s2gb()

bool TMC2660Stepper::s2gb ( )

Definition at line 27 of file DRVSTATUS.cpp.

◆ savedToff()

uint8_t TMC2660Stepper::savedToff ( )
inline

Definition at line 1095 of file TMCStepper.h.

◆ sdoff() [1/2]

bool TMC2660Stepper::sdoff ( )

Definition at line 27 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ sdoff() [2/2]

void TMC2660Stepper::sdoff ( bool  B)

Definition at line 18 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ se()

uint8_t TMC2660Stepper::se ( )

Definition at line 23 of file DRVSTATUS.cpp.

+ Here is the call graph for this function:

◆ sedn() [1/2]

uint8_t TMC2660Stepper::sedn ( )

Definition at line 20 of file SMARTEN.cpp.

+ Here is the caller graph for this function:

◆ sedn() [2/2]

void TMC2660Stepper::sedn ( uint8_t  B)

Definition at line 14 of file SMARTEN.cpp.

+ Here is the call graph for this function:

◆ seimin() [1/2]

bool TMC2660Stepper::seimin ( )

Definition at line 19 of file SMARTEN.cpp.

+ Here is the caller graph for this function:

◆ seimin() [2/2]

void TMC2660Stepper::seimin ( bool  B)

Definition at line 13 of file SMARTEN.cpp.

+ Here is the call graph for this function:

◆ semax() [1/2]

uint8_t TMC2660Stepper::semax ( )

Definition at line 21 of file SMARTEN.cpp.

+ Here is the caller graph for this function:

◆ semax() [2/2]

void TMC2660Stepper::semax ( uint8_t  B)

Definition at line 15 of file SMARTEN.cpp.

+ Here is the call graph for this function:

◆ semin() [1/2]

uint8_t TMC2660Stepper::semin ( )

Definition at line 23 of file SMARTEN.cpp.

+ Here is the caller graph for this function:

◆ semin() [2/2]

void TMC2660Stepper::semin ( uint8_t  B)

Definition at line 17 of file SMARTEN.cpp.

+ Here is the call graph for this function:

◆ seup() [1/2]

uint8_t TMC2660Stepper::seup ( )

Definition at line 22 of file SMARTEN.cpp.

+ Here is the caller graph for this function:

◆ seup() [2/2]

void TMC2660Stepper::seup ( uint8_t  B)

Definition at line 16 of file SMARTEN.cpp.

+ Here is the call graph for this function:

◆ sfilt() [1/2]

bool TMC2660Stepper::sfilt ( )

Definition at line 17 of file SGCSCONF.cpp.

+ Here is the caller graph for this function:

◆ sfilt() [2/2]

void TMC2660Stepper::sfilt ( bool  B)

Definition at line 13 of file SGCSCONF.cpp.

+ Here is the call graph for this function:

◆ sg()

bool TMC2660Stepper::sg ( )

Definition at line 31 of file DRVSTATUS.cpp.

◆ sg_result()

uint16_t TMC2660Stepper::sg_result ( )

Definition at line 33 of file DRVSTATUS.cpp.

+ Here is the call graph for this function:

◆ SGCSCONF() [1/2]

uint32_t TMC2660Stepper::SGCSCONF ( )

Definition at line 7 of file SGCSCONF.cpp.

+ Here is the caller graph for this function:

◆ SGCSCONF() [2/2]

void TMC2660Stepper::SGCSCONF ( uint32_t  data)

Definition at line 8 of file SGCSCONF.cpp.

+ Here is the call graph for this function:

◆ sgt() [1/2]

uint8_t TMC2660Stepper::sgt ( )

Definition at line 18 of file SGCSCONF.cpp.

+ Here is the caller graph for this function:

◆ sgt() [2/2]

void TMC2660Stepper::sgt ( uint8_t  B)

Definition at line 14 of file SGCSCONF.cpp.

+ Here is the call graph for this function:

◆ slph() [1/2]

uint8_t TMC2660Stepper::slph ( )

Definition at line 23 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ slph() [2/2]

void TMC2660Stepper::slph ( uint8_t  B)

Definition at line 14 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ slpl() [1/2]

uint8_t TMC2660Stepper::slpl ( )

Definition at line 24 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ slpl() [2/2]

void TMC2660Stepper::slpl ( uint8_t  B)

Definition at line 15 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ SMARTEN() [1/2]

uint32_t TMC2660Stepper::SMARTEN ( )

Definition at line 7 of file SMARTEN.cpp.

+ Here is the caller graph for this function:

◆ SMARTEN() [2/2]

void TMC2660Stepper::SMARTEN ( uint32_t  data)

Definition at line 8 of file SMARTEN.cpp.

+ Here is the call graph for this function:

◆ stst()

bool TMC2660Stepper::stst ( )

Definition at line 24 of file DRVSTATUS.cpp.

◆ switchCSpin()

void TMC2660Stepper::switchCSpin ( bool  state)

Definition at line 25 of file TMC2660Stepper.cpp.

+ Here is the caller graph for this function:

◆ tbl() [1/2]

uint8_t TMC2660Stepper::tbl ( )

Definition at line 108 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ tbl() [2/2]

void TMC2660Stepper::tbl ( uint8_t  B)

Definition at line 100 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ test_connection()

uint8_t TMC2660Stepper::test_connection ( )

Definition at line 85 of file TMC2660Stepper.cpp.

+ Here is the call graph for this function:

◆ toff() [1/2]

uint8_t TMC2660Stepper::toff ( )

Definition at line 102 of file CHOPCONF.cpp.

+ Here is the caller graph for this function:

◆ toff() [2/2]

void TMC2660Stepper::toff ( uint8_t  B)

Definition at line 91 of file CHOPCONF.cpp.

+ Here is the call graph for this function:

◆ ts2g() [1/2]

uint8_t TMC2660Stepper::ts2g ( )

Definition at line 26 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ ts2g() [2/2]

void TMC2660Stepper::ts2g ( uint8_t  B)

Definition at line 17 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ tst() [1/2]

bool TMC2660Stepper::tst ( )

Definition at line 22 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ tst() [2/2]

void TMC2660Stepper::tst ( bool  B)

Definition at line 13 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ vsense() [1/2]

bool TMC2660Stepper::vsense ( )

Definition at line 28 of file DRVCONF.cpp.

+ Here is the caller graph for this function:

◆ vsense() [2/2]

void TMC2660Stepper::vsense ( bool  B)

Definition at line 19 of file DRVCONF.cpp.

+ Here is the call graph for this function:

◆ write()

void TMC2660Stepper::write ( uint8_t  addressByte,
uint32_t  config 
)

Definition at line 54 of file TMC2660Stepper.cpp.

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

Member Data Documentation

◆ status_response

uint8_t TMC2660Stepper::status_response

Definition at line 1219 of file TMCStepper.h.


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