X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=arducontrol%2Fcommands.h;h=7e2370a2d8d94abb818803f4d8d000a299221b02;hb=9106943c465894bd1a8862b0a6d7ffdd89f8b643;hp=bbd8dc8a15332db37d686f7fa07779839ed16de6;hpb=32dad098c247f7f98b14fcb9c6892dc8f302a8d1;p=model-railway-devices.git diff --git a/arducontrol/commands.h b/arducontrol/commands.h index bbd8dc8..7e2370a 100644 --- a/arducontrol/commands.h +++ b/arducontrol/commands.h @@ -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