openMSX
RS232Device.cc
Go to the documentation of this file.
1#include "RS232Device.hh"
2
3namespace openmsx {
4
5std::string_view RS232Device::getClass() const
6{
7 return "RS232";
8}
9
11{
12 // ignore
13}
14
16{
17 // ignore
18}
19
20void RS232Device::setParityBit(bool /*enable*/, Parity /*parity*/)
21{
22 // ignore
23}
24
25// The input lines of the RS-232 port without any plugged in device
26// are left floating (bits read as 1 in the IO ports), with the exception
27// of the following devices:
28//
29// Spectravideo SVI-738 : Inputs are pull-up (Read as 0 in the IO ports)
30// Spectravideo SVI-737 and SVI-757: Inputs are pull-down, behave
31// the same as left floating.
32//
33// This has been tested to be true for the SVI-738 and Toshiba HX-22,
34// for the other devices the info comes from manuals, schematics, or
35// circuit board pictures.
36//
37// Return an empty optional to indicate an unplugged input, in which case
38// the configuration tag 'rs232_pullup' will be used as the
39// effective value.
40
41
42std::optional<bool> RS232Device::getCTS(EmuTime::param /*time*/) const
43{
44 return {};
45}
46
47std::optional<bool> RS232Device::getDSR(EmuTime::param /*time*/) const
48{
49 return {};
50}
51
52std::optional<bool> RS232Device::getDCD(EmuTime::param /*time*/) const
53{
54 return {};
55}
56
57std::optional<bool> RS232Device::getRI(EmuTime::param /*time*/) const
58{
59 return {};
60}
61
62void RS232Device::setDTR(bool /*status*/, EmuTime::param /*time*/)
63{
64 // ignore
65}
66
67void RS232Device::setRTS(bool /*status*/, EmuTime::param /*time*/)
68{
69 // ignore
70}
71
72} // namespace openmsx
virtual std::optional< bool > getRI(EmuTime::param time) const
virtual void setRTS(bool status, EmuTime::param time)
void setStopBits(StopBits bits) override
virtual std::optional< bool > getDSR(EmuTime::param time) const
virtual std::optional< bool > getCTS(EmuTime::param time) const
void setDataBits(DataBits bits) override
std::string_view getClass() const final
A pluggable belongs to a certain class.
Definition RS232Device.cc:5
void setParityBit(bool enable, Parity parity) override
virtual std::optional< bool > getDCD(EmuTime::param time) const
virtual void setDTR(bool status, EmuTime::param time)
This file implemented 3 utility functions:
Definition Autofire.cc:11