wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Murray Jensen <Murray.Jensen@csiro.au> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
wdenk | 3ba6865 | 2000-10-11 22:04:29 +0000 | [diff] [blame] | 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); |