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 
19 
23 
27 
29  virtual ~serialport();
30 
34 
38 
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
Definition: filedescriptor.h:13
Definition: serialport.h:14
bool transmitStart()
serialport & operator=(const serialport &s)
bool suspendOutput()
bool transmitStop()
bool flushInput()
bool getProfile(serialportprofile *profile)
bool drain()
bool setProfileOnDrain(serialportprofile *profile)
bool flushOutput()
serialport(const serialport &s)
virtual ~serialport()
bool setProfileOnFlush(serialportprofile *profile)
bool flush()
bool sendBreak(int32_t duration)
bool restartOutput()
bool setProfileNow(serialportprofile *profile)
Definition: serialportprofile.h:21