|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|


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... | |
Writes waveform transitions into a SALEAE binary file.
Definition at line 221 of file saleae_file.h.
| hal::SaleaeOutputFile::SaleaeOutputFile | ( | const std::string & | filename, |
| int | index_ | ||
| ) |
Definition at line 358 of file saleae_file.cpp.
References hal::SaleaeStatus::ErrorOpenFile, and hal::SaleaeHeader::write().
| hal::SaleaeOutputFile::~SaleaeOutputFile | ( | ) |
Definition at line 441 of file saleae_file.cpp.
References 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().
| 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().
|
inline |
Getter for data file index (XXX in digital_XXX.bin)
Definition at line 243 of file saleae_file.h.
| void hal::SaleaeOutputFile::put_data | ( | SaleaeDataBuffer * | buf | ) |
Write buffered data.
Definition at line 384 of file saleae_file.cpp.
References hal::SaleaeHeader::Coded, hal::SaleaeDataBuffer::convertCoded(), hal::SaleaeDataBuffer::mCount, hal::SaleaeDataBuffer::mTimeArray, hal::SaleaeDataBuffer::mValueArray, hal::SaleaeHeader::setEndTime(), hal::SaleaeHeader::setNumTransitions(), hal::SaleaeHeader::setStorageFormat(), hal::SaleaeHeader::setValue(), hal::SaleaeHeader::Uint64, and hal::gate_library_writer_manager::write().
Referenced by hal::WaveData::saveSaleae().
| void hal::SaleaeOutputFile::writeTimeValue | ( | uint64_t | t, |
| int32_t | val | ||
| ) |
Write single data tuple to disk.
Definition at line 407 of file saleae_file.cpp.
References hal::SaleaeHeader::Coded, hal::SaleaeHeader::incrementTransitions(), hal::SaleaeHeader::setBeginTime(), hal::SaleaeHeader::setEndTime(), hal::SaleaeHeader::setValue(), hal::SaleaeHeader::storageFormat(), hal::SaleaeHeader::Uint64, and hal::gate_library_writer_manager::write().
Referenced by hal::WavedataTableEditor::generateSimulationInput().