blob: 2f91646e4a6a74db0c67b7217c1f5bab51126be5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <stdint.h>
#define CTP_ETYPE_INTR 1
#define GT911_SIZE_CFG 186
#define GT911_ADDR 0x5d
int eos_gt911_init(uint8_t wakeup_cause);
void eos_gt911_intr_enable(void);
void eos_gt911_intr_disable(void);
int eos_gt911_intr_enabled(void);
int 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_configure(void);
|