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 |
const std::string & | 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 (byte 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... | |
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 |
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... | |
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 () | |
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 11 of file RS232Tester.cc.
References openmsx::OPENMSX_RS232_TESTER_EVENT, and openmsx::EventDistributor::registerEventListener().
|
override |
Definition at line 27 of file RS232Tester.cc.
References openmsx::OPENMSX_RS232_TESTER_EVENT, and openmsx::EventDistributor::unregisterEventListener().
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 78 of file RS232Tester.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 72 of file RS232Tester.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 33 of file RS232Tester.cc.
References openmsx::SerialDataInterface::DATA_8, openmsx::SerialDataInterface::EVEN, openmsx::FilenameSetting::getString(), openmsx::FileOperations::openFile(), openmsx::FileOperations::openofstream(), openmsx::Pluggable::setConnector(), openmsx::RS232Connector::setDataBits(), and openmsx::SerialDataInterface::STOP_1.
|
overridevirtual |
Implements openmsx::SerialDataInterface.
Definition at line 141 of file RS232Tester.cc.
void openmsx::RS232Tester::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 151 of file RS232Tester.cc.
|
overridevirtual |
Implements openmsx::RS232Device.
Definition at line 112 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 61 of file RS232Tester.cc.
References openmsx::Poller::abort().