rs232.h
Go to the documentation of this file.
00001 #ifndef rs232_INCLUDED
00002 #define rs232_INCLUDED
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 #include <stdio.h>
00009 #include <string.h>
00010 
00011 
00012 
00013 #if defined(__linux__) || defined(__FreeBSD__)
00014 
00015 #include <termios.h>
00016 #include <sys/ioctl.h>
00017 #include <unistd.h>
00018 #include <fcntl.h>
00019 #include <sys/types.h>
00020 #include <sys/stat.h>
00021 #include <limits.h>
00022 
00023 #else
00024 
00025 #include <windows.h>
00026 
00027 #endif
00028     
00029 int RS232_OpenComport(int, int, const char *);
00030 int RS232_PollComport(int, unsigned char *, int);
00031 int RS232_SendByte(int, unsigned char);
00032 int RS232_SendBuf(int, unsigned char *, int);
00033 void RS232_CloseComport(int);
00034 void RS232_cputs(int, const char *);
00035 int RS232_IsDCDEnabled(int);
00036 int RS232_IsCTSEnabled(int);
00037 int RS232_IsDSREnabled(int);
00038 void RS232_enableDTR(int);
00039 void RS232_disableDTR(int);
00040 void RS232_enableRTS(int);
00041 void RS232_disableRTS(int);
00042 int RS232_BufferSize(int);
00043 
00044 #ifdef __cplusplus
00045 } /* extern "C" */
00046 #endif
00047 
00048 #endif
00049 
00050 


forte_rc_driver
Author(s): Ingeniarius, Ltd.
autogenerated on Sat Jun 8 2019 19:54:46