Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Motorola System V 88k Release 3.2 Version 1.2C

Media Vault

Software Library

Restoration Projects

Artifacts Sought



  CFGETOSPEED(3P)                                   CFGETOSPEED(3P)



  NAME
       cfgetospeed, cfgetispeed, cfsetospeed, cfsetispeed - get or
       set the value of the output and input baud rate

  SYNOPSIS
       int cfgetospeed(termiop)
       struct termio *termiop;

       int cfgetispeed(termiop)
       struct termio *termiop;

       int cfsetospeed(termiop,speed)
       struct termio *termiop;
       int speed;

       int cfsetispeed(termiop,speed)
       struct termio *termiop;
       int speed;

  DESCRIPTION
       These routines are used for getting and setting input and
       output baud rates.

       cfgetospeed returns the output baud rate stored in c_cflag
       pointed to by termios_p.

       cfgetispeed returns the input baud rate stored in c_cflag
       pointed to by termios_p.

       The following baud rate values are supported for the value
       of speed:
            0         Hang up
            B50       50 baud
            B75       75 baud
            B110      110 baud
            B134      134 baud
            B150      150 baud
            B200      200 baud
            B300      300 baud
            B600      600 baud


  Page 1                                                   May 1989


















  CFGETOSPEED(3P)                                   CFGETOSPEED(3P)



            B1200          1200 baud
            B1800          1800 baud
            B2400          2400 baud
            B4800          4800 baud
            B9600          9600 baud
            B19200    19200 baud
            B38400    38400 baud

       cfsetospeed sets the baud rate stored in c_cflag pointed to
       by termios_p to speed.  B0 is used to terminate the
       connection; if B0 is specified, the modem control lines will
       no longer be asserted.

       cfsetispeed sets the baud rate stored in c_cflag pointed to
       by termios_p to speed.  If the speed is 0, the input rate
       will be specified by the output rate.

       For any particular hardware, unsupported baud rate changes
       are ignored.

       cfsetispeed and cfsetospeed only modify the termios
       structure.  For the baud rate changes to take place,
       tcsetattr(3P) must be called with the modified structure as
       an argument.

  RETURN VALUE
       cfgetispeed and cfgetospeed return the appropriate baud
       rate.  cfsetispeed and cfsetospeed will return zero upon
       successful completion.

  SEE ALSO
       termios(7), tcgetattr(3P).










  Page 2                                                   May 1989
















Typewritten Software • bear@typewritten.org • Edmonds, WA 98026