STM32446E_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_DeInit (void) |
DeInitializes the TouchScreen. | |
uint8_t | BSP_TS_ITEnable (void) |
Enables the touch screen interrupts. | |
uint8_t | BSP_TS_ITDisable (void) |
Disables the touch screen interrupts. | |
uint8_t | BSP_TS_ITConfig (void) |
Configures and enables the touch screen interrupts. | |
void | BSP_TS_ITClear (void) |
Clears all touch screen interrupts. | |
uint8_t | BSP_TS_ITGetStatus (void) |
Gets the touch screen interrupt status. | |
void | BSP_TS_FIFOClear (void) |
Clears touch screen FIFO containing 128 x,y values. | |
uint8_t | BSP_TS_GetState (TS_StateTypeDef *TS_State) |
Returns status and positions of the touch screen. |
Function Documentation
uint8_t BSP_TS_DeInit | ( | void | ) |
DeInitializes the TouchScreen.
- Return values:
-
TS state
Definition at line 174 of file stm32446e_eval_ts.c.
References TS_OK.
void BSP_TS_FIFOClear | ( | void | ) |
Clears touch screen FIFO containing 128 x,y values.
Definition at line 239 of file stm32446e_eval_ts.c.
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 253 of file stm32446e_eval_ts.c.
References AddressI2C, TS_StateTypeDef::TouchDetected, ts_driver, TS_OK, TS_SWAP_X, TS_SWAP_XY, TS_SWAP_Y, tsBundaryX, tsBundaryY, tsOrientation, 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 142 of file stm32446e_eval_ts.c.
References AddressI2C, BSP_IO_Init(), IO_I2C_ADDRESS, ts_driver, TS_I2C_ADDRESS, TS_OK, TS_SWAP_NONE, tsBundaryX, tsBundaryY, and tsOrientation.
void BSP_TS_ITClear | ( | void | ) |
Clears all touch screen interrupts.
Definition at line 220 of file stm32446e_eval_ts.c.
References AddressI2C, and ts_driver.
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 206 of file stm32446e_eval_ts.c.
References AddressI2C, BSP_IO_Init(), ts_driver, and TS_OK.
uint8_t BSP_TS_ITDisable | ( | void | ) |
Disables the touch screen interrupts.
- Return values:
-
TS_OK if all initializations are OK. Other value if error.
Definition at line 195 of file stm32446e_eval_ts.c.
References AddressI2C, ts_driver, and TS_OK.
uint8_t BSP_TS_ITEnable | ( | void | ) |
Enables the touch screen interrupts.
- Return values:
-
TS_OK if all initializations are OK. Other value if error.
Definition at line 184 of file stm32446e_eval_ts.c.
References AddressI2C, ts_driver, 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 230 of file stm32446e_eval_ts.c.
References AddressI2C, and ts_driver.
Generated on Fri Jan 15 2016 10:06:22 for STM32446E_EVAL BSP User Manual by 1.7.6.1