STM3210C_EVAL BSP User Manual: Exported_Functions

STM3210C EVAL BSP Drivers

STM3210C_EVAL BSP User Manual

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_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_OK,:if all initializations are OK. Other value if error.

Definition at line 208 of file stm3210c_eval_ts.c.

References TS_StateTypeDef::TouchDetected, ts_driver, TS_I2C_ADDRESS, 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_OK,:if all initializations are OK. Other value if error.

Definition at line 154 of file stm3210c_eval_ts.c.

References ts_driver, TS_ERROR, TS_I2C_ADDRESS, TS_OK, ts_orientation, TS_SWAP_XY, ts_x_boundary, and ts_y_boundary.

void BSP_TS_ITClear ( void  )

Clears all touch screen interrupts.

Return values:
None

Definition at line 257 of file stm3210c_eval_ts.c.

References ts_driver, and TS_I2C_ADDRESS.

uint8_t BSP_TS_ITConfig ( void  )

Configures and enables the touch screen interrupts.

Return values:
TS_OK,:if all initializations are OK. Other value if error.

Definition at line 185 of file stm3210c_eval_ts.c.

References ts_driver, TS_I2C_ADDRESS, and TS_OK.

uint8_t BSP_TS_ITGetStatus ( void  )

Gets the touch screen interrupt status.

Return values:
TS_OK,:if all initializations are OK. Other value if error.

Definition at line 197 of file stm3210c_eval_ts.c.

References ts_driver, and TS_I2C_ADDRESS.

Generated on Thu Dec 10 2015 17:13:52 for STM3210C_EVAL BSP User Manual by   doxygen 1.7.6.1