STM32769I_EVAL BSP User Manual
|
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_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 287 of file stm32f769i_eval_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_OK if all initializations are OK. Other value if error.
Definition at line 169 of file stm32f769i_eval_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_ITClear | ( | void | ) |
Clears all touch screen interrupts.
Definition at line 437 of file stm32f769i_eval_ts.c.
References BSP_IO_ITClearPin().
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 230 of file stm32f769i_eval_ts.c.
References BSP_IO_ConfigPin(), BSP_IO_Init(), I2C_Address, IO_ERROR, IO_OK, ts_driver, TS_ERROR, and TS_OK.
uint8_t BSP_TS_ITGetStatus | ( | void | ) |
Gets the touch screen interrupt status.
- Return values:
-
TS_IRQ_PENDING if touchscreen IRQ is pending, TS_NO_IRQ_PENDING when no IRQ TS is pending.
Definition at line 265 of file stm32f769i_eval_ts.c.
References BSP_IO_ITGetStatus(), TS_IRQ_PENDING, and TS_NO_IRQ_PENDING.
Generated on Thu May 25 2017 11:03:12 for STM32769I_EVAL BSP User Manual by 1.7.6.1