TMCStepper
SW_MODE.cpp File Reference
#include "TMCStepper.h"
#include "TMC_MACROS.h"
+ Include dependency graph for SW_MODE.cpp:

Go to the source code of this file.

Macros

#define SET_REG(SETTING)   SW_MODE_register.SETTING = B; write(SW_MODE_register.address, SW_MODE_register.sr)
 
#define GET_REG(SETTING)   SW_MODE_t r{0}; r.sr = SW_MODE(); return r.SETTING
 

Macro Definition Documentation

◆ GET_REG

#define GET_REG (   SETTING)    SW_MODE_t r{0}; r.sr = SW_MODE(); return r.SETTING

Definition at line 5 of file SW_MODE.cpp.

◆ SET_REG

#define SET_REG (   SETTING)    SW_MODE_register.SETTING = B; write(SW_MODE_register.address, SW_MODE_register.sr)

Definition at line 4 of file SW_MODE.cpp.