summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_touch_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eve/eve_touch_engine.h')
-rw-r--r--fw/fe310/eos/eve/eve_touch_engine.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/fw/fe310/eos/eve/eve_touch_engine.h b/fw/fe310/eos/eve/eve_touch_engine.h
index 3a7508f..8eb7333 100644
--- a/fw/fe310/eos/eve/eve_touch_engine.h
+++ b/fw/fe310/eos/eve/eve_touch_engine.h
@@ -1,9 +1,20 @@
#include <stdint.h>
-void eve_touch_init_engine(void);
+#define EVE_TOUCH_ENGINE_HOST 0x4000
+#define EVE_TOUCH_ENGINE_FOCALTECH 0x0380
+#define EVE_TOUCH_ENGINE_GOODIX 0x05D0
+
+#define EVE_TOUCH_ENGINE_MASK 0x4FF0
+
+void eve_touch_init_engine(uint16_t engine);
+uint16_t eve_touch_get_engine(void);
+void eve_touch_set_engine(uint16_t engine);
+void eve_touch_intr_enable(void);
+void eve_touch_intr_disable(void);
void eve_touch_start(void);
void eve_touch_stop(void);
+int eve_touch_get_extended(void);
void eve_touch_set_extended(int extended);
void eve_touch_get_matrix(uint32_t *touch_matrix);
void eve_touch_set_matrix(const uint32_t *touch_matrix);