AnalyzerExamples/HD44780Analyzer/HD44780Analyzer.cpp
void HD44780Analyzer::AdvanceToAbsPositionWhileMarking(AnalyzerChannelData *AACD, Channel AC, U64 APosition)
{
  if (APosition<=AACD->GetSampleNumber())
    return;

  while (mSettings->mMarkTimingErrors && AACD->WouldAdvancingToAbsPositionCauseTransition(APosition) && AACD->GetSampleOfNextEdge()<APosition)
    {
      AACD->AdvanceToNextEdge();
      mResults->AddMarker(AACD->GetSampleNumber(), AnalyzerResults::X, AC );
    }
  AACD->AdvanceToAbsPosition(APosition);
}
//advances channel to abs position while marking any transitions with an X along the way

advances channel to abs position while marking any transitions with an X along the way
advances channel to abs position while marking any transitions with an X along the way
void HD44780Analyzer::AdvanceToAbsPositionWhileMarking(AnalyzerChannelData *AACD, Channel AC, U64 APosition)
{
  if (APosition<=AACD->GetSampleNumber())
    return;
  while (mSettings->mMarkTimingErrors && AACD->WouldAdvancingToAbsPositionCauseTransition(APosition) && AACD->GetSampleOfNextEdge()<APosition)
    {
      AACD->AdvanceToNextEdge();
      mResults->AddMarker(AACD->GetSampleNumber(), AnalyzerResults::X, AC );
    }
  AACD->AdvanceToAbsPosition(APosition);
}
void HD44780Analyzer :: AdvanceToAbsPositionWhileMarking ( AnalyzerChannelData * AACD , Channel AC , U64 APosition ) { if ( APosition <= AACD -> GetSampleNumber ( ) ) return ; while ( mSettings -> mMarkTimingErrors && AACD -> WouldAdvancingToAbsPositionCauseTransition ( APosition ) && AACD -> GetSampleOfNextEdge ( ) < APosition ) { AACD -> AdvanceToNextEdge ( ) ; mResults -> AddMarker ( AACD -> GetSampleNumber ( ) , AnalyzerResults :: X , AC ) ; } AACD -> AdvanceToAbsPosition ( APosition ) ; }
advances channel to abs position while marking any transitions with an X along the way
advances channel to abs position while marking any transitions with an X along the way