Skip to content

DiskControllerAPI ​

cpp
#include <VAmiga.h>
cpp
class DiskControllerAPI

Defined in VAmiga.h:1070

API of the disk controller.

Public Methods ​

ReturnNameDescription
const DiskControllerConfig &getConfig constReturns the component's current configuration.
const DiskControllerInfo &getInfo constReturns the component's current state.
const DiskControllerInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).

getConfig ​

const

cpp
const DiskControllerConfig & getConfig() const

Defined in VAmiga.h:1080

Returns the component's current configuration.


getInfo ​

const

cpp
const DiskControllerInfo & getInfo() const

Defined in VAmiga.h:1091

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

Defined in VAmiga.h:1093

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