#include <termios.h> int cfgetispeed( const struct termios *p );
The cfgetispeed()
function returns a code for baud rate.
The cfsetispeed()
function stores a code for the terminal speed
stored in a struct termios. The codes are defined in <termios.h>
by the macros BO, B50, B75, B110, B134, B150, B200, B300, B600, B1200,
B1800, B2400, B4800, B9600, B19200, and B38400.
The cfsetispeed()
function does not do anything to the hardware.
It merely stores a value for use by tcsetattr()
.
Baud rates are defined by symbols, such as B110, B1200, B2400. The actual number returned for any given speed may change from system to system.
Copyright © 1988-2008 OAR Corporation