zl5011xpktprotocol.h

来自「Zalink50114----TDMoIP芯片驱动源码」· C头文件 代码 · 共 71 行

H
71
字号
/******************************************************************************
*
*  File name:              zl5011xPktProtocol.h
*
*  Version:                2
*
*  Author:                 APL
*
*  Date created:           28/01/2005
*
*  Copyright 2002, 2003, 2004, 2005, Zarlink Semiconductor Limited.
*  All rights reserved.
*
*  Module Description:
*
*  This is the header file for the packet/protocol assist functions.
*
*  Revision History:
*
*  Rev:  Date:       Author:  Comments:
*  1     28/01/2005  APL      Initial revision
*  2     01/03/2005  APL      Renamed functions
*
******************************************************************************/

#ifndef _ZL5011X_PKT_PROTOCOL_H
#define _ZL5011X_PKT_PROTOCOL_H

#ifdef __cplusplus
extern "C" {
#endif

/*****************   COMPILE CONTROLS *****************************************/

/*****************   INCLUDE FILES   ******************************************/
#include "zl5011x.h"

/*****************   MACROS   ************************************************/

/*****************   ENUMERATIONS AND STRUCTURES *****************************/
/* A type defining the individual parts of a protocol stack */
typedef enum
{
   ZL5011X_PROTOCOL_NONE = 0,
   ZL5011X_PROTOCOL_ETHERNET,
   ZL5011X_PROTOCOL_CD,
   ZL5011X_PROTOCOL_IP,
   ZL5011X_PROTOCOL_UDP,
   ZL5011X_PROTOCOL_RTP,
   ZL5011X_PROTOCOL_RTCP,
   ZL5011X_PROTOCOL_L2TPV2,
   ZL5011X_PROTOCOL_L2TPV3,
   ZL5011X_PROTOCOL_MPLS,
   ZL5011X_PROTOCOL_ECID = ZL5011X_PROTOCOL_MPLS,
   ZL5011X_PROTOCOL_PW,
   ZL5011X_PROTOCOL_TS,
   ZL5011X_PROTOCOL_CTRL
} zl5011xProtocolPartsE;

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

/* Function returning zero based index of protocol within stack */
Sint8T zl5011xFindProtocolInStack(zl5011xProtocolPartsE protocol, zl5011xProtocolTypeE protocolStack);
zl5011xBooleanE zl5011xProtocolIsInStack(zl5011xProtocolPartsE protocol, zl5011xProtocolTypeE protocolStack);

#ifdef __cplusplus
}
#endif

#endif   /* _ZL5011X_PKT_PROTOCOL_H */

⌨️ 快捷键说明

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