53 #define d4dtch_cr_touch_ID 1
58 #if (D4D_MK_STR(D4D_LLD_TCH) == d4dtch_cr_touch_ID)
71 static unsigned char D4DTCH_Init_CrTouch(
void);
72 static unsigned char D4DTCH_DeInit_CrTouch(
void);
74 static unsigned char D4DTCH_GetPositionRaw_CrTouch(
unsigned short *TouchPositionX,
75 unsigned short *TouchPositionY);
89 D4DTCH_GetPositionRaw_CrTouch,
90 D4DTCH_GetRawLimits_CrTouch,
124 static unsigned char D4DTCH_Init_CrTouch(
void)
160 #ifdef D4D_CRTCH_ENABLE_TOUCHPENDING
164 #endif // D4D_CRTCH_ENABLE_TOUCHPENDING //
180 static unsigned char D4DTCH_DeInit_CrTouch(
void)
211 static unsigned char D4DTCH_GetPositionRaw_CrTouch(
unsigned short *TouchPositionX,
212 unsigned short *TouchPositionY)
215 static unsigned char last_state = 0;
216 static unsigned short lastX, lastY;
220 #ifdef D4D_CRTCH_ENABLE_TOUCHPENDING
223 *TouchPositionX = lastX;
224 *TouchPositionY = lastY;
227 #endif // D4D_CRTCH_ENABLE_TOUCHPENDING //
238 #if D4DTCH_SWAP_AXES == 0
246 #ifdef D4DTCH_INVERSE_X_INT
247 lastX = D4DTCH_INVERSE_X_INT - lastX;
250 #ifdef D4DTCH_INVERSE_Y_INT
251 lastY = D4DTCH_INVERSE_Y_INT - lastY;
261 *TouchPositionX = lastX;
262 *TouchPositionY = lastY;
266 #endif //(D4D_MK_STR(D4D_LLD_TCH) == d4dtch_cr_touch_ID)
#define D4DTCH_Y_TOUCH_OFFMAX
#define D4D_CRTCH_STATUS2
#define D4D_CRTCH_TOUCHPENDING_SIM_SCGC
unsigned char(* D4DTCHHWCRTOUCH_MultiReadBytes)(unsigned char regAddr, unsigned char *pBuffer, unsigned char cnt)
#define D4D_CRTCH_STATUS2_RTSD_MASK
#define D4DTCH_FULL_SCALE
D4D low level touch screen interface API structure.
#define D4DTCH_Y_TOUCH_MIN
D4D Driver main header file.
#define D4D_CRTCH_STATUS1_RTSRDY_MASK
#define D4D_CRTCH_TOUCHPENDING_PCR
#define D4D_CRTCH_STATUS1
D4D Driver private header file.
#define D4DTCH_X_TOUCH_OFFMAX
D4D driver - cr_touch touch screen driver function header file.
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
D4D low level touch screen limitation structure.
unsigned char(* D4DTCHHWCRTOUCH_Init)(void)
unsigned char(* D4DTCHHWCRTOUCH_DeInit)(void)
#define NULL
Type definition of null pointer.
#define D4DTCH_IIC_ADDRESS
#define D4D_CRTCH_TOUCHPENDING_PCR_MUX
#define D4D_CRTCH_TOUCHPENDING_SIM_SCGC_MASK
#define D4D_CRTCH_GPIO_PDIR
void(* D4DTCHHWCRTOUCH_SetAddress)(unsigned char)
#define D4D_READ16B(x)
Macro for handling endianism - read 16bit - from Big Endian.
#define D4DTCH_X_TOUCH_MIN
#define D4D_CRTCH_TOUCHPENDING_PCR_FLAGS
#define D4D_CRTCH_STATUS1_RTST_MASK
const D4DTCHHWCRTOUCH_FUNCTIONS D4D_LLD_TCH_HW_CRTOUCH
D4D driver - resistive touch screen driver function header file.
#define D4DTCH_IIC_BAUDRATE
#define D4D_CRTCH_TOUCHPENDING_PIN
signed long(* D4DTCHHWCRTOUCH_SetBaudRate)(unsigned long baudRate)