|
SERIAL++ library: simple serial port access
|
#include <serialport.h>
Public Member Functions | |
| SerialPort (const std::string &devname, const int &flags=(O_RDWR|O_NOCTTY|O_NDELAY)) | |
| open port by name of device file More... | |
| ~SerialPort () | |
| close port More... | |
| void | write (const std::string &text) const |
| write string to port More... | |
| std::string | read (const std::string &delim="\) const |
| read from port until delimiter More... | |
| int | read (char *buffer, const int &bufsize) const |
| low-level read More... | |
| void | debug (const bool &flag) |
| set debug mode More... | |
| void | sendxon () const |
| send xon More... | |
| void | sendxoff () const |
| send xoff More... | |
| void | flowxon () |
| set xon/xoff slow control More... | |
| void | mode7E1 () const |
| set 7 data bits, even parity, 1 stop bit More... | |
| void | baud9600 () const |
| select 9600 baud More... | |
| void | makeraw () const |
| issue cfmakeraw More... | |
| void | setdefaults () const |
| set default values from ttydefaults.h More... | |
| void | clocal () const |
| set clocal More... | |
Private Attributes | |
| int | Mfd |
| file descriptor to this port More... | |
| bool | Mdebug |
| debug flag More... | |
| struct termios | Mdevoptions |
| remember device status More... | |
| bool | Musexon |
| use xon/xoff flow control More... | |
This class provides access to a serial port
Definition at line 55 of file serialport.h.