* Makefile.in (VERSION): Bump to 4.5.6.
[deliverable/binutils-gdb.git] / gdb / serial.h
CommitLineData
ae0ea72e
SC
1/* Remote Serial support interface definitions for GDB, the GNU Debugger.
2 Copyright 1992 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20/* Return a sensible default name for a serial device, something which
21 can be used as an argument to serial_open */
22
23CONST char *EXFUN(serial_default_name,(void));
24
25/* Try to open the serial device "name", return 1 if ok, 0 if not. */
26
27int EXFUN(serial_open,(CONST char *name));
28
29/* Turn the port into raw mode */
30
31void EXFUN(serial_raw,(void));
32
33
34/* Turn the port into normal mode */
35
36void EXFUN(serial_normal,(void));
37
38
39/* Read one char from the serial device with timeout, return char, and
40 set ok if ok */
41
42int EXFUN(serial_timedreadchar,(int to , int *ok));
43
44
45/* Set the baudrate to the value supplied, and return 1, or fail and
46 return 0 */
47
48int EXFUN(serial_setbaudrate,(int to));
49
50/* Return the next rate in the sequence, or return 0 for a fail*/
51
52int EXFUN(serial_nextbaudrate,(int rate));
53
54
55/* Write some chars to the device, return 1 if ok, 0 if not */
56
57int EXFUN(serial_write,( CONST char *str , int len));
58
59
60/* Close the serial port */
61
62int EXFUN(serial_close,(void));
This page took 0.032231 seconds and 4 git commands to generate.