ai_aps_table.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /******************************************************************************/
  2. /**
  3. *
  4. * @file APSTable.h
  5. *
  6. * @brief
  7. *
  8. * @note
  9. *
  10. * @author
  11. ******************************************************************************/
  12. #ifndef __AI_APS_TABLE_H_
  13. #define __AI_APS_TABLE_H_
  14. /*******************************************************************************
  15. * Header include
  16. ******************************************************************************/
  17. #include <types.h>
  18. #include "adb.h"
  19. #include "al_area_info.h"
  20. /*******************************************************************************
  21. * Marco
  22. ******************************************************************************/
  23. #define SORT_END_TABLE (0xFFFF)
  24. #define LINK_ANOTHER_TABLE (0x4000)
  25. #define ONLY_FIRST_TRANSMISSION (0x2000)
  26. #define LINKED_TABLE (0x1FFF)
  27. #define APS_TABLE_LIST (1151)
  28. /*******************************************************************************
  29. * typedef
  30. ******************************************************************************/
  31. typedef struct
  32. {
  33. al_uint8 bAddr;
  34. al_uint8 bVPS;
  35. al_uint16 wF1_Data;
  36. al_uint8 bF2_Country;
  37. al_uint8 bF2_NetworkId;
  38. al_uint8 bNameData[DB_ATV_MAX_CHNAME_LEN];
  39. } AL_APS_Format_t;
  40. typedef struct
  41. {
  42. AL_AreaIndex_en eArea;
  43. al_uint16* pSortingTable;
  44. } AL_APS_Sorting_table_t;
  45. /*******************************************************************************
  46. * enumeration
  47. ******************************************************************************/
  48. typedef enum
  49. {
  50. LINK_ARD,
  51. LINK_CT1,
  52. LINK_CT2,
  53. LINK_MTV1,
  54. LINK_BBC1,
  55. LINK_BBC2,
  56. } AL_APS_Link_t;
  57. /*******************************************************************************
  58. * Variable
  59. ******************************************************************************/
  60. extern const al_uint16* APS_VPSCollections[];
  61. extern const AL_APS_Sorting_table_t APS_COUNTYTABLE[];
  62. extern const AL_APS_Format_t APS_ChannelName[APS_TABLE_LIST];
  63. /*******************************************************************************
  64. * Program
  65. ******************************************************************************/
  66. /******************************************************************************/
  67. /**
  68. * @brief AI_APS_GetSortingTable
  69. * @param
  70. * @return
  71. ******************************************************************************/
  72. AL_Return_t AI_APS_GetSortingTable(AL_AreaIndex_en eArea, al_uint8 u8Lang, al_uint16** pRetSortingTable);
  73. #endif /* __AI_APS_TABLE_H_ */