X-Git-Url: http://git.tdb.fi/?p=model-railway-devices.git;a=blobdiff_plain;f=arducontrol%2Fcommands.h;h=64cbe54a22190eb39a310d4fcc0d0241fd091a63;hp=bbd8dc8a15332db37d686f7fa07779839ed16de6;hb=817742862a867673e4cbdb85d274481f7482e1ae;hpb=3c070b8fc92fe0506e29d0c0491038be241f7107 diff --git a/arducontrol/commands.h b/arducontrol/commands.h index bbd8dc8..64cbe54 100644 --- a/arducontrol/commands.h +++ b/arducontrol/commands.h @@ -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