AN4323 原版完整文件.docx
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《AN4323 原版完整文件.docx》由会员分享,可在线阅读,更多相关《AN4323 原版完整文件.docx(31页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、AN4323Application noteGetting started with STemWin LibraryIntroductionA partnership with Segger Microcontroller GmbH & Co. KG enables STMicroelectronics to provide STemWin Library, a product based on Seggers graphic library emWin.STemWin Library is a professional graphical stack library enabling the
2、 building up of Graphical User Interfaces (GUIs) with any STM32, any LCD/TFT display and any LCD/TFT controller, taking advantage of STM32 hardware accelerations whenever possible.STemWin Library is a comprehensive solution coming with rich features such as JPG, GIF and PNG decoding, many widgets (c
3、heckboxes, buttons) and a VNC server allowing to display remotely a local display, but also professional tools such as GUIBuilder to create dialog boxes by drag and drop, a font converter, etc.Table 1 lists the microcontrollers concerned by this application note.Table 1. Applicable productsTypeProdu
4、ct categoriesMicrocontrollersSTM32F0xx series STM32F1xx series STM32F2xx series STM32F3xx seriesSTM32F4xx series STM32L1xx seriesJuly 2013DocID024959 Rev 11/31ContentsAN4323Contents2/31DocID024959 Rev 11 Library and package presentation61.1 Licensing information61.2 Library description61.3 Package o
5、rganization81.4 Delivered binaries82 Supported EVAL boards and examples103 How to use STemWin Library step by step133.1 Configuration133.1.1 GUIConf_stm32xxx_eval.c133.1.2 LCDConf_stm32xxx_eval.c133.1.3 GUI_X.c or GUI_X_OS.c143.2 GUI initialization143.3 Core functions153.3.1 Image file display153.3.
6、2 Bidirectional text153.3.3 Alpha blending153.3.4 Sprites and cursors153.4 Memory devices163.5 Antialiasing173.6 Window Manager173.7 Widget library183.8 VNC server183.8.1 Requirements193.8.2 Process description203.9 Fonts213.10 GUIBuilder243.10.1 Basic usage of the GUIBuilder253.10.2 Creation routin
7、e253.10.3 User-defined code253.10.4 Callback routine254 Performance and footprint264.1 LCD driver performance264.2 STemWin footprint275 FAQs (Frequently Asked Questions)296 Revision history30DocID024959 Rev 13/31List of tablesAN4323List of tablesTable 1.Applicable products1Table 2.Supported LCD cont
8、rollers7Table 3.Supported EVAL boards and examples10Table 4.Font API23Table 5.Speed test list26Table 6.Speed test for the STM324xG-EVAL + FlexColor driver26Table 7.Module footprint27Table 8.Widget footprint28Table 9.FAQs29Table 10.Document revision history304/31DocID024959 Rev 1AN4323List of figures
9、List of figuresFigure 1.STemWin layers6Figure 2.Project tree8Figure 3.Structure of the STemWin Library examples10Figure 4.Alpha blending effect15Figure 5.Animated sprites16Figure 6.Cursors16Figure 7.Scaling and rotation effect using memdev17Figure 8.Shape antialiasing17Figure 9.Widget examples18Figu
10、re 10.VNC server usage19Figure 11.VNC client20Figure 12.The GUIBuilder application24DocID024959 Rev 15/31Library and package presentationAN43231 Library and package presentationThe STemWin Library package includes a set of firmware libraries and software tools used to build advanced and professional
11、 GUI-based applications.1.1 Licensing information STemWin Library GUI files are provided in object format and licensed under MCD-ST Image Software License Agreement V2 (the “License”); you may not use this package except in compliance with the License. You may obtain a copy of the License at: STemWi
12、n Library configuration and header files are provided in source format and licensed under MCD-ST Liberty Software License Agreement V2 (the “License”); you may not use this package except in compliance with the License. You may obtain a copy of the License at: Unless required by applicable law or ag
13、reed 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.1.2 Library descriptionFigure 1 sh
14、ows how STemWin is structured internally and how it can be implemented in a complete project.Figure 1. STemWin layers1. The CRC module (in RCC peripheral clock enable register) should be enabled before using the library.6/31DocID024959 Rev 1AN4323Library and package presentationSTemWin Library inclu
15、des two optimized drivers: Direct linear access (LIN) driver for the STM32F429 TFT-LCD controller with the DMA2D ChromART graphical acceleration engine, FlexColor (indirect access) driver for serial and parallel bus external LCD controllers available on all STM32 EVAL boards.Refer to Table 2 for a l
16、ist of all supported display controllers.Note:It is still possible to support any other LCD type just by implementing its own “custom” driver.In addition to the main application, the user has to set and customize two essential interface files: LCD configuration file (LCDConf_stm32xxx_eval.c) LCD Dis
17、play initialization and configuration LCD Display driver link and customizing Additional hardware capability management GUI configuration file (GUIConf_stm32xxx_eval.c) Module selection (memory device, window manager) GUI memory and heap managementTable 2. Supported LCD controllersDriverSupported LC
18、D controllersSupported bits/pixelsGUIDRV_LinThis driver supports every display controller with linear addressable video memory with a direct (full bus) interface. This means that the video RAM is directly addressable by the address lines of the CPU.The driver contains no controller-specific code. So
19、 it can also be used for solutions without display controller which require a driver which only manages the video RAM.16, 18Epson S1D19122FocalTech FT1509Himax HX8301, HX8340, HX8347, HX8352, HX8353, HX8325AHitachi HD66772Ilitek ILI9220, ILI9221, ILI9320, ILI9325, ILI9328, ILI9335,ILI9338, ILI9340,
20、ILI9341, ILI9342, ILI9481GUIDRV_FlexColorLG Electronics LGDP4531, LGDP4551Novatek NT391221, 2, 4, 8,16, 24, 32OriseTech SPFD5408, SPFD54124C, SPFD5414DRenesas R61505, R61516, R61526, R61580Samsung S6D0117, S6E63D6Sitronix ST7628, ST7637, ST7687, ST7712, ST7735Solomon SSD1355, SSD1961, SSD1963, SSD21
21、19Syncoam SEPS525DocID024959 Rev 17/31Library and package presentationAN43231.3 Package organizationFigure 2 shows the project tree.Standard and advanced librariesSTemWin Library:Config: global config file + templates GUIConf and LCDConf filesDocumentation: emWin User & Reference Guide Inc: header f
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- AN4323 原版完整文件 原版 完整 文件
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内