serial.h 431 B

123456789101112131415161718
  1. /*
  2. * (C) Copyright 2000
  3. * Murray Jensen <Murray.Jensen@csiro.au>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <termios.h>
  8. #define SERIAL_ERROR -1 /* General error, see errno for details */
  9. #define SERIAL_TIMEOUT -2
  10. #define SERIAL_EOF -3
  11. extern speed_t cvtspeed(char *);
  12. extern int serialopen(char *, speed_t);
  13. extern int serialreadchar(int, int);
  14. extern int serialwrite(int, char *, int);
  15. extern int serialclose(int);