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. | |
std::string_view | getDescription () const override |
Description for this pluggable. | |
std::optional< bool > | getDSR (EmuTime::param time) const override |
std::optional< bool > | getCTS (EmuTime::param time) const override |
void | signal (EmuTime::param time) override |
void | recvByte (uint8_t value, 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 |
virtual std::optional< bool > | getDCD (EmuTime::param time) const |
virtual std::optional< bool > | getRI (EmuTime::param time) const |
virtual void | setDTR (bool status, EmuTime::param time) |
virtual void | setRTS (bool status, EmuTime::param time) |
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. | |
Connector * | getConnector () 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 | |
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 |
Reimplemented from openmsx::RS232Device.
Definition at line 121 of file RS232Tester.cc.
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 81 of file RS232Tester.cc.
|
overridevirtual |
Reimplemented from openmsx::RS232Device.
Definition at line 116 of file RS232Tester.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 76 of file RS232Tester.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 36 of file RS232Tester.cc.
References openmsx::SerialDataInterface::D8, openmsx::SerialDataInterface::EVEN, openmsx::FilenameSetting::getString(), openmsx::FileOperations::openFile(), openmsx::FileOperations::openOfStream(), openmsx::Poller::reset(), openmsx::SerialDataInterface::S1, and openmsx::Pluggable::setConnector().
|
overridevirtual |
Implements openmsx::SerialDataInterface.
Definition at line 156 of file RS232Tester.cc.
void openmsx::RS232Tester::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 166 of file RS232Tester.cc.
|
overridevirtual |
Implements openmsx::RS232Device.
Definition at line 127 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 65 of file RS232Tester.cc.
References openmsx::Poller::abort().