STM324x9I_EVAL BSP User Manual: STM324x9I EVAL TS Exported Functions

STM32429I/STM32439I/STM32469I/STM32479I EVAL BSP Drivers

STM324x9I_EVAL BSP User Manual
STM324x9I EVAL 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..).
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 191 of file stm324x9i_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 230 of file stm324x9i_eval_ts.c.

References I2C_Address, TS_StateTypeDef::TouchDetected, ts_driver, TS_OK, ts_orientation, TS_SWAP_X, TS_SWAP_XY, TS_SWAP_Y, ts_x_boundary, ts_y_boundary, 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 145 of file stm324x9i_eval_ts.c.

References BSP_TS3510_IsDetected(), EXC7200_I2C_ADDRESS, I2C_Address, IOE_Init(), TS3510_I2C_ADDRESS, ts_driver, TS_I2C_ADDRESS, TS_OK, ts_orientation, TS_SWAP_NONE, TS_SWAP_Y, ts_x_boundary, and ts_y_boundary.

void BSP_TS_ITClear ( void  )

Clears all touch screen interrupts.

Definition at line 277 of file stm324x9i_eval_ts.c.

References BSP_IO_ITClear(), I2C_Address, and ts_driver.

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 201 of file stm324x9i_eval_ts.c.

References BSP_IO_ConfigPin(), BSP_IO_Init(), I2C_Address, ts_driver, TS_INT_PIN, and TS_OK.

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 219 of file stm324x9i_eval_ts.c.

References I2C_Address, and ts_driver.

Generated on Wed Jan 13 2016 15:52:54 for STM324x9I_EVAL BSP User Manual by   doxygen 1.7.6.1