public MaxDataLinkPacket(MaxServiceType serviceType, MaxServiceResponseFormat serviceResponseFormat) { _serviceType = serviceType; _serviceResponseFormat = serviceResponseFormat; _dataSize = 0; _dataOffset = 0; //_processState = ProcessState.Idle; _packetState = PACKET_STATE.STX; _dataLength = new byte[2]; _recievedData = new Queue <byte>(); _packetData = new Queue <byte>(); }
protected MaxService(MaxServiceType serviceType, MaxServiceRequestCode requestCode) { this.serviceType = serviceType; serviceRequestCode = requestCode; }