Hamlib  1.2.15
iofunc.h
00001 /*
00002  *  Hamlib Interface - io function header
00003  *  Copyright (c) 2000-2005 by Stephane Fillod and Frank Singleton
00004  *
00005  *
00006  *   This library is free software; you can redistribute it and/or
00007  *   modify it under the terms of the GNU Lesser General Public
00008  *   License as published by the Free Software Foundation; either
00009  *   version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *   This library is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *   Lesser General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU Lesser General Public
00017  *   License along with this library; if not, write to the Free Software
00018  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  *
00020  */
00021 
00022 #ifndef _IOFUNC_H
00023 #define _IOFUNC_H 1
00024 
00025 #include <sys/types.h>
00026 #include <hamlib/rig.h>
00027 
00028 
00029 extern HAMLIB_EXPORT(int) port_open(hamlib_port_t *p);
00030 extern HAMLIB_EXPORT(int) port_close(hamlib_port_t *p, rig_port_t port_type);
00031 
00032 extern HAMLIB_EXPORT(int) read_block(hamlib_port_t *p, char *rxbuffer, size_t count);
00033 extern HAMLIB_EXPORT(int) write_block(hamlib_port_t *p, const char *txbuffer, size_t count);
00034 extern HAMLIB_EXPORT(int) read_string(hamlib_port_t *p, char *rxbuffer, size_t rxmax, const char *stopset, int stopset_len);
00035 
00036 #endif /* _IOFUNC_H */
00037 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by doxygen 1.7.6.1

Hamlib documentation for version 1.2.15 -- Thu Feb 2 2012 21:37:27
Project page: http://www.hamlib.org