TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
GCONF.cpp File Reference
#include "../TMCStepper.h"
#include "TMC_MACROS.h"
Include dependency graph for GCONF.cpp:

Go to the source code of this file.

Macros

#define GET_REG(SETTING)
#define SET_REG(SETTING)
#define GET_REG_2208(SETTING)
#define GET_REG_2240(SETTING)

Macro Definition Documentation

◆ GET_REG

#define GET_REG ( SETTING)
Value:
GCONF_t r{}; r.sr = GCONF(); return r.SETTING
uint32_t sr

TMCStepper library by @teemuatlut ENCMODE.cpp - Driver Status TMC2130 (TMC2160, TMC5130, TMC5160, TMC5161), TMC5160 (TMC5161), TMC2208 (TMC2209, TMC2224)

Definition at line 9 of file GCONF.cpp.

◆ GET_REG_2208

#define GET_REG_2208 ( SETTING)
Value:
TMC2208_n::GCONF_t r{}; r.sr = GCONF(); return r.SETTING

Definition at line 83 of file GCONF.cpp.

◆ GET_REG_2240

#define GET_REG_2240 ( SETTING)
Value:
TMC2240_n::GCONF_t r{}; r.sr = GCONF(); return r.SETTING

Definition at line 116 of file GCONF.cpp.

◆ SET_REG

#define SET_REG ( SETTING)
Value:
GCONF_register.SETTING = B; write(GCONF_register.address, GCONF_register.sr)

Definition at line 10 of file GCONF.cpp.