funkstuff/input.h

28 lines
968 B
C
Raw Permalink Normal View History

2015-01-10 11:42:36 +01:00
#ifndef __INPUT_H__
#define __INPUT_H__
2017-11-27 21:30:20 +01:00
#include "event.h"
2015-01-10 11:42:36 +01:00
/* *********************************************************************** */
2017-11-27 19:22:55 +01:00
#define EVENT_NUM_INPUT_BUTTON 0x00
#define EVENT_NUM_INPUT_DOOR 0x01
#define EVENT_NUM_INPUT_QUAD 0x02
2015-01-10 11:42:36 +01:00
#define EVENT_VALUE_INPUT_QUAD_DEC 0x01
#define EVENT_VALUE_INPUT_QUAD_INC 0x02
#define EVENT_VALUE_INPUT_BUTTON_RELEASED 0x00
#define EVENT_VALUE_INPUT_BUTTON_PRESSED 0x01
2017-11-27 19:22:55 +01:00
#define EVENT_VALUE_INPUT_DOOR_CLOSED 0x00
#define EVENT_VALUE_INPUT_DOOR_OPEN 0x01
2015-01-10 11:42:36 +01:00
/* *********************************************************************** */
2017-11-27 21:30:20 +01:00
void input_init (void);
void input_event_handler (struct event_entry *event);
uint8_t input_get_sleep_mode(void);
2015-01-10 11:42:36 +01:00
/* *********************************************************************** */
#endif /* __INPUT_H__ */