mid_otamon.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /******************************************************************************
  2. @file Mid_otamon.h.h
  3. @brief ability about ota
  4. @author Unknow
  5. *******************************************************************************/
  6. #ifndef _MID_OTAMON_H_
  7. #define _MID_OTAMON_H_
  8. #include "mid_psimon.h"
  9. /**
  10. * @brief MID_OtaMonStart
  11. *
  12. * param - None
  13. *
  14. * if return value
  15. * MID_SUCCESS:
  16. * MID_ERR_FAILURE:
  17. */
  18. MID_Status_t MID_OtaMonStart(void);
  19. /**
  20. * @brief MID_OtaMonStop.
  21. *
  22. * param - bExit:
  23. * TRUE: OTAMON_THREAD_CMD_STOP2EXIT
  24. * FALSE: OTAMON_THREAD_CMD_STOP2IDLE
  25. * if return value
  26. */
  27. MID_Status_t MID_OtaMonStop(bool bExit);
  28. /**
  29. * @brief When parseing a pmt after relevant information will be recorded and notified to the thread for further analysis.
  30. *
  31. * param - pData:
  32. * MID_SiutilPatInfo_t
  33. *
  34. * if return value
  35. */
  36. MID_Status_t MID_OtaMonNotifyUpdate(void *pData);
  37. /**
  38. * @brief notified to the thread for further analysis.
  39. *
  40. * param - pData:
  41. * MID_SiutilPatInfo_t
  42. *
  43. * if return value
  44. */
  45. MID_Status_t MID_OtaMonNotifyDetectUpgrade(void);
  46. /**
  47. * @brief When system start up, we must call this API.
  48. * OtaMonComCallback_t:
  49. * When the system finds an upgrade service, you can determine whether the service matched with the platform by callback
  50. *
  51. * param - None
  52. *
  53. * if return value
  54. * MID_SUCCESS:
  55. * MID_ERR_FAILURE:
  56. */
  57. MID_Status_t MID_OtaMonInit(OtaMonComCallback_t callback);
  58. /**
  59. * @brief MID_OtaMonUnInit
  60. *
  61. * param - None
  62. *
  63. * if return value
  64. * MID_SUCCESS:
  65. * MID_ERR_FAILURE:
  66. */
  67. MID_Status_t MID_OtaMonUnInit(void);
  68. /**
  69. * @brief When system start up, we must call this API.
  70. * iOtaMonCallBack:
  71. * When the system finds an UNT table, you can determine whether the service matched with the platform by callback
  72. *
  73. * param - None
  74. *
  75. * if return value
  76. * MID_SUCCESS:
  77. * MID_ERR_FAILURE:
  78. */
  79. #ifdef CONFIG_SUPPORT_SSU_ENHANCE_UPGRADE
  80. MID_Status_t MID_OtaMonUntInit(iOtaMonCallBack _pfMonUNTCallbk);
  81. #endif
  82. int Mid_OtaMon_FindUpgradeInfoInPMT(MID_SiutilPmtStreamInfoDescr_t *pComp);
  83. void MID_PsiMonSetCurtProgrameHaveOta(bool bFlag);
  84. #endif