openMSX
RS232Device.cc
Go to the documentation of this file.
1 #include "RS232Device.hh"
2 
3 namespace openmsx {
4 
5 std::string_view RS232Device::getClass() const
6 {
7  return "RS232";
8 }
9 
11 {
12  // ignore
13 }
14 
16 {
17  // ignore
18 }
19 
20 void RS232Device::setParityBit(bool /*enable*/, ParityBit /*parity*/)
21 {
22  // ignore
23 }
24 
25 bool RS232Device::getCTS(EmuTime::param /*time*/) const
26 {
27  return true; // TODO check
28 }
29 
30 bool RS232Device::getDSR(EmuTime::param /*time*/) const
31 {
32  return true; // TODO check
33 }
34 
35 void RS232Device::setDTR(bool /*status*/, EmuTime::param /*time*/)
36 {
37  // ignore
38 }
39 
40 void RS232Device::setRTS(bool /*status*/, EmuTime::param /*time*/)
41 {
42  // ignore
43 }
44 
45 } // namespace openmsx
void setDataBits(DataBits bits) override
Definition: RS232Device.cc:10
void setStopBits(StopBits bits) override
Definition: RS232Device.cc:15
virtual bool getCTS(EmuTime::param time) const
Definition: RS232Device.cc:25
std::string_view getClass() const final override
A pluggable belongs to a certain class.
Definition: RS232Device.cc:5
void setParityBit(bool enable, ParityBit parity) override
Definition: RS232Device.cc:20
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual void setDTR(bool status, EmuTime::param time)
Definition: RS232Device.cc:35
virtual void setRTS(bool status, EmuTime::param time)
Definition: RS232Device.cc:40
virtual bool getDSR(EmuTime::param time) const
Definition: RS232Device.cc:30