Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SerialCommPort Class ReferenceProvides CommPort interface to serial port devices -- essentially just a FileSystemCommPort, but can apply terminal IO settings. More...
Inheritance diagram for SerialCommPort:
Detailed DescriptionProvides CommPort interface to serial port devices -- essentially just a FileSystemCommPort, but can apply terminal IO settings. You could use FileSystemCommPort instead of this class, and thus rely on a prior manual call to stty. However, other programs (or rebooting) will reset those parameters, so it's nice to use this class to ensure the desired settings are reapplied each time the device is opened. Definition at line 14 of file SerialCommPort.h.
Member Enumeration Documentation
Definition at line 96 of file SerialCommPort.h. Constructor & Destructor Documentation
constructor Definition at line 17 of file SerialCommPort.h.
destructor Definition at line 37 of file SerialCommPort.h. Member Function Documentation
Reimplemented from FileSystemCommPort. Definition at line 56 of file SerialCommPort.h.
Definition at line 170 of file SerialCommPort.cc. Referenced by setupSerial().
Returns the name of the class (aka its type). Suggested implementation is to declare a static string member, set it to the result of calling the registry's registerType, and then return that member here Reimplemented from FileSystemCommPort. Definition at line 45 of file SerialCommPort.h.
initializes bauds with all of the symbolic baud rate settings available on host platform Definition at line 174 of file SerialCommPort.cc. Referenced by SerialCommPort().
tries to have rbuf and/or wbuf open path, subject to mode Reimplemented from FileSystemCommPort. Definition at line 47 of file SerialCommPort.h.
watches sttyConfig, reapplies the settings if changed Reimplemented from FileSystemCommPort. Definition at line 66 of file SerialCommPort.h.
performs serial port initialization (if fd is non-negative) Definition at line 35 of file SerialCommPort.cc. Referenced by open(), and plistValueChanged(). Member Data Documentation
holds the class name, set via registration with the CommPort registry Definition at line 117 of file SerialCommPort.h. Referenced by getClassName().
Definition at line 93 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
table of valid baud rates Definition at line 114 of file SerialCommPort.h. Referenced by initBauds(), SerialCommPort(), and setupSerial().
Definition at line 94 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
file descriptor for serial port -- needed for tcsetattr and ioctl interfaces Definition at line 103 of file SerialCommPort.h. Referenced by close(), open(), and setupSerial(). Definition at line 98 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
Definition at line 97 of file SerialCommPort.h.
Definition at line 95 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
Configuration string to pass to stty. Definition at line 99 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort(). The documentation for this class was generated from the following files: |
Tekkotsu Hardware Abstraction Layer 5.1CVS |
Generated Mon May 9 05:01:41 2016 by Doxygen 1.6.3 |