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

#include <NowindHost.hh>

Public Types

enum  State {
  STATE_SYNC1 , STATE_SYNC2 , STATE_COMMAND , STATE_DISKREAD ,
  STATE_DISKWRITE , STATE_DEVOPEN , STATE_IMAGE , STATE_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

Enumerator
STATE_SYNC1 
STATE_SYNC2 
STATE_COMMAND 
STATE_DISKREAD 
STATE_DISKWRITE 
STATE_DEVOPEN 
STATE_IMAGE 
STATE_MESSAGE 

Definition at line 52 of file NowindHost.hh.

Constructor & Destructor Documentation

◆ NowindHost()

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

Definition at line 47 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 65 of file NowindHost.cc.

References cb_queue< T >::empty().

Referenced by peek(), and read().

◆ peek()

byte openmsx::NowindHost::peek ( ) const

Definition at line 54 of file NowindHost.cc.

References cb_queue< T >::front(), and isDataAvailable().

Referenced by openmsx::NowindInterface::peekMem().

◆ read()

byte openmsx::NowindHost::read ( )

Definition at line 60 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 788 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 
)

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