169 if((aBufferTS[1] == 0xFF) && (aBufferTS[2] == 0xFF) && (aBufferTS[3] == 0xFF) && (aBufferTS[4] == 0xFF))
198 *X = (((aBufferTS[1] << 8) | aBufferTS[2]) << 12) / 640;
199 *Y = (((aBufferTS[3] << 8) | aBufferTS[4]) << 12) / 480;
void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
uint16_t ts3510_ReadID(uint16_t DeviceAddr)
Read the ts3510 IO Expander device ID.
void ts3510_Init(uint16_t DeviceAddr)
Initialize the ts3510 and configure the needed hardware resources.
void ts3510_Reset(uint16_t DeviceAddr)
Reset the ts3510 by Software.
void ts3510_TS_ClearIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
TS_DrvTypeDef ts3510_ts_drv
#define TS3510_READ_BLOCK_REG
void ts3510_TS_Start(uint16_t DeviceAddr)
Configures the touch Screen Controller (Single point detection)
uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
uint8_t ts3510_TS_ITStatus(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
#define TS3510_SEND_CMD_REG
void ts3510_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y)
Get the touch screen X and Y positions values.
This file contains all the functions prototypes for the ts3510.c IO expander driver.
uint8_t ts3510_TS_DetectTouch(uint16_t DeviceAddr)
Return if there is touch detected or not.
void ts3510_TS_DisableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
void ts3510_TS_EnableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.