al_area_info.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /*****************************************************************************
  2. ** File: al_area_info.h
  3. **
  4. ** Description: Area information define
  5. **
  6. ** Copyright(c) 2011 Sunmedia Technologies - All Rights Reserved
  7. **
  8. ** Author : kun.li
  9. **
  10. ** $Id$
  11. *****************************************************************************/
  12. #ifndef __AL_AREA_INFO_H__
  13. #define __AL_AREA_INFO_H__
  14. #include "al_basictypes.h"
  15. #define LCN_OFF 0
  16. #define LCN_ON 1
  17. #define LCN_ONID 2
  18. #define LCN_ONOFF_CHANGED (1 << 1)
  19. #define NID_RANGE_SIZE 0x00FF
  20. #define NID_UNALLOCATED 0xFFFF
  21. /* Region Transponder Sect information
  22. ** Channel Number = (EndChNum - StChNum) + 1
  23. */
  24. typedef union
  25. {
  26. al_uint8 bByte; /* Band width byte */
  27. struct
  28. {
  29. al_uint8 BaseBandWidth:4; /* Base band width */
  30. al_uint8 BandWidth6MEn:1; /* Band width 6M enable */
  31. al_uint8 BandWidth7MEn:1; /* Band width 7M enable */
  32. al_uint8 BandWidth8MEn:1; /* Band width 8M enable */
  33. al_uint8 BandWidthSWEn:1; /* Band width switch enable */
  34. } eBandWidth;
  35. } AL_BandWidth_Info_st;
  36. /* Region Transponder Sect information
  37. ** Channel Number = (EndChNum - StChNum) + 1
  38. */
  39. typedef struct
  40. {
  41. al_uint32 StartFreq; /*Start Transponder Frequency */
  42. AL_BandWidth_Info_st stBandWidth; /*Transponder Bandwidth */
  43. al_uint8 StartTpNum; /*Start Transponder Number */
  44. al_uint8 SectTPCount; /*Sect Transponder Count */
  45. al_uint8 UHF_VHF; /*Transmit mode, 0 for UHF, 1 for VHF */
  46. al_uint8 ucSpec_inver;
  47. #ifdef SUPPORT_HIERARCHY_MODE
  48. al_uint8 U8HierarchyMode; /* Hierarchy mode */
  49. #endif
  50. } AL_TPSects_Info_st;
  51. typedef struct {
  52. al_uint8 AreaIndex;
  53. const AL_TPSects_Info_st* pTPRegion_Area;
  54. const char* const* pTPNumStr;
  55. al_uint8 SectNum;//data number in pTPRegion_Area[]
  56. al_uint8 TotalTpCount;//total transport number, summary of pTPRegion_Area[]
  57. char CountryCode[3];
  58. al_uint16 CountryNum;
  59. /* Network ID range base,
  60. ** range size of every Network ID is 0xff,
  61. ** 0xFFFF means UN-ALLOCATED
  62. */
  63. al_uint16 NIDRangeBase;
  64. void* pExt;
  65. } AL_DVBT_AreaTable_t;
  66. typedef struct {
  67. al_uint32 usFreq; ///< Transponder frequency
  68. al_uint16 usSymRate; ///< Transponder symbol rate
  69. al_uint8 u8Polar; ///< Transponder polarzation
  70. al_uint8 ucTp_dvb_type; /**< DVB-S delivery type(S or S2) */
  71. } AL_DVBS_SatTPTable_t;
  72. typedef struct
  73. {
  74. al_uint32 uiFrequency; // MHz
  75. al_uint32 uiSymbRate;
  76. al_uint16 usModulation;
  77. } AL_CableTP_Info_st;
  78. typedef struct
  79. {
  80. al_uint8 ucAreaIndex;
  81. const al_uint32* pstTpTbl;
  82. al_uint32 uiTpNum;
  83. } AL_DVBC_AreaTable_t;
  84. typedef struct
  85. {
  86. al_uint8 ucSatIndex;
  87. const AL_DVBS_SatTPTable_t* pstTpTbl;
  88. al_uint32 uiTpNum;
  89. } AL_DVBS_AreaTable_t;
  90. typedef struct
  91. {
  92. al_uint32 uiPolarization;
  93. al_uint32 uiFrequency; // MHz
  94. al_uint32 uiSymbRate;
  95. al_uint32 uiFEType;
  96. al_uint32 hNet; /* Indicates the parenet of the tp */
  97. al_uint8 modulation;
  98. al_uint8 ucCode_rate;
  99. al_uint8 ucSpec_inver;
  100. } AL_SateTP_Info_st;
  101. typedef enum {
  102. #if defined (CONFIG_DVB_SYSTEM) || defined (CONFIG_ANALOGUE_ONLY_SYSTEM)
  103. AREA_GERMANY = 0,
  104. AREA_ENGLAND,
  105. AREA_FRANCE,
  106. AREA_ITALY,
  107. AREA_POLAND,
  108. AREA_SPAIN,
  109. AREA_BELGIUM,
  110. AREA_NETHERLANDS,
  111. AREA_SWITZERLAND,
  112. AREA_PORTUGAL,
  113. AREA_SWEDEN,
  114. AREA_FINLAND,
  115. AREA_CZECHREPUBLIC,
  116. AREA_HUNGARY,
  117. AREA_SLOVENIA,
  118. AREA_GREECE,
  119. AREA_RUSSIA,
  120. AREA_TURKEY,
  121. AREA_DENMARK,
  122. AREA_NORWAY,
  123. AREA_TAIWAN,
  124. AREA_CHINA,
  125. AREA_IRELAND,
  126. AREA_AUSTRIA,
  127. AREA_SLOVAKIA,
  128. AREA_CROATIAN,
  129. AREA_SERBIA,
  130. AREA_HONGKONG,
  131. AREA_THAILAND,
  132. AREA_VIETNAM,
  133. AREA_GHANA,
  134. AREA_MONGOLIA,
  135. AREA_BELARUS,
  136. AREA_IRAN,
  137. #ifdef CONFIG_SUPPORT_DUBAI
  138. AREA_DUBAI,
  139. #endif
  140. AREA_MALAYSIA, //쯩윱鮫饑
  141. AREA_MYANMAR,
  142. AREA_INDONESIA, //丹똑적鮫饑
  143. AREA_OTHER,
  144. #elif defined(CONFIG_DTMB_SYSTEM)
  145. AREA_CHINA = 0,
  146. AREA_HONGKONG,
  147. AREA_OTHER,
  148. #endif
  149. #ifdef CONFIG_AUS_DVB_SYSTEM
  150. AREA_AUSTRALIA,
  151. AREA_NEW_ZEALAND,
  152. AREA_SINGAPORE,
  153. AREA_AUS_OTHER,
  154. #endif
  155. #ifdef CONFIG_ISDB_SYSTEM
  156. AREA_BRAZIL = 0,// 것鮫
  157. AREA_ARGENTINA, // 각몽稽
  158. AREA_CHILE, // 例적
  159. AREA_PERU,// 쵤쨀
  160. AREA_VENEZUELA,// 官코흩윗
  161. AREA_PHILIPPINES,// 렵쪼깟
  162. AREA_ISDB_OTHER,
  163. #endif
  164. MAX_AREA,
  165. } AL_AreaIndex_en;
  166. #endif //__AL_AREA_INFO_H__
  167. /*****************************************************************************
  168. ** $Rev$
  169. **
  170. *****************************************************************************/