blob: 6eb0e22edc7b1958bf7f3c43c4d712fa932ca366 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#ifndef _COMMANDS_H_
#define _COMMANDS_H_
/**
* Sanguino 3rd Generation Firmware (S3G)
*
* Specification for this protocol is located at:
* http://docs.google.com/Doc?id=dd5prwmp_14ggw37mfp
*
* License: GPLv2
* Authors: Marius Kintel, Adam Mayer, and Zach Hoeken
*/
/****************************
*** WARNING ***
****************************
* These values here are also used in the replicatorG driver.
* If you modify anything here, please ensure that it is updated
* in the Sanguino3GDriver.java file at:
* https://replicatorg.googlecode.com/svn/trunk/src/replicatorg/app/drivers
*/
// 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
#define HOST_CMD_IS_FINISHED 11
// These are our bufferable commands from the host
// #define HOST_CMD_QUEUE_POINT_INC 128 // deprecated
#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
#define HOST_CMD_ENABLE_AXES 137
// 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
#endif // _COMMANDS_H_
|