Hamlib  1.2.14
serial.h
00001 /*
00002  *  Hamlib Interface - serial communication header
00003  *  Copyright (c) 2000-2005 by Stephane Fillod and Frank Singleton
00004  *
00005  *      $Id: serial.h,v 1.27 2005-04-03 12:27:17 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 _SERIAL_H
00024 #define _SERIAL_H 1
00025 
00026 #include <hamlib/rig.h>
00027 #include "iofunc.h"
00028 
00029 __BEGIN_DECLS
00030 
00031 extern HAMLIB_EXPORT(int) serial_open(hamlib_port_t *rs);
00032 extern HAMLIB_EXPORT(int) serial_setup(hamlib_port_t *rs);
00033 extern HAMLIB_EXPORT(int) serial_flush(hamlib_port_t *p);
00034 
00035 /* Hamlib internal use, see rig.c */
00036 int ser_open(hamlib_port_t *p);
00037 int ser_close(hamlib_port_t *p);
00038 extern HAMLIB_EXPORT(int) ser_set_rts(hamlib_port_t *p, int state);
00039 extern HAMLIB_EXPORT(int) ser_get_rts(hamlib_port_t *p, int *state);
00040 extern HAMLIB_EXPORT(int) ser_set_brk(hamlib_port_t *p, int state);
00041 extern HAMLIB_EXPORT(int) ser_set_dtr(hamlib_port_t *p, int state);
00042 extern HAMLIB_EXPORT(int) ser_get_dtr(hamlib_port_t *p, int *state);
00043 extern HAMLIB_EXPORT(int) ser_get_cts(hamlib_port_t *p, int *state);
00044 extern HAMLIB_EXPORT(int) ser_get_dsr(hamlib_port_t *p, int *state);
00045 extern HAMLIB_EXPORT(int) ser_get_car(hamlib_port_t *p, int *state);
00046 
00047 __END_DECLS
00048 
00049 #endif /* _SERIAL_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by doxygen 1.7.5

Hamlib documentation for version 1.2.14 -- Fri Dec 23 2011 23:24:31
Project page: http://www.hamlib.org