You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
968 B

  1. #ifndef __INPUT_H__
  2. #define __INPUT_H__
  3. #include "event.h"
  4. /* *********************************************************************** */
  5. #define EVENT_NUM_INPUT_BUTTON 0x00
  6. #define EVENT_NUM_INPUT_DOOR 0x01
  7. #define EVENT_NUM_INPUT_QUAD 0x02
  8. #define EVENT_VALUE_INPUT_QUAD_DEC 0x01
  9. #define EVENT_VALUE_INPUT_QUAD_INC 0x02
  10. #define EVENT_VALUE_INPUT_BUTTON_RELEASED 0x00
  11. #define EVENT_VALUE_INPUT_BUTTON_PRESSED 0x01
  12. #define EVENT_VALUE_INPUT_DOOR_CLOSED 0x00
  13. #define EVENT_VALUE_INPUT_DOOR_OPEN 0x01
  14. /* *********************************************************************** */
  15. void input_init (void);
  16. void input_event_handler (struct event_entry *event);
  17. uint8_t input_get_sleep_mode(void);
  18. /* *********************************************************************** */
  19. #endif /* __INPUT_H__ */