Hamlib  1.2.15
serial.h
00001 /*
00002  *  Hamlib Interface - serial communication 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 _SERIAL_H
00023 #define _SERIAL_H 1
00024 
00025 #include <hamlib/rig.h>
00026 #include "iofunc.h"
00027 
00028 __BEGIN_DECLS
00029 
00030 extern HAMLIB_EXPORT(int) serial_open(hamlib_port_t *rs);
00031 extern HAMLIB_EXPORT(int) serial_setup(hamlib_port_t *rs);
00032 extern HAMLIB_EXPORT(int) serial_flush(hamlib_port_t *p);
00033 
00034 /* Hamlib internal use, see rig.c */
00035 int ser_open(hamlib_port_t *p);
00036 int ser_close(hamlib_port_t *p);
00037 extern HAMLIB_EXPORT(int) ser_set_rts(hamlib_port_t *p, int state);
00038 extern HAMLIB_EXPORT(int) ser_get_rts(hamlib_port_t *p, int *state);
00039 extern HAMLIB_EXPORT(int) ser_set_brk(hamlib_port_t *p, int state);
00040 extern HAMLIB_EXPORT(int) ser_set_dtr(hamlib_port_t *p, int state);
00041 extern HAMLIB_EXPORT(int) ser_get_dtr(hamlib_port_t *p, int *state);
00042 extern HAMLIB_EXPORT(int) ser_get_cts(hamlib_port_t *p, int *state);
00043 extern HAMLIB_EXPORT(int) ser_get_dsr(hamlib_port_t *p, int *state);
00044 extern HAMLIB_EXPORT(int) ser_get_car(hamlib_port_t *p, int *state);
00045 
00046 __END_DECLS
00047 
00048 #endif /* _SERIAL_H */
 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:28
Project page: http://www.hamlib.org