36 #define TCS_UART_ERROR 2
40 #define TCS_USB_ERROR 6
49 #define TMCL_GetVersion 136
50 #define TMCL_Boot 0xf2
51 #define TMCL_SoftwareReset 0xff
64 #define UNIT_MODE_INTERNAL 0
65 #define UNIT_MODE_PPS 1
69 #define REPLY_CHKERR 1
70 #define REPLY_INVALID_CMD 2
71 #define REPLY_WRONG_TYPE 3
72 #define REPLY_INVALID_VALUE 4
73 #define REPLY_EEPROM_LOCKED 5
74 #define REPLY_CMD_NOT_AVAILABLE 6
75 #define REPLY_CMD_LOAD_ERROR 7
76 #define REPLY_WRITE_PROTECTED 8
77 #define REPLY_MAX_EXCEEDED 9
void ProcessCommand(void)
Fetch and execute TMCL commands.
Definition: Commands.c:198
UCHAR Status
status code
Definition: Commands.h:100
TMCL reply.
Definition: Commands.h:98
UCHAR Opcode
opcode of executed command
Definition: Commands.h:101
TMCL command.
Definition: Commands.h:85
UCHAR Opcode
command opcode
Definition: Commands.h:87
void InitTMCL(void)
Initialize TMCL interpreter.
Definition: Commands.c:158
long Int32
value parameter as 32 bit integer
Definition: Commands.h:92
unsigned char UCHAR
8 bits unsigned
Definition: stepRocker.h:31
UCHAR Motor
motor/bank parameter
Definition: Commands.h:89
UCHAR Type
type parameter
Definition: Commands.h:88
long Int32
reply value as 32 bit integer
Definition: Commands.h:104