blob: d04d1c01191d66caf82e73f613d9c58ffdd8ae2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// These are our query commands from the host
#define HOST_CMD_VERSION 0
#define HOST_CMD_INIT 1
#define HOST_CMD_GET_BUFFER_SIZE 2
#define HOST_CMD_CLEAR_BUFFER 3
#define HOST_CMD_GET_POSITION 4
#define HOST_CMD_GET_RANGE 5
#define HOST_CMD_SET_RANGE 6
#define HOST_CMD_ABORT 7
#define HOST_CMD_PAUSE 8
#define HOST_CMD_PROBE 9
#define HOST_CMD_TOOL_QUERY 10
// These are our bufferable commands from the host
#define HOST_CMD_QUEUE_POINT_INC 128
#define HOST_CMD_QUEUE_POINT_ABS 129
#define HOST_CMD_SET_POSITION 130
#define HOST_CMD_FIND_AXES_MINIMUM 131
#define HOST_CMD_FIND_AXES_MAXIMUM 132
#define HOST_CMD_DELAY 133
#define HOST_CMD_CHANGE_TOOL 134
#define HOST_CMD_WAIT_FOR_TOOL 135
#define HOST_CMD_TOOL_COMMAND 136
// These are our query commands from the host
#define SLAVE_CMD_VERSION 0
#define SLAVE_CMD_INIT 1
#define SLAVE_CMD_GET_TEMP 2
#define SLAVE_CMD_SET_TEMP 3
#define SLAVE_CMD_SET_MOTOR_1_PWM 4
#define SLAVE_CMD_SET_MOTOR_2_PWM 5
#define SLAVE_CMD_SET_MOTOR_1_RPM 6
#define SLAVE_CMD_SET_MOTOR_2_RPM 7
#define SLAVE_CMD_SET_MOTOR_1_DIR 8
#define SLAVE_CMD_SET_MOTOR_2_DIR 9
#define SLAVE_CMD_TOGGLE_MOTOR_1 10
#define SLAVE_CMD_TOGGLE_MOTOR_2 11
#define SLAVE_CMD_TOGGLE_FAN 12
#define SLAVE_CMD_TOGGLE_VALVE 13
#define SLAVE_CMD_SET_SERVO_1_POS 14
#define SLAVE_CMD_SET_SERVO_2_POS 15
#define SLAVE_CMD_FILAMENT_STATUS 16
#define SLAVE_CMD_GET_MOTOR_1_PWM 17
#define SLAVE_CMD_GET_MOTOR_2_PWM 18
#define SLAVE_CMD_GET_MOTOR_1_RPM 19
#define SLAVE_CMD_GET_MOTOR_2_RPM 20
#define SLAVE_CMD_SELECT_TOOL 21
#define SLAVE_CMD_IS_TOOL_READY 22
|