/* * lampd.h * * Written by Daan Vreeken * Danovitsch@hotmail.com * * Published under the terms of the GNU Public License 2.0 * (or any later version) * */ #include #include #include #include #include #include #include #include #include #include #include #include #include #define Debug( x ) if (WantDebug) { x } //#define Debug( x ) x #define LampPort 4321 enum LampState { Off=0, On, Blink }; #define FlagSet 1 #define FlagGet 2 #define FlagDefault 4 struct SInPacket { unsigned char Cmd; unsigned char LampNr; enum LampState NewState; }; struct SOutPacket { unsigned char LampNr; enum LampState State; int Timeout; };