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