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

void SerialPort::SetBaudRate ( const BaudRate  baudRate  )  throw ( UnsupportedBaudRate, NotOpen, std::invalid_argument )

Set the baud rate for the serial port to the specified value (baudRate).

Exceptions:
NotOpen Thrown if this method is called while the serial port is not open.
std::invalid_argument Thrown if an invalid baud rate is specified.

Definition at line 304 of file SerialPort.cpp.

{
    mSerialPortImpl->SetBaudRate( baudRate ) ;
    return ;
}


Generated by  Doxygen 1.6.0   Back to index