HWStructure.h 820 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #pragma once
  2. #ifndef HW_STRUCTURE_H
  3. #define HW_STRUCTURE_H
  4. const int MAX_STRING = 1024;
  5. typedef struct ECommand
  6. {
  7. wchar_t strHeader[2];//ͷλ
  8. wchar_t strProcIndex[2];
  9. wchar_t strDeviceIndex;
  10. wchar_t strFrmID[2];
  11. wchar_t strCMD[5];
  12. wchar_t strData[8];
  13. }
  14. ECommand;
  15. enum
  16. {
  17. FRAME_BEGIN = 1,
  18. FRAME_END = 2,
  19. FRAME_PREP = 3,
  20. FRAME_EXP_FAILED = 4,
  21. FRAME_EXP_PREP = 5
  22. };
  23. enum
  24. {
  25. SEQ_START = 1,
  26. SEQ_END= 2,
  27. SEQ_PREP = 3,
  28. };
  29. typedef enum{
  30. DT_GEN,
  31. DT_FPD,
  32. DT_TOMO,
  33. DT_MASK,
  34. DT_POS,
  35. DT_COL,
  36. DT_OTHER
  37. }ecom_data_type;
  38. typedef enum
  39. {
  40. NOSWITCH,
  41. SWITCH_PREP,
  42. SWITCH_READY,
  43. SWITCH_OVER,
  44. SWITCH_FOOT
  45. };
  46. typedef enum
  47. {
  48. NOCAL,
  49. CAL_START,
  50. CAL_CONFIRM,
  51. CAL_REJECT,
  52. CAL_ABORT,
  53. CAL_END
  54. };
  55. typedef enum ImageType
  56. {
  57. IMG_NULL,
  58. IMG_FULL,
  59. IMG_PREVIEW,
  60. IMG_RF,
  61. IMG_TIMEOUT
  62. };
  63. #endif HW_STRUCTURE_H