X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fconstants.h;h=f68737dff6f60cf02ad6998691a72a029a3f5e2f;hb=ae0600f7c3df5b6ef46992b1423888dd0e9a5026;hp=2db75c2479f60d4a0c8fa3e39d3432d47ae3e19d;hpb=6c61179fe09af2f5366d50f10aadbf5f83438087;p=r2c2.git diff --git a/source/libmarklin/constants.h b/source/libmarklin/constants.h index 2db75c2..f68737d 100644 --- a/source/libmarklin/constants.h +++ b/source/libmarklin/constants.h @@ -1,6 +1,15 @@ +/* $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 + namespace Marklin { enum Error @@ -24,6 +33,8 @@ enum Error ERR_UNKNOWN_ERROR=0xFF }; +std::ostream &operator<<(std::ostream &, const Error &); + enum Cmd { CMD_LOK=0x80, @@ -38,6 +49,7 @@ enum Cmd 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, @@ -47,6 +59,8 @@ enum Cmd CMD_EVENT_SENSOR=0xCB }; +std::ostream &operator<<(std::ostream &, const Cmd &); + } // namespace Marklin #endif