RTEMS Logo

RTEMS 4.9.5 On-Line Library


Device- and Class- Specific Functions Manager cfgetospeed - Reads terminal output baud rate

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

6.4.2: cfgetospeed - Reads terminal output baud rate

CALLING SEQUENCE:

#include <termios.h>

int cfgetospeed(
  const struct termios *p
);

STATUS CODES:

The cfgetospeed() function returns the termios code for the baud rate.

DESCRIPTION:

The cfgetospeed() function returns 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 cfgetospeed() function does not do anything to the hardware. It merely returns the value stored by a previous call to tcgetattr().

NOTES:

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.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation