Hamlib
1.2.15
|
00001 /* 00002 * Hamlib Interface - CM108 GPIO communication header 00003 * Copyright (c) 2000-2003 by Frank Singleton 00004 * Copyright (c) 2000-2010 by Stephane Fillod 00005 * Copyright (c) 2011 by Andrew Errington 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 _CM108_H 00024 #define _CM108_H 1 00025 00026 #include <hamlib/rig.h> 00027 #include "iofunc.h" 00028 00029 00030 __BEGIN_DECLS 00031 00032 /* Hamlib internal use, see rig.c */ 00033 int cm108_open(hamlib_port_t *p); 00034 int cm108_close(hamlib_port_t *p); 00035 int cm108_ptt_set(hamlib_port_t *p, ptt_t pttx); 00036 int cm108_ptt_get(hamlib_port_t *p, ptt_t *pttx); 00037 int cm108_dcd_get(hamlib_port_t *p, dcd_t *dcdx); 00038 00039 extern HAMLIB_EXPORT(int) cm108_write_data(hamlib_port_t *p, unsigned char data); 00040 extern HAMLIB_EXPORT(int) cm108_write_control(hamlib_port_t *p, unsigned char control); 00041 extern HAMLIB_EXPORT(int) cm108_read_data(hamlib_port_t *p, unsigned char *data); 00042 extern HAMLIB_EXPORT(int) cm108_read_control(hamlib_port_t *p, unsigned char *control); 00043 extern HAMLIB_EXPORT(int) cm108_read_status(hamlib_port_t *p, unsigned char *status); 00044 extern HAMLIB_EXPORT(int) cm108_lock(hamlib_port_t *p); 00045 extern HAMLIB_EXPORT(int) cm108_unlock(hamlib_port_t *p); 00046 00047 __END_DECLS 00048 00049 #endif /* _CM108_H */
Hamlib documentation for version 1.2.15 -- Thu Feb 2 2012 21:37:27
Project page: http://www.hamlib.org