19#define XPT2046_HOR_RES 240
20#define XPT2046_VER_RES 320
21#define XPT2046_MAX_SAMPLES 100
__attribute__((weak))
Weak callback function for window fill completion.
Definition ili9341.c:482
Calibration values for XPT2046.
Definition xpt2046.h:38
float beta
Definition xpt2046.h:40
float alpha
Definition xpt2046.h:39
float delta
Definition xpt2046.h:41
Coordinates structure for XPT2046.
Definition xpt2046.h:49
uint16_t x
Definition xpt2046.h:50
uint16_t y
Definition xpt2046.h:51
Handle structure for XPT2046.
Definition xpt2046.h:59
XPT2046Coordinates_t last_coor
Definition xpt2046.h:62
XPT2046States_t state
Definition xpt2046.h:63
XPT2046CalibrationValues_t y_calib_values
Definition xpt2046.h:61
XPT2046CalibrationValues_t x_calib_values
Definition xpt2046.h:60
void XPT2046_SetCalibrationValues(XPT2046Handle_t *handle, XPT2046CalibrationValues_t *x_calib, XPT2046CalibrationValues_t *y_calib)
Sets the calibration values for the XPT2046 touch controller.
Definition xpt2046.c:259
void XPT2046_ReadRawData(uint16_t *x, uint16_t *y)
Reads raw touch data from the XPT2046.
Definition xpt2046.c:92
uint8_t XPT2046_ReadIRQPin(void)
Reads the IRQ pin state of the XPT2046.
Definition xpt2046.c:39
XPT2046States_t
Touch states for XPT2046.
Definition xpt2046.h:28
@ XPT2046_PRESSED
Definition xpt2046.h:29
@ XPT2046_NOT_PRESSED
Definition xpt2046.h:30
void XPT2046_Calibrate(XPT2046Handle_t *handle)
Calibrates the XPT2046 touch controller.
Definition xpt2046.c:184
void XPT2046_GetCalibrationValues(XPT2046Handle_t *handle, XPT2046CalibrationValues_t *x_calib, XPT2046CalibrationValues_t *y_calib)
Gets the calibration values from the XPT2046 touch controller.
Definition xpt2046.c:275
void XPT2046_CallBack(XPT2046Handle_t *handle) __attribute__((weak))
Callback function for the XPT2046 touch controller.
void XPT2046_ReadData(XPT2046Handle_t *handle)
Reads calibrated touch coordinates from the XPT2046.
Definition xpt2046.c:53
void XPT2046_IRQHandler(XPT2046Handle_t *handle)
Handles touch interrupt for the XPT2046.
Definition xpt2046.c:158
void XPT2046_Test(XPT2046Handle_t *handle)
Tests the XPT2046 touch controller.
Definition xpt2046.c:290