X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fpackets.h;fp=source%2Fnetwork%2Fpackets.h;h=d6efafc666d4cf49d746f27ec3a985654a61ee2b;hb=010d8321e982d1684fcbff5bf6fc2bdec7cb7bae;hp=0000000000000000000000000000000000000000;hpb=6109a2122226e1c71e9cc71e4c21036e99e43601;p=r2c2.git diff --git a/source/network/packets.h b/source/network/packets.h new file mode 100644 index 0000000..d6efafc --- /dev/null +++ b/source/network/packets.h @@ -0,0 +1,43 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2009 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + +#ifndef MARKLINNET_PACKETS_H_ +#define MARKLINNET_PACKETS_H_ + +#include + +namespace Marklin { + +struct TrainInfoPacket +{ + unsigned address; + unsigned loco_type; + std::string name; +}; + +struct TrainSpeedPacket +{ + unsigned address; + unsigned speed; + char reverse; +}; + +struct TrainFunctionPacket +{ + unsigned address; + unsigned functions; +}; + +struct TrainStatusPacket +{ + unsigned address; + std::string status; +}; + +} // namespace Marklin + +#endif