STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
exc7200.h
Go to the documentation of this file.
1 
39 /* Define to prevent recursive inclusion -------------------------------------*/
40 #ifndef __EXC7200_H
41 #define __EXC7200_H
42 
43 #ifdef __cplusplus
44  extern "C" {
45 #endif
46 
47 /* Includes ------------------------------------------------------------------*/
48 #include "../Common/ts.h"
49 
62 /* Exported types ------------------------------------------------------------*/
63 
68 /* Exported constants --------------------------------------------------------*/
69 
74 /* */
75 #define EXC7200_READ_CMD 0x09
76 
81 /* Exported macro ------------------------------------------------------------*/
82 
87 /* Exported functions --------------------------------------------------------*/
88 
96 void exc7200_Init(uint16_t DeviceAddr);
97 void exc7200_Reset(uint16_t DeviceAddr);
98 uint16_t exc7200_ReadID(uint16_t DeviceAddr);
99 void exc7200_TS_Start(uint16_t DeviceAddr);
100 uint8_t exc7200_TS_DetectTouch(uint16_t DeviceAddr);
101 void exc7200_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y);
102 void exc7200_TS_EnableIT(uint16_t DeviceAddr);
103 void exc7200_TS_DisableIT(uint16_t DeviceAddr);
104 uint8_t exc7200_TS_ITStatus (uint16_t DeviceAddr);
105 void exc7200_TS_ClearIT (uint16_t DeviceAddr);
106 
107 void IOE_Init(void);
108 void IOE_Delay(uint32_t delay);
109 uint8_t IOE_Read(uint8_t addr, uint8_t reg);
110 uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
111 void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
112 
113 /* Touch screen driver structure */
115 
116 #ifdef __cplusplus
117 }
118 #endif
119 #endif /* __EXC7200_H */
120 
121 
137 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
void exc7200_TS_EnableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: exc7200.c:195
void exc7200_TS_Start(uint16_t DeviceAddr)
Configures the touch Screen Controller (Single point detection)
Definition: exc7200.c:150
uint16_t exc7200_ReadID(uint16_t DeviceAddr)
Read the exc7200 IO Expander device ID.
Definition: exc7200.c:140
void exc7200_TS_DisableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: exc7200.c:204
void IOE_Delay(uint32_t delay)
uint8_t exc7200_TS_DetectTouch(uint16_t DeviceAddr)
Return if there is touch detected or not.
Definition: exc7200.c:159
void exc7200_Init(uint16_t DeviceAddr)
exc7200 Control functions
Definition: exc7200.c:118
void exc7200_Reset(uint16_t DeviceAddr)
Reset the exc7200 by Software.
Definition: exc7200.c:130
uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
uint8_t exc7200_TS_ITStatus(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: exc7200.c:213
uint8_t IOE_Read(uint8_t addr, uint8_t reg)
void exc7200_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y)
Get the touch screen X and Y positions values.
Definition: exc7200.c:180
void exc7200_TS_ClearIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: exc7200.c:223
void IOE_Init(void)
TS_DrvTypeDef exc7200_ts_drv
Definition: exc7200.c:79