ST / BSP_DISCO_L4R9I

Dependents:   DISCO_L4R9I-LCD-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fonts.h Source File

fonts.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    fonts.h
00004   * @author  MCD Application Team
00005   * @brief   This file provides definition for fonts to be used for STM32
00006   *          board's LCD driver
00007   ******************************************************************************
00008   * @attention
00009   *
00010   * <h2><center>&copy; Copyright (c) 2014 STMicroelectronics.
00011   * All rights reserved.</center></h2>
00012   *
00013   * This software component is licensed by ST under BSD 3-Clause license,
00014   * the "License"; You may not use this file except in compliance with the
00015   * License. You may obtain a copy of the License at:
00016   *                        opensource.org/licenses/BSD-3-Clause
00017   *
00018   ******************************************************************************
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 uint8_t *table;
00054   uint16_t Width;
00055   uint16_t Height;
00056 } sFONT;
00057 
00058 extern sFONT Font24;
00059 extern sFONT Font20;
00060 extern sFONT Font16;
00061 extern sFONT Font12;
00062 extern sFONT Font8;
00063 /**
00064   * @}
00065   */
00066 
00067 /** @defgroup FONTS_Exported_Constants
00068   * @{
00069   */
00070 #define LINE(x) ((x) * (((sFONT *)BSP_LCD_GetFont())->Height))
00071 
00072 /**
00073   * @}
00074   */
00075 
00076 /** @defgroup FONTS_Exported_Macros
00077   * @{
00078   */ 
00079 /**
00080   * @}
00081   */ 
00082 
00083 /** @defgroup FONTS_Exported_Functions
00084   * @{
00085   */ 
00086 /**
00087   * @}
00088   */
00089 
00090 #ifdef __cplusplus
00091 }
00092 #endif
00093 
00094 #endif /* __FONTS_H */
00095 
00096 /**
00097   * @}
00098   */
00099 
00100 /**
00101   * @}
00102   */
00103 
00104 /**
00105   * @}
00106   */
00107 
00108 /**
00109   * @}
00110   */
00111 
00112 /**
00113   * @}
00114   */      
00115 
00116 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/