frame.h

来自「windows ce 3.00 嵌入式操作系统源代码」· C头文件 代码 · 共 42 行

H
42
字号
/*****************************************************************************
* 
*  Copyright (c) 1999-2000 Microsoft Corporation.  All rights reserved.
*
*   @doc
*   @module frame.h | AsyncMac Framing constants
*
*   @comm
*/



// PPP Constants
#define PPP_FLAG_BYTE       0x7e
#define PPP_ESC_BYTE        0x7d

// SLIP special character codes
#define SLIP_END             0xC0    /* indicates end of packet */
#define SLIP_ESC             0xDB    /* indicates byte stuffing */
#define SLIP_ESC_END         0xDC    /* ESC ESC_END means END data byte */
#define SLIP_ESC_ESC         0xDD    /* ESC ESC_ESC means ESC data byte */



// ----------------------------------------------------------------
//
// Extern declarations
//
// ----------------------------------------------------------------

// pppframe.c
VOID AssemblePPPFrame(PASYNCMAC_OPEN_LINE pOpenLine, PNDIS_WAN_PACKET WanPacket);

// slipframe.c
VOID AssembleSLIPFrame(PASYNCMAC_OPEN_LINE pOpenLine, PNDIS_WAN_PACKET WanPacket);

// crcppp.c
USHORT CalcCRCPPP(PUCHAR cp, UINT len);



⌨️ 快捷键说明

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