Exemple #1
0
        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>();
        }
Exemple #2
0
 protected MaxService(MaxServiceType serviceType, MaxServiceRequestCode requestCode)
 {
     this.serviceType   = serviceType;
     serviceRequestCode = requestCode;
 }