123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- #ifndef _GT5DL32A3W_H_
- #define _GT5DL32A3W_H_
- #include "QRCode.h"
- extern unsigned char r_dat_bat(unsigned long address,unsigned long DataLen,unsigned char *pBuff);
- extern unsigned char r_dat(unsigned long address);
- extern unsigned char gt_read_data(unsigned char* sendbuf , unsigned char sendlen , unsigned char* receivebuf, unsigned int receivelen);
- //字库初始化
- int GT_Font_Init(void);
- #define ASCII_5X7 1
- #define ASCII_7X8 2
- #define ASCII_6X12 3
- #define ASCII_8X16 4 //LATIN
- #define ASCII_12X24 5
- #define ASCII_12X24_B 6
- #define ASCII_16X32 7
- #define ASCII_12_N 8 //Y
- #define ASCII_16_N 9
- #define ASCII_24_N 10
- #define ASCII_32_N 11
- //下列宏定义用于zz_zf函数
- //方体, 立体, 斜体共17个符号, 调用序号0~16
- #define F_FONT_24 20 //方体
- #define F_FONT_32 21
- #define F_FONT_48 22
- #define S_FONT_24 23 //立体
- #define S_FONT_32 24
- #define S_FONT_48 25
- #define I_FONT_24 26 //斜体
- #define I_FONT_32 27
- #define I_FONT_48 28
- //圆角 不等宽 共14个字符, 调用序号0~13
- #define A_16X16_T 30
- #define A_24X24_T 31
- #define A_24X32_T 32
- #define A_40X48_T 33
- #define A_40X64_T 34
- //线形 不等宽
- #define B_16X16_T 35
- #define B_24X24_T 36
- #define B_24X32_T 37
- #define B_40X48_T 38
- #define B_40X64_T 39
- //共14个字符
- #define T_FONT_24X24 40 //时钟体, 不等宽
- #define T_FONT_24X32 41
- #define T_FONT_40X48 42
- #define T_FONT_48X64 43
- //共14个字符, 对应调用序列 0~13
- #define F_8X16_T 44 //方块体, 不等宽
- #define F_16X24_T 45
- #define F_16X32_T 46
- #define F_24X48_T 47
- #define F_32X64_T 48
- unsigned char ASCII_GetData(unsigned char asc,unsigned long ascii_kind,unsigned char *DZ_Data);
- unsigned long U2G(unsigned int unicode);
- unsigned long U2K(unsigned int Unicode);
- unsigned long U2J(unsigned int Unicode);
- unsigned long U2BIG5(unsigned int unicode);
- unsigned long BIG5_GBK( unsigned char h,unsigned char l);
- unsigned long Shift_JIS_TO_JIS0208(unsigned int Code16);
- unsigned long GB2312_16_GetData(unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
- unsigned long BIG5_16_GetData(unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
- unsigned long GBK_24_GetData (unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
- unsigned long GBK_32_GetData (unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
- unsigned long KSC5601_F_16_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
- unsigned long KSC5601_F_24_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
- unsigned long KSC5601_F_32_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
- unsigned long JIS0208_16X16_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
- unsigned long JIS0208_24X24_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
- unsigned long JIS0208_32X32_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
- unsigned long LATIN_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long LATIN_16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long LATIN_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long LATIN_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long CYRILLIC_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long CYRILLIC_16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long CYRILLIC_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long CYRILLIC_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long GREECE_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long GREECE_16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long GREECE_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long GREECE_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long HEBREW_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long HEBREW_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long HEBREW_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long ALB_16_GetData(unsigned int unicode_alb,unsigned char *DZ_Data);
- unsigned long ALB_24_GetData(unsigned int UNICODE_alb,unsigned char *DZ_Data);
- unsigned long ALB_32_GetData(unsigned int UNICODE_alb,unsigned char *DZ_Data);
- unsigned long THAILAND_16X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned long THAILAND_48X48_GetData(unsigned int FontCode,unsigned char *DZ_Data);
- unsigned char zz_zf(unsigned char Sequence,unsigned char kind,unsigned char *DZ_Data);
- //一维码
- unsigned long *BAR_CODE_EAN13(unsigned char* BAR_NUM);
- unsigned long BAR_CODE39(unsigned char ASCIICODE,unsigned char *DZ_Data);
- unsigned long * BAR_CODE128(unsigned char *BAR_NUM,unsigned char BAR_NUM_LEN, unsigned char flag);
- #endif
- /* _GT5DL24A3W_H_ */
|