STM32746G-Discovery BSP User Manual: STM32746G_DISCOVERY_TS Exported Functions

STM32746G-Discovery BSP Drivers

STM32746G-Discovery BSP User Manual
STM32746G_DISCOVERY_TS Exported Functions

Modules

 TS Private 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_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.
uint8_t BSP_TS_Get_GestureId (TS_StateTypeDef *TS_State)
 Update gesture Id following a touch detected.
void BSP_TS_ITClear (void)
 Clears all touch screen interrupts.
uint8_t BSP_TS_ResetTouchData (TS_StateTypeDef *TS_State)
 Function used to reset all touch data before a new acquisition of touch information.

Function Documentation

uint8_t BSP_TS_DeInit ( void  )

DeInitializes the TouchScreen.

Return values:
TSstate

Definition at line 173 of file stm32746g_discovery_ts.c.

References TS_OK.

uint8_t BSP_TS_Get_GestureId ( TS_StateTypeDef TS_State)

Update gesture Id following a touch detected.

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 339 of file stm32746g_discovery_ts.c.

References GEST_ID_MOVE_DOWN, GEST_ID_MOVE_LEFT, GEST_ID_MOVE_RIGHT, GEST_ID_MOVE_UP, GEST_ID_NO_GESTURE, GEST_ID_ZOOM_IN, GEST_ID_ZOOM_OUT, TS_StateTypeDef::gestureId, I2cAddress, TS_ERROR, and TS_OK.

Referenced by BSP_TS_GetState().

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

References BSP_TS_Get_GestureId(), I2cAddress, TOUCH_EVENT_CONTACT, TOUCH_EVENT_LIFT_UP, TOUCH_EVENT_NO_EVT, TOUCH_EVENT_PRESS_DOWN, TS_StateTypeDef::touchArea, TS_StateTypeDef::touchDetected, TS_StateTypeDef::touchEventId, TS_StateTypeDef::touchWeight, TS_StateTypeDef::touchX, TS_StateTypeDef::touchY, TS_ERROR, TS_MAX_NB_TOUCH, TS_OK, TS_SWAP_NONE, TS_SWAP_X, TS_SWAP_XY, TS_SWAP_Y, tsDriver, tsOrientation, tsXBoundary, and tsYBoundary.

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 143 of file stm32746g_discovery_ts.c.

References I2cAddress, TS_DEVICE_NOT_FOUND, TS_I2C_ADDRESS, TS_OK, TS_SWAP_XY, tsDriver, tsOrientation, tsXBoundary, and tsYBoundary.

void BSP_TS_ITClear ( void  )

Clears all touch screen interrupts.

Definition at line 383 of file stm32746g_discovery_ts.c.

References 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 183 of file stm32746g_discovery_ts.c.

References I2cAddress, TS_INT_EXTI_IRQn, TS_INT_GPIO_PORT, 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 208 of file stm32746g_discovery_ts.c.

References I2cAddress, and tsDriver.

uint8_t BSP_TS_ResetTouchData ( TS_StateTypeDef TS_State)

Function used to reset all touch data before a new acquisition of touch information.

Parameters:
TS_State,:Pointer to touch screen current state structure
Return values:
TS_OKif OK, TE_ERROR if problem found.

Definition at line 401 of file stm32746g_discovery_ts.c.

References GEST_ID_NO_GESTURE, TS_StateTypeDef::gestureId, TOUCH_EVENT_NO_EVT, TS_StateTypeDef::touchArea, TS_StateTypeDef::touchDetected, TS_StateTypeDef::touchEventId, TS_StateTypeDef::touchWeight, TS_StateTypeDef::touchX, TS_StateTypeDef::touchY, TS_ERROR, TS_MAX_NB_TOUCH, and TS_OK.

Generated on Fri Dec 30 2016 16:31:33 for STM32746G-Discovery BSP User Manual by   doxygen 1.7.6.1