a

Dependencies:   mbed

Dependents:   a123

Committer:
nam3886
Date:
Mon Jun 10 10:45:06 2019 +0000
Revision:
1:d4da8708dc0a
Parent:
0:d05b765ea94c
12

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fundokukiri 0:d05b765ea94c 1 /**
fundokukiri 0:d05b765ea94c 2 ******************************************************************************
fundokukiri 0:d05b765ea94c 3 * @file fonts.h
fundokukiri 0:d05b765ea94c 4 * @author MCD Application Team
fundokukiri 0:d05b765ea94c 5 * @version V1.0.0
fundokukiri 0:d05b765ea94c 6 * @date 18-February-2014
fundokukiri 0:d05b765ea94c 7 * @brief Header for fonts.c file
fundokukiri 0:d05b765ea94c 8 ******************************************************************************
fundokukiri 0:d05b765ea94c 9 * @attention
fundokukiri 0:d05b765ea94c 10 *
fundokukiri 0:d05b765ea94c 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
fundokukiri 0:d05b765ea94c 12 *
fundokukiri 0:d05b765ea94c 13 * Redistribution and use in source and binary forms, with or without modification,
fundokukiri 0:d05b765ea94c 14 * are permitted provided that the following conditions are met:
fundokukiri 0:d05b765ea94c 15 * 1. Redistributions of source code must retain the above copyright notice,
fundokukiri 0:d05b765ea94c 16 * this list of conditions and the following disclaimer.
fundokukiri 0:d05b765ea94c 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
fundokukiri 0:d05b765ea94c 18 * this list of conditions and the following disclaimer in the documentation
fundokukiri 0:d05b765ea94c 19 * and/or other materials provided with the distribution.
fundokukiri 0:d05b765ea94c 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
fundokukiri 0:d05b765ea94c 21 * may be used to endorse or promote products derived from this software
fundokukiri 0:d05b765ea94c 22 * without specific prior written permission.
fundokukiri 0:d05b765ea94c 23 *
fundokukiri 0:d05b765ea94c 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
fundokukiri 0:d05b765ea94c 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
fundokukiri 0:d05b765ea94c 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
fundokukiri 0:d05b765ea94c 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
fundokukiri 0:d05b765ea94c 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
fundokukiri 0:d05b765ea94c 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
fundokukiri 0:d05b765ea94c 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
fundokukiri 0:d05b765ea94c 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
fundokukiri 0:d05b765ea94c 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
fundokukiri 0:d05b765ea94c 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
fundokukiri 0:d05b765ea94c 34 *
fundokukiri 0:d05b765ea94c 35 ******************************************************************************
fundokukiri 0:d05b765ea94c 36 */
fundokukiri 0:d05b765ea94c 37
fundokukiri 0:d05b765ea94c 38 /* Define to prevent recursive inclusion -------------------------------------*/
fundokukiri 0:d05b765ea94c 39 #ifndef __FONTS_H
fundokukiri 0:d05b765ea94c 40 #define __FONTS_H
fundokukiri 0:d05b765ea94c 41
fundokukiri 0:d05b765ea94c 42 #ifdef __cplusplus
fundokukiri 0:d05b765ea94c 43 extern "C" {
fundokukiri 0:d05b765ea94c 44 #endif
fundokukiri 0:d05b765ea94c 45
fundokukiri 0:d05b765ea94c 46 /* Includes ------------------------------------------------------------------*/
fundokukiri 0:d05b765ea94c 47 #include <stdint.h>
fundokukiri 0:d05b765ea94c 48
fundokukiri 0:d05b765ea94c 49 /** @addtogroup Utilities
fundokukiri 0:d05b765ea94c 50 * @{
fundokukiri 0:d05b765ea94c 51 */
fundokukiri 0:d05b765ea94c 52
fundokukiri 0:d05b765ea94c 53 /** @addtogroup STM32_EVAL
fundokukiri 0:d05b765ea94c 54 * @{
fundokukiri 0:d05b765ea94c 55 */
fundokukiri 0:d05b765ea94c 56
fundokukiri 0:d05b765ea94c 57 /** @addtogroup Common
fundokukiri 0:d05b765ea94c 58 * @{
fundokukiri 0:d05b765ea94c 59 */
fundokukiri 0:d05b765ea94c 60
fundokukiri 0:d05b765ea94c 61 /** @addtogroup FONTS
fundokukiri 0:d05b765ea94c 62 * @{
fundokukiri 0:d05b765ea94c 63 */
fundokukiri 0:d05b765ea94c 64
fundokukiri 0:d05b765ea94c 65 /** @defgroup FONTS_Exported_Types
fundokukiri 0:d05b765ea94c 66 * @{
fundokukiri 0:d05b765ea94c 67 */
fundokukiri 0:d05b765ea94c 68 typedef struct _tFont
fundokukiri 0:d05b765ea94c 69 {
fundokukiri 0:d05b765ea94c 70 const uint8_t *table;
fundokukiri 0:d05b765ea94c 71 uint16_t Width;
fundokukiri 0:d05b765ea94c 72 uint16_t Height;
fundokukiri 0:d05b765ea94c 73
fundokukiri 0:d05b765ea94c 74 } sFONT;
fundokukiri 0:d05b765ea94c 75
fundokukiri 0:d05b765ea94c 76 extern sFONT Font24;
fundokukiri 0:d05b765ea94c 77 extern sFONT Font20;
fundokukiri 0:d05b765ea94c 78 extern sFONT Font16;
fundokukiri 0:d05b765ea94c 79 extern sFONT Font12;
fundokukiri 0:d05b765ea94c 80 extern sFONT Font8;
fundokukiri 0:d05b765ea94c 81 /**
fundokukiri 0:d05b765ea94c 82 * @}
fundokukiri 0:d05b765ea94c 83 */
fundokukiri 0:d05b765ea94c 84
fundokukiri 0:d05b765ea94c 85 /** @defgroup FONTS_Exported_Constants
fundokukiri 0:d05b765ea94c 86 * @{
fundokukiri 0:d05b765ea94c 87 */
fundokukiri 0:d05b765ea94c 88 #define LINE(x) ((x) * (((sFONT *)BSP_LCD_GetFont())->Height))
fundokukiri 0:d05b765ea94c 89
fundokukiri 0:d05b765ea94c 90 /**
fundokukiri 0:d05b765ea94c 91 * @}
fundokukiri 0:d05b765ea94c 92 */
fundokukiri 0:d05b765ea94c 93
fundokukiri 0:d05b765ea94c 94 /** @defgroup FONTS_Exported_Macros
fundokukiri 0:d05b765ea94c 95 * @{
fundokukiri 0:d05b765ea94c 96 */
fundokukiri 0:d05b765ea94c 97 /**
fundokukiri 0:d05b765ea94c 98 * @}
fundokukiri 0:d05b765ea94c 99 */
fundokukiri 0:d05b765ea94c 100
fundokukiri 0:d05b765ea94c 101 /** @defgroup FONTS_Exported_Functions
fundokukiri 0:d05b765ea94c 102 * @{
fundokukiri 0:d05b765ea94c 103 */
fundokukiri 0:d05b765ea94c 104 /**
fundokukiri 0:d05b765ea94c 105 * @}
fundokukiri 0:d05b765ea94c 106 */
fundokukiri 0:d05b765ea94c 107
fundokukiri 0:d05b765ea94c 108 #ifdef __cplusplus
fundokukiri 0:d05b765ea94c 109 }
fundokukiri 0:d05b765ea94c 110 #endif
fundokukiri 0:d05b765ea94c 111
fundokukiri 0:d05b765ea94c 112 #endif /* __FONTS_H */
fundokukiri 0:d05b765ea94c 113
fundokukiri 0:d05b765ea94c 114 /**
fundokukiri 0:d05b765ea94c 115 * @}
fundokukiri 0:d05b765ea94c 116 */
fundokukiri 0:d05b765ea94c 117
fundokukiri 0:d05b765ea94c 118 /**
fundokukiri 0:d05b765ea94c 119 * @}
fundokukiri 0:d05b765ea94c 120 */
fundokukiri 0:d05b765ea94c 121
fundokukiri 0:d05b765ea94c 122 /**
fundokukiri 0:d05b765ea94c 123 * @}
fundokukiri 0:d05b765ea94c 124 */
fundokukiri 0:d05b765ea94c 125
fundokukiri 0:d05b765ea94c 126 /**
fundokukiri 0:d05b765ea94c 127 * @}
fundokukiri 0:d05b765ea94c 128 */
fundokukiri 0:d05b765ea94c 129
fundokukiri 0:d05b765ea94c 130 /**
fundokukiri 0:d05b765ea94c 131 * @}
fundokukiri 0:d05b765ea94c 132 */
fundokukiri 0:d05b765ea94c 133
fundokukiri 0:d05b765ea94c 134 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/