openMSX
Classes | Public Member Functions | List of all members
openmsx::RS232Net Class Referencefinal

#include <RS232Net.hh>

Inheritance diagram for openmsx::RS232Net:
Inheritance graph
[legend]
Collaboration diagram for openmsx::RS232Net:
Collaboration graph
[legend]

Classes

struct  NetworkSocketAddress
 

Public Member Functions

 RS232Net (EventDistributor &eventDistributor, Scheduler &scheduler, CommandController &commandController)
 
 ~RS232Net () override
 
void plugHelper (Connector &connector, EmuTime::param time) override
 
void unplugHelper (EmuTime::param time) override
 
std::string_view getName () const override
 Name used to identify this pluggable.
 
std::string_view getDescription () const override
 Description for this pluggable.
 
void signal (EmuTime::param time) override
 
void recvByte (uint8_t value, EmuTime::param time) override
 
std::optional< bool > getDSR (EmuTime::param time) const override
 
std::optional< bool > getCTS (EmuTime::param time) const override
 
std::optional< bool > getDCD (EmuTime::param time) const override
 
std::optional< bool > getRI (EmuTime::param time) const override
 
void setDTR (bool status, EmuTime::param time) override
 
void setRTS (bool status, EmuTime::param time) override
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::RS232Device
std::string_view getClass () const final
 A pluggable belongs to a certain class.
 
void setDataBits (DataBits bits) override
 
void setStopBits (StopBits bits) override
 
void setParityBit (bool enable, Parity parity) override
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector.
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a connector.
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.
 

Additional Inherited Members

- Public Types inherited from openmsx::SerialDataInterface
enum class  DataBits { D5 = 5 , D6 = 6 , D7 = 7 , D8 = 8 }
 
enum class  StopBits { INV = 0 , S1 = 2 , S1_5 = 3 , S2 = 4 }
 
enum class  Parity { EVEN = 0 , ODD = 1 }
 
- Protected Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
void setConnector (Connector *conn)
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 26 of file RS232Net.hh.

Constructor & Destructor Documentation

◆ RS232Net()

openmsx::RS232Net::RS232Net ( EventDistributor eventDistributor,
Scheduler scheduler,
CommandController commandController 
)

◆ ~RS232Net()

openmsx::RS232Net::~RS232Net ( )
override

Member Function Documentation

◆ getCTS()

std::optional< bool > openmsx::RS232Net::getCTS ( EmuTime::param  time) const
overridevirtual

Reimplemented from openmsx::RS232Device.

Definition at line 313 of file RS232Net.cc.

◆ getDCD()

std::optional< bool > openmsx::RS232Net::getDCD ( EmuTime::param  time) const
overridevirtual

Reimplemented from openmsx::RS232Device.

Definition at line 318 of file RS232Net.cc.

◆ getDescription()

std::string_view openmsx::RS232Net::getDescription ( ) const
overridevirtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 204 of file RS232Net.cc.

◆ getDSR()

std::optional< bool > openmsx::RS232Net::getDSR ( EmuTime::param  time) const
overridevirtual

Reimplemented from openmsx::RS232Device.

Definition at line 308 of file RS232Net.cc.

◆ getName()

std::string_view openmsx::RS232Net::getName ( ) const
overridevirtual

Name used to identify this pluggable.

Reimplemented from openmsx::Pluggable.

Definition at line 199 of file RS232Net.cc.

◆ getRI()

std::optional< bool > openmsx::RS232Net::getRI ( EmuTime::param  time) const
overridevirtual

Reimplemented from openmsx::RS232Device.

Definition at line 323 of file RS232Net.cc.

◆ plugHelper()

void openmsx::RS232Net::plugHelper ( Connector connector,
EmuTime::param  time 
)
overridevirtual

◆ recvByte()

void openmsx::RS232Net::recvByte ( uint8_t  value,
EmuTime::param  time 
)
overridevirtual

Implements openmsx::SerialDataInterface.

Definition at line 293 of file RS232Net.cc.

References openmsx::OPENMSX_INVALID_SOCKET.

◆ serialize()

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

Definition at line 381 of file RS232Net.cc.

◆ setDTR()

void openmsx::RS232Net::setDTR ( bool  status,
EmuTime::param  time 
)
overridevirtual

Reimplemented from openmsx::RS232Device.

Definition at line 328 of file RS232Net.cc.

References openmsx::OPENMSX_INVALID_SOCKET.

◆ setRTS()

void openmsx::RS232Net::setRTS ( bool  status,
EmuTime::param  time 
)
overridevirtual

Reimplemented from openmsx::RS232Device.

Definition at line 340 of file RS232Net.cc.

References openmsx::EventDistributor::distributeEvent(), and cb_queue< T >::empty().

◆ signal()

void openmsx::RS232Net::signal ( EmuTime::param  time)
overridevirtual

◆ unplugHelper()

void openmsx::RS232Net::unplugHelper ( EmuTime::param  time)
overridevirtual

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