Definition at line 12 of file SerialPort.H.
Public Member Functions | |
| SerialPort (const std::string &filename, const int speed, const mode_t mode=O_RDWR|O_NONBLOCK) | |
| ~SerialPort () | |
| operator int () const | |
| bool | fail () const |
| int | setBaudRate (const int speed) const |
| int | baudRate () const |
Private Member Functions | |
| SerialPort (const SerialPort &port) | |
| SerialPort & | operator= (const SerialPort &port) |
Static Private Member Functions | |
| static int | rate (speed_t baud) |
| static speed_t | baud (const int speed) |
Private Attributes | |
| std::string | m_filename |
| int | m_fd |
| int | m_speed |
| SerialPort | ( | const std::string & | filename, | |
| const int | speed, | |||
| const mode_t | mode = O_RDWR|O_NONBLOCK | |||
| ) |
| ~SerialPort | ( | ) |
| SerialPort | ( | const SerialPort & | port | ) | [private] |
| operator int | ( | ) | const [inline] |
| bool fail | ( | ) | const [inline] |
| int setBaudRate | ( | const int | speed | ) | const |
Definition at line 74 of file SerialPort.cpp.
References baud(), baudRate(), m_fd, m_filename, and rate().
Referenced by SerialPort().
| int baudRate | ( | ) | const |
Definition at line 106 of file SerialPort.cpp.
References m_fd, m_filename, and rate().
Referenced by setBaudRate().
| int rate | ( | speed_t | baud | ) | [static, private] |
Definition at line 128 of file SerialPort.cpp.
References g_baud_rates, g_num_rates, and g_speeds.
Referenced by baudRate(), and setBaudRate().
| speed_t baud | ( | const int | speed | ) | [static, private] |
Definition at line 138 of file SerialPort.cpp.
References g_baud_rates, g_num_rates, and g_speeds.
Referenced by setBaudRate().
| SerialPort& operator= | ( | const SerialPort & | port | ) | [private] |
std::string m_filename [private] |
int m_fd [private] |
Definition at line 26 of file SerialPort.H.
Referenced by baudRate(), fail(), operator int(), SerialPort(), setBaudRate(), and ~SerialPort().
int m_speed [private] |
Definition at line 27 of file SerialPort.H.
1.5.1