Skip to content

Instantly share code, notes, and snippets.

@michaellin
Created December 1, 2015 03:58
Show Gist options
  • Save michaellin/f937bafbf9ff73760416 to your computer and use it in GitHub Desktop.
Save michaellin/f937bafbf9ff73760416 to your computer and use it in GitHub Desktop.
/****************************************************************************
Header file
PipeSegment.h
Author: Margaret Coad
Date: 11/10/15
****************************************************************************/
#ifndef PipeSegment_H
#define PipeSegment_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 {BothPipesIn, Pipe1Out, Pipe2Out, InCelebration} PipeSegmentState_t ;
// Public Function Prototypes
bool InitPipeSegment ( uint8_t Priority );
bool PostPipeSegment( ES_Event ThisEvent );
ES_Event RunPipeSegment( ES_Event ThisEvent );
#endif /* PipeSegment_H */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment