mid_pmtother_mon.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /******************************************************************************
  2. *
  3. * \file mid_pmtother.h
  4. *
  5. * \brief implementation of pmt other monitor middle-ware.
  6. *
  7. *
  8. * \note Copyright (c) 2014 Sunplus Technology Co., Ltd. \n
  9. * All rights reserved.
  10. *
  11. * \author qin.he
  12. *
  13. ******************************************************************************/
  14. #ifndef _PMTOTHER_H
  15. #define _PMTOTHER_H
  16. #include <string.h>
  17. #include <stdlib.h>
  18. #include <umf_debug.h>
  19. #include "mid_siutil_13818.h"
  20. #include "mid_siutil_dvb.h"
  21. #include "mid_psimon.h"
  22. #include "dvb_dr_dvb.h"
  23. #include "unt.h"
  24. typedef void (*MidPmtOtherCallBack)(void *data);
  25. /**
  26. * @brief pmt other monitor init function.
  27. *
  28. * @param pCallBack[input] pmt other monitor send pmt data to uplayer
  29. *
  30. *@param pNodifyCallback[input] pmt other monitor notify uplayer received all pmt
  31. *
  32. * @return MID_SUCCESS if initialization is successful, AL_FAILURE otherwise.
  33. */
  34. MID_Status_t MID_PmtOtherInit(MidPmtOtherCallBack pCallBack, MidPmtOtherCallBack pNodifyCallback, MidPmtOtherCallBack pIndonesiaEwsCallback);
  35. /**
  36. * @brief pmt other monitor init function.
  37. *
  38. * @param pCallBack[input] pmt other monitor send pmt data to uplayer
  39. *
  40. * @return MID_SUCCESS if initialization is successful, AL_FAILURE otherwise.
  41. */
  42. void MID_PmtOtherUninit(void);
  43. /**
  44. * @brief pmt other monitor start function.
  45. *
  46. * @param None
  47. *
  48. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  49. */
  50. MID_Status_t MID_PmtOtherStart(void);
  51. /**
  52. * @brief pmt other monitor stop function.
  53. *
  54. * @param bExit[input]: exit pmt other task flag
  55. *
  56. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  57. */
  58. MID_Status_t MID_PmtOtherStop(bool bExit);
  59. /**
  60. * @brief set pmt pid info according to pat data.
  61. *
  62. * @param pPat[input]: pat data
  63. *
  64. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  65. */
  66. MID_Status_t MID_PmtOtherAddPmt(MID_SiutilPatInfo_t *pPat);
  67. #endif