STM32746G-Discovery board drivers V1.0.0

Dependents:   F746_SD_GraphicEqualizer_ren0620

Fork of BSP_DISCO_F746NG by ST

Committer:
edamame22
Date:
Wed Jun 22 03:48:49 2016 +0000
Revision:
3:286943c42d38
Parent:
0:c9112f0c67e3
timeout is shortened.; play will not stop.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:c9112f0c67e3 1 /**
bcostm 0:c9112f0c67e3 2 ******************************************************************************
bcostm 0:c9112f0c67e3 3 * @file ts.h
bcostm 0:c9112f0c67e3 4 * @author MCD Application Team
bcostm 0:c9112f0c67e3 5 * @version V4.0.0
bcostm 0:c9112f0c67e3 6 * @date 22-June-2015
bcostm 0:c9112f0c67e3 7 * @brief This file contains all the functions prototypes for the Touch Screen driver.
bcostm 0:c9112f0c67e3 8 ******************************************************************************
bcostm 0:c9112f0c67e3 9 * @attention
bcostm 0:c9112f0c67e3 10 *
bcostm 0:c9112f0c67e3 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
bcostm 0:c9112f0c67e3 12 *
bcostm 0:c9112f0c67e3 13 * Redistribution and use in source and binary forms, with or without modification,
bcostm 0:c9112f0c67e3 14 * are permitted provided that the following conditions are met:
bcostm 0:c9112f0c67e3 15 * 1. Redistributions of source code must retain the above copyright notice,
bcostm 0:c9112f0c67e3 16 * this list of conditions and the following disclaimer.
bcostm 0:c9112f0c67e3 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
bcostm 0:c9112f0c67e3 18 * this list of conditions and the following disclaimer in the documentation
bcostm 0:c9112f0c67e3 19 * and/or other materials provided with the distribution.
bcostm 0:c9112f0c67e3 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bcostm 0:c9112f0c67e3 21 * may be used to endorse or promote products derived from this software
bcostm 0:c9112f0c67e3 22 * without specific prior written permission.
bcostm 0:c9112f0c67e3 23 *
bcostm 0:c9112f0c67e3 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bcostm 0:c9112f0c67e3 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bcostm 0:c9112f0c67e3 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bcostm 0:c9112f0c67e3 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bcostm 0:c9112f0c67e3 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bcostm 0:c9112f0c67e3 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bcostm 0:c9112f0c67e3 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bcostm 0:c9112f0c67e3 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bcostm 0:c9112f0c67e3 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bcostm 0:c9112f0c67e3 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bcostm 0:c9112f0c67e3 34 *
bcostm 0:c9112f0c67e3 35 ******************************************************************************
bcostm 0:c9112f0c67e3 36 */
bcostm 0:c9112f0c67e3 37
bcostm 0:c9112f0c67e3 38 /* Define to prevent recursive inclusion -------------------------------------*/
bcostm 0:c9112f0c67e3 39 #ifndef __TS_H
bcostm 0:c9112f0c67e3 40 #define __TS_H
bcostm 0:c9112f0c67e3 41
bcostm 0:c9112f0c67e3 42 #ifdef __cplusplus
bcostm 0:c9112f0c67e3 43 extern "C" {
bcostm 0:c9112f0c67e3 44 #endif
bcostm 0:c9112f0c67e3 45
bcostm 0:c9112f0c67e3 46 /* Includes ------------------------------------------------------------------*/
bcostm 0:c9112f0c67e3 47 #include <stdint.h>
bcostm 0:c9112f0c67e3 48
bcostm 0:c9112f0c67e3 49 /** @addtogroup BSP
bcostm 0:c9112f0c67e3 50 * @{
bcostm 0:c9112f0c67e3 51 */
bcostm 0:c9112f0c67e3 52
bcostm 0:c9112f0c67e3 53 /** @addtogroup Components
bcostm 0:c9112f0c67e3 54 * @{
bcostm 0:c9112f0c67e3 55 */
bcostm 0:c9112f0c67e3 56
bcostm 0:c9112f0c67e3 57 /** @addtogroup TS
bcostm 0:c9112f0c67e3 58 * @{
bcostm 0:c9112f0c67e3 59 */
bcostm 0:c9112f0c67e3 60
bcostm 0:c9112f0c67e3 61 /** @defgroup TS_Exported_Types
bcostm 0:c9112f0c67e3 62 * @{
bcostm 0:c9112f0c67e3 63 */
bcostm 0:c9112f0c67e3 64
bcostm 0:c9112f0c67e3 65 /** @defgroup TS_Driver_structure Touch Sensor Driver structure
bcostm 0:c9112f0c67e3 66 * @{
bcostm 0:c9112f0c67e3 67 */
bcostm 0:c9112f0c67e3 68 typedef struct
bcostm 0:c9112f0c67e3 69 {
bcostm 0:c9112f0c67e3 70 void (*Init)(uint16_t);
bcostm 0:c9112f0c67e3 71 uint16_t (*ReadID)(uint16_t);
bcostm 0:c9112f0c67e3 72 void (*Reset)(uint16_t);
bcostm 0:c9112f0c67e3 73 void (*Start)(uint16_t);
bcostm 0:c9112f0c67e3 74 uint8_t (*DetectTouch)(uint16_t);
bcostm 0:c9112f0c67e3 75 void (*GetXY)(uint16_t, uint16_t*, uint16_t*);
bcostm 0:c9112f0c67e3 76 void (*EnableIT)(uint16_t);
bcostm 0:c9112f0c67e3 77 void (*ClearIT)(uint16_t);
bcostm 0:c9112f0c67e3 78 uint8_t (*GetITStatus)(uint16_t);
bcostm 0:c9112f0c67e3 79 void (*DisableIT)(uint16_t);
bcostm 0:c9112f0c67e3 80 }TS_DrvTypeDef;
bcostm 0:c9112f0c67e3 81 /**
bcostm 0:c9112f0c67e3 82 * @}
bcostm 0:c9112f0c67e3 83 */
bcostm 0:c9112f0c67e3 84
bcostm 0:c9112f0c67e3 85 /**
bcostm 0:c9112f0c67e3 86 * @}
bcostm 0:c9112f0c67e3 87 */
bcostm 0:c9112f0c67e3 88
bcostm 0:c9112f0c67e3 89 /**
bcostm 0:c9112f0c67e3 90 * @}
bcostm 0:c9112f0c67e3 91 */
bcostm 0:c9112f0c67e3 92
bcostm 0:c9112f0c67e3 93 /**
bcostm 0:c9112f0c67e3 94 * @}
bcostm 0:c9112f0c67e3 95 */
bcostm 0:c9112f0c67e3 96
bcostm 0:c9112f0c67e3 97 /**
bcostm 0:c9112f0c67e3 98 * @}
bcostm 0:c9112f0c67e3 99 */
bcostm 0:c9112f0c67e3 100
bcostm 0:c9112f0c67e3 101 #ifdef __cplusplus
bcostm 0:c9112f0c67e3 102 }
bcostm 0:c9112f0c67e3 103 #endif
bcostm 0:c9112f0c67e3 104
bcostm 0:c9112f0c67e3 105 #endif /* __TS_H */
bcostm 0:c9112f0c67e3 106
bcostm 0:c9112f0c67e3 107 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/