0% found this document useful (0 votes)
59 views1 page

Time

This header file defines elements for a time state machine, including event definitions, state typedefs, and function prototypes. It includes configure and type files for the event framework. States defined are initializing, welcome, waiting for timeouts, defeat, celebrate, and waiting for reset. Functions declared are for initializing with priority, posting events, and running the state machine with events.

Uploaded by

api-385142684
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views1 page

Time

This header file defines elements for a time state machine, including event definitions, state typedefs, and function prototypes. It includes configure and type files for the event framework. States defined are initializing, welcome, waiting for timeouts, defeat, celebrate, and waiting for reset. Functions declared are for initializing with priority, posting events, and running the state machine with events.

Uploaded by

api-385142684
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

/****************************************************************************

Header file for Time State Machine


based on the Gen2 Events and Services Framework

****************************************************************************/

#ifndef Time_H
#define Time_H

// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */

// typedefs for the states


// State definitions for use with the query function
typedef enum
{
InitializingTime, Welcome_Time, WaitForTimeouts, Defeat_Time, Celebrate_Time,
WaitForReset_Time
}TimeState_t;

// Public Function Prototypes

bool InitTime(uint8_t Priority);


bool PostTime(ES_Event ThisEvent);
ES_Event RunTime(ES_Event ThisEvent);

#endif /* Time_H */

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy