TMCStepper
|
#include <TMCStepper.h>
Public Member Functions | |
uint32_t | IOIN () |
bool | enn () |
bool | ms1 () |
bool | ms2 () |
bool | pdn_uart () |
bool | spread () |
bool | step () |
bool | sel_a () |
bool | dir () |
uint8_t | version () |
Public Member Functions inherited from TMC2208Stepper | |
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 () |
Additional Inherited Members | |
Public Attributes inherited from TMC2208Stepper | |
uint16_t | bytesWritten = 0 |
float | Rsense = 0.11 |
bool | CRCerror = false |
Protected Member Functions inherited from TMC2208Stepper | |
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 inherited from TMC2208Stepper | |
Stream * | HWSerial = nullptr |
SSwitch * | sswitch = nullptr |
const uint8_t | slave_address |
Protected Attributes inherited from TMCStepper | |
const float | Rsense |
float | holdMultiplier = 0.5 |
Static Protected Attributes inherited from TMC2208Stepper | |
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 |
Definition at line 1065 of file TMCStepper.h.
bool TMC2224Stepper::dir | ( | ) |
bool TMC2224Stepper::enn | ( | ) |
uint32_t TMC2224Stepper::IOIN | ( | ) |
Definition at line 303 of file TMC2208Stepper.cpp.
bool TMC2224Stepper::ms1 | ( | ) |
bool TMC2224Stepper::ms2 | ( | ) |
bool TMC2224Stepper::pdn_uart | ( | ) |
bool TMC2224Stepper::sel_a | ( | ) |
bool TMC2224Stepper::spread | ( | ) |
bool TMC2224Stepper::step | ( | ) |
uint8_t TMC2224Stepper::version | ( | ) |