]> git.tdb.fi Git - model-railway-devices.git/blobdiff - 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
index bbd8dc8a15332db37d686f7fa07779839ed16de6..7e2370a2d8d94abb818803f4d8d000a299221b02 100644 (file)
@@ -5,17 +5,27 @@ enum Command
 {
        POWER_ON = 0x01,
        POWER_OFF = 0x02,
+       READ_POWER_STATE = 0x03,
+       READ_TRACK_CURRENT = 0x08,
+       SET_OVERCURRENT_LIMIT = 0x09,
+       READ_INPUT_VOLTAGE = 0x0A,
        MOTOROLA_SPEED = 0x11,
        MOTOROLA_REVERSE = 0x12,
        MOTOROLA_SPEED_DIRECTION = 0x13,
        MOTOROLA_SPEED_FUNCTION = 0x14,
        MOTOROLA_SOLENOID = 0x15,
+       S88_READ = 0x30,
        COMMAND_OK = 0x80,
        RECEIVE_OVERRUN = 0x81,
        FRAMING_ERROR = 0x82,
        INVALID_COMMAND = 0x83,
        LENGTH_ERROR = 0x84,
-       INVALID_VALUE = 0x85
+       INVALID_VALUE = 0x85,
+       OVERCURRENT = 0xA0,
+       TRACK_CURRENT = 0xC0,
+       INPUT_VOLTAGE = 0xC1,
+       POWER_STATE = 0xC2,
+       S88_DATA = 0xD0
 };
 
 #endif