aboutsummaryrefslogtreecommitdiff
path: root/rs232.h
diff options
context:
space:
mode:
authorTero Kontkanen <tero.kontkanen@granitedevices.fi>2017-02-23 00:57:24 +0200
committerTero Kontkanen <tero.kontkanen@granitedevices.fi>2017-02-23 01:01:09 +0200
commit8751d83576c4529607a02193585cff26e2e9f9ce (patch)
treecaa522f151681e58deaf3a710640dbc3a8aa55ac /rs232.h
parent81a6bba3d855f77b7185b99f77250d8572127d75 (diff)
parent77972a62d6d04b3a8b1ad2def67fef06a48b4da0 (diff)
downloadSimpleMotionV2-feature/BufferedMotionAPI.tar.gz
SimpleMotionV2-feature/BufferedMotionAPI.zip
Merge branch 'develop' into feature/BufferedMotionAPIfeature/BufferedMotionAPI
# Conflicts: # SimpleMotionV2.pri
Diffstat (limited to 'rs232.h')
-rw-r--r--rs232.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/rs232.h b/rs232.h
deleted file mode 100644
index 7c90fea..0000000
--- a/rs232.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
-***************************************************************************
-*
-* Author: Teunis van Beelen
-*
-* Copyright (C) 2005, 2006, 2007, 2008, 2009 Teunis van Beelen
-*
-* teuniz@gmail.com
-*
-***************************************************************************
-*
-* This program is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation version 2 of the License.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License along
-* with this program; if not, write to the Free Software Foundation, Inc.,
-* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*
-***************************************************************************
-*
-* This version of GPL is at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
-*
-***************************************************************************
-*/
-
-/* libraray modified for Simplemotion, major changes:
- -OpenComport now returns actual file handle that must be passed to rx/tx functions, or -1 if fails
-
- Todo:
- -Restore port settings at CloseComport
- */
-
-#ifndef rs232_INCLUDED
-#define rs232_INCLUDED
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdio.h>
-#include <string.h>
-
-
-
-#ifdef __linux__
-
-#include <termios.h>
-#include <sys/ioctl.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <limits.h>
-
-#else
-
-#include <windows.h>
-
-#endif
-
-//return port handle or -1 if fails
-int OpenComport(const char * comport_name, int baudrate);
-int PollComport(int, unsigned char *, int);
-int SendByte(int, unsigned char);
-int SendBuf(int, unsigned char *, int);
-void CloseComport(int);
-
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif
-
-