fonts.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    fonts.h
00004   * @author  MCD Application Team
00005   * @version V4.3.0
00006   * @date    10/15/2010
00007   * @brief   Header for fonts.c
00008   ******************************************************************************
00009   * @copy
00010   *
00011   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00012   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
00013   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
00014   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
00015   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
00016   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00017   *
00018   * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
00019   */ 
00020 
00021 /* Define to prevent recursive inclusion -------------------------------------*/
00022 #ifndef __FONTS_H
00023 #define __FONTS_H
00024 
00025 #ifdef __cplusplus
00026  extern "C" {
00027 #endif
00028 
00029 /* Includes ------------------------------------------------------------------*/
00030 #include <stdint.h>
00031 
00032 /** @addtogroup Utilities
00033   * @{
00034   */
00035   
00036 /** @addtogroup STM32_EVAL
00037   * @{
00038   */ 
00039 
00040 /** @addtogroup Common
00041   * @{
00042   */
00043 
00044 /** @addtogroup FONTS
00045   * @{
00046   */ 
00047 
00048 /** @defgroup FONTS_Exported_Types
00049   * @{
00050   */ 
00051 typedef struct _tFont
00052 {    
00053   const uint16_t *table;
00054   uint16_t Width;
00055   uint16_t Height;
00056   
00057 } sFONT;
00058 
00059 extern sFONT Font16x24;
00060 extern sFONT Font12x12;
00061 extern sFONT Font8x12;
00062 extern sFONT Font8x8;
00063 
00064 /**
00065   * @}
00066   */ 
00067 
00068 /** @defgroup FONTS_Exported_Constants
00069   * @{
00070   */ 
00071 #define LINE(x) ((x) * (((sFONT *)LCD_GetFont())->Height))
00072 
00073 /**
00074   * @}
00075   */ 
00076 
00077 /** @defgroup FONTS_Exported_Macros
00078   * @{
00079   */ 
00080 /**
00081   * @}
00082   */ 
00083 
00084 /** @defgroup FONTS_Exported_Functions
00085   * @{
00086   */ 
00087 /**
00088   * @}
00089   */
00090 
00091 #ifdef __cplusplus
00092 }
00093 #endif
00094   
00095 #endif /* __FONTS_H */
00096  
00097 /**
00098   * @}
00099   */
00100 
00101 /**
00102   * @}
00103   */ 
00104 
00105 /**
00106   * @}
00107   */
00108 
00109 /**
00110   * @}
00111   */
00112 
00113 /**
00114   * @}
00115   */      
00116 
00117 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32