AppFunc.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * @Author : ChenJie
  3. * @Date : 2021-12-15 10:42:35
  4. * @Version : V3.0
  5. * @LastEditors : ChenJie
  6. * @LastEditTime : 2022-05-17 19:25:55
  7. * @Description : AppFuncion.h
  8. * @FilePath : \undefinedd:\1_WorkFiles\2_Software\10_ReplaceBatteryControl\ECTEK_ToolChain\VehicleControl\VehicleControl\src\System\Vehicle\AppFunc.h
  9. */
  10. /*
  11. * AppFuncion.h
  12. *
  13. * Created on: 2021Äê12ÔÂ15ÈÕ
  14. * Author: QiXiang_CHENJIE
  15. */
  16. #ifndef SYSTEM_VEHICLE_APPFUNCION_H_
  17. #define SYSTEM_VEHICLE_APPFUNCION_H_
  18. #include "CanVar.h"
  19. void GetHVLockState(void);
  20. void GetDIOState(void);
  21. void GetAIOValue(void);
  22. void LockAndUnlockCtrl();
  23. uint16 Look1_u32u8(uint32 u0, uint32 *bp0, uint8 *table, uint16 MaxLen);
  24. void FaultDiagnosisFunc(void);
  25. BOOL JudgeTimeSystem(BOOL Enable, BOOL Input, UINT16 *N, UINT16 Thr);
  26. BOOL DiagThrSystem1(BOOL Enable, BOOL precondition, UINT16 Input, UINT16 fltThr, UINT16 recThr, UINT16 fltNumThr, UINT16 recNumThr, UINT16 *fltNum, UINT16 *recNum, UINT8 *fitFlg);
  27. UINT16 GetErrorNum(UINT16 *ErrorArray, UINT8 Errorlen);
  28. UINT8 PutErrorNum(UINT16 *ErrorArray, UINT8 Errorlen, UINT16 ErrorNum);
  29. #ifdef _APP_TEST_CODE
  30. void TestDeviceFun(void);
  31. #endif
  32. #ifdef _APP_TEST_MOTOR_CODE
  33. void MotorControlFunc(UINT8 MotorIdx, UINT8 RotateDirec);
  34. #endif
  35. #endif /* SYSTEM_VEHICLE_APPFUNCION_H_ */