#include <TMCStepper.h>
Definition at line 806 of file TMCStepper.h.
◆ TMC2208Stepper() [1/4]
TMC2208Stepper::TMC2208Stepper |
( |
Stream * |
SerialPort, |
|
|
float |
RS, |
|
|
uint8_t |
addr, |
|
|
uint16_t |
mul_pin1, |
|
|
uint16_t |
mul_pin2 |
|
) |
| |
◆ TMC2208Stepper() [2/4]
TMC2208Stepper::TMC2208Stepper |
( |
Stream * |
SerialPort, |
|
|
float |
RS |
|
) |
| |
|
inline |
◆ TMC2208Stepper() [3/4]
TMC2208Stepper::TMC2208Stepper |
( |
uint16_t |
, |
|
|
uint16_t |
, |
|
|
float |
|
|
) |
| |
|
delete |
◆ TMC2208Stepper() [4/4]
TMC2208Stepper::TMC2208Stepper |
( |
Stream * |
SerialPort, |
|
|
float |
RS, |
|
|
uint8_t |
addr |
|
) |
| |
|
protected |
◆ _sendDatagram()
template<typename SERIAL_TYPE >
uint64_t TMC2208Stepper::_sendDatagram |
( |
SERIAL_TYPE & |
serPtr, |
|
|
uint8_t |
datagram[], |
|
|
const uint8_t |
len, |
|
|
uint16_t |
timeout |
|
) |
| |
|
protected |
◆ begin()
void TMC2208Stepper::begin |
( |
| ) |
|
◆ beginSerial()
void TMC2208Stepper::beginSerial |
( |
uint32_t |
| ) |
|
|
delete |
◆ calcCRC()
uint8_t TMC2208Stepper::calcCRC |
( |
uint8_t |
datagram[], |
|
|
uint8_t |
len |
|
) |
| |
|
protected |
◆ CHOPCONF() [1/2]
uint32_t TMC2208Stepper::CHOPCONF |
( |
| ) |
|
◆ CHOPCONF() [2/2]
void TMC2208Stepper::CHOPCONF |
( |
uint32_t |
input | ) |
|
◆ cs_actual()
uint16_t TMC2208Stepper::cs_actual |
( |
| ) |
|
◆ dedge() [1/2]
bool TMC2208Stepper::dedge |
( |
| ) |
|
◆ dedge() [2/2]
void TMC2208Stepper::dedge |
( |
bool |
B | ) |
|
◆ defaults()
void TMC2208Stepper::defaults |
( |
| ) |
|
◆ diag()
bool TMC2208Stepper::diag |
( |
| ) |
|
◆ dir()
bool TMC2208Stepper::dir |
( |
| ) |
|
◆ diss2g() [1/2]
bool TMC2208Stepper::diss2g |
( |
| ) |
|
◆ diss2g() [2/2]
void TMC2208Stepper::diss2g |
( |
bool |
B | ) |
|
◆ diss2vs() [1/2]
bool TMC2208Stepper::diss2vs |
( |
| ) |
|
◆ diss2vs() [2/2]
void TMC2208Stepper::diss2vs |
( |
bool |
B | ) |
|
◆ DRV_STATUS()
uint32_t TMC2208Stepper::DRV_STATUS |
( |
| ) |
|
|
virtual |
◆ en_spreadCycle() [1/2]
bool TMC2208Stepper::en_spreadCycle |
( |
| ) |
|
◆ en_spreadCycle() [2/2]
void TMC2208Stepper::en_spreadCycle |
( |
bool |
B | ) |
|
◆ enn()
bool TMC2208Stepper::enn |
( |
| ) |
|
◆ FACTORY_CONF() [1/2]
uint16_t TMC2208Stepper::FACTORY_CONF |
( |
| ) |
|
◆ FACTORY_CONF() [2/2]
void TMC2208Stepper::FACTORY_CONF |
( |
uint16_t |
input | ) |
|
◆ fclktrim() [1/2]
uint8_t TMC2208Stepper::fclktrim |
( |
| ) |
|
◆ fclktrim() [2/2]
void TMC2208Stepper::fclktrim |
( |
uint8_t |
B | ) |
|
◆ freewheel() [1/2]
uint8_t TMC2208Stepper::freewheel |
( |
| ) |
|
◆ freewheel() [2/2]
void TMC2208Stepper::freewheel |
( |
uint8_t |
B | ) |
|
◆ GCONF() [1/2]
uint32_t TMC2208Stepper::GCONF |
( |
| ) |
|
◆ GCONF() [2/2]
void TMC2208Stepper::GCONF |
( |
uint32_t |
input | ) |
|
◆ hend() [1/2]
uint8_t TMC2208Stepper::hend |
( |
| ) |
|
|
virtual |
◆ hend() [2/2]
void TMC2208Stepper::hend |
( |
uint8_t |
B | ) |
|
|
virtual |
◆ hstrt() [1/2]
uint8_t TMC2208Stepper::hstrt |
( |
| ) |
|
|
virtual |
◆ hstrt() [2/2]
void TMC2208Stepper::hstrt |
( |
uint8_t |
B | ) |
|
|
virtual |
◆ I_scale_analog() [1/2]
bool TMC2208Stepper::I_scale_analog |
( |
| ) |
|
◆ I_scale_analog() [2/2]
void TMC2208Stepper::I_scale_analog |
( |
bool |
B | ) |
|
◆ IFCNT()
uint8_t TMC2208Stepper::IFCNT |
( |
| ) |
|
◆ index_otpw() [1/2]
bool TMC2208Stepper::index_otpw |
( |
| ) |
|
◆ index_otpw() [2/2]
void TMC2208Stepper::index_otpw |
( |
bool |
B | ) |
|
◆ index_step() [1/2]
bool TMC2208Stepper::index_step |
( |
| ) |
|
◆ index_step() [2/2]
void TMC2208Stepper::index_step |
( |
bool |
B | ) |
|
◆ INIT2208_REGISTER() [1/4]
TMC2208Stepper::INIT2208_REGISTER |
( |
CHOPCONF |
| ) |
|
|
inlineprotected |
◆ INIT2208_REGISTER() [2/4]
TMC2208Stepper::INIT2208_REGISTER |
( |
GCONF |
| ) |
|
|
inlineprotected |
◆ INIT2208_REGISTER() [3/4]
TMC2208Stepper::INIT2208_REGISTER |
( |
PWMCONF |
| ) |
|
|
inlineprotected |
◆ INIT2208_REGISTER() [4/4]
TMC2208Stepper::INIT2208_REGISTER |
( |
VACTUAL |
| ) |
|
|
inlineprotected |
◆ INIT_REGISTER() [1/2]
◆ INIT_REGISTER() [2/2]
◆ internal_Rsense() [1/2]
bool TMC2208Stepper::internal_Rsense |
( |
| ) |
|
◆ internal_Rsense() [2/2]
void TMC2208Stepper::internal_Rsense |
( |
bool |
B | ) |
|
◆ intpol() [1/2]
bool TMC2208Stepper::intpol |
( |
| ) |
|
◆ intpol() [2/2]
void TMC2208Stepper::intpol |
( |
bool |
B | ) |
|
◆ IOIN()
uint32_t TMC2208Stepper::IOIN |
( |
| ) |
|
◆ isEnabled()
bool TMC2208Stepper::isEnabled |
( |
| ) |
|
◆ mres() [1/2]
uint8_t TMC2208Stepper::mres |
( |
| ) |
|
|
virtual |
◆ mres() [2/2]
void TMC2208Stepper::mres |
( |
uint8_t |
B | ) |
|
|
virtual |
◆ ms1()
bool TMC2208Stepper::ms1 |
( |
| ) |
|
◆ ms2()
bool TMC2208Stepper::ms2 |
( |
| ) |
|
◆ mstep_reg_select() [1/2]
bool TMC2208Stepper::mstep_reg_select |
( |
| ) |
|
◆ mstep_reg_select() [2/2]
void TMC2208Stepper::mstep_reg_select |
( |
bool |
B | ) |
|
◆ multistep_filt() [1/2]
bool TMC2208Stepper::multistep_filt |
( |
| ) |
|
◆ multistep_filt() [2/2]
void TMC2208Stepper::multistep_filt |
( |
bool |
B | ) |
|
◆ ola()
bool TMC2208Stepper::ola |
( |
| ) |
|
◆ olb()
bool TMC2208Stepper::olb |
( |
| ) |
|
◆ ot()
bool TMC2208Stepper::ot |
( |
| ) |
|
◆ OTP_PROG()
void TMC2208Stepper::OTP_PROG |
( |
uint16_t |
input | ) |
|
◆ OTP_READ()
uint32_t TMC2208Stepper::OTP_READ |
( |
| ) |
|
◆ otpw()
bool TMC2208Stepper::otpw |
( |
| ) |
|
◆ ottrim() [1/2]
uint8_t TMC2208Stepper::ottrim |
( |
| ) |
|
◆ ottrim() [2/2]
void TMC2208Stepper::ottrim |
( |
uint8_t |
B | ) |
|
◆ pdn_disable() [1/2]
bool TMC2208Stepper::pdn_disable |
( |
| ) |
|
◆ pdn_disable() [2/2]
void TMC2208Stepper::pdn_disable |
( |
bool |
B | ) |
|
◆ pdn_uart()
bool TMC2208Stepper::pdn_uart |
( |
| ) |
|
◆ push()
void TMC2208Stepper::push |
( |
| ) |
|
◆ PWM_AUTO()
uint32_t TMC2208Stepper::PWM_AUTO |
( |
| ) |
|
◆ pwm_autograd() [1/2]
bool TMC2208Stepper::pwm_autograd |
( |
| ) |
|
◆ pwm_autograd() [2/2]
void TMC2208Stepper::pwm_autograd |
( |
bool |
B | ) |
|
◆ pwm_autoscale() [1/2]
bool TMC2208Stepper::pwm_autoscale |
( |
| ) |
|
◆ pwm_autoscale() [2/2]
void TMC2208Stepper::pwm_autoscale |
( |
bool |
B | ) |
|
◆ pwm_freq() [1/2]
uint8_t TMC2208Stepper::pwm_freq |
( |
| ) |
|
◆ pwm_freq() [2/2]
void TMC2208Stepper::pwm_freq |
( |
uint8_t |
B | ) |
|
◆ pwm_grad() [1/2]
uint8_t TMC2208Stepper::pwm_grad |
( |
| ) |
|
◆ pwm_grad() [2/2]
void TMC2208Stepper::pwm_grad |
( |
uint8_t |
B | ) |
|
◆ pwm_grad_auto()
uint8_t TMC2208Stepper::pwm_grad_auto |
( |
| ) |
|
◆ pwm_lim() [1/2]
uint8_t TMC2208Stepper::pwm_lim |
( |
| ) |
|
◆ pwm_lim() [2/2]
void TMC2208Stepper::pwm_lim |
( |
uint8_t |
B | ) |
|
◆ pwm_ofs() [1/2]
uint8_t TMC2208Stepper::pwm_ofs |
( |
| ) |
|
◆ pwm_ofs() [2/2]
void TMC2208Stepper::pwm_ofs |
( |
uint8_t |
B | ) |
|
◆ pwm_ofs_auto()
uint8_t TMC2208Stepper::pwm_ofs_auto |
( |
| ) |
|
◆ pwm_reg() [1/2]
uint8_t TMC2208Stepper::pwm_reg |
( |
| ) |
|
◆ pwm_reg() [2/2]
void TMC2208Stepper::pwm_reg |
( |
uint8_t |
B | ) |
|
◆ PWM_SCALE()
uint32_t TMC2208Stepper::PWM_SCALE |
( |
| ) |
|
◆ pwm_scale_auto()
int16_t TMC2208Stepper::pwm_scale_auto |
( |
| ) |
|
◆ pwm_scale_sum()
uint8_t TMC2208Stepper::pwm_scale_sum |
( |
| ) |
|
◆ PWMCONF() [1/2]
uint32_t TMC2208Stepper::PWMCONF |
( |
| ) |
|
◆ PWMCONF() [2/2]
void TMC2208Stepper::PWMCONF |
( |
uint32_t |
input | ) |
|
◆ read()
uint32_t TMC2208Stepper::read |
( |
uint8_t |
addr | ) |
|
|
protectedvirtual |
◆ s2ga()
bool TMC2208Stepper::s2ga |
( |
| ) |
|
◆ s2gb()
bool TMC2208Stepper::s2gb |
( |
| ) |
|
◆ s2vsa()
bool TMC2208Stepper::s2vsa |
( |
| ) |
|
◆ s2vsb()
bool TMC2208Stepper::s2vsb |
( |
| ) |
|
◆ sel_a()
bool TMC2208Stepper::sel_a |
( |
| ) |
|
◆ senddelay() [1/2]
uint8_t TMC2208Stepper::senddelay |
( |
| ) |
|
◆ senddelay() [2/2]
void TMC2208Stepper::senddelay |
( |
uint8_t |
B | ) |
|
◆ serial_read()
template<class SERIAL_TYPE >
int16_t TMC2208Stepper::serial_read |
( |
SERIAL_TYPE & |
serPtr | ) |
|
|
protected |
◆ serial_write()
template<class SERIAL_TYPE >
uint8_t TMC2208Stepper::serial_write |
( |
SERIAL_TYPE & |
serPtr, |
|
|
const uint8_t |
data |
|
) |
| |
|
protected |
◆ shaft() [1/2]
bool TMC2208Stepper::shaft |
( |
| ) |
|
◆ shaft() [2/2]
void TMC2208Stepper::shaft |
( |
bool |
B | ) |
|
◆ SLAVECONF() [1/2]
uint16_t TMC2208Stepper::SLAVECONF |
( |
| ) |
|
◆ SLAVECONF() [2/2]
void TMC2208Stepper::SLAVECONF |
( |
uint16_t |
input | ) |
|
◆ stealth()
bool TMC2208Stepper::stealth |
( |
| ) |
|
◆ step()
bool TMC2208Stepper::step |
( |
| ) |
|
◆ stst()
bool TMC2208Stepper::stst |
( |
| ) |
|
◆ t120()
bool TMC2208Stepper::t120 |
( |
| ) |
|
◆ t143()
bool TMC2208Stepper::t143 |
( |
| ) |
|
◆ t150()
bool TMC2208Stepper::t150 |
( |
| ) |
|
◆ t157()
bool TMC2208Stepper::t157 |
( |
| ) |
|
◆ tbl() [1/2]
uint8_t TMC2208Stepper::tbl |
( |
| ) |
|
|
virtual |
◆ tbl() [2/2]
void TMC2208Stepper::tbl |
( |
uint8_t |
B | ) |
|
|
virtual |
◆ toff() [1/2]
uint8_t TMC2208Stepper::toff |
( |
| ) |
|
◆ toff() [2/2]
void TMC2208Stepper::toff |
( |
uint8_t |
B | ) |
|
◆ VACTUAL() [1/2]
uint32_t TMC2208Stepper::VACTUAL |
( |
| ) |
|
◆ VACTUAL() [2/2]
void TMC2208Stepper::VACTUAL |
( |
uint32_t |
input | ) |
|
◆ version()
uint8_t TMC2208Stepper::version |
( |
| ) |
|
◆ vsense() [1/2]
bool TMC2208Stepper::vsense |
( |
| ) |
|
|
virtual |
◆ vsense() [2/2]
void TMC2208Stepper::vsense |
( |
bool |
B | ) |
|
|
virtual |
◆ write()
void TMC2208Stepper::write |
( |
uint8_t |
addr, |
|
|
uint32_t |
regVal |
|
) |
| |
|
protectedvirtual |
◆ abort_window
constexpr uint8_t TMC2208Stepper::abort_window = 5 |
|
staticconstexprprotected |
◆ bytesWritten
uint16_t TMC2208Stepper::bytesWritten = 0 |
◆ CRCerror
bool TMC2208Stepper::CRCerror = false |
◆ HWSerial
Stream* TMC2208Stepper::HWSerial = nullptr |
|
protected |
◆ max_retries
constexpr uint8_t TMC2208Stepper::max_retries = 2 |
|
staticconstexprprotected |
◆ replyDelay
constexpr uint8_t TMC2208Stepper::replyDelay = 2 |
|
staticconstexprprotected |
◆ Rsense
float TMC2208Stepper::Rsense = 0.11 |
◆ slave_address
const uint8_t TMC2208Stepper::slave_address |
|
protected |
◆ sswitch
SSwitch* TMC2208Stepper::sswitch = nullptr |
|
protected |
◆ TMC2208_SLAVE_ADDR
constexpr uint8_t TMC2208Stepper::TMC2208_SLAVE_ADDR = 0x00 |
|
staticprotected |
◆ TMC2208_SYNC
constexpr uint8_t TMC2208Stepper::TMC2208_SYNC = 0x05 |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: