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

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

Collaboration diagram for hal::SaleaeDataTuple:
Collaboration graph

Public Member Functions

 SaleaeDataTuple (uint64_t t=0, int val=sReadError)
 Constructor. Generates null/read error instance when no arguments are given. More...
 
bool readError () const
 Indicates that there was an error and no data was returned. More...
 

Public Attributes

uint64_t mTime
 Transition time. More...
 
int mValue
 Data value. More...
 

Static Public Attributes

static const int sReadError = -99
 Fake data value to indicate all kind of errors. More...
 

Detailed Description

A single waveform transition, i.e., a time stamp together with the value assumed at that time.

Definition at line 158 of file saleae_file.h.

Constructor & Destructor Documentation

◆ SaleaeDataTuple()

hal::SaleaeDataTuple::SaleaeDataTuple ( uint64_t  t = 0,
int  val = sReadError 
)
inline

Constructor. Generates null/read error instance when no arguments are given.

Definition at line 162 of file saleae_file.h.

Member Function Documentation

◆ readError()

bool hal::SaleaeDataTuple::readError ( ) const
inline

Indicates that there was an error and no data was returned.

Definition at line 174 of file saleae_file.h.

References mValue, and sReadError.

Referenced by hal::WaveFormPainted::generate(), hal::WaveData::neighborTransition(), and hal::SaleaeParser::next_event().

Member Data Documentation

◆ mTime

◆ mValue

◆ sReadError


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