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.
ts.h
00001 /** 00002 ****************************************************************************** 00003 * @file ts.h 00004 * @author MCD Application Team 00005 * @brief This file contains all the functions prototypes for the Touch Screen driver. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * <h2><center>© Copyright (c) 2017 STMicroelectronics. 00010 * All rights reserved.</center></h2> 00011 * 00012 * This software component is licensed by ST under BSD 3-Clause license, 00013 * the "License"; You may not use this file except in compliance with the 00014 * License. You may obtain a copy of the License at: 00015 * opensource.org/licenses/BSD-3-Clause 00016 * 00017 ****************************************************************************** 00018 */ 00019 00020 /* Define to prevent recursive inclusion -------------------------------------*/ 00021 #ifndef __TS_H 00022 #define __TS_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /* Includes ------------------------------------------------------------------*/ 00029 #include <stdint.h> 00030 00031 /** @addtogroup BSP 00032 * @{ 00033 */ 00034 00035 /** @addtogroup Components 00036 * @{ 00037 */ 00038 00039 /** @addtogroup TS 00040 * @{ 00041 */ 00042 00043 /** @defgroup TS_Exported_Types 00044 * @{ 00045 */ 00046 00047 /** @defgroup TS_Driver_structure Touch Sensor Driver structure 00048 * @{ 00049 */ 00050 typedef struct 00051 { 00052 void (*Init)(uint16_t); 00053 uint16_t (*ReadID)(uint16_t); 00054 void (*Reset)(uint16_t); 00055 void (*Start)(uint16_t); 00056 uint8_t (*DetectTouch)(uint16_t); 00057 void (*GetXY)(uint16_t, uint16_t*, uint16_t*); 00058 void (*EnableIT)(uint16_t); 00059 void (*ClearIT)(uint16_t); 00060 uint8_t (*GetITStatus)(uint16_t); 00061 void (*DisableIT)(uint16_t); 00062 }TS_DrvTypeDef; 00063 /** 00064 * @} 00065 */ 00066 00067 /** 00068 * @} 00069 */ 00070 00071 /** 00072 * @} 00073 */ 00074 00075 /** 00076 * @} 00077 */ 00078 00079 /** 00080 * @} 00081 */ 00082 00083 #ifdef __cplusplus 00084 } 00085 #endif 00086 00087 #endif /* __TS_H */ 00088 00089 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Wed Aug 17 2022 15:47:40 by
