STM32469I_EVAL BSP User Manual: STM32469I EVAL TS Public Functions

STM32469I EVAL BSP Drivers

STM32469I_EVAL BSP User Manual
STM32469I EVAL TS Public Functions

Functions

uint8_t BSP_TS_Init (uint16_t ts_SizeX, uint16_t ts_SizeY)
 Initializes and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, I2C, clocks..).
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_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 275 of file stm32469i_eval_ts.c.

References I2C_Address, TOUCH_EVENT_CONTACT, TOUCH_EVENT_LIFT_UP, TOUCH_EVENT_NO_EVT, TOUCH_EVENT_PRESS_DOWN, TS_StateTypeDef::touchDetected, TS_StateTypeDef::touchX, TS_StateTypeDef::touchY, ts_driver, TS_ERROR, TS_MAX_NB_TOUCH, TS_OK, ts_orientation, TS_SWAP_X, TS_SWAP_XY, and TS_SWAP_Y.

uint8_t BSP_TS_Init ( uint16_t  ts_SizeX,
uint16_t  ts_SizeY 
)

Initializes and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, I2C, clocks..).

Parameters:
ts_SizeX: Maximum X size of the TS area on LCD
ts_SizeY: Maximum Y size of the TS area on LCD
Return values:
TS_OKif all initializations are OK. Other value if error.

Definition at line 165 of file stm32469i_eval_ts.c.

References I2C_Address, TS_DEVICE_NOT_FOUND, ts_driver, TS_I2C_ADDRESS, TS_OK, ts_orientation, TS_SWAP_NONE, TS_SWAP_XY, and TS_SWAP_Y.

void BSP_TS_ITClear ( void  )

Clears all touch screen interrupts.

Definition at line 425 of file stm32469i_eval_ts.c.

References BSP_IO_ITClearPin().

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 217 of file stm32469i_eval_ts.c.

References BSP_IO_ConfigPin(), BSP_IO_Init(), I2C_Address, IO_ERROR, IO_OK, ts_driver, TS_ERROR, and TS_OK.

uint8_t BSP_TS_ITGetStatus ( void  )

Gets the touch screen interrupt status.

Return values:
TS_IRQ_PENDINGif touchscreen IRQ is pending, TS_NO_IRQ_PENDING when no IRQ TS is pending.

Definition at line 253 of file stm32469i_eval_ts.c.

References BSP_IO_ITGetStatus(), TS_IRQ_PENDING, and TS_NO_IRQ_PENDING.

Generated on Tue Jan 12 2016 17:51:26 for STM32469I_EVAL BSP User Manual by   doxygen 1.7.6.1