mid_ait_mon.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /******************************************************************************
  2. *
  3. * \file mid_ait_mon.h
  4. *
  5. * \brief implementation of ait table monitor middleware.
  6. *
  7. *
  8. * \note Copyright (c) 2016 RDA Technology Co., Ltd. \n
  9. * All rights reserved.
  10. *
  11. * \author liangwu
  12. *
  13. ******************************************************************************/
  14. #ifndef _MID_AIT_MON_H_
  15. #define _MID_AIT_MON_H_
  16. #include "mid_common.h"
  17. #include <string.h>
  18. #include <stdlib.h>
  19. #include <umf_debug.h>
  20. #include "mid_siutil_13818.h"
  21. #include "mid_siutil_dvb.h"
  22. #include "mid_psimon.h"
  23. #include "dvb_dr_dvb.h"
  24. typedef void (*MidAITCallBack)(void *data);
  25. typedef struct _Ait_data_s
  26. {
  27. UINT16 AitPid;
  28. struct _Ait_data_s* Next;
  29. } AITs_Data_t;
  30. /**
  31. * @brief AIT monitor init function.
  32. *
  33. * @param pCallBack[input] ait monitor send sgt data to uplayer
  34. *
  35. * @return MID_SUCCESS if initialization is successful.
  36. */
  37. MID_Status_t MID_AITInit(MidAITCallBack pCallBack);
  38. /**
  39. * @brief AIT monitor unit function.
  40. *
  41. * @param None
  42. *
  43. * @return MID_SUCCESS if uninit successful.
  44. */
  45. void MID_AITUninit(void);
  46. /**
  47. * @brief AIT monitor start function.
  48. *
  49. * @param None
  50. *
  51. * @return MID_SUCCESS is successful.
  52. */
  53. MID_Status_t MID_AITStart(void);
  54. /**
  55. * @brief AIT monitor stop function.
  56. *
  57. * @param bExit[input]: exit ait monitor task flag
  58. *
  59. * @return MID_SUCCESS is successful.
  60. */
  61. MID_Status_t MID_AITStop(bool bExit);
  62. /**
  63. * @brief set AIT pid info according to pmt data.
  64. *
  65. * @param pPid[input]: PID data
  66. *
  67. * @return MID_SUCCESS is successful.
  68. */
  69. MID_Status_t MID_AITAddPid(AITs_Data_t *pData);
  70. #endif