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

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

Collaboration diagram for hal::SaleaeDataBuffer:
Collaboration graph

Public Member Functions

 SaleaeDataBuffer (uint64_t cnt=0)
 Constructor. Generates null instance when no argument is given. More...
 
 ~SaleaeDataBuffer ()
 Destructor takes care of disposing allocated memory. More...
 
bool isNull () const
 Returns whether buffer has data. Will be false when e.g. reading behind EOF. More...
 
void convertCoded ()
 Convert data buffer from "hal " format to "halx". More...
 
void dump () const
 Dump buffer content to stdout. More...
 

Public Attributes

uint64_t mCount
 Number of elements in buffer. More...
 
uint64_t * mTimeArray
 Buffer for mCount transition time values. More...
 
int * mValueArray
 Buffer for mCount data values. More...
 

Detailed Description

An in-memory buffer of waveform transitions, i.e., an array of time stamps and an array of values.

Definition at line 127 of file saleae_file.h.

Constructor & Destructor Documentation

◆ SaleaeDataBuffer()

hal::SaleaeDataBuffer::SaleaeDataBuffer ( uint64_t  cnt = 0)

Constructor. Generates null instance when no argument is given.

Definition at line 19 of file saleae_file.cpp.

References mCount, mTimeArray, and mValueArray.

◆ ~SaleaeDataBuffer()

hal::SaleaeDataBuffer::~SaleaeDataBuffer ( )

Destructor takes care of disposing allocated memory.

Definition at line 29 of file saleae_file.cpp.

References mTimeArray, and mValueArray.

Member Function Documentation

◆ convertCoded()

void hal::SaleaeDataBuffer::convertCoded ( )

Convert data buffer from "hal " format to "halx".

Definition at line 464 of file saleae_file.cpp.

References mCount, mTimeArray, and mValueArray.

Referenced by hal::SaleaeOutputFile::put_data().

◆ dump()

void hal::SaleaeDataBuffer::dump ( ) const

Dump buffer content to stdout.

Definition at line 474 of file saleae_file.cpp.

References mCount, mTimeArray, and mValueArray.

◆ isNull()

bool hal::SaleaeDataBuffer::isNull ( ) const
inline

Returns whether buffer has data. Will be false when e.g. reading behind EOF.

Definition at line 146 of file saleae_file.h.

References mCount.

Member Data Documentation

◆ mCount

◆ mTimeArray

◆ mValueArray


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