modbustypes.hpp

来自「MODBUS-TCP控件」· HPP 代码 · 共 48 行

HPP
48
字号
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ModbusTypes.pas' rev: 6.00

#ifndef ModbusTypesHPP
#define ModbusTypesHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Modbustypes
{
//-- type declarations -------------------------------------------------------
typedef Byte TModBusFunction;

typedef Byte TModBusDataBuffer[257];

#pragma pack(push, 1)
struct TCommsBuffer
{
	Word TransactionID;
	Word ProtocolID;
	Word RecLength;
	Byte UnitID;
	Byte FunctionCode;
	Byte MBPData[257];
	Byte Spare;
} ;
#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------

}	/* namespace Modbustypes */
using namespace Modbustypes;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// ModbusTypes

⌨️ 快捷键说明

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