public DCPProtocol(IDCPDeviceInterface a_devInterface, int a_DCPMaxDataLen, int a_DCPMsgRepeatNr, int a_DCPRecTimeout, int a_ThreadSleepTime, byte a_DCPSOFByte) { _DCPMaxDataLen = 0x7c; _DCPMsgRepeatNr = 3; _DCPSOFByte = 0x55; _ThreadSleepTime = 10; _DCPRecTimeout = 500; _DCPMsgRepeatNr = a_DCPMsgRepeatNr; _DCPMaxDataLen = a_DCPMaxDataLen; _DCPSOFByte = a_DCPSOFByte; _DCPRecTimeout = a_DCPRecTimeout; _ThreadSleepTime = a_ThreadSleepTime; _devInterface = a_devInterface; _buffer = new DataBuffer(10); }
public DCPProtocol(IDCPDeviceInterface a_devInterface, int a_DCPMaxDataLen, int a_DCPMsgRepeatNr, int a_DCPRecTimeout, int a_ThreadSleepTime, byte a_DCPSOFByte, DCPVersion version) : this(a_devInterface, a_DCPMaxDataLen, a_DCPMsgRepeatNr, a_DCPRecTimeout, a_ThreadSleepTime, a_DCPSOFByte) { _dcpVersion = version; }