SFM.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. uint8_T fltNum81;
  9. uint8_T recNum81;
  10. uint8_T fltNum82;
  11. uint8_T recNum82;
  12. uint8_T fltNum83;
  13. uint8_T recNum83;
  14. uint8_T fltNum84;
  15. uint8_T recNum84;
  16. uint8_T fltNum85;
  17. uint8_T recNum85;
  18. uint8_T fltNum86;
  19. uint8_T recNum86;
  20. uint8_T fltNum87;
  21. uint8_T recNum87;
  22. uint8_T fltNum88;
  23. uint8_T recNum88;
  24. uint8_T fltNum89;
  25. uint8_T recNum89;
  26. uint8_T fltNum90;
  27. uint8_T recNum90;
  28. uint8_T fltNum97;
  29. uint8_T recNum97;
  30. uint8_T fltNum98;
  31. uint8_T recNum98;
  32. uint8_T fltNum99;
  33. uint8_T recNum99;
  34. uint8_T fltNum100;
  35. uint8_T recNum100;
  36. uint8_T fltNum101;
  37. uint8_T recNum101;
  38. uint8_T fltNum102;
  39. uint8_T recNum102;
  40. uint8_T fltNum103;
  41. uint8_T recNum103;
  42. uint8_T fltNum104;
  43. uint8_T recNum104;
  44. uint8_T fltNum105;
  45. uint8_T recNum105;
  46. uint8_T fltNum106;
  47. uint8_T recNum106;
  48. uint8_T fltNum107;
  49. uint8_T recNum107;
  50. uint8_T fltNum108;
  51. uint8_T recNum108;
  52. uint8_T fltNum109;
  53. uint8_T recNum109;
  54. uint8_T fltNum110;
  55. uint8_T recNum110;
  56. uint8_T fltNum111;
  57. uint8_T recNum111;
  58. uint8_T fltNum112;
  59. uint8_T recNum112;
  60. uint8_T fltNum113;
  61. uint8_T recNum113;
  62. uint8_T fltNum114;
  63. uint8_T recNum114;
  64. uint8_T fltNum115_1;
  65. uint8_T recNum115_1;
  66. uint8_T fltNum115_2;
  67. uint8_T recNum115_2;
  68. uint8_T fltNum116_1;
  69. uint8_T recNum116_1;
  70. uint8_T fltNum116_2;
  71. uint8_T recNum116_2;
  72. uint8_T fltNum131;
  73. uint8_T recNum131;
  74. uint8_T fltNum132;
  75. uint8_T recNum132;
  76. }DiagThrstruct;
  77. typedef struct {
  78. uint8_T N151;
  79. uint8_T N152;
  80. uint8_T N153;
  81. uint8_T N154;
  82. uint8_T N155;
  83. uint8_T N156;
  84. uint8_T N157;
  85. uint8_T N158;
  86. uint8_T N159;
  87. uint8_T N160;
  88. uint8_T N161;
  89. uint8_T N162;
  90. }DiagMisstruct;
  91. extern boolean_T DiagThrSystem1(boolean_T Enable, boolean_T precondition, uint16_T Input,uint16_T fltThr,uint16_T recThr,uint16_T fltNumThr,uint16_T recNumThr,uint8_T *fltNum,uint8_T *recNum,boolean_T *fitFlg);
  92. extern boolean_T DiagThrSystem2(boolean_T Enable, boolean_T precondition, uint16_T Input,uint16_T fltThr,uint16_T recThr,uint16_T fltNumThr,uint16_T recNumThr,uint8_T *fltNum,uint8_T *recNum,boolean_T *fitFlg);
  93. extern boolean_T MisMatich(boolean_T x, boolean_T y, uint8_T *N);