48 #include "../Common/ts.h" 75 #define TS3510_READ_BLOCK_REG 0x8A 76 #define TS3510_SEND_CMD_REG 0x00 77 #define TS3510_READ_CMD 0x81 78 #define TS3510_WRITE_CMD 0x08 113 uint8_t
IOE_Read(uint8_t addr, uint8_t reg);
114 uint16_t
IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
115 void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
void ts3510_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y)
Get the touch screen X and Y positions values.
void ts3510_TS_EnableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
uint16_t ts3510_ReadID(uint16_t DeviceAddr)
Read the ts3510 IO Expander device ID.
uint8_t ts3510_TS_ITStatus(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
void ts3510_Reset(uint16_t DeviceAddr)
Reset the ts3510 by Software.
void ts3510_TS_Start(uint16_t DeviceAddr)
Configures the touch Screen Controller (Single point detection)
uint8_t ts3510_TS_DetectTouch(uint16_t DeviceAddr)
Return if there is touch detected or not.
void ts3510_Init(uint16_t DeviceAddr)
ts3510 Control functions
uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
TS_DrvTypeDef ts3510_ts_drv
void IOE_Delay(uint32_t delay)
uint8_t IOE_Read(uint8_t addr, uint8_t reg)
void ts3510_TS_ClearIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
void ts3510_TS_DisableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.