#include <SerialPort.h>
Public Member Functions | |
| SerialPort () | |
| ~SerialPort () | |
| int | open (char *devicename) |
| int | close () |
| int | status () |
| int | write (char *data, int lenght) |
| char | readChar () |
| char * | readBytes (int bytes) |
| int | dataWaiting () |
| enum BaudRateEnum | setBaudRate (enum BaudRateEnum bps) |
| enum CharSizeEnum | setCharSize (enum CharSizeEnum charsize) |
| enum ParityEnum | setParity (enum ParityEnum parity) |
| int | setStopBits (int stopbits) |
| enum FlowControlEnum | setFlowControl (enum FlowControlEnum flowctrl) |
Private Attributes | |
| int | fd |
| int | state |
| int | stopbits |
| enum BaudRateEnum | baud |
| enum CharSizeEnum | charsize |
| enum ParityEnum | parity |
| enum FlowControlEnum | flowctrl |
|
|
Definition at line 89 of file SerialPort.h. |
|
|
Definition at line 92 of file SerialPort.h. |
|
|
Definition at line 41 of file SerialPort.cpp. References state. Referenced by main(). |
|
|
Definition at line 79 of file SerialPort.cpp. Referenced by main(). |
|
|
Definition at line 8 of file SerialPort.cpp. Referenced by main(). |
|
|
Definition at line 69 of file SerialPort.cpp. References fd. Referenced by main(). |
|
|
Definition at line 56 of file SerialPort.cpp. |
|
|
|
Definition at line 140 of file SerialPort.cpp. References SerialPorts::CHAR_SIZE_5, SerialPorts::CHAR_SIZE_6, SerialPorts::CHAR_SIZE_7, SerialPorts::CHAR_SIZE_8, SerialPorts::CHAR_SIZE_ERR, and state. Referenced by main(). |
|
|
Definition at line 256 of file SerialPort.cpp. References SerialPorts::CTRL_Q, SerialPorts::CTRL_S, SerialPorts::FLOW_CONTROL_ERR, SerialPorts::FLOW_CONTROL_HARD, SerialPorts::FLOW_CONTROL_NONE, SerialPorts::FLOW_CONTROL_SOFT, and state. Referenced by main(). |
|
|
Definition at line 183 of file SerialPort.cpp. References SerialPorts::PARITY_ERR, SerialPorts::PARITY_EVEN, SerialPorts::PARITY_NONE, SerialPorts::PARITY_ODD, and state. Referenced by main(). |
|
|
Definition at line 222 of file SerialPort.cpp. Referenced by main(). |
|
|
Definition at line 46 of file SerialPort.cpp. References state. Referenced by main(). |
|
||||||||||||
|
Definition at line 50 of file SerialPort.cpp. Referenced by main(). |
|
|
Definition at line 83 of file SerialPort.h. |
|
|
Definition at line 84 of file SerialPort.h. |
|
|
Definition at line 80 of file SerialPort.h. Referenced by open(), readBytes(), and SerialPort(). |
|
|
Definition at line 86 of file SerialPort.h. |
|
|
Definition at line 85 of file SerialPort.h. Referenced by setStopBits(). |
|
|
Definition at line 81 of file SerialPort.h. Referenced by close(), open(), SerialPort(), setBaudRate(), setCharSize(), setFlowControl(), setParity(), setStopBits(), and status(). |
|
|
Definition at line 82 of file SerialPort.h. |
1.4.2