STM32F429I-Discovery BSP User Manual: STM32F429I DISCOVERY TS Exported Functions

STM32F429I-Discovery BSP Driver

STM32F429I-Discovery BSP User Manual
STM32F429I DISCOVERY TS Exported Functions

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..).
void BSP_TS_GetState (TS_StateTypeDef *TsState)
 Returns status and positions of the touch screen.
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_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:
Interruptstatus.

Definition at line 147 of file stm32f429i_discovery_ts.c.

References TS_I2C_ADDRESS, and TsDrv.

Generated on Fri Feb 17 2017 12:10:39 for STM32F429I-Discovery BSP User Manual by   doxygen 1.7.6.1