Skip to content

CIAAPI ​

cpp
#include <VAmiga.h>
cpp
class CIAAPI

Defined in VAmiga.h:714

API of a CIA chip.

Public Methods ​

ReturnNameDescription
const CIAConfig &getConfig constReturns the component's current configuration.
const CIAInfo &getInfo constReturns the component's current state.
const CIAInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).
const CIAMetrics &getMetrics constReturns statistical information about the components.
const CIAMetrics &getCachedMetrics constReturns the most recent metrics snapshot recorded by the emulator thread (see getMetrics()).

getConfig ​

const

cpp
const CIAConfig & getConfig() const

Defined in VAmiga.h:724

Returns the component's current configuration.


getInfo ​

const

cpp
const CIAInfo & getInfo() const

Defined in VAmiga.h:735

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 CIAInfo & getCachedInfo() const

Defined in VAmiga.h:737

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


getMetrics ​

const

cpp
const CIAMetrics & getMetrics() const

Defined in VAmiga.h:741

Returns statistical information about the components.


getCachedMetrics ​

const

cpp
const CIAMetrics & getCachedMetrics() const

Defined in VAmiga.h:743

Returns the most recent metrics snapshot recorded by the emulator thread (see getMetrics()).