rs232.h
Go to the documentation of this file.
00001 /*
00002 ***************************************************************************
00003 *
00004 * Author: Teunis van Beelen
00005 *
00006 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Teunis van Beelen
00007 *
00008 * teuniz@gmail.com
00009 *
00010 ***************************************************************************
00011 *
00012 * This program is free software; you can redistribute it and/or modify
00013 * it under the terms of the GNU General Public License as published by
00014 * the Free Software Foundation version 2 of the License.
00015 *
00016 * This program is distributed in the hope that it will be useful,
00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 * GNU General Public License for more details.
00020 *
00021 * You should have received a copy of the GNU General Public License along
00022 * with this program; if not, write to the Free Software Foundation, Inc.,
00023 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00024 *
00025 ***************************************************************************
00026 *
00027 * This version of GPL is at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
00028 *
00029 ***************************************************************************
00030 */
00031 
00032 
00033 
00034 #ifndef rs232_INCLUDED
00035 #define rs232_INCLUDED
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 #include <stdio.h>
00042 #include <string.h>
00043 
00044 
00045 
00046 #ifdef __linux__
00047 
00048 #include <termios.h>
00049 #include <sys/ioctl.h>
00050 #include <unistd.h>
00051 #include <fcntl.h>
00052 #include <sys/types.h>
00053 #include <sys/stat.h>
00054 #include <limits.h>
00055 
00056 #else
00057 
00058 #include <windows.h>
00059 
00060 #endif
00061 
00062 int OpenComport(int, int);
00063 int PollComport(int, unsigned char *, int);
00064 int SendByte(int, unsigned char);
00065 int SendBuf(int, unsigned char *, int);
00066 void CloseComport(int);
00067 void cprintf(int, const char *);
00068 int IsCTSEnabled(int);
00069 
00070 
00071 #ifdef __cplusplus
00072 } /* extern "C" */
00073 #endif
00074 
00075 #endif
00076 
00077 


orientus_sdk_c
Author(s): Advanced Navigation, Nick Otero
autogenerated on Wed Aug 26 2015 15:12:17