]> git.tdb.fi Git - model-railway-devices.git/blobdiff - arducontrol/commands.h
Implement current and voltage monitoring
[model-railway-devices.git] / arducontrol / commands.h
index bbd8dc8a15332db37d686f7fa07779839ed16de6..64cbe54a22190eb39a310d4fcc0d0241fd091a63 100644 (file)
@@ -5,6 +5,9 @@ enum Command
 {
        POWER_ON = 0x01,
        POWER_OFF = 0x02,
+       READ_TRACK_CURRENT = 0x03,
+       SET_OVERCURRENT_LIMIT = 0x04,
+       READ_INPUT_VOLTAGE = 0x05,
        MOTOROLA_SPEED = 0x11,
        MOTOROLA_REVERSE = 0x12,
        MOTOROLA_SPEED_DIRECTION = 0x13,
@@ -15,7 +18,10 @@ enum Command
        FRAMING_ERROR = 0x82,
        INVALID_COMMAND = 0x83,
        LENGTH_ERROR = 0x84,
-       INVALID_VALUE = 0x85
+       INVALID_VALUE = 0x85,
+       OVERCURRENT = 0xA0,
+       TRACK_CURRENT = 0xC0,
+       INPUT_VOLTAGE = 0xC1
 };
 
 #endif