Debian Codegraph @

src/hardware/serialport/serialdummy.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2002-2010 The DOSBox Team
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 /* $Id: serialdummy.h,v 1.5 2009-05-27 09:15:41 qbix79 Exp $ */
20
21 #ifndef INCLUDEGUARD_SERIALDUMMY_H
22 #define INCLUDEGUARD_SERIALDUMMY_H
23
24 #include "serialport.h"
25
26 //#define CHECKIT_TESTPLUG
27
28 class CSerialDummy : public CSerial {
29 public:
30 CSerialDummy(Bitu id, CommandLine* cmd);
31 ~CSerialDummy();
32
33 void setRTSDTR(bool rts, bool dtr);
34 void setRTS(bool val);
35 void setDTR(bool val);
36
37 void updatePortConfig(Bit16u, Bit8u lcr);
38 void updateMSR();
39 void transmitByte(Bit8u val, bool first);
40 void setBreak(bool value);
41 void handleUpperEvent(Bit16u type);
42
43 #ifdef CHECKIT_TESTPLUG
44 Bit8u loopbackdata;
45 #endif
46
47 };
48
49 #endif // INCLUDEGUARD