Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SerialCommPort Class Reference#include <SerialCommPort.h>
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 13 of file SerialCommPort.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Member Function Documentation
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 42 of file SerialCommPort.h.
tries to have rbuf and/or wbuf open path, subject to mode
Reimplemented from FileSystemCommPort. Definition at line 44 of file SerialCommPort.h.
watches sttyConfig, reapplies the settings if changed
Reimplemented from FileSystemCommPort. Definition at line 63 of file SerialCommPort.h.
performs serial port initialization (if fd is non-negative)
Definition at line 31 of file SerialCommPort.cc. Referenced by open(), and plistValueChanged().
Member Data Documentation
Definition at line 90 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
Definition at line 91 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
Definition at line 92 of file SerialCommPort.h. Referenced by plistValueChanged(), SerialCommPort(), setupSerial(), and ~SerialCommPort().
Definition at line 94 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 96 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 100 of file SerialCommPort.h. Referenced by close(), open(), and setupSerial().
holds the class name, set via registration with the CommPort registry
Definition at line 108 of file SerialCommPort.h. Referenced by getClassName().
The documentation for this class was generated from the following files: |
Tekkotsu Hardware Abstraction Layer 4.0 |
Generated Thu Nov 22 01:01:23 2007 by Doxygen 1.5.4 |