+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
#ifndef ERROR_H_
#define ERROR_H_
+#include <ostream>
+
namespace Marklin {
enum Error
ERR_UNKNOWN_ERROR=0xFF
};
+std::ostream &operator<<(std::ostream &, const Error &);
+
enum Cmd
{
CMD_LOK=0x80,
CMD_SENSOR_STATUS=0x98,
CMD_SENSOR_REPORT=0x99,
CMD_SENSOR_PARAM_SET=0x9D,
+ CMD_STATUS=0xA2,
CMD_POWER_OFF=0xA6,
CMD_POWER_ON=0xA7,
CMD_NOP=0xC4,
CMD_EVENT_SENSOR=0xCB
};
+std::ostream &operator<<(std::ostream &, const Cmd &);
+
} // namespace Marklin
#endif