mid_sgt_mon.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 _SGT_H
  15. #define _SGT_H
  16. #include "mid_common.h"
  17. #ifdef SUPPORT_ASTRA_LCN_MONITOR
  18. #include <string.h>
  19. #include <stdlib.h>
  20. #include <umf_debug.h>
  21. #include "mid_siutil_13818.h"
  22. #include "mid_siutil_dvb.h"
  23. #include "mid_psimon.h"
  24. #include "dvb_dr_dvb.h"
  25. #include "unt.h"
  26. typedef void (*MidSGTCallBack)(void *data);
  27. typedef struct _astralcn_data_t {
  28. UINT16 SgtPid;
  29. dvbpsi_LinkInfo_t stLinfInfo;
  30. struct _astralcn_data_t* Next;
  31. } AstraLcnData_t;
  32. /**
  33. * @brief sgt monitor init function.
  34. *
  35. * @param pCallBack[input] sgt monitor send sgt data to uplayer
  36. *
  37. * @return MID_SUCCESS if initialization is successful, AL_FAILURE otherwise.
  38. */
  39. MID_Status_t MID_SGTInit(MidSGTCallBack pCallBack);
  40. /**
  41. * @brief SGT monitor unit function.
  42. *
  43. * @param None
  44. *
  45. * @return MID_SUCCESS if uninit successful, AL_FAILURE otherwise.
  46. */
  47. void MID_SGTUninit(void);
  48. /**
  49. * @brief SGT monitor start function.
  50. *
  51. * @param None
  52. *
  53. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  54. */
  55. MID_Status_t MID_SGTStart(void);
  56. /**
  57. * @brief SGT monitor stop function.
  58. *
  59. * @param bExit[input]: exit pmt other task flag
  60. *
  61. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  62. */
  63. MID_Status_t MID_SGTStop(bool bExit);
  64. /**
  65. * @brief set SGT pid info according to pat data.
  66. *
  67. * @param pPid[input]: PID data
  68. *
  69. * @return MID_SUCCESS is successful, AL_FAILURE otherwise.
  70. */
  71. MID_Status_t MID_SGTAddPid(AstraLcnData_t *pData);
  72. #endif
  73. #endif