1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /****************************************Copyright (c)**************************************************
- * File Name: GDI.h
- * Function Describe: Header file for GDI.c
- * Explain:
- * Writer: ShiLiangWen
- * Date: 2016-1-8
- ********************************************************************************************************/
- #ifndef __GDI_H
- #define __GDI_H
- //-------------------------------------------------------------------------------------------------------
- #include "stm32f10x.h"
- #define HZK16_FILE_NAME "HZK16"
- //汉字库
- typedef struct SUT_HZK
- {
- unsigned char width;//字库点阵宽度
- unsigned char heigh;//字库点阵高度
- unsigned char len; //字库点阵数据长度,一般等于width*heigh/8
- int FileIndex; //字库文件在sFlash中索引
- int FileLen; //字库文件大小
- }SUT_HZK;
- ////结构体SUTDL 用于解决unsigned long类型在PC存储和MCU存储中大端和小段方式的不同而做调整
- //typedef struct SUTDL
- //{
- // union {
- // struct { unsigned char b1,b2,b3,b4; }ucData;
- // unsigned long ulData;
- // }Data;
- //}SUTDL;
- ////结构体SUTDS 用于解决unsigned short类型在PC存储和MCU存储中大端和小段方式的不同而做调整
- //typedef struct SUTDS
- //{
- // union {
- // struct { unsigned char b1,b2; }ucData;
- // unsigned short usData;
- // }Data;
- //}SUTDS;
- void SetDefaultPalette(void);
- void GuiShowPic(u8 x,u8 y,const unsigned char *pic);
- void GuiInit(void);
- void GuiShowStr(u16 x, u16 y,const char *string,u8 mode);
- void GuiShowBMP(u16 x,u16 y,const char * filename);
- void GuiShowLogoGIF(void);
- void GuiShowSingle(int CSQ);
- void GuiShowTime();
- void GuiShowBat(int bat);
- //-------------------------------------------------------------------------------------------------------
- #endif
- /*********************************************************************************************************
- END FILE
- *********************************************************************************************************/
|