2
* cwdaemon - morse sounding daemon for the parallel or serial port
3
* Copyright (C) 2002 -2003 Joop Stakenborg <pg4i@amsat.org>
4
* and many authors, see the AUTHORS file.
6
* This program is free oftware; 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.
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 Library General Public License for more details.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33
typedef struct cwdev_s
35
int (*init) (struct cwdev_s *);
36
int (*free) (struct cwdev_s *);
37
int (*reset) (struct cwdev_s *);
38
int (*cw) (struct cwdev_s *, int onoff);
39
int (*ptt) (struct cwdev_s *, int onoff);
40
int (*ssbway) (struct cwdev_s *, int onoff);
41
int (*switchband) (struct cwdev_s *, unsigned char bandswitch);
42
int (*footswitch) (struct cwdev_s *);
48
void errmsg (char *info, ...);
49
void debug (char *info, ...);
51
#ifdef HAVE_LINUX_PPDEV_H
52
int lp_init (cwdevice * dev);
53
int lp_free (cwdevice * dev);
54
int lp_reset (cwdevice * dev);
55
int lp_cw (cwdevice * dev, int onoff);
56
int lp_ptt (cwdevice * dev, int onoff);
57
int lp_ssbway (cwdevice * dev, int onoff);
58
int lp_switchband (cwdevice * dev, unsigned char bandswitch);
59
int lp_footswitch (cwdevice * dev);
62
int ttys_init (cwdevice * dev);
63
int ttys_free (cwdevice * dev);
64
int ttys_reset (cwdevice * dev);
65
int ttys_cw (cwdevice * dev, int onoff);
66
int ttys_ptt (cwdevice * dev, int onoff);
68
#endif /* _CWDAEMON_H */