Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO_L496AG-LCD-prova_1 DISCO_L496AG-LCD-prova_2 DISCO_L496AG-LCD-demo DISCO_L496AG-SRAM-demo
stm32l496g_discovery_ts.h File Reference
This file contains the common defines and functions prototypes for the stm32l496g_discovery_ts.c driver. More...
Go to the source code of this file.
Data Structures | |
| struct | TS_StateTypeDef |
| TS_StateTypeDef Define TS State structure. More... | |
Enumerations | |
| enum | TS_StatusTypeDef { TS_OK = 0x00, TS_ERROR = 0x01, TS_TIMEOUT = 0x02, TS_DEVICE_NOT_FOUND = 0x03 } |
TS_StatusTypeDef Define BSP_TS_xxx() functions possible return value, when status is returned by those functions. More... | |
| enum | TS_GestureIdTypeDef { GEST_ID_NO_GESTURE = 0x00, GEST_ID_MOVE_UP = 0x01, GEST_ID_MOVE_RIGHT = 0x02, GEST_ID_MOVE_DOWN = 0x03, GEST_ID_MOVE_LEFT = 0x04, GEST_ID_ZOOM_IN = 0x05, GEST_ID_ZOOM_OUT = 0x06, GEST_ID_NB_MAX = 0x07 } |
TS_GestureIdTypeDef Define Possible managed gesture identification values returned by touch screen driver. More... | |
| enum | TS_TouchEventTypeDef { TOUCH_EVENT_NO_EVT = 0x00, TOUCH_EVENT_PRESS_DOWN = 0x01, TOUCH_EVENT_LIFT_UP = 0x02, TOUCH_EVENT_CONTACT = 0x03, TOUCH_EVENT_NB_MAX = 0x04 } |
TS_TouchEventTypeDef Define Possible touch events kind as returned values by touch screen IC Driver. More... | |
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_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. | |
| uint8_t | BSP_TS_ITConfig (void) |
| Configures and enables the touch screen interrupts. | |
| uint8_t | BSP_TS_ITDeConfig (void) |
| deConfigures and enables the touch screen interrupts. | |
| void | BSP_TS_INT_MspInit (void) |
| Initializes the TS_INT pin MSP. | |
| void | BSP_TS_INT_MspDeInit (void) |
| Initializes the TS_INT pin MSP. | |
Variables | |
| char * | ts_event_string_tab [TOUCH_EVENT_NB_MAX] |
| Table for touchscreen event information display on LCD : table indexed on enum TS_TouchEventTypeDef information. | |
| char * | ts_gesture_id_string_tab [GEST_ID_NB_MAX] |
| Table for touchscreen gesture Id information display on LCD : table indexed on enum TS_GestureIdTypeDef information. | |
Detailed Description
This file contains the common defines and functions prototypes for the stm32l496g_discovery_ts.c driver.
- Attention:
© Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32l496g_discovery_ts.h.
Generated on Tue Jul 12 2022 15:07:45 by
1.7.2