STM32F469I-Discovery BSP User Manual
|
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 both at GPIO level and in TouchScreen IC driver configuration. | |
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_OK if all initializations are OK. Other value if error.
Definition at line 251 of file stm32469i_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_OK if all initializations are OK. Other value if error.
Definition at line 164 of file stm32469i_discovery_ts.c.
References I2C_Address, TS_DEVICE_NOT_FOUND, ts_driver, TS_I2C_ADDRESS, 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.
Definition at line 437 of file stm32469i_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 both at GPIO level and in TouchScreen IC driver configuration.
- Return values:
-
TS_OK if all initializations are OK.
Definition at line 217 of file stm32469i_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 Wed Jan 13 2016 10:58:46 for STM32F469I-Discovery BSP User Manual by 1.7.6.1