TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
TMC2240Stepper Class Reference

#include <TMC2240Stepper.h>

Collaboration diagram for TMC2240Stepper:

Classes

struct  IFCNT_t
struct  TSTEP_t
struct  MSCNT_t

Public Member Functions

 TMC2240Stepper (uint16_t pinCS, int8_t link_index=-1)
 TMC2240Stepper (uint16_t pinCS, uint16_t pinMOSI, uint16_t pinMISO, uint16_t pinSCK, int8_t link_index=-1)
void begin ()
void defaults ()
void setSPISpeed (uint32_t speed)
void switchCSpin (bool state)
bool isEnabled ()
void push ()
void GCONF (uint32_t input)
void fast_standstill (bool B)
void en_pwm_mode (bool B)
void multistep_filt (bool B)
void shaft (bool B)
void diag0_error (bool B)
void diag0_otpw (bool B)
void diag0_stall (bool B)
void diag1_stall (bool B)
void diag1_index (bool B)
void diag1_onstate (bool B)
void diag0_pushpull (bool B)
void diag1_pushpull (bool B)
void small_hysteresis (bool B)
void stop_enable (bool B)
void direct_mode (bool B)
uint32_t GCONF ()
bool fast_standstill ()
bool en_pwm_mode ()
bool multistep_filt ()
bool shaft ()
bool diag0_error ()
bool diag0_otpw ()
bool diag0_stall ()
bool diag1_stall ()
bool diag1_index ()
bool diag1_onstate ()
bool diag0_pushpull ()
bool diag1_pushpull ()
bool small_hysteresis ()
bool stop_enable ()
bool direct_mode ()
void GSTAT (uint8_t input)
uint8_t GSTAT ()
bool reset ()
bool drv_err ()
bool uv_cp ()
bool register_reset ()
bool vm_uvlo ()
uint8_t IFCNT ()
void NODECONF (uint16_t input)
uint16_t NODECONF ()
uint16_t SLAVECONF ()
void SLAVECONF (uint16_t input)
void senddelay (uint8_t B)
uint8_t senddelay ()
void nodeaddr (uint8_t B)
uint8_t nodeaddr ()
void slaveaddr (uint8_t B)
uint8_t slaveaddr ()
uint32_t IOIN ()
bool step ()
bool dir ()
bool encb ()
bool enca ()
bool drv_enn ()
bool encn ()
bool uart_en ()
bool comp_a ()
bool comp_b ()
bool comp_a1_a2 ()
bool comp_b1_b2 ()
bool output ()
bool ext_res_det ()
bool ext_clk ()
bool adc_err ()
uint8_t silicon_rv ()
uint8_t version ()
void DRV_CONF (uint32_t input)
void current_range (uint8_t)
uint8_t current_range ()
void slope_control (uint8_t)
uint8_t slope_control ()
uint32_t DRV_CONF ()
void GLOBAL_SCALER (uint8_t input)
uint8_t GLOBAL_SCALER ()
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)
void irundelay (uint8_t B)
uint8_t ihold ()
uint8_t irun ()
uint8_t iholddelay ()
uint8_t irundelay ()
uint32_t TCOOLTHRS ()
void TCOOLTHRS (uint32_t input)
uint32_t THIGH ()
void THIGH (uint32_t input)
void CHOPCONF (uint32_t input)
void toff (uint8_t B)
void hstrt (uint8_t B)
void hend (uint8_t B)
void fd3 (bool B)
void disfdcc (bool B)
void chm (bool B)
void TBL (uint8_t B)
void vhighfs (bool B)
void vhighchm (bool B)
void tpfd (uint8_t 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 ()
bool fd3 ()
bool disfdcc ()
bool chm ()
uint8_t TBL ()
bool vhighfs ()
bool vhighchm ()
uint8_t tpfd ()
uint8_t mres ()
bool intpol ()
bool dedge ()
bool diss2g ()
bool diss2vs ()
void COOLCONF (uint32_t B)
uint32_t COOLCONF ()
void semin (uint8_t B)
void seup (uint8_t B)
void semax (uint8_t B)
void sedn (uint8_t B)
void seimin (bool B)
void sgt (int8_t B)
void sfilt (bool B)
void sg4_en (bool B)
void sg4_smin (uint8_t B)
void sg4_smax (uint8_t B)
void sg4_filt_en (bool B)
void sg4_angle_offset (uint8_t B)
void sg4_thrs (uint8_t B)
uint8_t semin ()
uint8_t seup ()
uint8_t semax ()
uint8_t sedn ()
bool seimin ()
int8_t sgt ()
bool sfilt ()
bool sg4_en ()
uint8_t sg4_smin ()
uint8_t sg4_smax ()
bool sg4_filt_en ()
uint8_t sg4_angle_offset ()
uint8_t sg4_thrs ()
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_meas_sd_enable (bool B)
void pwm_dis_reg_stst (bool 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 ()
bool pwm_meas_sd_enable ()
bool pwm_dis_reg_stst ()
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 ()
uint32_t MSCURACT ()
int16_t cur_a ()
int16_t cur_b ()
uint32_t DRV_STATUS ()
uint32_t SG_RESULT ()
bool s2vsa ()
bool s2vsb ()
bool stealth ()
bool fsactive ()
uint16_t CS_ACTUAL ()
bool stallguard ()
bool sg4 ()
bool ot ()
bool otpw ()
bool s2ga ()
bool s2gb ()
bool ola ()
bool olb ()
bool stst ()
void microsteps (uint16_t ms)
uint16_t microsteps ()
uint8_t test_connection ()
uint16_t MSCNT ()
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 hysteresis_end (int8_t value)
int8_t hysteresis_end ()
void hysteresis_start (uint8_t value)
uint8_t hysteresis_start ()
uint8_t TPOWERDOWN ()
void TPOWERDOWN (uint8_t input)
uint32_t TPWMTHRS ()
void TPWMTHRS (uint32_t input)
uint32_t TSTEP ()
uint32_t SG4_THRS ()
void SG4_THRS (uint32_t input)
uint8_t sg4_thrs ()
void sg4_thrs (uint8_t B)
bool sg4_filt_en ()
void sg4_filt_en (bool B)
uint8_t sg4_angle_offset ()
void sg4_angle_offset (uint8_t B)
uint8_t sg4_smin ()
void sg4_smin (uint8_t B)
uint8_t sg4_smax ()
void sg4_smax (uint8_t B)
bool sg4_en ()
void sg4_en (bool B)
uint32_t SG4_RESULT ()
uint16_t sg4_result ()
uint32_t ADC_VSUPPLY_AIN ()
uint32_t ADC_TEMP ()
uint32_t OTW_OV_VTH ()
void OTW_OV_VTH (uint32_t input)
float get_ain_voltage ()
float get_vsupply_voltage ()
float get_chip_temperature ()
float get_overtemp_prewarn_celsius ()
void set_overtemp_prewarn_celsius (float tempC)
float get_overvoltage_threshold_voltage ()
void set_overvoltage_threshold_voltage (float volts)

Public Attributes

uint32_t Rref = 12000
uint16_t bytesWritten = 0
bool CRCerror = false
uint8_t status_response

Protected Member Functions

 INIT2240_REGISTER (GCONF)
 INIT2240_REGISTER (GSTAT)
 INIT2240_REGISTER (NODECONF)
 INIT2240_REGISTER (DRV_CONF)
 INIT2240_REGISTER (GLOBAL_SCALER)
 INIT2240_REGISTER (IHOLD_IRUN)
 INIT2240_REGISTER (TPOWERDOWN)
 INIT2240_REGISTER (TPWMTHRS)
 INIT2240_REGISTER (TCOOLTHRS)
 INIT2240_REGISTER (THIGH)
 INIT2240_REGISTER (CHOPCONF)
 INIT2240_REGISTER (COOLCONF)
 INIT2240_REGISTER (PWMCONF)
 INIT2240_REGISTER (SG4_THRS)
 INIT2240_REGISTER (OTW_OV_VTH)
float calc_IFS_current_RMS ()
uint32_t set_globalscaler (float current, float IFS_current_RMS)
void beginTransaction ()
void endTransaction ()
uint8_t transfer (const uint8_t data)
void transferEmptyBytes (const uint8_t n)
void write (uint8_t addressByte, uint32_t config)
uint32_t read (uint8_t addressByte)
uint64_t _sendDatagram (uint8_t[], const uint8_t, uint16_t)

Protected Attributes

SSwitchsswitch = nullptr
float holdMultiplier = 0.5
const uint16_t _pinCS
SW_SPIClassTMC_SW_SPI = nullptr
int8_t link_index

Static Protected Attributes

static constexpr uint8_t TMC_READ = 0x00
static constexpr uint8_t TMC_WRITE = 0x80
static constexpr uint8_t TMC2240_SYNC = 0x05
static constexpr uint8_t replyDelay = 2
static constexpr uint8_t abort_window = 5
static constexpr uint8_t max_retries = 2
static uint32_t spi_speed = 16000000/8
static constexpr float default_RS = 0.11
static int8_t chain_length = 0

Detailed Description

Definition at line 11 of file TMC2240Stepper.h.

Constructor & Destructor Documentation

◆ TMC2240Stepper() [1/2]

TMC2240Stepper::TMC2240Stepper ( uint16_t pinCS,
int8_t link_index = -1 )

Definition at line 11 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ TMC2240Stepper() [2/2]

TMC2240Stepper::TMC2240Stepper ( uint16_t pinCS,
uint16_t pinMOSI,
uint16_t pinMISO,
uint16_t pinSCK,
int8_t link_index = -1 )

Definition at line 21 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ _sendDatagram()

uint64_t TMC2240Stepper::_sendDatagram ( uint8_t [],
const uint8_t ,
uint16_t  )
protected

◆ adc_err()

bool TMC2240Stepper::adc_err ( )

Definition at line 107 of file IOIN.cpp.

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

◆ ADC_TEMP()

uint32_t TMC2240Stepper::ADC_TEMP ( )

Definition at line 439 of file TMC2240Stepper.cpp.

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

◆ ADC_VSUPPLY_AIN()

uint32_t TMC2240Stepper::ADC_VSUPPLY_AIN ( )

Definition at line 434 of file TMC2240Stepper.cpp.

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

◆ begin()

void TMC2240Stepper::begin ( )

Definition at line 173 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ beginTransaction()

void TMC2240Stepper::beginTransaction ( )
protected

◆ calc_IFS_current_RMS()

float TMC2240Stepper::calc_IFS_current_RMS ( )
protected

Definition at line 288 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ chm() [1/2]

bool TMC2240Stepper::chm ( )

Definition at line 128 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ chm() [2/2]

void TMC2240Stepper::chm ( bool B)

Definition at line 112 of file CHOPCONF.cpp.

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

◆ CHOPCONF() [1/2]

uint32_t TMC2240Stepper::CHOPCONF ( )

Definition at line 102 of file CHOPCONF.cpp.

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

◆ CHOPCONF() [2/2]

void TMC2240Stepper::CHOPCONF ( uint32_t input)

Definition at line 103 of file CHOPCONF.cpp.

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

◆ comp_a()

bool TMC2240Stepper::comp_a ( )

Definition at line 100 of file IOIN.cpp.

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

◆ comp_a1_a2()

bool TMC2240Stepper::comp_a1_a2 ( )

Definition at line 102 of file IOIN.cpp.

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

◆ comp_b()

bool TMC2240Stepper::comp_b ( )

Definition at line 101 of file IOIN.cpp.

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

◆ comp_b1_b2()

bool TMC2240Stepper::comp_b1_b2 ( )

Definition at line 103 of file IOIN.cpp.

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

◆ COOLCONF() [1/2]

uint32_t TMC2240Stepper::COOLCONF ( )
Here is the caller graph for this function:

◆ COOLCONF() [2/2]

void TMC2240Stepper::COOLCONF ( uint32_t B)
Here is the caller graph for this function:

◆ cs2rms()

uint16_t TMC2240Stepper::cs2rms ( uint8_t CS)

0:1A 1:2A 2:3A 3:3A ('rref', 12000, minval=12000, maxval=60000)

Definition at line 282 of file TMC2240Stepper.cpp.

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

◆ CS_ACTUAL()

uint16_t TMC2240Stepper::CS_ACTUAL ( )

Definition at line 63 of file DRV_STATUS.cpp.

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

◆ cur_a()

int16_t TMC2240Stepper::cur_a ( )

Definition at line 509 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ cur_b()

int16_t TMC2240Stepper::cur_b ( )

Definition at line 516 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ current_range() [1/2]

uint8_t TMC2240Stepper::current_range ( )

Definition at line 45 of file DRV_CONF.cpp.

Here is the call graph for this function:

◆ current_range() [2/2]

void TMC2240Stepper::current_range ( uint8_t B)

Definition at line 43 of file DRV_CONF.cpp.

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

◆ dedge() [1/2]

bool TMC2240Stepper::dedge ( )

Definition at line 135 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ dedge() [2/2]

void TMC2240Stepper::dedge ( bool B)

Definition at line 119 of file CHOPCONF.cpp.

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

◆ defaults()

void TMC2240Stepper::defaults ( )

Definition at line 33 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ diag0_error() [1/2]

bool TMC2240Stepper::diag0_error ( )

Definition at line 144 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag0_error() [2/2]

void TMC2240Stepper::diag0_error ( bool B)

Definition at line 128 of file GCONF.cpp.

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

◆ diag0_otpw() [1/2]

bool TMC2240Stepper::diag0_otpw ( )

Definition at line 145 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag0_otpw() [2/2]

void TMC2240Stepper::diag0_otpw ( bool B)

Definition at line 129 of file GCONF.cpp.

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

◆ diag0_pushpull() [1/2]

bool TMC2240Stepper::diag0_pushpull ( )

Definition at line 150 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag0_pushpull() [2/2]

void TMC2240Stepper::diag0_pushpull ( bool B)

Definition at line 134 of file GCONF.cpp.

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

◆ diag0_stall() [1/2]

bool TMC2240Stepper::diag0_stall ( )

Definition at line 146 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag0_stall() [2/2]

void TMC2240Stepper::diag0_stall ( bool B)

Definition at line 130 of file GCONF.cpp.

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

◆ diag1_index() [1/2]

bool TMC2240Stepper::diag1_index ( )

Definition at line 148 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag1_index() [2/2]

void TMC2240Stepper::diag1_index ( bool B)

Definition at line 132 of file GCONF.cpp.

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

◆ diag1_onstate() [1/2]

bool TMC2240Stepper::diag1_onstate ( )

Definition at line 149 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag1_onstate() [2/2]

void TMC2240Stepper::diag1_onstate ( bool B)

Definition at line 133 of file GCONF.cpp.

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

◆ diag1_pushpull() [1/2]

bool TMC2240Stepper::diag1_pushpull ( )

Definition at line 151 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag1_pushpull() [2/2]

void TMC2240Stepper::diag1_pushpull ( bool B)

Definition at line 135 of file GCONF.cpp.

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

◆ diag1_stall() [1/2]

bool TMC2240Stepper::diag1_stall ( )

Definition at line 147 of file GCONF.cpp.

Here is the call graph for this function:

◆ diag1_stall() [2/2]

void TMC2240Stepper::diag1_stall ( bool B)

Definition at line 131 of file GCONF.cpp.

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

◆ dir()

bool TMC2240Stepper::dir ( )

Definition at line 94 of file IOIN.cpp.

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

◆ direct_mode() [1/2]

bool TMC2240Stepper::direct_mode ( )

Definition at line 154 of file GCONF.cpp.

Here is the call graph for this function:

◆ direct_mode() [2/2]

void TMC2240Stepper::direct_mode ( bool B)

Definition at line 138 of file GCONF.cpp.

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

◆ disfdcc() [1/2]

bool TMC2240Stepper::disfdcc ( )

Definition at line 127 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ disfdcc() [2/2]

void TMC2240Stepper::disfdcc ( bool B)

Definition at line 111 of file CHOPCONF.cpp.

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

◆ diss2g() [1/2]

bool TMC2240Stepper::diss2g ( )

Definition at line 136 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ diss2g() [2/2]

void TMC2240Stepper::diss2g ( bool B)

Definition at line 120 of file CHOPCONF.cpp.

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

◆ diss2vs() [1/2]

bool TMC2240Stepper::diss2vs ( )

Definition at line 137 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ diss2vs() [2/2]

void TMC2240Stepper::diss2vs ( bool B)

Definition at line 121 of file CHOPCONF.cpp.

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

◆ DRV_CONF() [1/2]

uint32_t TMC2240Stepper::DRV_CONF ( )

Definition at line 37 of file DRV_CONF.cpp.

Here is the caller graph for this function:

◆ DRV_CONF() [2/2]

void TMC2240Stepper::DRV_CONF ( uint32_t input)

Definition at line 38 of file DRV_CONF.cpp.

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

◆ drv_enn()

bool TMC2240Stepper::drv_enn ( )

Definition at line 97 of file IOIN.cpp.

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

◆ drv_err()

bool TMC2240Stepper::drv_err ( )

Definition at line 357 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ DRV_STATUS()

uint32_t TMC2240Stepper::DRV_STATUS ( )

Definition at line 55 of file DRV_STATUS.cpp.

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

◆ en_pwm_mode() [1/2]

bool TMC2240Stepper::en_pwm_mode ( )

Definition at line 141 of file GCONF.cpp.

Here is the call graph for this function:

◆ en_pwm_mode() [2/2]

void TMC2240Stepper::en_pwm_mode ( bool B)

Definition at line 125 of file GCONF.cpp.

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

◆ enca()

bool TMC2240Stepper::enca ( )

Definition at line 96 of file IOIN.cpp.

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

◆ encb()

bool TMC2240Stepper::encb ( )

Definition at line 95 of file IOIN.cpp.

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

◆ encn()

bool TMC2240Stepper::encn ( )

Definition at line 98 of file IOIN.cpp.

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

◆ endTransaction()

void TMC2240Stepper::endTransaction ( )
protected

◆ ext_clk()

bool TMC2240Stepper::ext_clk ( )

Definition at line 106 of file IOIN.cpp.

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

◆ ext_res_det()

bool TMC2240Stepper::ext_res_det ( )

Definition at line 105 of file IOIN.cpp.

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

◆ fast_standstill() [1/2]

bool TMC2240Stepper::fast_standstill ( )

Definition at line 140 of file GCONF.cpp.

Here is the call graph for this function:

◆ fast_standstill() [2/2]

void TMC2240Stepper::fast_standstill ( bool B)

Definition at line 124 of file GCONF.cpp.

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

◆ fd3() [1/2]

bool TMC2240Stepper::fd3 ( )

Definition at line 126 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ fd3() [2/2]

void TMC2240Stepper::fd3 ( bool B)

Definition at line 110 of file CHOPCONF.cpp.

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

◆ freewheel() [1/2]

uint8_t TMC2240Stepper::freewheel ( )

Definition at line 124 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ freewheel() [2/2]

void TMC2240Stepper::freewheel ( uint8_t B)

Definition at line 113 of file PWMCONF.cpp.

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

◆ fsactive()

bool TMC2240Stepper::fsactive ( )

Definition at line 62 of file DRV_STATUS.cpp.

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

◆ GCONF() [1/2]

uint32_t TMC2240Stepper::GCONF ( )

Definition at line 118 of file GCONF.cpp.

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

◆ GCONF() [2/2]

void TMC2240Stepper::GCONF ( uint32_t input)

Definition at line 119 of file GCONF.cpp.

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

◆ get_ain_voltage()

float TMC2240Stepper::get_ain_voltage ( )

Definition at line 454 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ get_chip_temperature()

float TMC2240Stepper::get_chip_temperature ( )

Definition at line 468 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ get_overtemp_prewarn_celsius()

float TMC2240Stepper::get_overtemp_prewarn_celsius ( )

Definition at line 475 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ get_overvoltage_threshold_voltage()

float TMC2240Stepper::get_overvoltage_threshold_voltage ( )

Definition at line 490 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ get_vsupply_voltage()

float TMC2240Stepper::get_vsupply_voltage ( )

Definition at line 461 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ GLOBAL_SCALER() [1/2]

uint8_t TMC2240Stepper::GLOBAL_SCALER ( )

Definition at line 23 of file GLOBAL_SCALER.cpp.

Here is the caller graph for this function:

◆ GLOBAL_SCALER() [2/2]

void TMC2240Stepper::GLOBAL_SCALER ( uint8_t input)

Definition at line 24 of file GLOBAL_SCALER.cpp.

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

◆ GSTAT() [1/2]

uint8_t TMC2240Stepper::GSTAT ( )

Definition at line 354 of file TMC2240Stepper.cpp.

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

◆ GSTAT() [2/2]

void TMC2240Stepper::GSTAT ( uint8_t input)

Definition at line 355 of file TMC2240Stepper.cpp.

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

◆ hend() [1/2]

uint8_t TMC2240Stepper::hend ( )

Definition at line 125 of file CHOPCONF.cpp.

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

◆ hend() [2/2]

void TMC2240Stepper::hend ( uint8_t B)

Definition at line 109 of file CHOPCONF.cpp.

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

◆ hstrt() [1/2]

uint8_t TMC2240Stepper::hstrt ( )

Definition at line 124 of file CHOPCONF.cpp.

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

◆ hstrt() [2/2]

void TMC2240Stepper::hstrt ( uint8_t B)

Definition at line 108 of file CHOPCONF.cpp.

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

◆ hysteresis_end() [1/2]

int8_t TMC2240Stepper::hysteresis_end ( )

Definition at line 388 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ hysteresis_end() [2/2]

void TMC2240Stepper::hysteresis_end ( int8_t value)

Definition at line 387 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ hysteresis_start() [1/2]

uint8_t TMC2240Stepper::hysteresis_start ( )

Definition at line 391 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ hysteresis_start() [2/2]

void TMC2240Stepper::hysteresis_start ( uint8_t value)

Definition at line 390 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ IFCNT()

uint8_t TMC2240Stepper::IFCNT ( )

Definition at line 222 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ ihold() [1/2]

uint8_t TMC2240Stepper::ihold ( )

Definition at line 45 of file IHOLD_IRUN.cpp.

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

◆ ihold() [2/2]

void TMC2240Stepper::ihold ( uint8_t B)

Definition at line 40 of file IHOLD_IRUN.cpp.

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

◆ IHOLD_IRUN() [1/2]

uint32_t TMC2240Stepper::IHOLD_IRUN ( )

Definition at line 34 of file IHOLD_IRUN.cpp.

Here is the caller graph for this function:

◆ IHOLD_IRUN() [2/2]

void TMC2240Stepper::IHOLD_IRUN ( uint32_t input)

Definition at line 35 of file IHOLD_IRUN.cpp.

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

◆ iholddelay() [1/2]

uint8_t TMC2240Stepper::iholddelay ( )

Definition at line 47 of file IHOLD_IRUN.cpp.

Here is the call graph for this function:

◆ iholddelay() [2/2]

void TMC2240Stepper::iholddelay ( uint8_t B)

Definition at line 42 of file IHOLD_IRUN.cpp.

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

◆ INIT2240_REGISTER() [1/15]

TMC2240Stepper::INIT2240_REGISTER ( CHOPCONF )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [2/15]

TMC2240Stepper::INIT2240_REGISTER ( COOLCONF )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [3/15]

TMC2240Stepper::INIT2240_REGISTER ( DRV_CONF )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [4/15]

TMC2240Stepper::INIT2240_REGISTER ( GCONF )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [5/15]

TMC2240Stepper::INIT2240_REGISTER ( GLOBAL_SCALER )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [6/15]

TMC2240Stepper::INIT2240_REGISTER ( GSTAT )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [7/15]

TMC2240Stepper::INIT2240_REGISTER ( IHOLD_IRUN )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [8/15]

TMC2240Stepper::INIT2240_REGISTER ( NODECONF )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [9/15]

TMC2240Stepper::INIT2240_REGISTER ( OTW_OV_VTH )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [10/15]

TMC2240Stepper::INIT2240_REGISTER ( PWMCONF )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [11/15]

TMC2240Stepper::INIT2240_REGISTER ( SG4_THRS )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [12/15]

TMC2240Stepper::INIT2240_REGISTER ( TCOOLTHRS )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [13/15]

TMC2240Stepper::INIT2240_REGISTER ( THIGH )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [14/15]

TMC2240Stepper::INIT2240_REGISTER ( TPOWERDOWN )
protected
Here is the call graph for this function:

◆ INIT2240_REGISTER() [15/15]

TMC2240Stepper::INIT2240_REGISTER ( TPWMTHRS )
protected
Here is the call graph for this function:

◆ intpol() [1/2]

bool TMC2240Stepper::intpol ( )

Definition at line 134 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ intpol() [2/2]

void TMC2240Stepper::intpol ( bool B)

Definition at line 118 of file CHOPCONF.cpp.

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

◆ IOIN()

uint32_t TMC2240Stepper::IOIN ( )

Definition at line 92 of file IOIN.cpp.

Here is the call graph for this function:

◆ irun() [1/2]

uint8_t TMC2240Stepper::irun ( )

Definition at line 46 of file IHOLD_IRUN.cpp.

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

◆ irun() [2/2]

void TMC2240Stepper::irun ( uint8_t B)

Definition at line 41 of file IHOLD_IRUN.cpp.

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

◆ irundelay() [1/2]

uint8_t TMC2240Stepper::irundelay ( )

Definition at line 48 of file IHOLD_IRUN.cpp.

Here is the call graph for this function:

◆ irundelay() [2/2]

void TMC2240Stepper::irundelay ( uint8_t B)

Definition at line 43 of file IHOLD_IRUN.cpp.

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

◆ isEnabled()

bool TMC2240Stepper::isEnabled ( )

Definition at line 220 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ microsteps() [1/2]

uint16_t TMC2240Stepper::microsteps ( )

Definition at line 338 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ microsteps() [2/2]

void TMC2240Stepper::microsteps ( uint16_t ms)

Definition at line 323 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ mres() [1/2]

uint8_t TMC2240Stepper::mres ( )

Definition at line 133 of file CHOPCONF.cpp.

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

◆ mres() [2/2]

void TMC2240Stepper::mres ( uint8_t B)

Definition at line 117 of file CHOPCONF.cpp.

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

◆ MSCNT()

uint16_t TMC2240Stepper::MSCNT ( )

Definition at line 505 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ MSCURACT()

uint32_t TMC2240Stepper::MSCURACT ( )

Definition at line 508 of file TMC2240Stepper.cpp.

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

◆ multistep_filt() [1/2]

bool TMC2240Stepper::multistep_filt ( )

Definition at line 142 of file GCONF.cpp.

Here is the call graph for this function:

◆ multistep_filt() [2/2]

void TMC2240Stepper::multistep_filt ( bool B)

Definition at line 126 of file GCONF.cpp.

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

◆ nodeaddr() [1/2]

uint8_t TMC2240Stepper::nodeaddr ( )

Definition at line 35 of file SLAVECONF.cpp.

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

◆ nodeaddr() [2/2]

void TMC2240Stepper::nodeaddr ( uint8_t B)

Definition at line 36 of file SLAVECONF.cpp.

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

◆ NODECONF() [1/2]

uint16_t TMC2240Stepper::NODECONF ( )

Definition at line 30 of file SLAVECONF.cpp.

Here is the caller graph for this function:

◆ NODECONF() [2/2]

void TMC2240Stepper::NODECONF ( uint16_t input)

Definition at line 31 of file SLAVECONF.cpp.

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

◆ ola()

bool TMC2240Stepper::ola ( )

Definition at line 69 of file DRV_STATUS.cpp.

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

◆ olb()

bool TMC2240Stepper::olb ( )

Definition at line 70 of file DRV_STATUS.cpp.

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

◆ ot()

bool TMC2240Stepper::ot ( )

Definition at line 65 of file DRV_STATUS.cpp.

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

◆ otpw()

bool TMC2240Stepper::otpw ( )

Definition at line 66 of file DRV_STATUS.cpp.

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

◆ OTW_OV_VTH() [1/2]

uint32_t TMC2240Stepper::OTW_OV_VTH ( )

Definition at line 444 of file TMC2240Stepper.cpp.

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

◆ OTW_OV_VTH() [2/2]

void TMC2240Stepper::OTW_OV_VTH ( uint32_t input)

Definition at line 448 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ output()

bool TMC2240Stepper::output ( )

Definition at line 104 of file IOIN.cpp.

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

◆ push()

void TMC2240Stepper::push ( )

Definition at line 189 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ PWM_AUTO()

uint32_t TMC2240Stepper::PWM_AUTO ( )

Definition at line 249 of file TMC2240Stepper.cpp.

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

◆ pwm_autograd() [1/2]

bool TMC2240Stepper::pwm_autograd ( )

Definition at line 123 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_autograd() [2/2]

void TMC2240Stepper::pwm_autograd ( bool B)

Definition at line 112 of file PWMCONF.cpp.

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

◆ pwm_autoscale() [1/2]

bool TMC2240Stepper::pwm_autoscale ( )

Definition at line 122 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_autoscale() [2/2]

void TMC2240Stepper::pwm_autoscale ( bool B)

Definition at line 111 of file PWMCONF.cpp.

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

◆ pwm_dis_reg_stst() [1/2]

bool TMC2240Stepper::pwm_dis_reg_stst ( )

Definition at line 126 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_dis_reg_stst() [2/2]

void TMC2240Stepper::pwm_dis_reg_stst ( bool B)

Definition at line 115 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_freq() [1/2]

uint8_t TMC2240Stepper::pwm_freq ( )

Definition at line 121 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_freq() [2/2]

void TMC2240Stepper::pwm_freq ( uint8_t B)

Definition at line 110 of file PWMCONF.cpp.

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

◆ pwm_grad() [1/2]

uint8_t TMC2240Stepper::pwm_grad ( )

Definition at line 120 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_grad() [2/2]

void TMC2240Stepper::pwm_grad ( uint8_t B)

Definition at line 109 of file PWMCONF.cpp.

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

◆ pwm_grad_auto()

uint8_t TMC2240Stepper::pwm_grad_auto ( )

Definition at line 253 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ pwm_lim() [1/2]

uint8_t TMC2240Stepper::pwm_lim ( )

Definition at line 128 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_lim() [2/2]

void TMC2240Stepper::pwm_lim ( uint8_t B)

Definition at line 117 of file PWMCONF.cpp.

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

◆ pwm_meas_sd_enable() [1/2]

bool TMC2240Stepper::pwm_meas_sd_enable ( )

Definition at line 125 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_meas_sd_enable() [2/2]

void TMC2240Stepper::pwm_meas_sd_enable ( bool B)

Definition at line 114 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_ofs() [1/2]

uint8_t TMC2240Stepper::pwm_ofs ( )

Definition at line 119 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_ofs() [2/2]

void TMC2240Stepper::pwm_ofs ( uint8_t B)

Definition at line 108 of file PWMCONF.cpp.

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

◆ pwm_ofs_auto()

uint8_t TMC2240Stepper::pwm_ofs_auto ( )

Definition at line 252 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ pwm_reg() [1/2]

uint8_t TMC2240Stepper::pwm_reg ( )

Definition at line 127 of file PWMCONF.cpp.

Here is the call graph for this function:

◆ pwm_reg() [2/2]

void TMC2240Stepper::pwm_reg ( uint8_t B)

Definition at line 116 of file PWMCONF.cpp.

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

◆ PWM_SCALE()

uint32_t TMC2240Stepper::PWM_SCALE ( )

Definition at line 226 of file TMC2240Stepper.cpp.

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

◆ pwm_scale_auto()

int16_t TMC2240Stepper::pwm_scale_auto ( )

Definition at line 235 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ pwm_scale_sum()

uint8_t TMC2240Stepper::pwm_scale_sum ( )

Definition at line 229 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ PWMCONF() [1/2]

uint32_t TMC2240Stepper::PWMCONF ( )

Definition at line 102 of file PWMCONF.cpp.

Here is the caller graph for this function:

◆ PWMCONF() [2/2]

void TMC2240Stepper::PWMCONF ( uint32_t input)

Definition at line 103 of file PWMCONF.cpp.

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

◆ read()

uint32_t TMC2240Stepper::read ( uint8_t addressByte)
protected
Here is the caller graph for this function:

◆ register_reset()

bool TMC2240Stepper::register_reset ( )

Definition at line 359 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ reset()

bool TMC2240Stepper::reset ( )

Definition at line 356 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ rms_current() [1/3]

uint16_t TMC2240Stepper::rms_current ( )

Definition at line 319 of file TMC2240Stepper.cpp.

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

◆ rms_current() [2/3]

void TMC2240Stepper::rms_current ( uint16_t mA)

Definition at line 303 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ rms_current() [3/3]

void TMC2240Stepper::rms_current ( uint16_t mA,
float mult )

Definition at line 314 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ s2ga()

bool TMC2240Stepper::s2ga ( )

Definition at line 67 of file DRV_STATUS.cpp.

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

◆ s2gb()

bool TMC2240Stepper::s2gb ( )

Definition at line 68 of file DRV_STATUS.cpp.

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

◆ s2vsa()

bool TMC2240Stepper::s2vsa ( )

Definition at line 59 of file DRV_STATUS.cpp.

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

◆ s2vsb()

bool TMC2240Stepper::s2vsb ( )

Definition at line 60 of file DRV_STATUS.cpp.

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

◆ sedn() [1/2]

uint8_t TMC2240Stepper::sedn ( )

◆ sedn() [2/2]

void TMC2240Stepper::sedn ( uint8_t B)

◆ seimin() [1/2]

bool TMC2240Stepper::seimin ( )

◆ seimin() [2/2]

void TMC2240Stepper::seimin ( bool B)

◆ semax() [1/2]

uint8_t TMC2240Stepper::semax ( )

◆ semax() [2/2]

void TMC2240Stepper::semax ( uint8_t B)

◆ semin() [1/2]

uint8_t TMC2240Stepper::semin ( )

◆ semin() [2/2]

void TMC2240Stepper::semin ( uint8_t B)

◆ senddelay() [1/2]

uint8_t TMC2240Stepper::senddelay ( )

Definition at line 37 of file SLAVECONF.cpp.

Here is the call graph for this function:

◆ senddelay() [2/2]

void TMC2240Stepper::senddelay ( uint8_t B)

Definition at line 38 of file SLAVECONF.cpp.

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

◆ set_globalscaler()

uint32_t TMC2240Stepper::set_globalscaler ( float current,
float IFS_current_RMS )
protected

Definition at line 294 of file TMC2240Stepper.cpp.

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

◆ set_overtemp_prewarn_celsius()

void TMC2240Stepper::set_overtemp_prewarn_celsius ( float tempC)

Definition at line 481 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ set_overvoltage_threshold_voltage()

void TMC2240Stepper::set_overvoltage_threshold_voltage ( float volts)

Definition at line 496 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ setSPISpeed()

void TMC2240Stepper::setSPISpeed ( uint32_t speed)

◆ seup() [1/2]

uint8_t TMC2240Stepper::seup ( )

◆ seup() [2/2]

void TMC2240Stepper::seup ( uint8_t B)

◆ sfilt() [1/2]

bool TMC2240Stepper::sfilt ( )

◆ sfilt() [2/2]

void TMC2240Stepper::sfilt ( bool B)

◆ sg4()

bool TMC2240Stepper::sg4 ( )

Definition at line 525 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ sg4_angle_offset() [1/4]

uint8_t TMC2240Stepper::sg4_angle_offset ( )

◆ sg4_angle_offset() [2/4]

uint8_t TMC2240Stepper::sg4_angle_offset ( )

Definition at line 423 of file TMC2240Stepper.cpp.

◆ sg4_angle_offset() [3/4]

void TMC2240Stepper::sg4_angle_offset ( uint8_t B)

◆ sg4_angle_offset() [4/4]

void TMC2240Stepper::sg4_angle_offset ( uint8_t B)

Definition at line 424 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ sg4_en() [1/4]

bool TMC2240Stepper::sg4_en ( )

◆ sg4_en() [2/4]

bool TMC2240Stepper::sg4_en ( )

Definition at line 534 of file TMC2240Stepper.cpp.

◆ sg4_en() [3/4]

void TMC2240Stepper::sg4_en ( bool B)

◆ sg4_en() [4/4]

void TMC2240Stepper::sg4_en ( bool B)

Definition at line 529 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ sg4_filt_en() [1/4]

bool TMC2240Stepper::sg4_filt_en ( )

◆ sg4_filt_en() [2/4]

bool TMC2240Stepper::sg4_filt_en ( )

Definition at line 418 of file TMC2240Stepper.cpp.

◆ sg4_filt_en() [3/4]

void TMC2240Stepper::sg4_filt_en ( bool B)

◆ sg4_filt_en() [4/4]

void TMC2240Stepper::sg4_filt_en ( bool B)

Definition at line 419 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ SG4_RESULT()

uint32_t TMC2240Stepper::SG4_RESULT ( )

Definition at line 430 of file TMC2240Stepper.cpp.

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

◆ sg4_result()

uint16_t TMC2240Stepper::sg4_result ( )

Definition at line 431 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ sg4_smax() [1/4]

uint8_t TMC2240Stepper::sg4_smax ( )

◆ sg4_smax() [2/4]

uint8_t TMC2240Stepper::sg4_smax ( )

Definition at line 552 of file TMC2240Stepper.cpp.

◆ sg4_smax() [3/4]

void TMC2240Stepper::sg4_smax ( uint8_t B)

◆ sg4_smax() [4/4]

void TMC2240Stepper::sg4_smax ( uint8_t B)

Definition at line 547 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ sg4_smin() [1/4]

uint8_t TMC2240Stepper::sg4_smin ( )

◆ sg4_smin() [2/4]

uint8_t TMC2240Stepper::sg4_smin ( )

Definition at line 543 of file TMC2240Stepper.cpp.

◆ sg4_smin() [3/4]

void TMC2240Stepper::sg4_smin ( uint8_t B)

◆ sg4_smin() [4/4]

void TMC2240Stepper::sg4_smin ( uint8_t B)

Definition at line 538 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ SG4_THRS() [1/2]

uint32_t TMC2240Stepper::SG4_THRS ( )

Definition at line 408 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ SG4_THRS() [2/2]

void TMC2240Stepper::SG4_THRS ( uint32_t input)

Definition at line 409 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ sg4_thrs() [1/4]

uint8_t TMC2240Stepper::sg4_thrs ( )

◆ sg4_thrs() [2/4]

uint8_t TMC2240Stepper::sg4_thrs ( )

Definition at line 413 of file TMC2240Stepper.cpp.

◆ sg4_thrs() [3/4]

void TMC2240Stepper::sg4_thrs ( uint8_t B)

◆ sg4_thrs() [4/4]

void TMC2240Stepper::sg4_thrs ( uint8_t B)

Definition at line 414 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ SG_RESULT()

uint32_t TMC2240Stepper::SG_RESULT ( )

Definition at line 71 of file DRV_STATUS.cpp.

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

◆ sgt() [1/2]

int8_t TMC2240Stepper::sgt ( )

Definition at line 69 of file COOLCONF.cpp.

◆ sgt() [2/2]

void TMC2240Stepper::sgt ( int8_t B)

Definition at line 68 of file COOLCONF.cpp.

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

◆ shaft() [1/2]

bool TMC2240Stepper::shaft ( )

Definition at line 143 of file GCONF.cpp.

Here is the call graph for this function:

◆ shaft() [2/2]

void TMC2240Stepper::shaft ( bool B)

Definition at line 127 of file GCONF.cpp.

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

◆ silicon_rv()

uint8_t TMC2240Stepper::silicon_rv ( )

Definition at line 108 of file IOIN.cpp.

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

◆ slaveaddr() [1/2]

uint8_t TMC2240Stepper::slaveaddr ( )
inline

Definition at line 85 of file TMC2240Stepper.h.

Here is the call graph for this function:

◆ slaveaddr() [2/2]

void TMC2240Stepper::slaveaddr ( uint8_t B)
inline

Definition at line 84 of file TMC2240Stepper.h.

Here is the call graph for this function:

◆ SLAVECONF() [1/2]

uint16_t TMC2240Stepper::SLAVECONF ( )
inline

Definition at line 77 of file TMC2240Stepper.h.

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

◆ SLAVECONF() [2/2]

void TMC2240Stepper::SLAVECONF ( uint16_t input)
inline

Definition at line 78 of file TMC2240Stepper.h.

Here is the call graph for this function:

◆ slope_control() [1/2]

uint8_t TMC2240Stepper::slope_control ( )

Definition at line 46 of file DRV_CONF.cpp.

Here is the call graph for this function:

◆ slope_control() [2/2]

void TMC2240Stepper::slope_control ( uint8_t B)

Definition at line 44 of file DRV_CONF.cpp.

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

◆ small_hysteresis() [1/2]

bool TMC2240Stepper::small_hysteresis ( )

Definition at line 152 of file GCONF.cpp.

Here is the call graph for this function:

◆ small_hysteresis() [2/2]

void TMC2240Stepper::small_hysteresis ( bool B)

Definition at line 136 of file GCONF.cpp.

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

◆ stallguard()

bool TMC2240Stepper::stallguard ( )

Definition at line 64 of file DRV_STATUS.cpp.

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

◆ stealth()

bool TMC2240Stepper::stealth ( )

Definition at line 61 of file DRV_STATUS.cpp.

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

◆ step()

bool TMC2240Stepper::step ( )

Definition at line 93 of file IOIN.cpp.

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

◆ stop_enable() [1/2]

bool TMC2240Stepper::stop_enable ( )

Definition at line 153 of file GCONF.cpp.

Here is the call graph for this function:

◆ stop_enable() [2/2]

void TMC2240Stepper::stop_enable ( bool B)

Definition at line 137 of file GCONF.cpp.

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

◆ stst()

bool TMC2240Stepper::stst ( )

Definition at line 72 of file DRV_STATUS.cpp.

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

◆ switchCSpin()

void TMC2240Stepper::switchCSpin ( bool state)
Here is the caller graph for this function:

◆ TBL() [1/2]

uint8_t TMC2240Stepper::TBL ( )

Definition at line 129 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ TBL() [2/2]

void TMC2240Stepper::TBL ( uint8_t B)

Definition at line 113 of file CHOPCONF.cpp.

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

◆ TCOOLTHRS() [1/2]

uint32_t TMC2240Stepper::TCOOLTHRS ( )

Definition at line 394 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ TCOOLTHRS() [2/2]

void TMC2240Stepper::TCOOLTHRS ( uint32_t input)

Definition at line 395 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ test_connection()

uint8_t TMC2240Stepper::test_connection ( )

Definition at line 362 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ THIGH() [1/2]

uint32_t TMC2240Stepper::THIGH ( )

Definition at line 401 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ THIGH() [2/2]

void TMC2240Stepper::THIGH ( uint32_t input)

Definition at line 402 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ toff() [1/2]

uint8_t TMC2240Stepper::toff ( )

Definition at line 123 of file CHOPCONF.cpp.

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

◆ toff() [2/2]

void TMC2240Stepper::toff ( uint8_t B)

Definition at line 107 of file CHOPCONF.cpp.

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

◆ tpfd() [1/2]

uint8_t TMC2240Stepper::tpfd ( )

Definition at line 132 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ tpfd() [2/2]

void TMC2240Stepper::tpfd ( uint8_t B)

Definition at line 116 of file CHOPCONF.cpp.

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

◆ TPOWERDOWN() [1/2]

uint8_t TMC2240Stepper::TPOWERDOWN ( )

Definition at line 372 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ TPOWERDOWN() [2/2]

void TMC2240Stepper::TPOWERDOWN ( uint8_t input)

Definition at line 373 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ TPWMTHRS() [1/2]

uint32_t TMC2240Stepper::TPWMTHRS ( )

Definition at line 379 of file TMC2240Stepper.cpp.

Here is the caller graph for this function:

◆ TPWMTHRS() [2/2]

void TMC2240Stepper::TPWMTHRS ( uint32_t input)

Definition at line 380 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ transfer()

uint8_t TMC2240Stepper::transfer ( const uint8_t data)
protected
Here is the caller graph for this function:

◆ transferEmptyBytes()

void TMC2240Stepper::transferEmptyBytes ( const uint8_t n)
protected

Definition at line 104 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ TSTEP()

uint32_t TMC2240Stepper::TSTEP ( )

Definition at line 385 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ uart_en()

bool TMC2240Stepper::uart_en ( )

Definition at line 99 of file IOIN.cpp.

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

◆ uv_cp()

bool TMC2240Stepper::uv_cp ( )

Definition at line 358 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ version()

uint8_t TMC2240Stepper::version ( )

Definition at line 109 of file IOIN.cpp.

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

◆ vhighchm() [1/2]

bool TMC2240Stepper::vhighchm ( )

Definition at line 131 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ vhighchm() [2/2]

void TMC2240Stepper::vhighchm ( bool B)

Definition at line 115 of file CHOPCONF.cpp.

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

◆ vhighfs() [1/2]

bool TMC2240Stepper::vhighfs ( )

Definition at line 130 of file CHOPCONF.cpp.

Here is the call graph for this function:

◆ vhighfs() [2/2]

void TMC2240Stepper::vhighfs ( bool B)

Definition at line 114 of file CHOPCONF.cpp.

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

◆ vm_uvlo()

bool TMC2240Stepper::vm_uvlo ( )

Definition at line 360 of file TMC2240Stepper.cpp.

Here is the call graph for this function:

◆ write()

void TMC2240Stepper::write ( uint8_t addressByte,
uint32_t config )
protected
Here is the caller graph for this function:

Member Data Documentation

◆ _pinCS

const uint16_t TMC2240Stepper::_pinCS
protected

Definition at line 383 of file TMC2240Stepper.h.

◆ abort_window

uint8_t TMC2240Stepper::abort_window = 5
staticconstexprprotected

Definition at line 376 of file TMC2240Stepper.h.

◆ bytesWritten

uint16_t TMC2240Stepper::bytesWritten = 0

Definition at line 258 of file TMC2240Stepper.h.

◆ chain_length

int8_t TMC2240Stepper::chain_length = 0
staticprotected

TMCStepper library by @teemuatlut TMC2240Stepper.cpp

Definition at line 388 of file TMC2240Stepper.h.

◆ CRCerror

bool TMC2240Stepper::CRCerror = false

Definition at line 259 of file TMC2240Stepper.h.

◆ default_RS

float TMC2240Stepper::default_RS = 0.11
staticconstexprprotected

Definition at line 385 of file TMC2240Stepper.h.

◆ holdMultiplier

float TMC2240Stepper::holdMultiplier = 0.5
protected

Definition at line 380 of file TMC2240Stepper.h.

◆ link_index

int8_t TMC2240Stepper::link_index
protected

Definition at line 387 of file TMC2240Stepper.h.

◆ max_retries

uint8_t TMC2240Stepper::max_retries = 2
staticconstexprprotected

Definition at line 377 of file TMC2240Stepper.h.

◆ replyDelay

uint8_t TMC2240Stepper::replyDelay = 2
staticconstexprprotected

Definition at line 375 of file TMC2240Stepper.h.

◆ Rref

uint32_t TMC2240Stepper::Rref = 12000

('rref', 12000, minval=12000, maxval=60000)

Definition at line 19 of file TMC2240Stepper.h.

◆ spi_speed

uint32_t TMC2240Stepper::spi_speed = 16000000/8
staticprotected

Definition at line 382 of file TMC2240Stepper.h.

◆ sswitch

SSwitch* TMC2240Stepper::sswitch = nullptr
protected

Definition at line 372 of file TMC2240Stepper.h.

◆ status_response

uint8_t TMC2240Stepper::status_response

Definition at line 324 of file TMC2240Stepper.h.

◆ TMC2240_SYNC

uint8_t TMC2240Stepper::TMC2240_SYNC = 0x05
staticconstexprprotected

Definition at line 374 of file TMC2240Stepper.h.

◆ TMC_READ

uint8_t TMC2240Stepper::TMC_READ = 0x00
staticconstexprprotected

Definition at line 370 of file TMC2240Stepper.h.

◆ TMC_SW_SPI

SW_SPIClass* TMC2240Stepper::TMC_SW_SPI = nullptr
protected

Definition at line 384 of file TMC2240Stepper.h.

◆ TMC_WRITE

uint8_t TMC2240Stepper::TMC_WRITE = 0x80
staticprotected

Definition at line 370 of file TMC2240Stepper.h.


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