]> git.tdb.fi Git - model-railway-devices.git/blob - arducontrol/commands.h
Add a function and command to find out if power is applied to the output
[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_POWER_STATE = 0x03,
9         READ_TRACK_CURRENT = 0x08,
10         SET_OVERCURRENT_LIMIT = 0x09,
11         READ_INPUT_VOLTAGE = 0x0A,
12         MOTOROLA_SPEED = 0x11,
13         MOTOROLA_REVERSE = 0x12,
14         MOTOROLA_SPEED_DIRECTION = 0x13,
15         MOTOROLA_SPEED_FUNCTION = 0x14,
16         MOTOROLA_SOLENOID = 0x15,
17         S88_READ = 0x30,
18         COMMAND_OK = 0x80,
19         RECEIVE_OVERRUN = 0x81,
20         FRAMING_ERROR = 0x82,
21         INVALID_COMMAND = 0x83,
22         LENGTH_ERROR = 0x84,
23         INVALID_VALUE = 0x85,
24         OVERCURRENT = 0xA0,
25         TRACK_CURRENT = 0xC0,
26         INPUT_VOLTAGE = 0xC1,
27         POWER_STATE = 0xC2,
28         S88_DATA = 0xD0
29 };
30
31 #endif