Trinamic TMC26X Stepper Driver for Arduino

- Main Page
- Classes
- Files

- File List
- File Members

Defines
TMC26XStepper.cpp File Reference
`#include <WProgram.h>`
`#include <SPI.h>`
`#include "TMC26XStepper.h"`

Go to the source code of this file.

## Defines

#define | DEFAULT_MICROSTEPPING_VALUE 32
#define | DRIVER_CONTROL_REGISTER 0x0ul
#define | CHOPPER_CONFIG_REGISTER 0x80000ul
#define | COOL_STEP_REGISTER 0xA0000ul
#define | STALL_GUARD2_LOAD_MEASURE_REGISTER 0xC0000ul
#define | DRIVER_CONFIG_REGISTER 0xE0000ul
#define | REGISTER_BIT_PATTERN 0xFFFFFul
#define | MICROSTEPPING_PATTERN 0xFul
#define | STEP_INTERPOLATION 0x200ul
#define | DOUBLE_EDGE_STEP 0x100ul
#define | VSENSE 0x40ul
#define | READ_MICROSTEP_POSTION 0x0ul
#define | READ_STALL_GUARD_READING 0x10ul
#define | READ_STALL_GUARD_AND_COOL_STEP 0x20ul
#define | READ_SELECTION_PATTERN 0x30ul
#define | CHOPPER_MODE_STANDARD 0x0ul
#define | CHOPPER_MODE_T_OFF_FAST_DECAY 0x4000ul
#define | T_OFF_PATTERN 0xful
#define | RANDOM_TOFF_TIME 0x2000ul
#define | BLANK_TIMING_PATTERN 0x18000ul
#define | BLANK_TIMING_SHIFT 15
#define | HYSTERESIS_DECREMENT_PATTERN 0x1800ul
#define | HYSTERESIS_DECREMENT_SHIFT 11
#define | HYSTERESIS_LOW_VALUE_PATTERN 0x780ul
#define | HYSTERESIS_LOW_SHIFT 7
#define | HYSTERESIS_START_VALUE_PATTERN 0x78ul
#define | HYSTERESIS_START_VALUE_SHIFT 4
#define | T_OFF_TIMING_PATERN 0xFul
#define | MINIMUM_CURRENT_FOURTH 0x8000ul
#define | CURRENT_DOWN_STEP_SPEED_PATTERN 0x6000ul
#define | SE_MAX_PATTERN 0xF00ul
#define | SE_CURRENT_STEP_WIDTH_PATTERN 0x60ul
#define | SE_MIN_PATTERN 0xful
#define | STALL_GUARD_FILTER_ENABLED 0x10000ul
#define | STALL_GUARD_TRESHHOLD_VALUE_PATTERN 0x17F00ul
#define | CURRENT_SCALING_PATTERN 0x1Ful
#define | STALL_GUARD_CONFIG_PATTERN 0x17F00ul
#define | STALL_GUARD_VALUE_PATTERN 0x7F00ul
#define | STATUS_STALL_GUARD_STATUS 0x1ul
#define | STATUS_OVER_TEMPERATURE_SHUTDOWN 0x2ul
#define | STATUS_OVER_TEMPERATURE_WARNING 0x4ul
#define | STATUS_SHORT_TO_GROUND_A 0x8ul
#define | STATUS_SHORT_TO_GROUND_B 0x10ul
#define | STATUS_OPEN_LOAD_A 0x20ul
#define | STATUS_OPEN_LOAD_B 0x40ul
#define | STATUS_STAND_STILL 0x80ul
#define | READOUT_VALUE_PATTERN 0xFFC00ul
#define | INITIAL_MICROSTEPPING 0x3ul

## Define Documentation

#define BLANK_TIMING_PATTERN 0x18000ul

Definition at line 63 of file TMC26XStepper.cpp.

#define BLANK_TIMING_SHIFT 15

Definition at line 64 of file TMC26XStepper.cpp.

#define CHOPPER_CONFIG_REGISTER 0x80000ul

Definition at line 41 of file TMC26XStepper.cpp.

#define CHOPPER_MODE_STANDARD 0x0ul

Definition at line 59 of file TMC26XStepper.cpp.

#define CHOPPER_MODE_T_OFF_FAST_DECAY 0x4000ul

Definition at line 60 of file TMC26XStepper.cpp.

#define COOL_STEP_REGISTER 0xA0000ul

Definition at line 42 of file TMC26XStepper.cpp.

#define CURRENT_DOWN_STEP_SPEED_PATTERN 0x6000ul

Definition at line 75 of file TMC26XStepper.cpp.

#define CURRENT_SCALING_PATTERN 0x1Ful

Definition at line 83 of file TMC26XStepper.cpp.

#define DEFAULT_MICROSTEPPING_VALUE 32

Definition at line 37 of file TMC26XStepper.cpp.

#define DOUBLE_EDGE_STEP 0x100ul

Definition at line 51 of file TMC26XStepper.cpp.

#define DRIVER_CONFIG_REGISTER 0xE0000ul

Definition at line 44 of file TMC26XStepper.cpp.

#define DRIVER_CONTROL_REGISTER 0x0ul

Definition at line 40 of file TMC26XStepper.cpp.

#define HYSTERESIS_DECREMENT_PATTERN 0x1800ul

Definition at line 65 of file TMC26XStepper.cpp.

#define HYSTERESIS_DECREMENT_SHIFT 11

Definition at line 66 of file TMC26XStepper.cpp.

#define HYSTERESIS_LOW_SHIFT 7

Definition at line 68 of file TMC26XStepper.cpp.

#define HYSTERESIS_LOW_VALUE_PATTERN 0x780ul

Definition at line 67 of file TMC26XStepper.cpp.

#define HYSTERESIS_START_VALUE_PATTERN 0x78ul

Definition at line 69 of file TMC26XStepper.cpp.

#define HYSTERESIS_START_VALUE_SHIFT 4

Definition at line 70 of file TMC26XStepper.cpp.

#define INITIAL_MICROSTEPPING 0x3ul

Definition at line 99 of file TMC26XStepper.cpp.

#define MICROSTEPPING_PATTERN 0xFul

Definition at line 49 of file TMC26XStepper.cpp.

#define MINIMUM_CURRENT_FOURTH 0x8000ul

Definition at line 74 of file TMC26XStepper.cpp.

#define RANDOM_TOFF_TIME 0x2000ul

Definition at line 62 of file TMC26XStepper.cpp.

#define READ_MICROSTEP_POSTION 0x0ul

Definition at line 53 of file TMC26XStepper.cpp.

#define READ_SELECTION_PATTERN 0x30ul

Definition at line 56 of file TMC26XStepper.cpp.

#define READ_STALL_GUARD_AND_COOL_STEP 0x20ul

Definition at line 55 of file TMC26XStepper.cpp.

#define READ_STALL_GUARD_READING 0x10ul

Definition at line 54 of file TMC26XStepper.cpp.

#define READOUT_VALUE_PATTERN 0xFFC00ul

Definition at line 96 of file TMC26XStepper.cpp.

#define REGISTER_BIT_PATTERN 0xFFFFFul

Definition at line 46 of file TMC26XStepper.cpp.

#define SE_CURRENT_STEP_WIDTH_PATTERN 0x60ul

Definition at line 77 of file TMC26XStepper.cpp.

#define SE_MAX_PATTERN 0xF00ul

Definition at line 76 of file TMC26XStepper.cpp.

#define SE_MIN_PATTERN 0xful

Definition at line 78 of file TMC26XStepper.cpp.

#define STALL_GUARD2_LOAD_MEASURE_REGISTER 0xC0000ul

Definition at line 43 of file TMC26XStepper.cpp.

#define STALL_GUARD_CONFIG_PATTERN 0x17F00ul

Definition at line 84 of file TMC26XStepper.cpp.

#define STALL_GUARD_FILTER_ENABLED 0x10000ul

Definition at line 81 of file TMC26XStepper.cpp.

#define STALL_GUARD_TRESHHOLD_VALUE_PATTERN 0x17F00ul

Definition at line 82 of file TMC26XStepper.cpp.

#define STALL_GUARD_VALUE_PATTERN 0x7F00ul

Definition at line 85 of file TMC26XStepper.cpp.

#define STATUS_OPEN_LOAD_A 0x20ul

Definition at line 93 of file TMC26XStepper.cpp.

#define STATUS_OPEN_LOAD_B 0x40ul

Definition at line 94 of file TMC26XStepper.cpp.

#define STATUS_OVER_TEMPERATURE_SHUTDOWN 0x2ul

Definition at line 89 of file TMC26XStepper.cpp.

#define STATUS_OVER_TEMPERATURE_WARNING 0x4ul

Definition at line 90 of file TMC26XStepper.cpp.

#define STATUS_SHORT_TO_GROUND_A 0x8ul

Definition at line 91 of file TMC26XStepper.cpp.

#define STATUS_SHORT_TO_GROUND_B 0x10ul

Definition at line 92 of file TMC26XStepper.cpp.

#define STATUS_STALL_GUARD_STATUS 0x1ul

Definition at line 88 of file TMC26XStepper.cpp.

#define STATUS_STAND_STILL 0x80ul

Definition at line 95 of file TMC26XStepper.cpp.

#define STEP_INTERPOLATION 0x200ul

Definition at line 50 of file TMC26XStepper.cpp.

#define T_OFF_PATTERN 0xful

Definition at line 61 of file TMC26XStepper.cpp.

#define T_OFF_TIMING_PATERN 0xFul

Definition at line 71 of file TMC26XStepper.cpp.

#define VSENSE 0x40ul

Definition at line 52 of file TMC26XStepper.cpp.