parallel.h

00001 /*
00002  *  Hamlib Interface - parallel communication header
00003  *  Copyright (c) 2000-2005 by Stephane Fillod and Frank Singleton
00004  *
00005  *      $Id: parallel.h,v 1.2 2005/04/03 12:27:16 fillods Exp $
00006  *
00007  *   This library is free software; you can redistribute it and/or modify
00008  *   it under the terms of the GNU Library General Public License as
00009  *   published by the Free Software Foundation; either version 2 of
00010  *   the License, or (at your option) any later version.
00011  *
00012  *   This program is distributed in the hope that it will be useful,
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *   GNU Library General Public License for more details.
00016  *
00017  *   You should have received a copy of the GNU Library General Public
00018  *   License along with this library; if not, write to the Free Software
00019  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  *
00021  */
00022 
00023 #ifndef _PARALLEL_H
00024 #define _PARALLEL_H 1
00025 
00026 #include <hamlib/rig.h>
00027 #include "iofunc.h"
00028 
00029 __BEGIN_DECLS
00030 
00031 /* Hamlib internal use, see rig.c */
00032 int par_open(hamlib_port_t *p);
00033 int par_close(hamlib_port_t *p);
00034 int par_ptt_set(hamlib_port_t *p, ptt_t pttx);
00035 int par_ptt_get(hamlib_port_t *p, ptt_t *pttx);
00036 int par_dcd_get(hamlib_port_t *p, dcd_t *dcdx);
00037 
00038 extern HAMLIB_EXPORT(int) par_write_data(hamlib_port_t *p, unsigned char data);
00039 extern HAMLIB_EXPORT(int) par_write_control(hamlib_port_t *p, unsigned char control);
00040 extern HAMLIB_EXPORT(int) par_read_data(hamlib_port_t *p, unsigned char *data);
00041 extern HAMLIB_EXPORT(int) par_read_control(hamlib_port_t *p, unsigned char *control);
00042 extern HAMLIB_EXPORT(int) par_read_status(hamlib_port_t *p, unsigned char *status);
00043 extern HAMLIB_EXPORT(int) par_lock(hamlib_port_t *p);
00044 extern HAMLIB_EXPORT(int) par_unlock(hamlib_port_t *p);
00045 
00046 __END_DECLS
00047 
00048 #endif /* _PARALLEL_H */

Generated on Tue Dec 4 00:28:30 2007 for Hamlib by  doxygen 1.5.4