GT5DL32A3W.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #ifndef _GT5DL32A3W_H_
  2. #define _GT5DL32A3W_H_
  3. #include "QRCode.h"
  4. extern unsigned char r_dat_bat(unsigned long address,unsigned long DataLen,unsigned char *pBuff);
  5. extern unsigned char r_dat(unsigned long address);
  6. extern unsigned char gt_read_data(unsigned char* sendbuf , unsigned char sendlen , unsigned char* receivebuf, unsigned int receivelen);
  7. //字库初始化
  8. int GT_Font_Init(void);
  9. #define ASCII_5X7 1
  10. #define ASCII_7X8 2
  11. #define ASCII_6X12 3
  12. #define ASCII_8X16 4 //LATIN
  13. #define ASCII_12X24 5
  14. #define ASCII_12X24_B 6
  15. #define ASCII_16X32 7
  16. #define ASCII_12_N 8 //Y
  17. #define ASCII_16_N 9
  18. #define ASCII_24_N 10
  19. #define ASCII_32_N 11
  20. //下列宏定义用于zz_zf函数
  21. //方体, 立体, 斜体共17个符号, 调用序号0~16
  22. #define F_FONT_24 20 //方体
  23. #define F_FONT_32 21
  24. #define F_FONT_48 22
  25. #define S_FONT_24 23 //立体
  26. #define S_FONT_32 24
  27. #define S_FONT_48 25
  28. #define I_FONT_24 26 //斜体
  29. #define I_FONT_32 27
  30. #define I_FONT_48 28
  31. //圆角 不等宽 共14个字符, 调用序号0~13
  32. #define A_16X16_T 30
  33. #define A_24X24_T 31
  34. #define A_24X32_T 32
  35. #define A_40X48_T 33
  36. #define A_40X64_T 34
  37. //线形 不等宽
  38. #define B_16X16_T 35
  39. #define B_24X24_T 36
  40. #define B_24X32_T 37
  41. #define B_40X48_T 38
  42. #define B_40X64_T 39
  43. //共14个字符
  44. #define T_FONT_24X24 40 //时钟体, 不等宽
  45. #define T_FONT_24X32 41
  46. #define T_FONT_40X48 42
  47. #define T_FONT_48X64 43
  48. //共14个字符, 对应调用序列 0~13
  49. #define F_8X16_T 44 //方块体, 不等宽
  50. #define F_16X24_T 45
  51. #define F_16X32_T 46
  52. #define F_24X48_T 47
  53. #define F_32X64_T 48
  54. unsigned char ASCII_GetData(unsigned char asc,unsigned long ascii_kind,unsigned char *DZ_Data);
  55. unsigned long U2G(unsigned int unicode);
  56. unsigned long U2K(unsigned int Unicode);
  57. unsigned long U2J(unsigned int Unicode);
  58. unsigned long U2BIG5(unsigned int unicode);
  59. unsigned long BIG5_GBK( unsigned char h,unsigned char l);
  60. unsigned long Shift_JIS_TO_JIS0208(unsigned int Code16);
  61. unsigned long GB2312_16_GetData(unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
  62. unsigned long BIG5_16_GetData(unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
  63. unsigned long GBK_24_GetData (unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
  64. unsigned long GBK_32_GetData (unsigned char MSB, unsigned char LSB,unsigned char *DZ_Data);
  65. unsigned long KSC5601_F_16_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
  66. unsigned long KSC5601_F_24_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
  67. unsigned long KSC5601_F_32_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
  68. unsigned long JIS0208_16X16_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
  69. unsigned long JIS0208_24X24_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
  70. unsigned long JIS0208_32X32_GetData(unsigned char MSB,unsigned char LSB,unsigned char *DZ_Data);
  71. unsigned long LATIN_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  72. unsigned long LATIN_16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  73. unsigned long LATIN_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  74. unsigned long LATIN_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  75. unsigned long CYRILLIC_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  76. unsigned long CYRILLIC_16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  77. unsigned long CYRILLIC_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  78. unsigned long CYRILLIC_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  79. unsigned long GREECE_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  80. unsigned long GREECE_16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  81. unsigned long GREECE_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  82. unsigned long GREECE_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  83. unsigned long HEBREW_8X16_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  84. unsigned long HEBREW_12X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  85. unsigned long HEBREW_16X32_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  86. unsigned long ALB_16_GetData(unsigned int unicode_alb,unsigned char *DZ_Data);
  87. unsigned long ALB_24_GetData(unsigned int UNICODE_alb,unsigned char *DZ_Data);
  88. unsigned long ALB_32_GetData(unsigned int UNICODE_alb,unsigned char *DZ_Data);
  89. unsigned long THAILAND_16X24_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  90. unsigned long THAILAND_48X48_GetData(unsigned int FontCode,unsigned char *DZ_Data);
  91. unsigned char zz_zf(unsigned char Sequence,unsigned char kind,unsigned char *DZ_Data);
  92. //一维码
  93. unsigned long *BAR_CODE_EAN13(unsigned char* BAR_NUM);
  94. unsigned long BAR_CODE39(unsigned char ASCIICODE,unsigned char *DZ_Data);
  95. unsigned long * BAR_CODE128(unsigned char *BAR_NUM,unsigned char BAR_NUM_LEN, unsigned char flag);
  96. #endif
  97. /* _GT5DL24A3W_H_ */