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

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

Inheritance diagram for hal::SaleaeOutputFile:
Inheritance graph
Collaboration diagram for hal::SaleaeOutputFile:
Collaboration graph

Public Member Functions

 SaleaeOutputFile (const std::string &filename, int index_)
 
 ~SaleaeOutputFile ()
 
void writeTimeValue (uint64_t t, int32_t val)
 Write single data tuple to disk. More...
 
void close ()
 Update header on disk and close file. More...
 
int index () const
 Getter for data file index (XXX in digital_XXX.bin) More...
 
void put_data (SaleaeDataBuffer *buf)
 Write buffered data. More...
 
SaleaeDirectoryFileIndex fileIndex () const
 File index summary for saleae directory. More...
 

Detailed Description

Writes waveform transitions into a SALEAE binary file.

Definition at line 221 of file saleae_file.h.

Constructor & Destructor Documentation

◆ SaleaeOutputFile()

hal::SaleaeOutputFile::SaleaeOutputFile ( const std::string &  filename,
int  index_ 
)

◆ ~SaleaeOutputFile()

hal::SaleaeOutputFile::~SaleaeOutputFile ( )

Definition at line 441 of file saleae_file.cpp.

References close().

Member Function Documentation

◆ close()

void hal::SaleaeOutputFile::close ( )

Update header on disk and close file.

Definition at line 447 of file saleae_file.cpp.

References hal::SaleaeHeader::write().

Referenced by ~SaleaeOutputFile(), and hal::SaleaeWriter::~SaleaeWriter().

◆ fileIndex()

SaleaeDirectoryFileIndex hal::SaleaeOutputFile::fileIndex ( ) const

File index summary for saleae directory.

Definition at line 455 of file saleae_file.cpp.

References hal::SaleaeHeader::beginTime(), hal::SaleaeHeader::endTime(), and hal::SaleaeHeader::numTransitions().

Referenced by hal::SaleaeWriter::~SaleaeWriter().

◆ index()

int hal::SaleaeOutputFile::index ( ) const
inline

Getter for data file index (XXX in digital_XXX.bin)

Definition at line 243 of file saleae_file.h.

◆ put_data()

◆ writeTimeValue()


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