1 /* 2 * Tlf - contest logging program for amateur radio operators 3 * Copyright (C) 2001-2002-2003 Rein Couperus <pa0rct@amsat.org> 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, Boston, MA 02111-1307 USA 18 */ 19 20 21 #ifndef NETKEYER_H 22 #define NETKEYER_H 23 24 #define K_RESET 0 25 #define K_MESSAGE 1 26 #define K_SPEED 2 27 #define K_TONE 3 28 #define K_ABORT 4 29 #define K_STOP 5 30 #define K_WORDMODE 6 31 #define K_WEIGHT 7 32 #define K_DEVICE 8 33 #define K_TOD 9 // set txdelay (turn on delay) 34 //#define K_ADDRESS 10 // set port address of device [obsolete and has no effect] 35 #define K_SET14 11 // set pin 14 on lpt 36 #define K_TUNE 12 // tune 37 #define K_PTT 13 // PTT on/off 38 #define K_SWITCH 14 // set band switch output pins 2,7,8,9 on lpt 39 #define K_SIDETONE 15 // set sidetone to sound card 40 #define K_STVOLUME 16 // set sidetone volume 41 42 int netkeyer(int cw_op, char *cwmessage); 43 int netkeyer_close(void); 44 int netkeyer_init(void); 45 46 #endif /* NETKEYER_H */ 47