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

📄 zl5011xrtp.h

📁 Zalink50114----TDMoIP芯片驱动源码
💻 H
字号:
/*******************************************************************************
*
*  File name:              zl5011xRtp.h
*
*  Version:                13
*
*  Author:                 PJE
*
*  Date created:           22/05/2002
*
*  Copyright 2002, 2003, 2004, 2005, Zarlink Semiconductor Limited.
*  All rights reserved.
*
*  Module Description:
*
*
*  Revision History:
*
*  Rev:  Date:       Author:  Comments:
*  1     24/05/2002  PJE      Written easy bits - compiles ok
*  2     29/05/2002  PJE      added more - still debugging/writing
*  3     30/05/2002  PJE      after debugging - not including statistics fns.
*  4     10/06/2002  LCW      Update
*  5     10/06/2002  MRC      Modified header structure for set header fn
*  6     11/06/2002  MRC      Moved header structure
*  7     25/06/2002  LCW      Minor mods.
*  8     28/06/2002  LCW      Code review actions
*  9     12/07/2002  MRC      Rewrote the statistics functions
*  10    25/10/2002  PJE      API tidy up
*  11    31/10/2002  MRC      Added variants + minor fixes
*  12    06/05/2005  APL      Added function to get last tx sequence number
*  13    17/05/2005  MRC      Added functions to reset Rx and Tx statistics
*
*******************************************************************************/

#ifndef _ZL5011X_RTP_H_
#define _ZL5011X_RTP_H_

#ifdef __cplusplus
extern "C" {
#endif

/*****************   # DEFINES   **********************************************/

/*****************   DATA TYPES   *********************************************/

/*****************   EXPORTED GLOBAL VARIABLE DECLARATIONS   ******************/

/*****************   EXTERNAL FUNCTION DECLARATIONS   *************************/

extern zlStatusE zl5011xRtpInit(zl5011xParamsS *zl5011xParams);

extern zlStatusE zl5011xRtpConfigure(zl5011xParamsS *zl5011xParams,
                             Uint32T statsBaseAddr,
                             Uint32T txHeaderBaseAddr);

extern zlStatusE zl5011xRtpSetGranuleTimeout(zl5011xParamsS *zl5011xParams,
                                      Uint32T timeout);

extern zlStatusE zl5011xRtpSetStatisticsBaseAddress(zl5011xParamsS *zl5011xParams,
                                      Uint32T statsBaseAddr);

extern zlStatusE zl5011xRtpSetHeaderBaseAddress(zl5011xParamsS *zl5011xParams,
                                              Uint32T txHeaderBaseAddr);

extern zlStatusE zl5011xRtpGetInterruptStatus(zl5011xParamsS *zl5011xParams,
                                              Uint32T *pContext,
                                              Uint32T *pRollFlags);

extern zlStatusE zl5011xRtpSetInterruptPeriod(zl5011xParamsS *zl5011xParams,
                                              Uint32T rtpInterval);

extern zlStatusE zl5011xRtpEnableReporting(zl5011xParamsS *zl5011xParams);

extern zlStatusE zl5011xRtpDisableReporting(zl5011xParamsS *zl5011xParams);

extern zlStatusE zl5011xRtpSetHeader(zl5011xParamsS *zl5011xParams,
                             Uint32T context,
                             zl5011xPacketTxHighHeaderS *pFieldPositions);

extern zlStatusE zl5011xRtpSeedTimestamp(zl5011xParamsS *zl5011xParams,
                                   Uint32T context,
                                   Uint32T timestamp);

extern zlStatusE zl5011xRtpGetTimestamp(zl5011xParamsS *zl5011xParams,
                                   Uint32T context,
                                   Uint32T *pTimestamp);

extern zlStatusE zl5011xRtpGetTxSeqNum(zl5011xParamsS *zl5011xParams,
      Uint32T context, Uint16T *pSeqNum, zl5011xContextHeaderSwitchE activeHeader);

extern zlStatusE zl5011xRtpGetHeaderAddress(zl5011xParamsS *zl5011xParams,
                                    Uint32T context,
                                    zl5011xContextHeaderSwitchE primaryOrSecondary,
                                    Uint32T *pAddress);
extern zlStatusE  zl5011xRtpInitStatisticsEntry(zl5011xParamsS *zl5011xParams,
            Uint32T context);
extern zlStatusE  zl5011xRtpInitStatisticsTxEntry(zl5011xParamsS *zl5011xParams,
      Uint32T context);
extern zlStatusE  zl5011xRtpInitStatisticsRxEntry(zl5011xParamsS *zl5011xParams,
      Uint32T context);

extern zlStatusE  zl5011xRtpUpdateStatistics(zl5011xParamsS *zl5011xParams,
      Uint32T context, Uint32T rollOverFlags);

extern zlStatusE  zl5011xRtpReadCounters(zl5011xParamsS *zl5011xParams, Uint32T context,
      Uint32T *counts);

extern zlStatusE  zl5011xRtpGetStatistics(zl5011xParamsS *zl5011xParams, Uint32T context,
      zl5011xGetRtpStatsModeE mode, zl5011xRtpStatsS *stats);

extern zlStatusE  zl5011xRtpGetStatisticsAddress(zl5011xParamsS *zl5011xParams,
      Uint32T context, Uint32T *address);

#ifdef __cplusplus
}
#endif

#endif /* _ZL5011X_RTP_H_ */

⌨️ 快捷键说明

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