]> git.tdb.fi Git - model-railway-devices.git/blob - arducontrol/commands.h
Add support for S88 feedback modules
[model-railway-devices.git] / arducontrol / commands.h
1 #ifndef COMMANDS_H_
2 #define COMMANDS_H_
3
4 enum Command
5 {
6         POWER_ON = 0x01,
7         POWER_OFF = 0x02,
8         READ_TRACK_CURRENT = 0x08,
9         SET_OVERCURRENT_LIMIT = 0x09,
10         READ_INPUT_VOLTAGE = 0x0A,
11         MOTOROLA_SPEED = 0x11,
12         MOTOROLA_REVERSE = 0x12,
13         MOTOROLA_SPEED_DIRECTION = 0x13,
14         MOTOROLA_SPEED_FUNCTION = 0x14,
15         MOTOROLA_SOLENOID = 0x15,
16         S88_READ = 0x30,
17         COMMAND_OK = 0x80,
18         RECEIVE_OVERRUN = 0x81,
19         FRAMING_ERROR = 0x82,
20         INVALID_COMMAND = 0x83,
21         LENGTH_ERROR = 0x84,
22         INVALID_VALUE = 0x85,
23         OVERCURRENT = 0xA0,
24         TRACK_CURRENT = 0xC0,
25         INPUT_VOLTAGE = 0xC1,
26         S88_DATA = 0xD0
27 };
28
29 #endif