Contains the BSP driver for the DISCO_F413ZH board.
Dependents: DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more
STM32F413H DISCOVERY TS Private Functions
[STM32F413H_DISCOVERY TS]
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_InitEx (uint16_t ts_SizeX, uint16_t ts_SizeY, uint8_t orientation) |
Initializes and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, I2C, clocks..) with a given orientation. | |
uint8_t | BSP_TS_ITConfig (void) |
Configures and enables the touch screen interrupts. | |
uint8_t | BSP_TS_GetState (TS_StateTypeDef *TS_State) |
Returns status and positions of the touch screen. | |
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) |
Function used to reset all touch data before a new acquisition of touch information. | |
__weak void | BSP_TS_INT_MspInit (void) |
Initializes the TS_INT pin MSP. |
Function Documentation
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_OK if all initializations are OK. Other value if error.
Definition at line 318 of file stm32f413h_discovery_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 213 of file stm32f413h_discovery_ts.c.
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 116 of file stm32f413h_discovery_ts.c.
uint8_t BSP_TS_InitEx | ( | uint16_t | ts_SizeX, |
uint16_t | ts_SizeY, | ||
uint8_t | orientation | ||
) |
Initializes and configures the touch screen functionalities and configures all necessary hardware resources (GPIOs, I2C, clocks..) with a given orientation.
- Parameters:
-
ts_SizeX : Maximum X size of the TS area on LCD ts_SizeY : Maximum Y size of the TS area on LCD orientation : TS_ORIENTATION_LANDSCAPE or TS_ORIENTATION_PORTRAIT
- Return values:
-
TS_OK if all initializations are OK. Other value if error.
Definition at line 130 of file stm32f413h_discovery_ts.c.
__weak void BSP_TS_INT_MspInit | ( | void | ) |
Initializes the TS_INT pin MSP.
Definition at line 394 of file stm32f413h_discovery_ts.c.
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 188 of file stm32f413h_discovery_ts.c.
uint8_t BSP_TS_ResetTouchData | ( | TS_StateTypeDef * | TS_State ) |
Function used to reset all touch data before a new acquisition of touch information.
- Parameters:
-
TS_State,: Pointer to touch screen current state structure
- Return values:
-
TS_OK if OK, TE_ERROR if problem found.
Definition at line 364 of file stm32f413h_discovery_ts.c.
Generated on Tue Jul 12 2022 13:54:38 by 1.7.2