SFM.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #include "rtwtypes.h"
  2. #include "BCUCal.h"
  3. #include "BCUDisp.h"
  4. extern boolean_T FirstRun_SFM;
  5. extern void SFM_Init(void);
  6. extern void SFM(void);
  7. typedef struct
  8. {
  9. uint8_T fltNum81;
  10. uint8_T recNum81;
  11. uint8_T fltNum82;
  12. uint8_T recNum82;
  13. uint8_T fltNum83;
  14. uint8_T recNum83;
  15. uint8_T fltNum84;
  16. uint8_T recNum84;
  17. uint8_T fltNum85;
  18. uint8_T recNum85;
  19. uint8_T fltNum86;
  20. uint8_T recNum86;
  21. uint8_T fltNum87;
  22. uint8_T recNum87;
  23. uint8_T fltNum88;
  24. uint8_T recNum88;
  25. uint8_T fltNum89;
  26. uint8_T recNum89;
  27. uint8_T fltNum90;
  28. uint8_T recNum90;
  29. uint8_T fltNum97;
  30. uint8_T recNum97;
  31. uint8_T fltNum98;
  32. uint8_T recNum98;
  33. uint8_T fltNum99;
  34. uint8_T recNum99;
  35. uint8_T fltNum100;
  36. uint8_T recNum100;
  37. uint8_T fltNum101;
  38. uint8_T recNum101;
  39. uint8_T fltNum102;
  40. uint8_T recNum102;
  41. uint8_T fltNum103;
  42. uint8_T recNum103;
  43. uint8_T fltNum104;
  44. uint8_T recNum104;
  45. uint8_T fltNum105;
  46. uint8_T recNum105;
  47. uint8_T fltNum106;
  48. uint8_T recNum106;
  49. uint8_T fltNum107;
  50. uint8_T recNum107;
  51. uint8_T fltNum108;
  52. uint8_T recNum108;
  53. uint8_T fltNum109;
  54. uint8_T recNum109;
  55. uint8_T fltNum110;
  56. uint8_T recNum110;
  57. uint8_T fltNum111;
  58. uint8_T recNum111;
  59. uint8_T fltNum112;
  60. uint8_T recNum112;
  61. uint8_T fltNum113;
  62. uint8_T recNum113;
  63. uint8_T fltNum114;
  64. uint8_T recNum114;
  65. uint8_T fltNum115_1;
  66. uint8_T recNum115_1;
  67. uint8_T fltNum115_2;
  68. uint8_T recNum115_2;
  69. uint8_T fltNum116_1;
  70. uint8_T recNum116_1;
  71. uint8_T fltNum116_2;
  72. uint8_T recNum116_2;
  73. uint8_T fltNum131;
  74. uint8_T recNum131;
  75. uint8_T fltNum132;
  76. uint8_T recNum132;
  77. } DiagThrstruct;
  78. typedef struct
  79. {
  80. uint16_T N22;
  81. uint16_T N24;
  82. uint16_T N32;
  83. uint16_T N33;
  84. uint16_T N34;
  85. uint16_T N54;
  86. uint16_T N56;
  87. uint16_T N57;
  88. uint16_T N58;
  89. uint16_T N59;
  90. uint16_T N62;
  91. uint16_T N64;
  92. uint16_T N65;
  93. uint16_T N66;
  94. uint16_T N67;
  95. uint16_T N151;
  96. uint16_T N152;
  97. uint16_T N153;
  98. uint16_T N154;
  99. uint16_T N155;
  100. uint16_T N156;
  101. uint16_T N157;
  102. uint16_T N158;
  103. uint16_T N159;
  104. uint16_T N160;
  105. uint16_T N161;
  106. uint16_T N162;
  107. uint16_T N179;
  108. } DiagTimestruct;
  109. extern boolean_T DiagThrSystem1(boolean_T Enable, boolean_T precondition, uint16_T Input, uint16_T fltThr, uint16_T recThr, uint8_T fltNumThr, uint8_T recNumThr, uint8_T *fltNum, uint8_T *recNum, boolean_T *fitFlg);
  110. extern boolean_T DiagThrSystem2(boolean_T Enable, boolean_T precondition, uint16_T Input, uint16_T fltThr, uint16_T recThr, uint8_T fltNumThr, uint8_T recNumThr, uint8_T *fltNum, uint8_T *recNum, boolean_T *fitFlg);
  111. extern boolean_T JudgeTimeSystem(boolean_T Enable, boolean_T Input, uint16_T *N, uint16_T Thr);