[Linux manuál]
Návod, kniha: POSIX Programmer's Manual
speed_t cfgetispeed(const struct termios *
termios_p);
cfgetispeed: získat vstupní přenosovou rychlost
Originální popis anglicky: cfgetispeed - get input baud rateNávod, kniha: POSIX Programmer's Manual
STRUČNĚ
#include <termios.h>POPIS / INSTRUKCE
The cfgetispeed() function shall extract the input baud rate from the termios structure to which the termios_p argument points. This function shall return exactly the value in the termios data structure, without interpretation.NÁVRATOVÁ HODNOTA
Upon successful completion, cfgetispeed() shall return a value of type speed_t representing the input baud rate.CHYBY / ERRORY
No errors are defined. The following sections are informative.PŘÍKLADY POUŽITÍ
None.APPLICATION USAGE
None.RATIONALE
The term "baud" is used historically here, but is not technically correct. This is properly "bits per second", which may not be the same as baud. However, the term is used because of the historical usage and understanding. The cfgetospeed(), cfgetispeed(), cfsetospeed(), and cfsetispeed() functions do not take arguments as numbers, but rather as symbolic names. There are two reasons for this:- 1.
- Historically, numbers were not used because of the way the rate was stored in the data structure. This is retained even though a function is now used.
- 2.
- More importantly, only a limited set of possible rates is at all portable, and this constrains the application to that set.
FUTURE DIRECTIONS
None.SOUVISEJÍCÍ
cfgetospeed() , cfsetispeed() , cfsetospeed() , tcgetattr() , the Base Definitions volume of IEEE Std 1003.1-2001, Chapter 11, General Terminal Interface, <termios.h>COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .| 2003 | IEEE/The Open Group |