STM32F769I-Discovery BSP User Manual: TS Exported Functions

STM32F769I-Discovery BSP Drivers

STM32F769I-Discovery BSP User Manual
TS Exported 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_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.
void BSP_TS_INT_MspInit (void)
 Initializes the TS_INT pin MSP.

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 257 of file stm32f769i_discovery_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 162 of file stm32f769i_discovery_ts.c.

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

void BSP_TS_INT_MspInit ( void  )

Initializes the TS_INT pin MSP.

Return values:
None

Definition at line 446 of file stm32f769i_discovery_ts.c.

References TS_INT_GPIO_CLK_ENABLE, TS_INT_GPIO_PORT, and TS_INT_PIN.

Referenced by BSP_TS_ITConfig().

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 223 of file stm32f769i_discovery_ts.c.

References BSP_TS_INT_MspInit(), I2C_Address, ts_driver, TS_INT_EXTI_IRQn, TS_INT_GPIO_PORT, TS_INT_PIN, and TS_OK.

Generated on Fri Dec 30 2016 18:30:07 for STM32F769I-Discovery BSP User Manual by   doxygen 1.7.6.1