* stabs.texinfo: Document the format for C++ nested types.
[deliverable/binutils-gdb.git] / gdb / serial.h
1 /* Remote serial support interface definitions for GDB, the GNU Debugger.
2 Copyright 1992 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 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
23 const char *serial_default_name PARAMS ((void));
24
25 /* Try to open the serial device "name", return 1 if ok, 0 if not. */
26
27 int serial_open PARAMS ((const char *name));
28
29 /* Turn the port into raw mode. */
30
31 void serial_raw PARAMS ((void));
32
33 /* Turn the port into normal mode. */
34
35 void serial_normal PARAMS ((void));
36
37 /* Read one char from the serial device with <TO>-second timeout.
38 Return char, and set ok if ok. */
39
40 int serial_timedreadchar PARAMS ((int to, int *ok));
41
42 /* Set the baudrate to the decimal value supplied, and return 1, or fail and
43 return 0. */
44
45 int serial_setbaudrate PARAMS ((int to));
46
47 /* Return the next rate in the sequence, or return 0 for failure. */
48
49 int serial_nextbaudrate PARAMS ((int rate));
50
51 /* Write some chars to the device, return 1 if ok, 0 if not. */
52
53 int serial_write PARAMS ((const char *str, int len));
54
55 /* Close the serial port. */
56
57 int serial_close PARAMS ((void));
This page took 0.030632 seconds and 4 git commands to generate.