Rudiments: /home/dmuse/temp/rudiments/include/rudiments/serialport.h Source File

Rudiments

serialport.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_SERIALPORT_H
5 #define RUDIMENTS_SERIALPORT_H
6
7 #include <rudiments/private/serialportincludes.h>
8
14 class RUDIMENTS_DLLSPEC serialport : public filedescriptor {
15 public:
16
18 serialport();
19
22 serialport(const serialport &s);
23
26 serialport &operator=(const serialport &s);
27
29 virtual ~serialport();
30
33 bool setProfileNow(serialportprofile *profile);
34
37 bool setProfileOnDrain(serialportprofile *profile);
38
42 bool setProfileOnFlush(serialportprofile *profile);
43
45 bool getProfile(serialportprofile *profile);
46
49 bool drain();
50
53 bool flush();
54
56 bool flushInput();
57
60 bool flushOutput();
61
65 bool suspendOutput();
66
69 bool restartOutput();
70
74 bool transmitStop();
75
78 bool transmitStart();
79
89 bool sendBreak(int32_t duration);
90
91 #include <rudiments/private/serialport.h>
92 };
93
94 #endif
filedescriptor
Definition: filedescriptor.h:13
serialport
Definition: serialport.h:14
serialport::transmitStart
bool transmitStart()
serialport::operator=
serialport & operator=(const serialport &s)
serialport::suspendOutput
bool suspendOutput()
serialport::transmitStop
bool transmitStop()
serialport::flushInput
bool flushInput()
serialport::getProfile
bool getProfile(serialportprofile *profile)
serialport::serialport
serialport()
serialport::drain
bool drain()
serialport::setProfileOnDrain
bool setProfileOnDrain(serialportprofile *profile)
serialport::flushOutput
bool flushOutput()
serialport::serialport
serialport(const serialport &s)
serialport::~serialport
virtual ~serialport()
serialport::setProfileOnFlush
bool setProfileOnFlush(serialportprofile *profile)
serialport::flush
bool flush()
serialport::sendBreak
bool sendBreak(int32_t duration)
serialport::restartOutput
bool restartOutput()
serialport::setProfileNow
bool setProfileNow(serialportprofile *profile)
serialportprofile
Definition: serialportprofile.h:21