based on the Gen 2 Events and Services Framework ****************************************************************************/ #ifndef LightsService_H #define LightsService_H // Event #include #include #include #include
Definitions "ES_Configure.h" /* gets us event definitions */ "ES_Types.h" /* gets bool type for returns */ "ES_Events.h" "WeatherService.h" //to access the public variables
// typedefs for the states
// State definitions for use with the query function typedef enum {Idle, Dawn, SunRising, SunSetting, Dusk, Night} LightsState_t ; // Public Function Prototypes bool InitLightsService ( uint8_t Priority ); bool PostLightsService( ES_Event ThisEvent ); ES_Event RunLightsService( ES_Event ThisEvent ); #endif /* LightsService_H */