Module_ChkSysTask.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * CheckTask.h
  3. *
  4. * Created on: 2021年9月2日
  5. * Author: 7564
  6. */
  7. #ifndef CHECKTASK_H_
  8. #define CHECKTASK_H_
  9. #include <sys/timeb.h>
  10. #include <sys/types.h>
  11. #include <sys/ioctl.h>
  12. #include <sys/socket.h>
  13. #include <sys/ipc.h>
  14. #include <sys/shm.h>
  15. #include <sys/mman.h>
  16. #include <linux/wireless.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> /*Unix 標準函數定義*/
  24. #include <fcntl.h> /*檔控制定義*/
  25. #include <termios.h> /*PPSIX 終端控制定義*/
  26. #include <errno.h> /*錯誤號定義*/
  27. #include <string.h>
  28. #include <stdint.h>
  29. #include <time.h>
  30. #include <ctype.h>
  31. #include <ifaddrs.h>
  32. #include <math.h>
  33. #include <stdbool.h>
  34. #include <dirent.h>
  35. #define _SYSTEM_TASK_LOST_ITEM_MAIN 1
  36. #define _SYSTEM_TASK_LOST_ITEM_EVCOMM 2
  37. #define _SYSTEM_TASK_LOST_ITEM_EVENTLOG 3
  38. #define _SYSTEM_TASK_LOST_ITEM_PRIMARYCOMM 4
  39. #define _SYSTEM_TASK_LOST_ITEM_LCMCONTROL 5
  40. #define _SYSTEM_TASK_LOST_ITEM_INTERCOMM 6
  41. #define _SYSTEM_TASK_LOST_ITEM_DOCOMM 7
  42. #define _SYSTEM_TASK_LOST_ITEM_PRODUCTUTILS 8
  43. #define _SYSTEM_TASK_LOST_ITEM_UPDATEFW 9
  44. #define _SYSTEM_TASK_LOST_ITEM_DCMETER 10
  45. ///*
  46. #define _SYSTEM_TASK_COUNT_MAIN 5
  47. #define _SYSTEM_TASK_COUNT_EVCOMM 2
  48. #define _SYSTEM_TASK_COUNT_INTERNALCOMM 2
  49. #define _SYSTEM_TASK_COUNT_EVENTLOGGING 1
  50. #define _SYSTEM_TASK_COUNT_PRIMARYCOMM 1
  51. #define _SYSTEM_TASK_COUNT_LCM_21_5 2
  52. #define _SYSTEM_TASK_COUNT_LCM_7 1
  53. #define _SYSTEM_TASK_COUNT_DOCOMM 1
  54. #define _SYSTEM_TASK_COUNT_PRODUCEUTILS 1
  55. #define _SYSTEM_TASK_COUNT_UPDATEFW 1
  56. #define _SYSTEM_TASK_COUNT_DCMETER 1
  57. //*/
  58. /*
  59. #define _SYSTEM_TASK_COUNT_MAIN 3
  60. #define _SYSTEM_TASK_COUNT_EVCOMM 0
  61. #define _SYSTEM_TASK_COUNT_INTERNALCOMM 0
  62. #define _SYSTEM_TASK_COUNT_EVENTLOGGING 0
  63. #define _SYSTEM_TASK_COUNT_PRIMARYCOMM 0
  64. #define _SYSTEM_TASK_COUNT_LCM 0
  65. #define _SYSTEM_TASK_COUNT_DOCOMM 0
  66. #define _SYSTEM_TASK_COUNT_PRODUCEUTILS 0
  67. #define _SYSTEM_TASK_COUNT_UPDATEFW 0
  68. */
  69. unsigned char CheckSystemTask(unsigned char systemPage);
  70. #endif /* CHECKSYSTEMTASK_H_ */