⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hx16.h

📁 LPC1114_例程和教程
💻 H
字号:
/****************************************Copyright (c)******************************************************                            Guangzhou ZHIYUAN electronics Co.,LTD.****                                 http://www.embedtools.com****------File Info-----------------------------------------------------------------------------------------** File name:               hz16.h** Latest modified Date:    2007-12-12** Latest Version:          1.0** Descriptions:            hz16.c接口  ASCII码字库及汉字自定义字库的应用****--------------------------------------------------------------------------------------------------------** Created by:              张展威** Created date:            2007-12-12** Version:                 1.0** Descriptions:****--------------------------------------------------------------------------------------------------------** Modified by:** Modified date:** Version:** Descriptions:***********************************************************************************************************/#ifndef __HZ16_H#define __HZ16_H/****************************************Copyright (c)******************************************************                            Guangzhou ZHIYUAN electronics Co.,LTD.**                                      **                                 http://www.embedtools.com****------File Info-----------------------------------------------------------------------------------------** File name:               dataType.h** Latest modified Date:    2008-07-24** Latest Version:          1.0** Descriptions:            定义常用的数据类型及函数返回值  Designed for ARM (32bit processor)****--------------------------------------------------------------------------------------------------------** Created by:              张展威** Created date:            2008-07-24** Version:                 1.0** Descriptions:            ****--------------------------------------------------------------------------------------------------------** Modified by:             ** Modified date:           ** Version:                 ** Descriptions:            ***********************************************************************************************************/#ifndef __GENERAL_DATA_TYPE_H#define __GENERAL_DATA_TYPE_H/*********************************************************************************************************** 定义与编译器无关的数据类型*********************************************************************************************************/#ifndef INT8U#define INT8U  unsigned char                                            /* 无符号8位整型变量            */#endif#ifndef INT8S#define INT8S  signed char                                              /* 有符号8位整型变量            */#endif#ifndef INT16U#define INT16U unsigned short                                           /* 无符号16位整型变量           */#endif#ifndef INT16S#define INT16S signed short                                             /* 有符号16位整型变量           */#endif#ifndef INT32U#define INT32U unsigned long                                             /* 无符号32位整型变量           */#endif#ifndef INT32S#define INT32S signed long                                               /* 有符号32位整型变量           */#endif#ifndef FP32#define FP32   float                                                    /* 单精度浮点数(32位长度)     */#endif#ifndef FP64#define FP64   double                                                   /* 双精度浮点数(64位长度)     */#endif#ifndef BOOLEAN#define BOOLEAN unsigned char                                           /* 布尔变量                     */#endif#ifndef boolean#define boolean BOOLEAN                                                 /* 布尔变量                     */#endif#ifndef uchar#define uchar   unsigned char#endif#ifndef uint#define uint    unsigned int #endif/*********************************************************************************************************** 定义常用返回值*********************************************************************************************************/#ifndef TRUE#define TRUE 1#endif#ifndef FALSE#define FALSE 0#endif#ifndef true#define true 1#endif#ifndef false#define false 0#endif#endif//#include "dataType.h"                                                   /* 定义常用数据类型及函数返回值 *//*********************************************************************************************************汉字字模的数据结构定义*********************************************************************************************************/typedef struct typefnt{                                                 /* 汉字字模数据结构             */    unsigned char Index[2];                                             /* 汉字内码索引                 */    unsigned char Msk[32];                                              /* 点阵码数据                   */}FNT_GB16;extern const FNT_GB16 GBHZ_16[];                                        /* 自定义汉字字库               */extern const unsigned char ASCII[][16];                                 /* 自定义ASCII字库              */extern uint findHzIndex(uchar *hz);                                   /* 在自定义汉字库在查找所要显示 */                                                                        /* 的汉字的区位                 */#endif/*********************************************************************************************************** End of File*********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -