CFSETISPEED(3) BSD CFSETISPEED(3)
NAME
cfsetispeed - Set input baud rate
SYNOPSIS
#include <termios.h>
int cfsetispeed (termios_p, speed )
const struct termios *termios_p;
speed_t speed;
DESCRIPTION
The cfsetispeed function sets the input baud rate stored in the structure
pointed to by termios_p to the value specified by speed.
Attempts to set unsupported baud rates will be ignored. This refers both
to changes to baud rates not supported by the hardware and to changes
setting the input and output baud rates to different values if the
hardware does not support this. There is no effect on the baud rates set
in the hardware until a subsequent successful call to the tcsetattr(3)
function on the same termios structure.
The following standard baud rates can be specified with this call:
B0 Hangs up. The zero baud rate is used to hang up the connection.
If B0 is specified, the `data terminal ready' signal is not
asserted. Normally, this disconnects the line.
B50 50 baud.
B75 75 baud.
B110 110 baud.
B134 134.5 baud.
B150 150 baud.
B200 200 baud.
B300 300 baud.
B600 600 baud.
B1200 1200 baud.
B1800 1800 baud.
B2400 2400 baud.
B4800 4800 baud.
B9600 9600 baud.
B19200 19200 baud.
B38400 38400 baud.
Domain/OS also supports non-standard baud rates which should not be used
when writing portable software. Node types that support the non-standard
baud rates are as follows:
On node model numbers DN4000, DN4500, DN3000 DN3500, DN10000, and
DN5500, the non-standard baud rate of 7,200 is supported.
On node model numbers DN2500, and Series 400, 425, 433, the non-
standard baud rates of 3,600 and 7,200 are supported.
NOTES
There is a restriction in setting baud rates for "partner" serial I/O
(SIO) lines on nodes that support ports for two SIO lines. The node model
numbers are: DN3500, DN4000, DN4500, DN5500, DN10000.
Each port supports a specified set baud rates; some baud rates are common
to both ports. The following table lists the baud rates that can be set
for for ports 2 and 3 of the specified node types.
Column1 Column2
___________________
50 75
110 110
134.5 134.5
200 150
300 300
600 600
1,200 1,200
1,050 2,000
2,400 2,400
4,800 4,800
7,200 1,800
9,600 9,600
38.4k 19.2k
POSIX requires that the baud rates for the two lines be compatible. Thus,
for example, if the SIO line in port 2 is set to a baud rate of 50, the
selection of acceptable baud rates for the "partner" SIO line in port 3
is limited to those listed in in column 1.
On the other hand, if port 2 is set to a baud rate of 1,200, port 3 can
be set to any baud rate in either column since 1,200 is compatible with
both lines (appears in both columns).
Note that the non-standard baud rate of 3,600 is unsupported for these
configurations.
DIAGNOSTICS
The cfsetispeed function returns a value of 0 (zero); otherwise, a value
of -1 is returned.
SEE ALSO
cfgetispeed(3), cfgetospeed(3), cfsetospeed(3), tcsetattr(3) termios(4)