TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
CHOPCONF.cpp File Reference
#include "../TMCStepper.h"
#include "TMC_MACROS.h"
Include dependency graph for CHOPCONF.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)
#define GET_REG_2660(SETTING)

Macro Definition Documentation

◆ GET_REG

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

TMCStepper library by @teemuatlut CHOPCONF.cpp - CHOPCONF Chopper Configuration TMC2130 (TMC2160, TMC5130, TMC5160, TMC5161), TMC5160, TMC2208 (TMC2209, TMC2224), TMC2660

Definition at line 9 of file CHOPCONF.cpp.

◆ GET_REG_2208

#define GET_REG_2208 ( SETTING)
Value:

Definition at line 68 of file CHOPCONF.cpp.

◆ GET_REG_2240

#define GET_REG_2240 ( SETTING)
Value:

Definition at line 100 of file CHOPCONF.cpp.

◆ GET_REG_2660

#define GET_REG_2660 ( SETTING)
Value:
return CHOPCONF_register.SETTING;

Definition at line 142 of file CHOPCONF.cpp.

◆ SET_REG

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

Definition at line 10 of file CHOPCONF.cpp.