adapted requirements first bit
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#include "TLC59731AnalyzerSettings.h"
|
#include "TLC59731AnalyzerSettings.h"
|
||||||
#include <AnalyzerChannelData.h>
|
#include <AnalyzerChannelData.h>
|
||||||
#include <AnalyzerResults.h>
|
#include <AnalyzerResults.h>
|
||||||
|
#include <LogicPublicTypes.h>
|
||||||
|
|
||||||
TLC59731Analyzer::TLC59731Analyzer() : Analyzer2(), mSettings(), mSimulationInitilized( false )
|
TLC59731Analyzer::TLC59731Analyzer() : Analyzer2(), mSettings(), mSimulationInitilized( false )
|
||||||
{
|
{
|
||||||
@@ -28,7 +29,7 @@ void TLC59731Analyzer::WorkerThread()
|
|||||||
|
|
||||||
mSerial = GetAnalyzerChannelData( mSettings.mInputChannel );
|
mSerial = GetAnalyzerChannelData( mSettings.mInputChannel );
|
||||||
|
|
||||||
while( SamplesToNS( mSerial->GetSampleOfNextEdge() - mSerial->GetSampleNumber() ) < TLL_MIN )
|
while( SamplesToNS( mSerial->GetSampleOfNextEdge() - mSerial->GetSampleNumber() ) < TLL_MIN || mSerial->GetBitState() == BIT_HIGH )
|
||||||
{
|
{
|
||||||
mSerial->AdvanceToNextEdge();
|
mSerial->AdvanceToNextEdge();
|
||||||
}
|
}
|
||||||
@@ -53,7 +54,7 @@ void TLC59731Analyzer::WorkerThread()
|
|||||||
while( 1 )
|
while( 1 )
|
||||||
{
|
{
|
||||||
mSerial->AdvanceToNextEdge(); // falling edge
|
mSerial->AdvanceToNextEdge(); // falling edge
|
||||||
if( SamplesToNS( mSerial->GetSampleOfNextEdge() - SoB ) < cycleTime / 2 )
|
if( SamplesToNS( mSerial->GetSampleOfNextEdge() - SoB ) < cycleTime / 2.0 + 1000 )
|
||||||
{
|
{
|
||||||
// 1
|
// 1
|
||||||
data <<= 1;
|
data <<= 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user