summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-25 04:02:34 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-25 04:02:34 +0100
commitade4905ef785005347718ce612c245f7fa4dad70 (patch)
treeab69e156c669821369ced918b6a698b15b394251 /code/fe310/eos/eve.h
parent08d725acb1638106bab46e29be8496b5d6db1cd3 (diff)
eve touch driver added; text box updated;
Diffstat (limited to 'code/fe310/eos/eve.h')
-rw-r--r--code/fe310/eos/eve.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/code/fe310/eos/eve.h b/code/fe310/eos/eve.h
index 1c837f5..bf6c4e8 100644
--- a/code/fe310/eos/eve.h
+++ b/code/fe310/eos/eve.h
@@ -2,6 +2,16 @@
#include "eve_def.h"
+typedef struct EVETag {
+ uint16_t x;
+ uint16_t y;
+ uint8_t value;
+ uint8_t value_prev;
+ char t;
+} EVETag;
+
+typedef void (*eos_eve_fptr_t) (uint8_t, int);
+
void eos_eve_command(uint8_t command, uint8_t parameter);
uint8_t eos_eve_read8(uint32_t addr);
@@ -12,15 +22,12 @@ void eos_eve_write16(uint32_t addr, uint16_t data);
void eos_eve_write32(uint32_t addr, uint32_t data);
void eos_eve_active(void);
-void eos_eve_standby(void);
-void eos_eve_sleep(void);
-void eos_eve_reset(void);
void eos_eve_brightness(uint8_t b);
-void eos_eve_dl_start(uint16_t offset);
+void eos_eve_dl_start(uint32_t addr);
void eos_eve_dl_write(uint32_t dl);
void eos_eve_dl_swap(void);
-uint16_t eos_eve_dl_offset(void);
+uint32_t eos_eve_dl_addr(void);
void eos_eve_cmd(uint32_t cmd, const char *fmt, ...);
uint32_t eos_eve_cmd_result(uint16_t offset);
@@ -31,4 +38,5 @@ void eos_eve_cmd_burst_start(void);
void eos_eve_cmd_burst_end(void);
int eos_eve_init(void);
-
+void eos_eve_set_renderer(eos_eve_fptr_t renderer);
+EVETag *eos_eve_tag(void); \ No newline at end of file