TMCStepper
DRV_CONF.cpp
Go to the documentation of this file.
1 #include "TMCStepper.h"
2 #include "TMC_MACROS.h"
3 
4 #define SET_REG(SETTING) DRV_CONF_register.SETTING = B; write(DRV_CONF_register.address, DRV_CONF_register.sr);
5 #define GET_REG(SETTING) return DRV_CONF_register.SETTING;
6 
7 // W: DRV_CONF
8 uint32_t TMC2160Stepper::DRV_CONF() { return DRV_CONF_register.sr; }
9 void TMC2160Stepper::DRV_CONF(uint32_t input) {
10  DRV_CONF_register.sr = input;
11  write(DRV_CONF_register.address, DRV_CONF_register.sr);
12 }
13 
TMC2160Stepper::bbmtime
uint8_t bbmtime()
Definition: DRV_CONF.cpp:19
TMC2160Stepper::DRV_CONF
uint32_t DRV_CONF()
Definition: DRV_CONF.cpp:8
TMCStepper.h
TMC2160Stepper::otselect
uint8_t otselect()
Definition: DRV_CONF.cpp:21
TMC_MACROS.h
GET_REG
#define GET_REG(SETTING)
Definition: DRV_CONF.cpp:5
SET_REG
#define SET_REG(SETTING)
Definition: DRV_CONF.cpp:4
TMC2160Stepper::bbmclks
uint8_t bbmclks()
Definition: DRV_CONF.cpp:20
TMC2160Stepper::drvstrength
uint8_t drvstrength()
Definition: DRV_CONF.cpp:22
TMC2130Stepper::write
void write(uint8_t addressByte, uint32_t config)
Definition: TMC2130Stepper.cpp:148
TMC2160Stepper::filt_isense
uint8_t filt_isense()
Definition: DRV_CONF.cpp:23