Skip to content

LogicAnalyzerAPI ​

cpp
#include <VAmiga.h>
cpp
class LogicAnalyzerAPI

Defined in VAmiga.h:395

API of the logic analyzer.

Public Methods ​

ReturnNameDescription
const LogicAnalyzerConfig &getConfig constReturns the component's current configuration.
const LogicAnalyzerInfo &getInfo constReturns the component's current state.
const LogicAnalyzerInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).
isizegetTraceCount constReturns the number of samples held in the signal trace.
LogicAnalyzerSamplegetTraceSample constReturns a sample from the signal trace.

getConfig ​

const

cpp
const LogicAnalyzerConfig & getConfig() const

Defined in VAmiga.h:405

Returns the component's current configuration.


getInfo ​

const

cpp
const LogicAnalyzerInfo & getInfo() const

Defined in VAmiga.h:416

Returns the component's current state.

getInfo() reads the live state on the calling thread. The result is only consistent if the emulator is paused or suspended. getCachedInfo() returns the snapshot the emulator thread has recorded most recently, which is the one to use while the emulator runs. Both return references that can be overwritten by a later call or by the emulator thread, so copy the data if you need to keep it.


getCachedInfo ​

const

cpp
const LogicAnalyzerInfo & getCachedInfo() const

Defined in VAmiga.h:418

Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).


getTraceCount ​

const

cpp
isize getTraceCount() const

Defined in VAmiga.h:422

Returns the number of samples held in the signal trace.


getTraceSample ​

const

cpp
LogicAnalyzerSample getTraceSample(isize nr) const

Defined in VAmiga.h:427

Returns a sample from the signal trace.

Parameters ​

ParameterTypeDescription
nrisizeSample number (0 = most recent sample).