X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=arducontrol%2Fcommands.h;fp=arducontrol%2Fcommands.h;h=bbd8dc8a15332db37d686f7fa07779839ed16de6;hb=32dad098c247f7f98b14fcb9c6892dc8f302a8d1;hp=0000000000000000000000000000000000000000;hpb=2658995b11690b4d54409eb066020aba17395680;p=model-railway-devices.git diff --git a/arducontrol/commands.h b/arducontrol/commands.h new file mode 100644 index 0000000..bbd8dc8 --- /dev/null +++ b/arducontrol/commands.h @@ -0,0 +1,21 @@ +#ifndef COMMANDS_H_ +#define COMMANDS_H_ + +enum Command +{ + POWER_ON = 0x01, + POWER_OFF = 0x02, + MOTOROLA_SPEED = 0x11, + MOTOROLA_REVERSE = 0x12, + MOTOROLA_SPEED_DIRECTION = 0x13, + MOTOROLA_SPEED_FUNCTION = 0x14, + MOTOROLA_SOLENOID = 0x15, + COMMAND_OK = 0x80, + RECEIVE_OVERRUN = 0x81, + FRAMING_ERROR = 0x82, + INVALID_COMMAND = 0x83, + LENGTH_ERROR = 0x84, + INVALID_VALUE = 0x85 +}; + +#endif