| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -138,9 +138,6 @@ void HonaLowLevelAPI::hiruStart() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					/*************************************************************************************************/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					void HonaLowLevelAPI::hsruStop() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    if(_hsruIsStarted) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruIsStarted = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _hsruStopEvent.wakeAll(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -158,6 +155,11 @@ void HonaLowLevelAPI::init() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					bool HonaLowLevelAPI::isHsruStarted() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    return _hsruIsStarted; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					/*************************************************************************************************/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					void HonaLowLevelAPI::writeSettingToRegisters(HonaSettings& settings) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					{ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -181,7 +183,7 @@ void HonaLowLevelAPI::writeSettingToRegisters(HonaSettings& settings) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /************************************************************************/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    honaRegisterBuffer.insert(0,(honaRegisterBuffer.at(0) + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        (settings.hiruSettings.threshold & 0x00000FFF))); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                 (settings.hiruSettings.threshold & 0x00000FFF))); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    honaRegisterBuffer.insert(1, settings.hsruSettings.honaInt123CTHR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    honaRegisterBuffer.insert(2, settings.hsruSettings.honaRes123CTHR); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -204,6 +206,7 @@ void HonaLowLevelAPI::hsruMainThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    deviceReset(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    setConfig(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    deviceReset(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    if(!plxWrapper.deviceEnableInterrupt()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        throw HonaException(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -215,13 +218,18 @@ void HonaLowLevelAPI::hsruMainThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    QtConcurrent::run(this, &HonaLowLevelAPI::hsruReadThread); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    QtConcurrent::run(this, &HonaLowLevelAPI::hsruUpdateThread); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _mutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _hsruStopEvent.wait(&_mutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _mutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _mainMutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _hsruStopEvent.wait(&_mainMutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _mainMutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _isHsruReaderThreadFree = true; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _isHsruUpdateThreadFree = true; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _hsruReadDone.wakeAll(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _hsruUpdateAck.wakeAll(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    _hsruIsStarted = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    if(!plxWrapper.deviceDisableInterrupt()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        throw HonaException(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -241,8 +249,8 @@ void HonaLowLevelAPI::hsruReadThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw HonaException(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        honaPacketList.clear(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss = 0; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(!plxWrapper.deviceOpenPCIChannel()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw HonaException(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -250,11 +258,11 @@ void HonaLowLevelAPI::hsruReadThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserInt123C(hsruReadHonaBuffer(honaReceivers::int123C), honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserRes123C(hsruReadHonaBuffer(honaReceivers::res123C), honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserIntS(hsruReadHonaBuffer(honaReceivers::intS), honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//        _hsruLoss += hsruParserIntS(hsruReadHonaBuffer(honaReceivers::intS), honaPacketList);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserResS(hsruReadHonaBuffer(honaReceivers::resS), honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserInt4(hsruReadHonaBuffer(honaReceivers::int4), honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserRes4(hsruReadHonaBuffer(honaReceivers::res4), honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruLoss += hsruParserSinglePulse(hsruReadHonaBuffer(honaReceivers::singlePulse),honaPacketList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//        _hsruLoss += hsruParserInt4(hsruReadHonaBuffer(honaReceivers::int4), honaPacketList);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//        _hsruLoss += hsruParserRes4(hsruReadHonaBuffer(honaReceivers::res4), honaPacketList);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//        _hsruLoss += hsruParserSinglePulse(hsruReadHonaBuffer(honaReceivers::singlePulse),honaPacketList);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(!plxWrapper.deviceClosePCIChannel()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -264,11 +272,11 @@ void HonaLowLevelAPI::hsruReadThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw HonaException(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        QThread::usleep(200000); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _mutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _readMutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruReadDone.wakeAll(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruUpdateAck.wait(&_mutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _mutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruUpdateAck.wait(&_readMutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _readMutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -277,14 +285,19 @@ void HonaLowLevelAPI::hsruUpdateThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    while(true) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _mutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruReadDone.wait(&_mutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _mutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(_isHsruUpdateThreadFree) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            break; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _updateMutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruReadDone.wait(&_updateMutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _updateMutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        quint32 Doa = 0; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Doa = hiruGetDOA(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        emit lowLevelHonaData(honaPacketList, _hsruLoss, Doa); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 		_hsruLoss = 0; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        honaPacketList.clear(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        QThread::usleep(200000); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruUpdateAck.wakeAll(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -292,14 +305,7 @@ void HonaLowLevelAPI::hsruUpdateThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					/*************************************************************************************************/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					void HonaLowLevelAPI::hiruMainThread() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    QtConcurrent::run(this, &HonaLowLevelAPI::hiruReadThread); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    QtConcurrent::run(this, &HonaLowLevelAPI::hiruUpdateThread); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    while(true) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _mutex.lock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _hsruStopEvent.wait(&_mutex); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        _mutex.unlock(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					/*************************************************************************************************/ | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -341,7 +347,7 @@ quint32 HonaLowLevelAPI::hsruParserInt123C(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (lastPNInt123C + 1)) & (lastPNInt123C > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketInt123C.getPacketNumber() - lastPNInt123C + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketInt123C.getPacketNumber() - lastPNInt123C + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNInt123C = tempHonaPacketInt123C.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextInt123C > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -356,7 +362,7 @@ quint32 HonaLowLevelAPI::hsruParserInt123C(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextInt123C == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt123C.setToa((tempHonaPacketInt123C.getToa()) + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (static_cast<quint64>(honaData[Ind] & 0x0000FFFF) <<28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                         (static_cast<quint64>(honaData[Ind] & 0x0000FFFF) <<28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt123C.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextInt123C = 3; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -415,7 +421,7 @@ quint32 HonaLowLevelAPI::hsruParserRes123C(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (lastPNRes123C + 1)) & (lastPNRes123C > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketRes123C.getPacketNumber() - lastPNRes123C + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketRes123C.getPacketNumber() - lastPNRes123C + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNRes123C = tempHonaPacketRes123C.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextRes123C > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -430,7 +436,7 @@ quint32 HonaLowLevelAPI::hsruParserRes123C(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextRes123C == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setToa(tempHonaPacketRes123C.getToa() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                         ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextRes123C = 3; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -445,15 +451,15 @@ quint32 HonaLowLevelAPI::hsruParserRes123C(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setPa1(honaData[Ind] & 0x0000FFFF); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setPa2(tempHonaPacketRes123C.getPa2() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                         ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setPa3(tempHonaPacketRes123C.getPa3() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                         ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextRes123C = 5; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x50000000) && (nextRes123C == 5)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setCodeM( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (static_cast<quint64>(honaData[Ind] & 0x00001FFF)) << 51); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        (static_cast<quint64>(honaData[Ind] & 0x00001FFF)) << 51); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes123C.setCodeL(0); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextRes123C = 6; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -500,7 +506,7 @@ quint32 HonaLowLevelAPI::hsruParserIntS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if((tempHonaPacketIntS.getPacketNumber() != (lastPNIntS + 1)) & (lastPNIntS > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketIntS.getPacketNumber() - lastPNIntS + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketIntS.getPacketNumber() - lastPNIntS + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNIntS = tempHonaPacketIntS.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextIntS > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -515,7 +521,7 @@ quint32 HonaLowLevelAPI::hsruParserIntS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextIntS == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setToa(tempHonaPacketIntS.getToa() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextIntS = 3; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -530,7 +536,7 @@ quint32 HonaLowLevelAPI::hsruParserIntS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setPa1(honaData[Ind] & 0x0000FFFF); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setPa2(tempHonaPacketIntS.getPa2() + ((honaData[Ind] & 0x000F0000))); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setPa3(tempHonaPacketIntS.getPa3() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x00F00000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((honaData[Ind] & 0x00F00000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextIntS = 5; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x50000000) && (nextIntS == 5)) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -542,7 +548,7 @@ quint32 HonaLowLevelAPI::hsruParserIntS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x60000000) && (nextIntS == 6)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setCodeM(tempHonaPacketIntS.getCodeM() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                        ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setCodeL(0); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextIntS = 7; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -555,7 +561,7 @@ quint32 HonaLowLevelAPI::hsruParserIntS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x80000000) && (nextIntS == 8)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketIntS.setCodeM(tempHonaPacketIntS.getCodeM() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                        ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextIntS = 9; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -601,7 +607,7 @@ quint32 HonaLowLevelAPI::hsruParserResS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if((tempHonaPacketResS.getPacketNumber() != (lastPNResS + 1)) & (lastPNResS > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketResS.getPacketNumber() - lastPNResS + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketResS.getPacketNumber() - lastPNResS + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNResS = tempHonaPacketResS.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextResS > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -616,7 +622,7 @@ quint32 HonaLowLevelAPI::hsruParserResS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextResS == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketResS.setToa(tempHonaPacketResS.getToa() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketResS.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextResS = 3; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -642,7 +648,7 @@ quint32 HonaLowLevelAPI::hsruParserResS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x60000000) && (nextResS == 6)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketResS.setCodeM(tempHonaPacketResS.getCodeM() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                        ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketResS.setCodeL(0); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextResS = 7; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -655,7 +661,7 @@ quint32 HonaLowLevelAPI::hsruParserResS(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x80000000) && (nextResS == 8)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketResS.setCodeM(tempHonaPacketResS.getCodeM() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                        ((static_cast<quint64>(honaData[Ind] & 0x0FFFFFFF)) << 36)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextResS = 9; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(nextResS == packetLenResS) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -692,7 +698,7 @@ quint32 HonaLowLevelAPI::hsruParserInt4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if((tempHonaPacketInt4.getPacketNumber() != (lastPNInt4 + 1)) & (lastPNInt4 > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketInt4.getPacketNumber() - lastPNInt4 + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketInt4.getPacketNumber() - lastPNInt4 + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNInt4 = tempHonaPacketInt4.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextInt4 > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -707,7 +713,7 @@ quint32 HonaLowLevelAPI::hsruParserInt4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextInt4 == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setToa(tempHonaPacketInt4.getToa() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((static_cast<quint64>(honaData[Ind] & 0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextInt4 = 3; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -721,9 +727,9 @@ quint32 HonaLowLevelAPI::hsruParserInt4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setPa1(honaData[Ind] & 0x0000FFFF); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setPa2(tempHonaPacketInt4.getPa2() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setPa3(tempHonaPacketInt4.getPa3() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextInt4 = 5; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x50000000) && (nextInt4 == 5)) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -736,7 +742,7 @@ quint32 HonaLowLevelAPI::hsruParserInt4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setPa4(honaData[Ind] & 0x0000FFFF); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setCodeL(tempHonaPacketInt4.getCodeL() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (static_cast<quint64>(honaData[Ind] & 0x000F0000) << 12)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                        (static_cast<quint64>(honaData[Ind] & 0x000F0000) << 12)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketInt4.setm4Status(static_cast<quint8>((honaData[Ind] & 0x0F000000) >> 20)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextInt4 = 7; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -774,7 +780,7 @@ quint32 HonaLowLevelAPI::hsruParserRes4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if((tempHonaPacketRes4.getPacketNumber() != (lastPNRes4 + 1)) & (lastPNRes4 > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketRes4.getPacketNumber() - lastPNRes4 + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketRes4.getPacketNumber() - lastPNRes4 + 65536) % 65536 - 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNRes4 = tempHonaPacketRes4.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextRes4 > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -789,7 +795,7 @@ quint32 HonaLowLevelAPI::hsruParserRes4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextRes4 == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes4.setToa(tempHonaPacketRes4.getToa() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (static_cast<quint64>(honaData[Ind] & 0x0000FFFF) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      (static_cast<quint64>(honaData[Ind] & 0x0000FFFF) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes4.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextRes4 = 3; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -803,9 +809,9 @@ quint32 HonaLowLevelAPI::hsruParserRes4(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes4.setPa1(honaData[Ind] & 0x0000FFFF); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes4.setPa2(tempHonaPacketRes4.getPa2() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketRes4.setPa3(tempHonaPacketRes4.getPa3() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                      ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextRes4 = 5; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -843,9 +849,9 @@ quint32 HonaLowLevelAPI::hsruParserSinglePulse(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                (lastPNSinglePulse + 1)) & (lastPNSinglePulse > 0)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                lossFound += | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    ((tempHonaPacketSinglePulse.getPacketNumber() - lastPNSinglePulse + 65536) % | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        65536 - | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ((tempHonaPacketSinglePulse.getPacketNumber() - lastPNSinglePulse + 65536) % | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                         65536 - | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                         1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            lastPNSinglePulse = tempHonaPacketSinglePulse.getPacketNumber(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(nextSinglePulse > 0) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -855,14 +861,14 @@ quint32 HonaLowLevelAPI::hsruParserSinglePulse(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x10000000) && (nextSinglePulse == 1)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketSinglePulse.setToa(static_cast<quint64>(honaData[Ind] & | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                0x0FFFFFFF)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                                                  0x0FFFFFFF)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextSinglePulse = 2; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        else if(((honaData[Ind] & 0xF0000000) == 0x20000000) && (nextSinglePulse == 2)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketSinglePulse.setToa(tempHonaPacketSinglePulse.getToa() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((static_cast<quint64>(honaData[Ind] & | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                             ((static_cast<quint64>(honaData[Ind] & | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                                                    0x0000FFFF)) << 28)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketSinglePulse.setPa2((honaData[Ind] & 0x0FFF0000) >> 16); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextSinglePulse = 3; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -876,9 +882,9 @@ quint32 HonaLowLevelAPI::hsruParserSinglePulse(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketSinglePulse.setPa1(honaData[Ind] & 0x0000FFFF); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketSinglePulse.setPa2(tempHonaPacketSinglePulse.getPa2() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                             ((honaData[Ind] & 0x000F0000) >> 4)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            tempHonaPacketSinglePulse.setPa3(tempHonaPacketSinglePulse.getPa3() + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                             ((honaData[Ind] & 0x00F00000) >> 8)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextSinglePulse = 5; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -887,7 +893,7 @@ quint32 HonaLowLevelAPI::hsruParserSinglePulse(const QVector<quint32>& honaData, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(isValid(tempHonaPacketSinglePulse)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                tempHonaPacketSinglePulse.setToa( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    (tempHonaPacketSinglePulse.getToa() / 6) + toaStartBoard); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            (tempHonaPacketSinglePulse.getToa() / 6) + toaStartBoard); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                honaPacketList.append(tempHonaPacketSinglePulse); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            nextSinglePulse = 0; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |