Appearance
LogicAnalyzerAPI
cpp
#include <VAmiga.h>cpp
class LogicAnalyzerAPIDefined in VAmiga.h:395
API of the logic analyzer.
Public Methods
| Return | Name | Description |
|---|---|---|
const LogicAnalyzerConfig & | getConfig const | Returns the component's current configuration. |
const LogicAnalyzerInfo & | getInfo const | Returns the component's current state. |
const LogicAnalyzerInfo & | getCachedInfo const | Returns the most recent state snapshot recorded by the emulator thread (see getInfo()). |
isize | getTraceCount const | Returns the number of samples held in the signal trace. |
LogicAnalyzerSample | getTraceSample const | Returns a sample from the signal trace. |
getConfig
const
cpp
const LogicAnalyzerConfig & getConfig() constDefined in VAmiga.h:405
Returns the component's current configuration.
getInfo
const
cpp
const LogicAnalyzerInfo & getInfo() constDefined 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() constDefined in VAmiga.h:418
Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).
getTraceCount
const
cpp
isize getTraceCount() constDefined in VAmiga.h:422
Returns the number of samples held in the signal trace.
getTraceSample
const
cpp
LogicAnalyzerSample getTraceSample(isize nr) constDefined in VAmiga.h:427
Returns a sample from the signal trace.
Parameters
| Parameter | Type | Description |
|---|---|---|
nr | isize | Sample number (0 = most recent sample). |