CoronisSDK_SerialDriverAPI_C  v1.0
 All Files Functions Typedefs Defines
serial_port_constants.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright (c) 2012 Coronis
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 3 of the License, or (at your option) any later version.
00007 
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00011  * Lesser General Public License for more details.
00012 
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  *
00017  * Contributors:
00018  *     Coronis - initial API and implementation
00019  *******************************************************************************/
00020 
00026 #ifndef _SERIAL_PORT_CONSTANTS_H_
00027 #define _SERIAL_PORT_CONSTANTS_H_
00028 
00032 #ifndef CBR_4800
00033 #define CBR_4800            4800
00034 #endif
00035 #ifndef CBR_9600
00036 #define CBR_9600            9600
00037 #endif
00038 #ifndef CBR_14400
00039 #define CBR_14400           14400
00040 #endif
00041 #ifndef CBR_19200
00042 #define CBR_19200           19200
00043 #endif
00044 #ifndef CBR_38400
00045 #define CBR_38400           38400
00046 #endif
00047 #ifndef CBR_57600
00048 #define CBR_57600           57600
00049 #endif
00050 #ifndef CBR_115200
00051 #define CBR_115200          115200
00052 #endif
00053 
00057 #define DATABITS_FIVE           5
00058 #define DATABITS_SIX            6
00059 #define DATABITS_SEVEN          7
00060 #define DATABITS_EIGHT          8
00061 
00065 #ifndef ONESTOPBIT
00066 #define ONESTOPBIT          0
00067 #endif
00068 #ifndef ONE5STOPBITS
00069 #define ONE5STOPBITS        1
00070 #endif
00071 #ifndef TWOSTOPBITS
00072 #define TWOSTOPBITS         2
00073 #endif
00074 
00075 
00079 #ifndef NOPARITY
00080 #define NOPARITY            0
00081 #endif
00082 #ifndef ODDPARITY
00083 #define ODDPARITY           1
00084 #endif
00085 #ifndef EVENPARITY
00086 #define EVENPARITY          2
00087 #endif
00088 #ifndef MARKPARITY
00089 #define MARKPARITY          3
00090 #endif
00091 #ifndef SPACEPARITY
00092 #define SPACEPARITY         4
00093 #endif
00094 
00098 #define FLOWCONTROL_NONE         0
00099 #define FLOWCONTROL_RTSCTS_IN    1
00100 #define FLOWCONTROL_RTSCTS_OUT   2
00101 #define FLOWCONTROL_XONXOFF_IN   4
00102 #define FLOWCONTROL_XONXOFF_OUT  8
00103 
00104 #endif//_SERIAL_PORT_CONSTANTS_H_