Library to control Silicon Labs SI570 10 MHZ TO 1.4 GHZ I2C PROGRAMMABLE XO/VCXO.

Dependencies:   mbed

Fork of SI570 by Gerrit Polder

Committer:
DL3LD
Date:
Sun Mar 27 06:55:59 2016 +0000
Revision:
1:1556bcaaf759
STM32F746NG SI570 VFO Test

Who changed what in which revision?

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