pmppstruct.h

来自「基于单片机的 snmp协议解析的一些原代码 给有用的 同行」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef PMPP_STRUCT_H
#define PMPP_STRUCT_H
const long PMPP_STRUCT_SIZE=1500;

typedef struct pmppStruct {
	/**# :[Description = "The PMPP or PPP Byte stream from 7e to 7e.  Note:  the size is based on the maximum of 515 for the info field, plus 4 for an address of 7e 7e plus 4 for a CRC of 7e7e plus some."] */
	char Buffer [1500];
	/**# :[Description = "A list of pointers which point to the 7 fields of a PMPP data structure."] */
	short pointers [7];
	struct pmppStruct* Next;
} struct2;

typedef struct pmppAsciiStruct {
   	unsigned char 	Address [5];
   	unsigned char	AddressLength[5];
   	unsigned char  Control[3];
   	unsigned char	Ipi[5];
   	unsigned char	IpiLength[5];
	unsigned char 	Pdu [1025];
   	unsigned char	PduLength[5];
   	unsigned char  Crc[5];
} struct4;

#endif

⌨️ 快捷键说明

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