openMSX
Classes | Public Types | Public Member Functions | List of all members
openmsx::NowindHost Class Reference

#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)
 

Detailed Description

Definition at line 20 of file NowindHost.hh.

Member Typedef Documentation

◆ Drives

using openmsx::NowindHost::Drives = std::vector<std::unique_ptr<DiskContainer> >

Definition at line 23 of file NowindHost.hh.

Member Enumeration Documentation

◆ State

enum class openmsx::NowindHost::State
strong
Enumerator
SYNC1 
SYNC2 
COMMAND 
DISKREAD 
DISKWRITE 
DEVOPEN 
IMAGE 
MESSAGE 

Definition at line 52 of file NowindHost.hh.

Constructor & Destructor Documentation

◆ NowindHost()

openmsx::NowindHost::NowindHost ( const Drives drives)
explicit

Definition at line 45 of file NowindHost.cc.

◆ ~NowindHost()

openmsx::NowindHost::~NowindHost ( )
default

Member Function Documentation

◆ getAllowOtherDiskRoms()

bool openmsx::NowindHost::getAllowOtherDiskRoms ( ) const
inline

Definition at line 43 of file NowindHost.hh.

◆ getEnablePhantomDrives()

bool openmsx::NowindHost::getEnablePhantomDrives ( ) const
inline

Definition at line 46 of file NowindHost.hh.

◆ isDataAvailable()

bool openmsx::NowindHost::isDataAvailable ( ) const

Definition at line 63 of file NowindHost.cc.

References cb_queue< T >::empty().

Referenced by peek(), and read().

◆ peek()

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().

◆ read()

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().

◆ serialize()

template<typename Archive >
void openmsx::NowindHost::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 787 of file NowindHost.cc.

References ranges::copy(), and to_vector().

◆ setAllowOtherDiskRoms()

void openmsx::NowindHost::setAllowOtherDiskRoms ( bool  allow)
inline

Definition at line 42 of file NowindHost.hh.

◆ setEnablePhantomDrives()

void openmsx::NowindHost::setEnablePhantomDrives ( bool  enable)
inline

Definition at line 45 of file NowindHost.hh.

◆ write()

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().


The documentation for this class was generated from the following files: