1 /****************************************************************************
  2  Template header file for Hierarchical Sate Machines AKA StateCharts
  3 
  4  ****************************************************************************/
  5 
  6 #ifndef FiringSM_H
  7 #define FiringSM_H
  8 
  9 // Event Definitions
 10 #include "SMEVENTS.h"
 11 #include "Gun.h"
 12 
 13 // State definitions for use with the query function
 14 typedef enum { FIRING_ACTIVE, FIRING_IDLE } FiringState ;
 15 
 16 // Public Function Prototypes
 17 
 18 Event_t RunFiringSM( Event_t CurrentEvent );
 19 void StartFiringSM ( void );
 20 FiringState QueryFiringSM ( void );
 21 char QueryFireFlag ( void );
 22 
 23 
 24 #endif /*MW_MagControl_H */
 25