📄 hdlcrx.h
字号:
#ifndef BOOL
typedef int BOOL;
#endif
#ifndef BYTE
typedef unsigned char BYTE;
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
typedef struct
{
BOOL bSync;
BOOL bFiveOnes;
BOOL bDataReady;
BOOL bOpenedFrame;
BOOL bClosedFrame;
BOOL bAbortedFrame;
BOOL bBitStuff;
BOOL bSixOnes;
BYTE Data;
BYTE SyncFlag;
BYTE AbortFlag;
BYTE IdleFlag;
int NbOnes;
int CrtBit;
BYTE Bit[8];
} HDLC_RX, *PHDLC_RX;
PHDLC_RX HdlcRxCreate();
void HdlcDestroy( PHDLC_RX pHdlcRx);
BYTE HdlcRxGetData( PHDLC_RX pHdlcRx);
BYTE HdlcRxGetFlag( PHDLC_RX pHdlcRx);
BOOL HdlcRxIsSynchro(PHDLC_RX pHdlcRx);
BOOL b(PHDLC_RX pHdlcRx);
BOOL HdlcRxIsFrameOpen(PHDLC_RX pHdlcRx);
BOOL HdlcRxIsFrameClose(PHDLC_RX pHdlcRx);
BOOL HdlcRxIsFrameAbort(PHDLC_RX pHdlcRx);
BOOL HdlcRxIsDataReady(PHDLC_RX pHdlcRx);
BOOL HdlcRxPushByte(PHDLC_RX pHdlcRx, BYTE ByteIn);
unsigned int InitializeFCS16();
BOOL VerifyFCS16( unsigned int fcs);
unsigned int ComputeFCS16(unsigned int fcs, BYTE byte);
unsigned long InitializeFCS32();
BOOL VerifyFCS32( unsigned long fcs);
unsigned long ComputeFCS32(unsigned long fcs, BYTE byte);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -