STM32H743I_EVAL BSP User Manual: TS Exported Functions

STM32H743I_EVAL BSP

STM32H743I_EVAL BSP User Manual
TS Exported Functions

Functions

uint8_t BSP_TS_Init (uint16_t xSize, uint16_t ySize)
 addtogroup STM32H743I_EVAL_TS_Exported_Functions
uint8_t BSP_TS_DeInit (void)
 DeInitializes the TouchScreen.
uint8_t BSP_TS_GetState (TS_StateTypeDef *TS_State)
 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 touch screen interrupt status.
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 stm32h743i_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 244 of file stm32h743i_eval_ts.c.

References 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 
)

addtogroup STM32H743I_EVAL_TS_Exported_Functions

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 stm32h743i_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 292 of file stm32h743i_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 stm32h743i_eval_ts.c.

References BSP_IO_ConfigPin(), BSP_IO_Init(), I2cAddress, IO_ERROR, IO_OK, TS_ERROR, 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 233 of file stm32h743i_eval_ts.c.

References I2cAddress, and tsDriver.

Generated on Wed Aug 23 2017 17:45:14 for STM32H743I_EVAL BSP User Manual by   doxygen 1.7.6.1