SFM.h 2.8 KB

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