openMSX
|
#include <NowindHost.hh>
Public Types | |
enum class | State { SYNC1 , SYNC2 , COMMAND , DISKREAD , DISKWRITE , DEVOPEN , IMAGE , MESSAGE } |
using | Drives = std::vector< std::unique_ptr< DiskContainer > > |
Public Member Functions | |
NowindHost (const Drives &drives) | |
~NowindHost () | |
bool | isDataAvailable () const |
byte | read () |
byte | peek () const |
void | write (byte data, unsigned time) |
void | setAllowOtherDiskRoms (bool allow) |
bool | getAllowOtherDiskRoms () const |
void | setEnablePhantomDrives (bool enable) |
bool | getEnablePhantomDrives () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Definition at line 20 of file NowindHost.hh.
using openmsx::NowindHost::Drives = std::vector<std::unique_ptr<DiskContainer> > |
Definition at line 23 of file NowindHost.hh.
|
strong |
Enumerator | |
---|---|
SYNC1 | |
SYNC2 | |
COMMAND | |
DISKREAD | |
DISKWRITE | |
DEVOPEN | |
IMAGE | |
MESSAGE |
Definition at line 52 of file NowindHost.hh.
|
explicit |
Definition at line 45 of file NowindHost.cc.
|
default |
|
inline |
Definition at line 43 of file NowindHost.hh.
|
inline |
Definition at line 46 of file NowindHost.hh.
bool openmsx::NowindHost::isDataAvailable | ( | ) | const |
Definition at line 63 of file NowindHost.cc.
References cb_queue< T >::empty().
byte openmsx::NowindHost::peek | ( | ) | const |
Definition at line 52 of file NowindHost.cc.
References cb_queue< T >::front(), and isDataAvailable().
Referenced by openmsx::NowindInterface::peekMem().
byte openmsx::NowindHost::read | ( | ) |
Definition at line 58 of file NowindHost.cc.
References isDataAvailable(), and cb_queue< T >::pop_front().
Referenced by openmsx::NowindInterface::readMem().
void openmsx::NowindHost::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 787 of file NowindHost.cc.
References ranges::copy(), and to_vector().
|
inline |
Definition at line 42 of file NowindHost.hh.
|
inline |
Definition at line 45 of file NowindHost.hh.
void openmsx::NowindHost::write | ( | byte | data, |
unsigned | time | ||
) |
Definition at line 70 of file NowindHost.cc.
References COMMAND, DEVOPEN, DISKREAD, DISKWRITE, IMAGE, MESSAGE, SYNC1, SYNC2, and UNREACHABLE.
Referenced by openmsx::NowindInterface::writeMem().