stepRocker servo Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Data Structures | Macros | Typedefs
stepRocker.h File Reference

Basic type and macro definitions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TModuleConfig
 Global module settings. More...
 
struct  TMotorConfig
 Motor configuration data. More...
 
struct  TCoolStepConfig
 coolStep configuration data More...
 

Macros

#define TRUE   1
 
#define FALSE   0
 
#define SW_TYPE_HIGH   0x04
 module number (1110) high byte
 
#define SW_TYPE_LOW   0x56
 module number (1110) 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 MOTOR_NUMBER(a)   (a)
 extract TMC429 motor number (for future extensions)
 
#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_TMC429   0x0101
 SPI device number of TMC429.
 
#define SPI_DEV_TMC262   0x0102
 SPI device number of TMC262.
 

Typedefs

typedef unsigned char UCHAR
 8 bits unsigned
 
typedef unsigned short USHORT
 16 bits unsigned
 
typedef unsigned int UINT
 32 bits unsigned
 

Detailed Description

Basic type and macro definitions.

Author
Trinamic Motion Control GmbH & Co KG
Version
2.20

This file contains basic type and macro definitions needed by all modules of this project.