openMSX
|
#include <RS232Tester.hh>
Public Member Functions | |
RS232Tester (EventDistributor &eventDistributor, Scheduler &scheduler, CommandController &commandController) | |
~RS232Tester () 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. More... | |
std::string_view | getDescription () const override |
Description for this pluggable. More... | |
void | signal (EmuTime::param time) override |
void | recvByte (uint8_t value, EmuTime::param time) override |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
virtual void | signal (EmuTime::param time)=0 |
void | setDataBits (DataBits bits) override |
void | setStopBits (StopBits bits) override |
void | setParityBit (bool enable, ParityBit parity) override |
virtual bool | getCTS (EmuTime::param time) const |
virtual bool | getDSR (EmuTime::param time) const |
virtual void | setDTR (bool status, EmuTime::param time) |
virtual void | setRTS (bool status, EmuTime::param time) |
![]() | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. More... | |
virtual std::string_view | getClass () const =0 |
A pluggable belongs to a certain class. More... | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. More... | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. More... | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. More... | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. More... | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. More... | |
virtual void | setDataBits (DataBits bits)=0 |
virtual void | setStopBits (StopBits bits)=0 |
virtual void | setParityBit (bool enable, ParityBit parity)=0 |
virtual void | recvByte (byte value, EmuTime::param time)=0 |
Additional Inherited Members | |
![]() | |
enum | DataBits { DATA_5 = 5 , DATA_6 = 6 , DATA_7 = 7 , DATA_8 = 8 } |
enum | StopBits { STOP_INV = 0 , STOP_1 = 2 , STOP_15 = 3 , STOP_2 = 4 } |
enum | ParityBit { EVEN = 0 , ODD = 1 } |
![]() | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
![]() | |
~SerialDataInterface ()=default | |
Definition at line 22 of file RS232Tester.hh.
openmsx::RS232Tester::RS232Tester | ( | EventDistributor & | eventDistributor, |
Scheduler & | scheduler, | ||
CommandController & | commandController | ||
) |
Definition at line 14 of file RS232Tester.cc.
References openmsx::EventDistributor::registerEventListener(), and openmsx::RS232_TESTER.
|
override |
Definition at line 30 of file RS232Tester.cc.
References openmsx::RS232_TESTER, and openmsx::EventDistributor::unregisterEventListener().
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 80 of file RS232Tester.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 75 of file RS232Tester.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 36 of file RS232Tester.cc.
References openmsx::SerialDataInterface::DATA_8, openmsx::SerialDataInterface::EVEN, openmsx::FilenameSetting::getString(), openmsx::FileOperations::openFile(), openmsx::FileOperations::openOfStream(), openmsx::Pluggable::setConnector(), and openmsx::SerialDataInterface::STOP_1.
|
overridevirtual |
Implements openmsx::SerialDataInterface.
Definition at line 143 of file RS232Tester.cc.
void openmsx::RS232Tester::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 153 of file RS232Tester.cc.
|
overridevirtual |
Implements openmsx::RS232Device.
Definition at line 114 of file RS232Tester.cc.
References cb_queue< T >::clear(), cb_queue< T >::empty(), openmsx::Pluggable::getConnector(), and cb_queue< T >::pop_front().
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 64 of file RS232Tester.cc.
References openmsx::Poller::abort().