STM32756G_EVAL BSP User Manual: STM32756G_EVAL_TS_Private_Functions

STM32756G EVAL BSP Drivers

STM32756G_EVAL BSP User Manual
STM32756G_EVAL_TS_Private_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..).
uint8_t BSP_TS_DeInit (void)
 DeInitializes the TouchScreen.
uint8_t BSP_TS_ITConfig (void)
 Configures and enables the touch screen interrupts.
uint8_t BSP_TS_ITGetStatus (void)
 Gets the touch screen interrupt status.
uint8_t BSP_TS_GetState (TS_StateTypeDef *TS_State)
 Returns status and positions of the touch screen.
void BSP_TS_ITClear (void)
 Clears all touch screen interrupts.

Function Documentation

uint8_t BSP_TS_DeInit ( void  )

DeInitializes the TouchScreen.

Return values:
TSstate

Definition at line 188 of file stm32756g_eval_ts.c.

References TS_OK.

uint8_t BSP_TS_GetState ( TS_StateTypeDef TS_State)

Returns status and positions of the touch screen.

Parameters:
TS_State,:Pointer to touch screen current state structure
Return values:
TS_OKif all initializations are OK. Other value if error.

Definition at line 227 of file stm32756g_eval_ts.c.

References EXC7200_I2C_ADDRESS, I2cAddress, TS_StateTypeDef::TouchDetected, TS_OK, TS_SWAP_X, TS_SWAP_XY, TS_SWAP_Y, tsDriver, tsOrientation, 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,:Maximum X size of the TS area on LCD ySize: Maximum Y size of the TS area on LCD
Return values:
TS_OKif all initializations are OK. Other value if error.

Definition at line 142 of file stm32756g_eval_ts.c.

References EXC7200_I2C_ADDRESS, I2cAddress, TS3510_I2C_ADDRESS, TS_I2C_ADDRESS, TS_OK, TS_SWAP_NONE, TS_SWAP_Y, tsDriver, tsOrientation, tsXBoundary, and tsYBoundary.

void BSP_TS_ITClear ( void  )

Clears all touch screen interrupts.

Return values:
None

Definition at line 283 of file stm32756g_eval_ts.c.

References BSP_IO_ITClear(), I2cAddress, and tsDriver.

uint8_t BSP_TS_ITConfig ( void  )

Configures and enables the touch screen interrupts.

Return values:
TS_OKif all initializations are OK. Other value if error.

Definition at line 198 of file stm32756g_eval_ts.c.

References BSP_IO_ConfigPin(), BSP_IO_Init(), I2cAddress, TS_INT_PIN, TS_OK, and tsDriver.

uint8_t BSP_TS_ITGetStatus ( void  )

Gets the touch screen interrupt status.

Return values:
TS_OKif all initializations are OK. Other value if error.

Definition at line 216 of file stm32756g_eval_ts.c.

References I2cAddress, and tsDriver.

Generated on Fri May 22 2015 13:59:21 for STM32756G_EVAL BSP User Manual by   doxygen 1.7.6.1