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 & operator=(const filedescriptor &f)
Definition: filedescriptor.h:13
Definition: serialportprofile.h:21
Definition: serialport.h:14