Skip to content

Commit

Permalink
clang-format update of System Management Bus (SMBus) Analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 committed Oct 1, 2020
1 parent 42caafc commit 13d20dd
Show file tree
Hide file tree
Showing 12 changed files with 2,532 additions and 2,510 deletions.
571 changes: 290 additions & 281 deletions src/SMBusAnalyzer.cpp

Large diffs are not rendered by default.

50 changes: 24 additions & 26 deletions src/SMBusAnalyzer.h
Expand Up @@ -11,43 +11,41 @@

class SMBusAnalyzer : public Analyzer2
{
public:
SMBusAnalyzer();
virtual ~SMBusAnalyzer();
virtual void WorkerThread();
public:
SMBusAnalyzer();
virtual ~SMBusAnalyzer();
virtual void WorkerThread();

virtual U32 GenerateSimulationData(U64 newest_sample_requested, U32 sample_rate, SimulationChannelDescriptor** simulation_channels);
virtual U32 GetMinimumSampleRateHz();
virtual U32 GenerateSimulationData( U64 newest_sample_requested, U32 sample_rate, SimulationChannelDescriptor** simulation_channels );
virtual U32 GetMinimumSampleRateHz();

virtual const char* GetAnalyzerName() const;
virtual bool NeedsRerun();
virtual const char* GetAnalyzerName() const;
virtual bool NeedsRerun();

// helpers
AnalyzerChannelData* GetNearestTransitionChannel();
AnalyzerChannelData* AdvanceAllTo(U64 toSample);
// helpers
AnalyzerChannelData* GetNearestTransitionChannel();
AnalyzerChannelData* AdvanceAllTo( U64 toSample );

// returns true if it state is a Zero or a One, false for Start or stop
bool GetSignal(SMBusSignalState& state);
// returns true if it state is a Zero or a One, false for Start or stop
bool GetSignal( SMBusSignalState& state );

virtual void SetupResults();
virtual void SetupResults();

protected: // functions
protected: // functions
protected: // vars
SMBusAnalyzerSettings mSettings;
std::auto_ptr<SMBusAnalyzerResults> mResults;

protected: // vars
AnalyzerChannelData* mSMBDAT;
AnalyzerChannelData* mSMBCLK;

SMBusAnalyzerSettings mSettings;
std::auto_ptr<SMBusAnalyzerResults> mResults;
SMBusSimulationDataGenerator mSimulationDataGenerator;

AnalyzerChannelData* mSMBDAT;
AnalyzerChannelData* mSMBCLK;

SMBusSimulationDataGenerator mSimulationDataGenerator;

bool mSimulationInitilized;
bool mSimulationInitilized;
};

extern "C" ANALYZER_EXPORT const char* __cdecl GetAnalyzerName();
extern "C" ANALYZER_EXPORT Analyzer* __cdecl CreateAnalyzer();
extern "C" ANALYZER_EXPORT void __cdecl DestroyAnalyzer(Analyzer* analyzer);
extern "C" ANALYZER_EXPORT void __cdecl DestroyAnalyzer( Analyzer* analyzer );

#endif // SMBUS_ANALYZER_H
#endif // SMBUS_ANALYZER_H

0 comments on commit 13d20dd

Please sign in to comment.