HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::WaveDataProviderFile Class Reference

#include </home/runner/work/hal/hal/plugins/simulator/netlist_simulator_controller/include/netlist_simulator_controller/wave_data_provider.h>

Inheritance diagram for hal::WaveDataProviderFile:
Inheritance graph
Collaboration diagram for hal::WaveDataProviderFile:
Collaboration graph

Public Types

enum  StoreData { Off , Recording , Complete , Failed }
 

Public Member Functions

bool isRecording () const
 
void storeCurrentDatapoint ()
 
 WaveDataProviderFile (SaleaeInputFile &sif, const WaveDataTimeframe &tframe)
 
 ~WaveDataProviderFile ()
 
virtual SaleaeDataTuple startValue (u64 t) override
 
virtual SaleaeDataTuple nextPoint () override
 
StoreData storeDataState () const
 
const QMap< u64, int > & dataMap () const
 
- Public Member Functions inherited from hal::WaveDataProvider
 WaveDataProvider ()
 
virtual ~WaveDataProvider ()
 
bool isGroup () const
 
bool isBoolean () const
 
bool isTrigger () const
 
int bits () const
 
int valueBase () const
 
void setWaveType (WaveData::NetType type, int bts=1, int base=16)
 

Public Attributes

SaleaeInputFilemInputFile
 
SaleaeDataBuffermBuffer
 
u64 mIndex
 
const WaveDataTimeframemTimeframe
 
QMap< u64, int > mDataMap
 
StoreData mStoreData
 

Detailed Description

Provides waveform transitions by streaming them from a SALEAE data file.

Definition at line 79 of file wave_data_provider.h.

Member Enumeration Documentation

◆ StoreData

Enumerator
Off 
Recording 
Complete 
Failed 

Definition at line 82 of file wave_data_provider.h.

Constructor & Destructor Documentation

◆ WaveDataProviderFile()

hal::WaveDataProviderFile::WaveDataProviderFile ( SaleaeInputFile sif,
const WaveDataTimeframe tframe 
)
inline

Definition at line 93 of file wave_data_provider.h.

◆ ~WaveDataProviderFile()

hal::WaveDataProviderFile::~WaveDataProviderFile ( )

Definition at line 56 of file wave_data_provider.cpp.

References mBuffer.

Member Function Documentation

◆ dataMap()

const QMap<u64,int>& hal::WaveDataProviderFile::dataMap ( ) const
inline

Definition at line 100 of file wave_data_provider.h.

References mDataMap.

Referenced by hal::WaveLoaderThread::run().

◆ isRecording()

bool hal::WaveDataProviderFile::isRecording ( ) const
inline

Definition at line 90 of file wave_data_provider.h.

References mStoreData, and Recording.

Referenced by nextPoint(), and startValue().

◆ nextPoint()

◆ startValue()

◆ storeCurrentDatapoint()

◆ storeDataState()

StoreData hal::WaveDataProviderFile::storeDataState ( ) const
inline

Definition at line 99 of file wave_data_provider.h.

References mStoreData.

Referenced by hal::WaveLoaderThread::run().

Member Data Documentation

◆ mBuffer

SaleaeDataBuffer* hal::WaveDataProviderFile::mBuffer

◆ mDataMap

QMap<u64,int> hal::WaveDataProviderFile::mDataMap

Definition at line 87 of file wave_data_provider.h.

Referenced by dataMap(), startValue(), and storeCurrentDatapoint().

◆ mIndex

u64 hal::WaveDataProviderFile::mIndex

Definition at line 85 of file wave_data_provider.h.

Referenced by nextPoint(), startValue(), and storeCurrentDatapoint().

◆ mInputFile

SaleaeInputFile& hal::WaveDataProviderFile::mInputFile

Definition at line 83 of file wave_data_provider.h.

Referenced by nextPoint(), and startValue().

◆ mStoreData

StoreData hal::WaveDataProviderFile::mStoreData

◆ mTimeframe

const WaveDataTimeframe& hal::WaveDataProviderFile::mTimeframe

Definition at line 86 of file wave_data_provider.h.

Referenced by startValue(), and storeCurrentDatapoint().


The documentation for this class was generated from the following files: