termios-cbaud.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* termios baud rate selection definitions. Linux/generic version.
  2. Copyright (C) 2019-2026 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library. If not, see
  14. <https://www.gnu.org/licenses/>. */
  15. #ifndef _TERMIOS_H
  16. # error "Never include <bits/termios-cbaud.h> directly; use <termios.h> instead."
  17. #endif
  18. #ifdef __USE_MISC
  19. # define CBAUD 000000010017 /* Baud speed mask (not in POSIX). */
  20. # define CBAUDEX 000000010000 /* Extra baud speed mask, included in CBAUD.
  21. (not in POSIX). */
  22. # define CIBAUD 002003600000 /* Input baud rate. */
  23. # define IBSHIFT 16
  24. #endif
  25. /* Extra output baud rates (not in POSIX). */
  26. #define __BOTHER 0010000
  27. #define __B57600 0010001
  28. #define __B115200 0010002
  29. #define __B230400 0010003
  30. #define __B460800 0010004
  31. #define __B500000 0010005
  32. #define __B576000 0010006
  33. #define __B921600 0010007
  34. #define __B1000000 0010010
  35. #define __B1152000 0010011
  36. #define __B1500000 0010012
  37. #define __B2000000 0010013
  38. #define __B2500000 0010014
  39. #define __B3000000 0010015
  40. #define __B3500000 0010016
  41. #define __B4000000 0010017