termios-baud.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* termios baud rate selection definitions. Linux/generic version.
  2. Copyright (C) 2019-2021 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-baud.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 (not used). */
  23. # define CMSPAR 010000000000 /* Mark or space (stick) parity. */
  24. # define CRTSCTS 020000000000 /* Flow control. */
  25. #endif
  26. /* Extra output baud rates (not in POSIX). */
  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
  42. #define __MAX_BAUD B4000000