TMCStepper
SMARTEN.cpp
Go to the documentation of this file.
1 #include "TMCStepper.h"
2 #include "TMC_MACROS.h"
3 
4 #define SET_REG(SETTING) SMARTEN_register.SETTING = B; write(SMARTEN_register.address, SMARTEN_register.sr)
5 #define GET_REG(SETTING) return SMARTEN_register.SETTING
6 
7 uint32_t TMC2660Stepper::SMARTEN() { return SMARTEN_register.sr; }
8 void TMC2660Stepper::SMARTEN(uint32_t data) {
9  SMARTEN_register.sr = data;
10  write(SMARTEN_register.address, SMARTEN_register.sr);
11 }
12 
14 void TMC2660Stepper::sedn(uint8_t B) { SET_REG(sedn); }
15 void TMC2660Stepper::semax(uint8_t B) { SET_REG(semax); }
16 void TMC2660Stepper::seup(uint8_t B) { SET_REG(seup); }
17 void TMC2660Stepper::semin(uint8_t B) { SET_REG(semin); }
18 
GET_REG
#define GET_REG(SETTING)
Definition: SMARTEN.cpp:5
TMC2660Stepper::semax
uint8_t semax()
Definition: SMARTEN.cpp:21
TMC2660Stepper::sedn
uint8_t sedn()
Definition: SMARTEN.cpp:20
TMCStepper.h
TMC_MACROS.h
SET_REG
#define SET_REG(SETTING)
Definition: SMARTEN.cpp:4
TMC2660Stepper::write
void write(uint8_t addressByte, uint32_t config)
Definition: TMC2660Stepper.cpp:54
TMC2660Stepper::SMARTEN
uint32_t SMARTEN()
Definition: SMARTEN.cpp:7
TMC2660Stepper::seup
uint8_t seup()
Definition: SMARTEN.cpp:22
TMC2660Stepper::semin
uint8_t semin()
Definition: SMARTEN.cpp:23
TMC2660Stepper::seimin
bool seimin()
Definition: SMARTEN.cpp:19