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