SERIAL++ library: simple serial port access

◆ baud9600()

void serialport::SerialPort::baud9600 ( ) const

select 9600 baud

Definition at line 159 of file serialport.cc.

References Mfd.

160  {
161  struct termios options;
162  ::tcgetattr(Mfd, &options);
163  ::cfsetispeed(&options, B9600);
164  ::cfsetospeed(&options, B9600);
165  ::tcsetattr(Mfd, TCSANOW, &options);
166  } // void SerialPort::baud9600() const
int Mfd
file descriptor to this port
Definition: serialport.h:90