Advertisement
harinin

Untitled

Aug 3rd, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * File:   events.h
  3.  * Author: maxL
  4.  *
  5.  * Created on July 28, 2016, 12:36 PM
  6.  */
  7.  
  8. #ifndef EVENTS_H
  9. #define EVENTS_H
  10.  
  11. // A list of your events goes here:
  12.  
  13. typedef enum {
  14.     NO_EVENT,
  15.     ENTERED_LIGHT,
  16.     ENTERED_DARK,
  17.     FRONT_BUMP_DOWN,
  18.     FL_BUMP_DOWN,
  19.     FR_BUMP_DOWN,
  20.     BACK_BUMP_DOWN,
  21.     TIMER_0_EXPIRED
  22. } event_t;
  23.  
  24. // A prototype for the function that handles all the event checkers:
  25. event_t CheckForEvents(void);
  26.  
  27. // prototypes for your event checkers go here:
  28. //event_t CheckForEnteredLight(void);
  29. //event_t CheckForEnteredDark(void);
  30. event_t CheckForOpticEvents(void);
  31. event_t CheckForFrontBumpDown(void);
  32. event_t CheckForFLBumpDown(void);
  33. event_t CheckForFRBumpDown(void);
  34. event_t CheckForBackBumpDown(void);
  35. event_t CheckForTimer0Expired(void);
  36. // etc...
  37.  
  38. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement