MONITOR.LST 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * MONITOR.MOD - COMMS Toolkit RS232 line monitors *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1990..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 IMPLEMENTATION MODULE Monitor;
  13. 12 IMPORT FIO,RS232,FTSupport;
  14. 13
  15. 14 CONST
  16. 15 TestFileName = 'E:\TEST.232';
  17. ***** ^ not supported yet
  18. 16
  19. 17 VAR
  20. 18 TestFile : FIO.File;
  21. ***** ^ not supported yet
  22. 19 RxChain : RS232.RxHookProc;
  23. ***** ^ not supported yet
  24. 20 TxChain : RS232.TxHookProc;
  25. ***** ^ not supported yet
  26. 21
  27. 22 PROCEDURE RxProc(VAR ch:CHAR);
  28. 23 BEGIN
  29. 24 FIO.WrChar(TestFile,ch);
  30. ***** ^ not supported yet
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. ***** ^ not supported yet
  34. 25 FIO.WrChar(TestFile,'');
  35. ***** ^ not supported yet
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. 26 IF RxChain # NULLPROC THEN
  40. ***** ^ not supported yet
  41. ***** ^ undeclared identifier
  42. 27 RxChain(ch);
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. 28 END; (*IF*)
  46. 29 END RxProc;
  47. ***** ^ not supported yet
  48. 30
  49. 31 (*# save,call(o_a_copy=>off),check(index=>off)*)
  50. 32 PROCEDURE TxProc(VAR Stg:ARRAY OF CHAR;VAR Len:CARDINAL);
  51. ***** ^ not supported yet
  52. 33 VAR
  53. 34 i : CARDINAL;
  54. 35 BEGIN
  55. 36 FOR i := 0 TO Len - 1 DO
  56. 37 FIO.WrChar(TestFile,Stg[i]);
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 38 FIO.WrChar(TestFile,'');
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. 39 END; (*FOR*)
  68. 40 IF TxChain # NULLPROC THEN
  69. ***** ^ not supported yet
  70. ***** ^ undeclared identifier
  71. 41 TxChain(Stg,Len);
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. 42 END; (*IF*)
  76. 43 END TxProc;
  77. ***** ^ not supported yet
  78. 44 (*# restore *)
  79. 45
  80. 46 BEGIN (*Monitor*)
  81. 47 TestFile := FIO.Create(TestFileName);
  82. ***** ^ not supported yet
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 48 RS232.AddRxHook(RxProc,RxChain);
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. 49 RS232.AddTxHook(TxProc,TxChain);
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. 50 FTSupport.HookOnFT := TRUE;
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. 51 END Monitor.
  100. ***** ^ not supported yet
  101. 52
  102. 48 errors