CoCalc Public Fileswww / onhand / fton02 / rupserial.hOpen with one click!
Author: William A. Stein
1
/*
2
* rupserial.h
3
* Copyright (C) 1998 N.Fukase
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA
19
*/
20
21
/*
22
** 10-March-2002 clach04
23
** Added comms_speed to init_line() and parameter to control baud rate
24
** valid params are: "19200", "38400" (default), "57600"
25
** if an invalid param is specified 38400 is used
26
*/
27
28
extern int chk_ack(void);
29
extern void put_ack(void);
30
extern int init_line(char *line, char * line_speed);
31
extern void restore_line(void);
32
extern int ruputer_negotiate(void);
33
extern int xmodem_up(LENDAT *data);
34
extern int xmodem_down(LENDAT *data);
35
extern int ruputer_command(int command, int sub, int length, char *data);
36
extern int ruputer_response(int res, int sub, LENDAT *dat);
37