BSP driver for DISCO_L496AG

Dependents:   DISCO_L496AG-LCD-prova_1 DISCO_L496AG-LCD-prova_2 DISCO_L496AG-LCD-demo DISCO_L496AG-SRAM-demo

Embed: (wiki syntax)

« Back to documentation index

stm32l496g_discovery_ts.h File Reference

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.

Author:
MCD Application Team
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.