Logo Search packages:      
Sourcecode: libserial version File versions  Download package

const short SerialStreamBuf::VTime (  )  const

Get current timing of character buffer in 10th of a second.

Definition at line 723 of file SerialStreamBuf.cc.

References mFileDescriptor.

Referenced by LibSerial::SerialStream::VTime().

                                         {
    if( -1 == mFileDescriptor ) {
        return -1 ;
    }
    //
    // Get the current terminal settings. 
    //
    struct termios term_setting ;
    if( -1 == tcgetattr(mFileDescriptor, &term_setting) ) {
        return -1 ;
    }

    return term_setting.c_cc[VTIME];
}


Generated by  Doxygen 1.6.0   Back to index