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

Go to the source code of this file.

Macros

#define SET_REG(SETTING)
#define GET_REG(SETTING)

Macro Definition Documentation

◆ GET_REG

#define GET_REG ( SETTING)
Value:
ENCMODE_t r{}; r.sr = ENCMODE(); return r.SETTING;

Definition at line 10 of file ENCMODE.cpp.

◆ SET_REG

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

TMCStepper library by @teemuatlut ENCMODE.cpp - Driver Status TMC5130 (TMC5160, TMC5161)

Definition at line 9 of file ENCMODE.cpp.