stepRocker Open Source TMCL
1.00
|
Basic type and macro definitions. More...
Go to the source code of this file.
Data Structures | |
struct | TModuleConfig |
Global module settings. More... | |
struct | TMotorConfig |
Motor configuration data. More... | |
struct | TClosedLoopConfig |
struct | TCoolStepConfig |
coolStep configuration data More... | |
Macros | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | SW_TYPE_HIGH 0x04 |
module number (1111) high byte | |
#define | SW_TYPE_LOW 0x57 |
module number (1111) low byte | |
#define | SW_VERSION_HIGH 0x01 |
software version high byte | |
#define | SW_VERSION_LOW 0x00 |
software version low byte | |
#define | N_O_MOTORS 1 |
number of motors supported by this module | |
#define | WHICH_262(a) (a) |
extract TMC262 motor number (for future extensions) | |
#define | DISABLE_DRIVERS() GPIOD_PSOR = BIT2 |
turn off all motor drivers | |
#define | ENABLE_DRIVERS() GPIOD_PCOR = BIT2 |
turn on all motor drivers | |
#define | LED1_ON() GPIOA_PSOR = BIT5 |
turn on LED 1 | |
#define | LED1_OFF() GPIOA_PCOR = BIT5 |
turn off LED 1 | |
#define | LED1_TOGGLE() GPIOA_PTOR = BIT5 |
toggle LED 1 | |
#define | LED2_ON() GPIOE_PSOR = BIT5 |
turn on LED 2 | |
#define | LED2_OFF() GPIOE_PCOR = BIT5 |
turn off LED 2 | |
#define | LED2_TOGGLE() GPIOE_PTOR = BIT5 |
toggle LED 2 | |
#define | SPI_DEV_EEPROM 0x0001 |
SPI device number of the EEPROM. | |
#define | SPI_DEV_TMC43xx_0 0x0101 |
SPI device number of TMC4361. | |
#define | RAMP_TRAPEZ 0 |
trapezoidal ramp | |
#define | RAMP_SSHAPE 1 |
s-shaped ramp | |
Typedefs | |
typedef unsigned char | UCHAR |
8 bits unsigned | |
typedef unsigned short | USHORT |
16 bits unsigned | |
typedef unsigned int | UINT |
32 bits unsigned | |
Basic type and macro definitions.
This file contains basic type and macro definitions needed by all modules of this project.