include
rs232
rs232.h
Go to the documentation of this file.
1
/*
2
***************************************************************************
3
*
4
* Author: Teunis van Beelen
5
*
6
* Copyright (C) 2005, 2006, 2007, 2008, 2009 Teunis van Beelen
7
*
8
* teuniz@gmail.com
9
*
10
***************************************************************************
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation version 2 of the License.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License along
22
* with this program; if not, write to the Free Software Foundation, Inc.,
23
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24
*
25
***************************************************************************
26
*
27
* This version of GPL is at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
28
*
29
***************************************************************************
30
*/
31
32
33
34
#ifndef rs232_INCLUDED
35
#define rs232_INCLUDED
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
41
#include <stdio.h>
42
#include <string.h>
43
44
45
46
#ifdef __linux__
47
48
#include <termios.h>
49
#include <sys/ioctl.h>
50
#include <unistd.h>
51
#include <fcntl.h>
52
#include <sys/types.h>
53
#include <sys/stat.h>
54
#include <limits.h>
55
56
#else
57
58
#include <windows.h>
59
60
#endif
61
62
int
OpenComport
(
char
*,
int
);
63
int
PollComport
(
unsigned
char
*,
int
);
64
int
SendByte
(
unsigned
char
);
65
int
SendBuf
(
unsigned
char
*,
int
);
66
void
CloseComport
();
67
int
IsCTSEnabled
();
68
69
70
#ifdef __cplusplus
71
}
/* extern "C" */
72
#endif
73
74
#endif
75
76
IsCTSEnabled
int IsCTSEnabled()
PollComport
int PollComport(unsigned char *, int)
OpenComport
int OpenComport(char *, int)
SendByte
int SendByte(unsigned char)
SendBuf
int SendBuf(unsigned char *, int)
CloseComport
void CloseComport()
kvh_geo_fog_3d_driver
Author(s): Trevor Bostic
, Zach LaCelle
autogenerated on Wed Mar 2 2022 00:28:57