X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=arducontrol%2Fcommands.h;h=eae919cee32b0a9778bc4663542248e01ecbd205;hb=3bbca0dcce53ff9e2cdaa3d39ae18afcbf627f9d;hp=bbd8dc8a15332db37d686f7fa07779839ed16de6;hpb=32dad098c247f7f98b14fcb9c6892dc8f302a8d1;p=model-railway-devices.git diff --git a/arducontrol/commands.h b/arducontrol/commands.h index bbd8dc8..eae919c 100644 --- a/arducontrol/commands.h +++ b/arducontrol/commands.h @@ -5,17 +5,25 @@ enum Command { POWER_ON = 0x01, POWER_OFF = 0x02, + 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, + S88_DATA = 0xD0 }; #endif