summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/dev/gt911.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-04 18:25:23 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-04 18:25:23 +0200
commit8775caf20ce7c0a776b9f66c5b287b077c8afcee (patch)
tree81e28ef01a2133384dec1ac522b737757e3e80ef /fw/fe310/eos/dev/gt911.h
parent0e0de4f197bf329fdfed876468d0c61e81021f52 (diff)
driver for lcd: ili9806e and gt911
Diffstat (limited to 'fw/fe310/eos/dev/gt911.h')
-rw-r--r--fw/fe310/eos/dev/gt911.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/fw/fe310/eos/dev/gt911.h b/fw/fe310/eos/dev/gt911.h
new file mode 100644
index 0000000..179652b
--- /dev/null
+++ b/fw/fe310/eos/dev/gt911.h
@@ -0,0 +1,24 @@
+#include <stdint.h>
+
+#define CTP_ETYPE_INTR 1
+
+#define GT911_SIZE_CFG 186
+
+#define GT911_ADDR 0x5d
+
+void eos_gt911_init(void);
+void eos_gt911_intr_enable(void);
+void eos_gt911_intr_disable(void);
+int eos_gt911_intr_enabled(void);
+
+void eos_gt911_reset(void);
+void eos_gt911_sleep(void);
+void eos_gt911_wake(void);
+
+int eos_gt911_cfg_read(uint8_t *cfg_buf);
+int eos_gt911_cfg_write(uint8_t *cfg_buf);
+int eos_gt911_cfg_print(void);
+
+void eos_gt911_set_reg(uint8_t *cfg_buf, uint16_t reg, uint8_t val);
+uint8_t eos_gt911_get_reg(uint8_t *cfg_buf, uint16_t reg);
+int eos_gt911_set_threshold(void); \ No newline at end of file