GlobalVariable.c
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:2k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. #include  "includeH.h"
  2. unsigned int gwTxNum;
  3. unsigned char   FTHCSI[25]={0xff,0x03,0x40,0x20,0x20,0x20,0x20,0x20,
  4.                   0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  5.                   0x78,0x61,0x46,0x10,0x03};//Default Value is @Fax 25Bytes
  6. unsigned char   FTHDIS[8]={0xff,0x13,0x80,0x00,0x46,0x78,0x10,0x03};//c6 T.4 2D 46 T.4 1D
  7. unsigned char   FRHTSI[25]={0xff,0x03,0x40,0x20,0x20,0x20,0x20,0x20,
  8.                   0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  9.                   0x78,0x61,0x46,0x10,0x03};//Default Value is @Fax 25Bytes
  10. unsigned char   aucUartRxBuf[256];
  11. unsigned char   aucUartTxBuf[32]={0x41,0x54,0x0D,0x0A};
  12. unsigned char   aucSoftUartRxBuf[20];
  13. unsigned int  gwPageAddress=cstFaxContentStartPage-1;//2559;//1279, //for write flash page by page
  14. unsigned int  gwColumnAddress=0; //for find blank page
  15.               
  16. unsigned char  gucGeneralStatus=0;
  17. /*
  18. unsigned char gucYear=0;
  19. unsigned char gucMonth=0;
  20. unsigned char gucDate=0;
  21. unsigned char gucHour=0x10;
  22. unsigned char gucMinute=0x00;
  23. unsigned char gucSecond=0;
  24. unsigned char gucViewRingNum=2;//default ring twice, start faxing
  25. //X RingNum Manual Auto X NewFax Sending Receiving
  26. unsigned char gucViewStaticStatus=0x51; //static status control default in Receiving status 
  27. unsigned char gucViewDynamicStatus=0x00;//flash status control
  28. unsigned char gucIcon2=0;            //reserved
  29. */
  30. unsigned char aucViewData[] = {0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x51, 0x00, 0x00};
  31. unsigned char COMMAND_VAL=0;
  32. unsigned char ADDRESS_VALUE=0;
  33. unsigned char FLASH_READ_DATA=0;
  34. unsigned char FLASH_STATUS=0; 
  35. unsigned char COLUMN_ADDRESS_LOW=0;
  36. unsigned char COLUMN_ADDRESS_HIGH=0;
  37. unsigned char ROW_ADDRESS_LOW=0;
  38. unsigned char ROW_ADDRESS_HIGH=0;
  39. unsigned char  gucFrhErrorStatus=0;
  40. unsigned char  gucTimeOverflowCount=0;
  41. unsigned char  gucTxBufCnt = 0;
  42. unsigned char  gpucTxBufPnt=0;
  43. unsigned char  gucUartRxCnt=0;
  44. unsigned char  gucSoftUartRxCnt=0;
  45. //unsigned char  gucRxTxFlag=0;
  46. unsigned char  gpucQueueRear=0; 
  47. unsigned char  gpucQueueFront=0;
  48. unsigned long  gdwRxQueueRearCnt=0; 
  49. unsigned long  gdwRxQueueFrontCnt=0;
  50. unsigned int  gwTimeOverflowCount=0;
  51. unsigned int  gwGeneralPageAddress;