diff options
author | Uros Majstorovic <majstor@majstor.org> | 2025-02-13 18:38:59 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2025-02-13 18:38:59 +0100 |
commit | 2d238f621b57a10dd262be124e0771ba1826347a (patch) | |
tree | 7f5e04e560e63af8b1b046f5f532aae24d060258 /fw/fe310/eos/dev/drv/gt911.h | |
parent | b74fe91ca04484567b10bb7f3136d39d5e2363d8 (diff) |
moved other drivers to drv/
Diffstat (limited to 'fw/fe310/eos/dev/drv/gt911.h')
-rw-r--r-- | fw/fe310/eos/dev/drv/gt911.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/fw/fe310/eos/dev/drv/gt911.h b/fw/fe310/eos/dev/drv/gt911.h new file mode 100644 index 0000000..46f8132 --- /dev/null +++ b/fw/fe310/eos/dev/drv/gt911.h @@ -0,0 +1,24 @@ +#include <stdint.h> + +#define GT911_ADDR 0x5d + +#define GT911_SIZE_CFG 186 + +#define GT911_SIZE_PBUF 8 +#define GT911_MAX_POINTS 5 + +void eos_gt911_reset(void); +int 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_configure(void); + +int eos_gt911_set_status(uint8_t status); +int eos_gt911_get_status(uint8_t *status); +int eos_gt911_get_points(int num_points, uint8_t *points);
\ No newline at end of file |