📄 tvptpppack.h
字号:
/*****************************************************************************
* Property of Texas Instruments Incorporated, Copyright 2004
* All rights reserved
******************************************************************************/
/*********************************************************************
*
* Description:
* TPP_PACK.H contains private definitions related to the TPP ARM9 module
*
* Contents:
* Flag definitions
* Function protoypes
*
**********************************************************************/
/*********************************************************************
*
* $Revision: $
*
* $History: TvpTppPack.h $
*
*********************************************************************/
#ifndef TVP_TPP_PACK_DOT_H_IS_DEFINED
#define TVP_TPP_PACK_DOT_H_IS_DEFINED
#define TVP_PES_EXTN_BIT 0x01 /* extension data exists in PES hdr */
#define TVP_SPLIT_PES_BIT 0x02 /* Pes split between 2 packets */
#define TVP_PTS_BIT 0x04 /* Pts value exists in packet */
#define TVP_DTS_BIT 0x08 /* Dts must be unpacket from packet */
#define TVP_PES_PRIV_DATA_BIT 0x80 /* Pes priv data exists */
#define TVP_PREFIX1_BIT 0x80000000 /* Scheduled execution of PES parser*/
#define TVP_PREFIX2_BIT 0x40000000 /* Scheduled execution of PES parser*/
#define TVP_PREFIX3_BIT 0x20000000 /* Scheduled execution of PES parser*/
#define TVP_STREAM_ID_BIT 0x10000000 /* Scheduled execution of PES parser*/
#define TVP_PACKET_LENGTH1_BIT 0x08000000 /* Scheduled execution of PES parser*/
#define TVP_PACKET_LENGTH2_BIT 0x04000000 /* Scheduled execution of PES parser*/
#define TVP_PES_FLAG1_BIT 0x02000000 /* Scheduled execution of PES parser*/
#define TVP_PES_FLAG2_BIT 0x01000000 /* Scheduled execution of PES parser*/
#define TVP_HEADER_LENGTH_BIT 0x00800000 /* Scheduled execution of PES parser*/
#define TVP_PTS1_BIT 0x00400000 /* Scheduled execution of PES parser*/
#define TVP_PTS2_BIT 0x00200000 /* Scheduled execution of PES parser*/
#define TVP_PTS3_BIT 0x00100000 /* Scheduled execution of PES parser*/
#define TVP_PTS4_BIT 0x00080000 /* Scheduled execution of PES parser*/
#define TVP_PTS5_BIT 0x00040000 /* Scheduled execution of PES parser*/
#define TVP_DTS1_BIT 0x00020000 /* Scheduled execution of PES parser*/
#define TVP_DTS2_BIT 0x00010000 /* Scheduled execution of PES parser*/
#define TVP_DTS3_BIT 0x00008000 /* Scheduled execution of PES parser*/
#define TVP_DTS4_BIT 0x00004000 /* Scheduled execution of PES parser*/
#define TVP_DTS5_BIT 0x00002000 /* Scheduled execution of PES parser*/
#define TVP_TPP_IRQ_REQ 0x80000000
#define TVP_TPPDMA_IRQ_ENABLE 0x1000
#define TVP_TPPDMA_IRQ_MASK 0x1F
#define TVP_NUM_FIQ_2_IRQS 4 // This MUST be a power of 2 for the algorithm to work
#define TVP_TPPDMA_NOT_USED 0xff
#define TVP_MEC_WORD 0x000001b4
/*********************************************************************/
/* Functions prototypes*/
//ISR Functions
void tvpTppDebugIsr(void);
void tvpTppPsIsr(void);
void tvpTppStcIsr(void);
void tvpTppDmaCompleteIsr (void);
void tvpTppEopIsr(void);
//Audio/Video,PES,TS and Adapation Filed Processing Functions
void tvpTppAVProcess(TvpTransTbl *trans_tbl, TvpDvbPacket *dvb_pack,
unsigned char *stream_pointer, unsigned long status,
unsigned char packetType, TvpScidTbl *scid_tbl);
void tvpTppPesProcess(TvpTransTbl *trans_tbl, TvpDvbPacket *dvb_pack,
unsigned char *stream_pointer, unsigned long status,
unsigned char packetType, TvpScidTbl *scid_tbl);
void tvpTppPesMove(TvpTransTbl *trans_tbl, unsigned char numbytes,
unsigned long schedule, TvpDvbPacket *dvb_pack,
long size, unsigned long status);
void tvpTppAFProcess(TvpTransTbl *trans_tbl, TvpDvbPacket *dvb_pack,
unsigned char **stream_pointer_p, unsigned long *status);
void tvpTppTsProcess(TvpTransTbl *trans_tbl, TvpDvbPacket *dvb_pack,
unsigned char *stream_pointer, unsigned long status);
// Functions for Section processing
void tvpTppSectionProcess(TvpTransTbl *trans_tbl, TvpDvbPacket *dvb_pack,
unsigned char *stream_pointer, unsigned long status);
void tvpTppFWError(unsigned char error, TvpTransTbl *trans_tbl,unsigned long chan_number);
unsigned long tvpTppFiltGo(unsigned char *ptr);
//DMA Functions
void tvpTppDmaConf(unsigned long source, unsigned long dest, unsigned long fiq_ctrl, unsigned char size);
void tvpTppDmaInit(void);
void tvpTppDmaGo(void);
//STC Functions
void tvpTppStcInit(unsigned long pcr90, unsigned long pcr27, unsigned long stc90, unsigned long stc27);
void tvpTppStcExtract(TvpDvbPacket *dvb_pack, unsigned long *stc90, unsigned long *stc27);
//reset the TPP
void tvpTppReset(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -