pam_event.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #ifndef __PAM_EVENT_H__
  2. #define __PAM_EVENT_H__
  3. #include "osi_api.h"
  4. #define EV_PAM_GNSS_BASE (0)
  5. #define EV_PAM_GNSS_END_ (6050)
  6. typedef enum
  7. {
  8. PAM_APP_MN_GPS_DOWNLOAD_REQ, //= EV_PAM_GNSS_BASE,
  9. PAM_APP_MN_GPS_INIT_REQ,
  10. PAM_APP_MN_GPS_START_REQ,
  11. PAM_APP_MN_GPS_STOP_REQ,
  12. PAM_APP_MN_GPS_RESET_REQ,
  13. PAM_APP_MN_GPS_READ_STATUS_REQ,
  14. PAM_APP_MN_GPS_READ_INFO_REQ,
  15. PAM_APP_MN_GPS_OUTPUT_REQ,
  16. PAM_APP_MN_GPS_POWEROFF_REQ,
  17. PAM_APP_MN_GPS_PDP_INFO_REQ,
  18. PAM_APP_MN_GPS_REPORT_REQ,
  19. PAM_APP_MN_GPS_ASSERT_REQ,
  20. PAM_APP_MN_GPS_SET_GNSS_MODE_REQ,
  21. PAM_APP_MN_GPS_DEL_AID_DATA_REQ,
  22. PAM_MN_GPS_DOWNLOAD_REQ, //--------->14
  23. PAM_MN_GPS_INIT_REQ, //15
  24. PAM_MN_GPS_START_REQ, //16
  25. PAM_MN_GPS_STOP_REQ,
  26. PAM_MN_GPS_RESET_REQ,
  27. PAM_MN_GPS_READ_STATUS_REQ,
  28. PAM_MN_GPS_READ_INFO_REQ, //-------->20
  29. PAM_MN_GPS_OUTPUT_REQ,
  30. PAM_MN_GPS_POWEROFF_REQ,
  31. PAM_MN_GPS_PDP_INFO_REQ,
  32. PAM_MN_GPS_REPORT_REQ,
  33. PAM_MN_GPS_ASSERT_REQ,
  34. PAM_MN_GPS_DOWNLOAD_CNF, //------->26
  35. PAM_MN_GPS_INIT_CNF,
  36. PAM_MN_GPS_START_CNF,
  37. PAM_MN_GPS_STOP_CNF,
  38. PAM_MN_GPS_RESET_CNF,
  39. PAM_MN_GPS_READ_STATUS_CNF,
  40. PAM_MN_GPS_READ_INFO_CNF, //-------->32
  41. PAM_MN_GPS_OUTPUT_CNF,
  42. PAM_MN_GPS_OUTPUT_INFO_IND,
  43. PAM_MN_GPS_POWEROFF_CNF,
  44. PAM_MN_GPS_ERR_IND,
  45. PAM_MN_GPS_FIX_IND, //---->37
  46. PAM_MN_GPS_REPORT_CNF,
  47. PAM_MN_GPS_LOCATION_INFO_IND,
  48. PAM_MN_GPS_SATELLITE_INFO_IND,
  49. PAM_MN_GPS_SET_GNSS_MODE_REQ, //----->41
  50. PAM_MN_GPS_SET_GNSS_MODE_CNF,
  51. PAM_MSENSOR_GPS_SMD_INT,
  52. PAM_MN_GPS_DATA_SOCKET_IND,
  53. PAM_LIBGPS_WATCHDOG_REQ,
  54. PAM_MN_GPS_DEL_AID_DATA_REQ,
  55. PAM_MN_GPS_DEL_AID_DATA_CNF,
  56. PAM_MN_GPS_STARTMODE_AGNSS_IND, //----->48
  57. PAM_MN_GPS_PDP_INFO_CNF,
  58. PAM_MN_GPS_RUN_REQ,
  59. PAM_MN_GPS_RUN_CNF, //--->51
  60. PAM_MN_GPS_SLEEP_IND,
  61. PAM_MN_GPS_END_SIGNAL
  62. } PAM_GNSS_EVENT_ID;
  63. static const osiValueStrMap_t gPamEventNames[] = {
  64. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_DOWNLOAD_CNF)}, // 10
  65. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_INIT_CNF)},
  66. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_START_CNF)},
  67. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_STOP_CNF)},
  68. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_RESET_CNF)},
  69. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_READ_STATUS_CNF)},
  70. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_READ_INFO_CNF)},
  71. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_OUTPUT_CNF)},
  72. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_OUTPUT_INFO_IND)},
  73. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_POWEROFF_CNF)},
  74. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_ERR_IND)},
  75. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_FIX_IND)},
  76. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_REPORT_CNF)},
  77. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_LOCATION_INFO_IND)},
  78. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_SATELLITE_INFO_IND)},
  79. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_SET_GNSS_MODE_REQ)},
  80. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_SET_GNSS_MODE_CNF)},
  81. {OSI_VSMAP_CONST_DECL(PAM_MSENSOR_GPS_SMD_INT)},
  82. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_DATA_SOCKET_IND)},
  83. {OSI_VSMAP_CONST_DECL(PAM_LIBGPS_WATCHDOG_REQ)},
  84. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_DEL_AID_DATA_CNF)},
  85. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_STARTMODE_AGNSS_IND)},
  86. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_SLEEP_IND)},
  87. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_PDP_INFO_CNF)},
  88. {OSI_VSMAP_CONST_DECL(PAM_MN_GPS_RUN_CNF)},
  89. };
  90. #endif