mid_ews.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /******************************************************************************
  2. *
  3. * \file mid_ews.h
  4. *
  5. * \brief implementation of ews 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 _EWS_H
  15. #define _EWS_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 (*MidEwsCallBack)(void *data);
  25. MID_Status_t MID_EwsInit(MidEwsCallBack pCallBack);
  26. /**
  27. * @brief ews monitor init function.
  28. *
  29. * @param pCallBack[input] ews monitor send pmt data to uplayer
  30. *
  31. * @return MID_SUCCESS if initialization is successful, AL_FAILURE otherwise.
  32. */
  33. void MID_EwsUninit(void);
  34. /**
  35. * @brief ews monitor start function.
  36. *
  37. * @param None
  38. *
  39. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  40. */
  41. MID_Status_t MID_EwsStart(void);
  42. /**
  43. * @brief ews monitor stop function.
  44. *
  45. * @param bExit[input]: exit ews task flag
  46. *
  47. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  48. */
  49. MID_Status_t MID_EwsStop(bool bExit);
  50. /**
  51. * @brief set pmt pid info according to pat data.
  52. *
  53. * @param pPat[input]: pat data
  54. *
  55. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  56. */
  57. MID_Status_t MID_EwsAddPmt(MID_SiutilPatInfo_t *pPat);
  58. #endif