Skip to content

Instantly share code, notes, and snippets.

@michaellin
Last active December 1, 2015 04:14
Show Gist options
  • Save michaellin/c136ceb6b85bd83125a2 to your computer and use it in GitHub Desktop.
Save michaellin/c136ceb6b85bd83125a2 to your computer and use it in GitHub Desktop.
/****************************************************************************
Header file for Wrench Service
based on the Gen 2 Events and Services Framework
****************************************************************************/
#ifndef WRENCHSERVICE_H
#define WRENCHSERVICE_H
#include "ES_Types.h"
// typedefs for the states
// State definitions for use with the query function
typedef enum { InitWrenchService, WaitingForStart, Wrench2Position, WrenchInPosition, PipeBurst} WrenchServiceState_t ;
// Public Function Prototypes
bool InitializeWrenchService ( uint8_t Priority );
bool CheckWrenchEvents( void);
bool PostWrenchService( ES_Event ThisEvent );
ES_Event RunWrenchService( ES_Event ThisEvent );
void SetLED_Bin( void);
#endif /* WRENCHSERVICE_H */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment