STM32L4R9I-Discovery BSP User Manual: Exported Functions

STM32L4R9I-Discovery BSP

STM32L4R9I-Discovery BSP User Manual

Functions

uint8_t BSP_TS_Init (uint16_t ts_SizeX, uint16_t ts_SizeY)
 Initialize and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, I2C, clocks..).
uint8_t BSP_TS_DeInit (void)
 Deinitialize the TouchScreen.
uint8_t BSP_TS_GetState (TS_StateTypeDef *TS_State)
 Return status and positions of the touch screen.
uint8_t BSP_TS_GestureConfig (FunctionalState State)
 Configure gesture feature.
uint8_t BSP_TS_Get_GestureId (TS_StateTypeDef *TS_State)
 Update gesture Id following a touch detected.
uint8_t BSP_TS_ResetTouchData (TS_StateTypeDef *TS_State)
 Reset all touch data before a new acquisition of touch information.
uint8_t BSP_TS_ITConfig (void)
 Configure and enable the touch screen interrupts.
uint8_t BSP_TS_ITDisable (void)
 Deconfigure and disable the touch screen interrupts.
void BSP_TS_ITClear (void)
 Clear all touch screen interrupts.
uint8_t BSP_TS_ITGetStatus (void)
 Get the touch screen interrupt status.

Function Documentation

uint8_t BSP_TS_DeInit ( void  )

Deinitialize the TouchScreen.

Return values:
TSstate

Definition at line 139 of file stm32l4r9i_discovery_ts.c.

References TS_OK.

uint8_t BSP_TS_GestureConfig ( FunctionalState  State)

Configure gesture feature.

Parameters:
State,:Enable/Disable gesture feature.
Return values:
TS_OKif OK. Other value if error.

Definition at line 236 of file stm32l4r9i_discovery_ts.c.

References I2C_Address, and 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 OK. Other value if error.

Definition at line 253 of file stm32l4r9i_discovery_ts.c.

References GEST_ID_DOUBLE_CLICK, GEST_ID_MOVE_DOWN, GEST_ID_MOVE_LEFT, GEST_ID_MOVE_RIGHT, GEST_ID_MOVE_UP, GEST_ID_NO_GESTURE, TS_StateTypeDef::gestureId, I2C_Address, TS_ERROR, and TS_OK.

uint8_t BSP_TS_GetState ( TS_StateTypeDef TS_State)

Return status and positions of the touch screen.

Parameters:
TS_State,:Pointer to touch screen current state structure
Return values:
TS_OKif OK. Other value if error.
Note:
FT3X67 doesn't support weight and area features (always 0 value returned).

Definition at line 151 of file stm32l4r9i_discovery_ts.c.

References HwRotation, I2C_Address, 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, and tsDriver.

uint8_t BSP_TS_Init ( uint16_t  ts_SizeX,
uint16_t  ts_SizeY 
)

Initialize 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 103 of file stm32l4r9i_discovery_ts.c.

References HwRotation, I2C_Address, TS_DEVICE_NOT_FOUND, TS_I2C_ADDRESS, TS_IO_Read(), TS_OK, and tsDriver.

void BSP_TS_ITClear ( void  )

Clear all touch screen interrupts.

Definition at line 356 of file stm32l4r9i_discovery_ts.c.

uint8_t BSP_TS_ITConfig ( void  )

Configure and enable the touch screen interrupts.

Return values:
TS_OKif OK. Other value if error.

Definition at line 325 of file stm32l4r9i_discovery_ts.c.

References BSP_IO_ConfigPin(), I2C_Address, MFX_IO_ITConfig(), TS_INT_PIN, TS_OK, and tsDriver.

uint8_t BSP_TS_ITDisable ( void  )

Deconfigure and disable the touch screen interrupts.

Return values:
TS_OKif OK. Other value if error.

Definition at line 342 of file stm32l4r9i_discovery_ts.c.

References BSP_IO_ConfigPin(), I2C_Address, TS_INT_PIN, TS_OK, and tsDriver.

uint8_t BSP_TS_ITGetStatus ( void  )

Get the touch screen interrupt status.

Return values:
TS_OKif OK. Other value if error.

Definition at line 365 of file stm32l4r9i_discovery_ts.c.

References TS_OK.

uint8_t BSP_TS_ResetTouchData ( TS_StateTypeDef TS_State)

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, TS_ERROR if problem found.

Definition at line 296 of file stm32l4r9i_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 Oct 13 2017 02:37:42 for STM32L4R9I-Discovery BSP User Manual by   doxygen 1.7.6.1