AppFunc.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 ctrlFunc(void);
  20. void GetAIOValue(void);
  21. void GetDIOState(void);
  22. uint16 Look1_u32u8(uint32 u0, uint32 *bp0, uint8 *table, uint16 MaxLen);
  23. BOOL JudgeTimeSystem(BOOL Enable, BOOL Input, UINT16 *N, UINT16 Thr);
  24. BOOL DiagThrSystem1(BOOL Enable, BOOL precondition, UINT16 Input, UINT16 fltThr, UINT16 recThr, UINT16 fltNumThr, UINT16 recNumThr, UINT16 *fltNum, UINT16 *recNum, UINT8 *fitFlg);
  25. UINT16 GetErrorNum(UINT16 *ErrorArray, UINT8 Errorlen);
  26. UINT8 PutErrorNum(UINT16 *ErrorArray, UINT8 Errorlen, UINT16 ErrorNum);
  27. #ifdef _APP_TEST_CODE
  28. void TestDeviceFun(void);
  29. #endif
  30. #ifdef _APP_TEST_MOTOR_CODE
  31. void MotorControlFunc(UINT8 MotorIdx, UINT8 RotateDirec);
  32. #endif
  33. #endif /* SYSTEM_VEHICLE_APPFUNCION_H_ */