STM32F429I-Discovery BSP User Manual
|
Functions | |
uint8_t | BSP_TS_Init (uint16_t XSize, uint16_t YSize) |
Initializes and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, clocks..). | |
uint8_t | BSP_TS_ITConfig (void) |
Configures and enables the touch screen interrupts. | |
uint8_t | BSP_TS_ITGetStatus (void) |
Gets the TS IT status. | |
void | BSP_TS_GetState (TS_StateTypeDef *TsState) |
Returns status and positions of the touch screen. | |
void | BSP_TS_ITClear (void) |
Clears all touch screen interrupts. |
Function Documentation
void BSP_TS_GetState | ( | TS_StateTypeDef * | TsState | ) |
Returns status and positions of the touch screen.
- Parameters:
-
TsState,: Pointer to touch screen current state structure
Definition at line 157 of file stm32f429i_discovery_ts.c.
References TS_StateTypeDef::TouchDetected, TS_I2C_ADDRESS, TsDrv, TsXBoundary, TsYBoundary, TS_StateTypeDef::X, and TS_StateTypeDef::Y.
uint8_t BSP_TS_Init | ( | uint16_t | XSize, |
uint16_t | YSize | ||
) |
Initializes and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, clocks..).
- Parameters:
-
XSize,: The maximum X size of the TS area on LCD YSize,: The maximum Y size of the TS area on LCD
- Return values:
-
TS_OK,: if all initializations are OK. Other value if error.
Definition at line 104 of file stm32f429i_discovery_ts.c.
References TS_ERROR, TS_I2C_ADDRESS, TS_OK, TsDrv, TsXBoundary, and TsYBoundary.
void BSP_TS_ITClear | ( | void | ) |
Clears all touch screen interrupts.
Definition at line 233 of file stm32f429i_discovery_ts.c.
References TS_I2C_ADDRESS, and TsDrv.
uint8_t BSP_TS_ITConfig | ( | void | ) |
Configures and enables the touch screen interrupts.
- Return values:
-
TS_OK,: if ITconfig is OK. Other value if error.
Definition at line 135 of file stm32f429i_discovery_ts.c.
References TS_I2C_ADDRESS, TS_OK, and TsDrv.
uint8_t BSP_TS_ITGetStatus | ( | void | ) |
Gets the TS IT status.
- Return values:
-
Interrupt status.
Definition at line 147 of file stm32f429i_discovery_ts.c.
References TS_I2C_ADDRESS, and TsDrv.
Generated on Wed Jan 13 2016 13:22:14 for STM32F429I-Discovery BSP User Manual by 1.7.6.1