TMCStepper
SHORT_CONF.cpp
Go to the documentation of this file.
1 #include "TMCStepper.h"
2 #include "TMC_MACROS.h"
3 
4 #define SET_REG(SETTING) SHORT_CONF_register.SETTING = B; write(SHORT_CONF_register.address, SHORT_CONF_register.sr)
5 #define GET_REG(SETTING) return SHORT_CONF_register.SETTING
6 
7 uint32_t TMC2160Stepper::SHORT_CONF() { return SHORT_CONF_register.sr; }
8 void TMC2160Stepper::SHORT_CONF(uint32_t input) {
9  SHORT_CONF_register.sr = input;
10  write(SHORT_CONF_register.address, SHORT_CONF_register.sr);
11 }
12 
TMC2160Stepper::SHORT_CONF
uint32_t SHORT_CONF()
Definition: SHORT_CONF.cpp:7
TMCStepper.h
TMC2160Stepper::shortdelay
bool shortdelay()
Definition: SHORT_CONF.cpp:20
SET_REG
#define SET_REG(SETTING)
Definition: SHORT_CONF.cpp:4
TMC_MACROS.h
TMC2160Stepper::s2g_level
uint8_t s2g_level()
Definition: SHORT_CONF.cpp:18
GET_REG
#define GET_REG(SETTING)
Definition: SHORT_CONF.cpp:5
TMC2160Stepper::shortfilter
uint8_t shortfilter()
Definition: SHORT_CONF.cpp:19
TMC2130Stepper::write
void write(uint8_t addressByte, uint32_t config)
Definition: TMC2130Stepper.cpp:148
TMC2160Stepper::s2vs_level
uint8_t s2vs_level()
Definition: SHORT_CONF.cpp:17