timeout.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef TIMEOUT_H_
  2. #define TIMEOUT_H_
  3. #include <sys/time.h>
  4. #include <sys/timeb.h>
  5. #include <sys/types.h>
  6. #include <sys/stat.h>
  7. #include <sys/types.h>
  8. #include <sys/ioctl.h>
  9. #include <sys/socket.h>
  10. #include <sys/ipc.h>
  11. #include <sys/shm.h>
  12. #include <sys/shm.h>
  13. #include <sys/mman.h>
  14. #include <linux/wireless.h>
  15. #include <linux/can.h>
  16. #include <linux/can/raw.h>
  17. #include <arpa/inet.h>
  18. #include <netinet/in.h>
  19. #include <unistd.h>
  20. #include <stdarg.h>
  21. #include <stdio.h>
  22. #include <stdlib.h>
  23. #include <unistd.h>
  24. #include <fcntl.h>
  25. #include <termios.h>
  26. #include <errno.h>
  27. #include <errno.h>
  28. #include <string.h>
  29. #include <time.h>
  30. #include <ctype.h>
  31. #include <ifaddrs.h>
  32. //------------------------------------------------------------------------------
  33. #define CONN_PLUG_TIME_OUT (40)
  34. //------------------------------------------------------------------------------
  35. enum Timeout_flag {
  36. Timeout_None = 0,
  37. Timeout_SelftestChk = 1,
  38. Timeout_Authorizing = 2,
  39. Timeout_VerifyFail = 3,
  40. Timeout_VerifyComp = 4,
  41. Timeout_WaitPlug = 5,
  42. Timeout_Preparing = 6,
  43. Timeout_EvChargingDet = 7,
  44. Timeout_EvseChargingDet = 8,
  45. Timeout_EvseCompleteDet = 9,
  46. Timeout_ForCcsPrechargeDet = 10,
  47. Timeout_ReturnToChargingGunDet = 11,
  48. Timeout_AuthorizingForStop = 12,
  49. Timeout_SelectGun = 13,
  50. Timeout_WaitBalance = 14,
  51. Timeout_EVCCID_Link = 15,
  52. Timeout_ReturnViewPage = 16,
  53. Timeout_helpPage = 17,
  54. Timeout_LanguagePage = 18,
  55. };
  56. //------------------------------------------------------------------------------
  57. // for timeout fork
  58. struct timeval _cmdSubPriority_time;
  59. unsigned short _connectionTimeout;
  60. // for main
  61. struct timeval _cmdMainPriority_time;
  62. struct timeval _toAverage_time;
  63. //uint8_t _ocppProfileChkFlag;
  64. #endif /* TIMEOUT_H_ */