#ifndef _CTP_H #define _CTP_H // #if (CTP_SELECT == CTP_AXS5106) #include "axs5106/axs5106.h" // #endif // #if (CTP_SELECT == CTP_SPT5113C) #include "spt5113/spt5113c.h" // #endif void ctp_init(void); void ctp_irq_init(void); void ctp_exit(void); void ctp_int_isr(void); bool ctp_get_cur_point(s32 *sx, s32 *sy, s32 *x, s32 *y); bool ctp_get_dxy(s32 *dx, s32 *dy); point_t ctp_get_sxy(void); point_t ctp_get_last_dxy(void); point_t ctp_get_rxy(widget_t *widget); void ctp_iic_readkick(void *buf, u8 addr, int len); bool ctp_iic_read(void *buf, u8 addr, int len); bool ctp_cst8x_init(void); void ctp_cst8x_readkick(void); bool ctp_cst8x_get_point(s32 *x, s32 *y); bool ctp_chsc6x_init(void); void ctp_chsc6x_readkick(void); bool ctp_chsc6x_get_point(s32 *x, s32 *y); bool ctp_get_kick_status(void); int get_ctp_chip_ID(void); void set_ctp_chip_ID(int id); #endif