C++ (Qt)bool flush(Directions dir = Input | Output);
C++ (Qt) bool setBreak(bool set = true); bool clearBreak(bool clear = true);
enum Parity { NoParity = 0, /*!< \~english No parity. */ Even = 2, /*!< \~english Even parity. */ Odd = 3, /*!< \~english Odd parity. */ Space = 4, /*!< \~english Space parity. */ Mark = 5, /*!< \~english Mark parity. */ UnknownParity = -1 /*!< \~english Parity unknown. */ };
enum Parity { NoParity = 0, /*!< \~english No parity. */ EvenParity = 2, /*!< \~english Even parity. */ OddParity = 3, /*!< \~english Odd parity. */ SpaceParity = 4, /*!< \~english Space parity. */ MarkParity = 5, /*!< \~english Mark parity. */ UnknownParity = -1 /*!< \~english Parity unknown. */ };
C++ (Qt)// *nixint fd = ::open(<имя>, <флаги>)// windowsHANDLE h = ::CreateFile(<имя>, <флаги>);
::ioctl(this->descriptor, TIOCMGET, &temp);...if (temp & TIOCM_LE) status |= AbstractSerial::LineLE; << Вот это...if (temp & TIOCM_DSR) status |= AbstractSerial::LineDSR; << А также есть это