⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 psi.h

📁 有线电视系统前端设备复用器原代码。 用语接受卫星信号
💻 H
字号:
/*--------------------------------------------------------------*/
/* psi.h                                                        */
/* PSI处理模块,PSI生成、发送                                   */
/* 2002-11-25                                                   */
/* JohnnyLing                                                   */
/*--------------------------------------------------------------*/
#ifndef _PSI_H
#define _PSI_H

#pragma	pack(1,1)

#define MAX_SECTION_NUMBER_OF_PSI 8
#define MAX_TS_NUMBER_OF_PSI      32

#define MAX_SECTION_LENGTH        2048
#define MAX_PMT_SECTION_NUMBER    32

#define PSI_PAT_SEND_FLAG         0x00000001
#define PSI_CAT_SEND_FLAG         0x00000002
#define PSI_TSDT_SEND_FLAG        0x00000004
#define PSI_PMT_SEND_FLAG         0x00000008
#define PSI_NIT_SEND_FLAG         0x00010000
#define PSI_SDT_SEND_FLAG         0x00020000
#define PSI_EIT_SEND_FLAG         0x00040000
#define PSI_TDT_SEND_FLAG         0x00100000

typedef struct STRUCT_PID_REMAP_TABLE_ITEM
{
	unsigned short OldPID;
	unsigned short NewPID;
	unsigned char  Output;
}PID_REMAP_TABLE_ITEM;


typedef struct SI_SECTION_DATA_TAG
{
	unsigned char	section[MAX_SECTION_LENGTH];
	unsigned short  section_length;
	unsigned short  pid;
	unsigned char   continue_counter;
}SI_SECTION_DATA;

/*
typedef struct GEN_SI_INFO_TAG
{
	unsigned char   flag; 
	SI_SECTION_DATA pat_section;	
	SI_SECTION_DATA cat_section;	
	unsigned  char  pmt_section_number;
	SI_SECTION_DATA pmt_sectoin_list[MAX_PMT_SECTION_NUMBER];
}GEN_SI_INFO;
*/
typedef struct GEN_SI_INFO_TAG
{
	unsigned char   flag; 
	SI_SECTION_DATA pat_section;	
	SI_SECTION_DATA cat_section;	
	SI_SECTION_DATA updated_cat_section;
	unsigned  char  pmt_section_number;
	SI_SECTION_DATA pmt_sectoin_list[MAX_PMT_SECTION_NUMBER];
	SI_SECTION_DATA updated_pmt_sectoin_list[MAX_PMT_SECTION_NUMBER];
}GEN_SI_INFO;

int NewPMTSectionForUserChannel(unsigned short PrgNo);

#pragma	pack(0)

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -