]> 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 eae919cee32b0a9778bc4663542248e01ecbd205..7e2370a2d8d94abb818803f4d8d000a299221b02 100644 (file)
@@ -5,6 +5,7 @@ enum Command
 {
        POWER_ON = 0x01,
        POWER_OFF = 0x02,
+       READ_POWER_STATE = 0x03,
        READ_TRACK_CURRENT = 0x08,
        SET_OVERCURRENT_LIMIT = 0x09,
        READ_INPUT_VOLTAGE = 0x0A,
@@ -23,6 +24,7 @@ enum Command
        OVERCURRENT = 0xA0,
        TRACK_CURRENT = 0xC0,
        INPUT_VOLTAGE = 0xC1,
+       POWER_STATE = 0xC2,
        S88_DATA = 0xD0
 };