/**
  ******************************************************************************
  * @file    touchscreen.h
  * @author  MCD Application Team
  * @version V2.1.0
  * @date    31-July-2012
  * @brief   Touchscreen Driver 
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */
  
/* Define to prevent recursive inclusion ---------------------------------------*/  
#ifndef __TOUCHSREEN_H
#define __TOUCHSREEN_H

/* Includes --------------------------------------------------------------------*/
#ifndef USE_STM3220F_EVAL
 #include "stm32f10x.h"
#elif defined USE_STM3220F_EVAL
 #include "stm32f2xx.h"
#endif  

/** @addtogroup Embedded_GUI_Library
  * @{
  */

/** @addtogroup touchscreen 
  * @{
  */ 

/** @defgroup touchscreen_Private_Defines
  * @{
  */

/**
  * @}
  */

/** @defgroup touchscreen_Exported_Types
  * @{
  */

/**
  * @}
  */

/**
  * @}
  */

/** @defgroup touchscreen_Exported_Macros
  * @{
  */

/**
  * @}
  */

/** @defgroup touchscreen_Exported_Functions
  * @{
  */
void TS_GetCursorPosition(uint16_t *x, uint16_t *y);
void TS_Calibration(void);
void TS_CheckCalibration(void);
uint16_t getDisplayCoordinateX(uint16_t x_touch, uint16_t y_touch);
uint16_t getDisplayCoordinateY(uint16_t x_touch, uint16_t y_touch);

#ifdef __cplusplus
}
#endif

#endif /* __TOUCHSREEN_H */

/**
  * @}
  */

/**
  * @}
  */

/**
  * @}
  */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
