IOErrors.h
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003  * 
00004  * Copyright (c) 2012 
00005  * 
00006  * SCHUNK GmbH & Co. KG
00007  *  
00008  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
00009  * 
00010  * Project name: Drivers for "Amtec M5 Protocol" Electronics V4
00011  *                                                                        
00012  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
00013  * 
00014  * Email:robotics@schunk.com
00015  * 
00016  * ToDo: 
00017  * 
00018  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
00019  * 
00020  * Redistribution and use in source and binary forms, with or without 
00021  * modification, are permitted provided that the following conditions are met: 
00022  * 
00023  *  * Redistributions of source code must retain the above copyright 
00024  *    notice, this list of conditions and the following disclaimer. 
00025  *  * Redistributions in binary form must reproduce the above copyright 
00026  *    notice, this list of conditions and the following disclaimer in the 
00027  *    documentation and/or other materials provided with the distribution. 
00028  *  * Neither the name of SCHUNK GmbH & Co. KG nor the names of its 
00029  *    contributors may be used to endorse or promote products derived from 
00030  *    this software without specific prior written permission. 
00031  * 
00032  * This program is free software: you can redistribute it and/or modify 
00033  * it under the terms of the GNU Lesser General Public License LGPL as 
00034  * published by the Free Software Foundation, either version 3 of the 
00035  * License, or (at your option) any later version. 
00036  * 
00037  * This program is distributed in the hope that it will be useful, 
00038  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
00039  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
00040  * GNU Lesser General Public License LGPL for more details. 
00041  * 
00042  * You should have received a copy of the GNU Lesser General Public 
00043  * License LGPL along with this program. 
00044  * If not, see <http://www.gnu.org/licenses/>.
00045  * 
00046  ******************************************************************************/
00047 
00048 
00049 #ifndef IOERRORS_H
00050 #define IOERRORS_H
00051 
00052         // IO Device Types
00053 
00054 #define TYPEID_IO_UNDEFINED                             0               
00055 #define TYPEID_IO_MAGELLAN                              1               
00056 #define TYPEID_IO_SPACEMASTER                   2               
00057 #define TYPEID_IO_METROLOGIC                    3
00058 #define TYPEID_IO_MODULEIO                              4
00059 #define TYPEID_IO_EMSMODULE                             5
00060 #define TYPEID_IO_DLRFTS                                6
00061 #define TYPEID_IO_SICK0D50                              7
00062 #define TYPEID_IO_COMPUTERBOARDS                8
00063 #define TYPEID_IO_NI6527                                9
00064 #define TYPEID_IO_ME96                                  10
00065 #define TYPEID_IO_MP55IO                                11
00066 #define TYPEID_IO_SCHUNKFTC                             12
00067 #define TYPEID_IO_DIRECTMOUSE                   13
00068 #define TYPEID_IO_DIRECTJOYSTICK                14
00069 #define TYPEID_IO_DIRECTKEYBOARD                15
00070 
00071         // IO Device EMS Types
00072 
00073 #define TYPEID_EMS_DIG24V_OUT                   10
00074 #define TYPEID_EMS_DIG24V_IN                    11
00075 #define TYPEID_EMS_ANA10V_OUT                   12
00076 #define TYPEID_EMS_ANA10V_IN                    13
00077 #define TYPEID_EMS_ANA25MA_OUT                  14
00078 #define TYPEID_EMS_ANA25MA_IN                   15
00079 
00080         // IO Device Channel Types
00081 
00082 #define CHANNELTYPEID_IO_READ                   20              // undefined type 
00083 #define CHANNELTYPEID_IO_BOOLREAD               21              
00084 #define CHANNELTYPEID_IO_CHARREAD               22              
00085 #define CHANNELTYPEID_IO_INTREAD                23              
00086 #define CHANNELTYPEID_IO_FLOATREAD              24              
00087 #define CHANNELTYPEID_IO_STRINGREAD             25              
00088 
00089 #define CHANNELTYPEID_IO_WRITE                  30              // undefined type for checking read/write
00090 #define CHANNELTYPEID_IO_BOOLWRITE              31              
00091 #define CHANNELTYPEID_IO_CHARWRITE              32              
00092 #define CHANNELTYPEID_IO_INTWRITE               33              
00093 #define CHANNELTYPEID_IO_FLOATWRITE             34              
00094 #define CHANNELTYPEID_IO_STRINGWRITE    35              
00095 
00096         // IO Device Errors
00097         
00098 #define ERRID_IO                                                (-400L)                         // io error
00099 #define ERRID_IO_FUNCTIONNOTAVAILABLE   (ERRID_IO - 1)  
00100 #define ERRID_IO_NOINITSTRING                   (ERRID_IO - 2)
00101 #define ERRID_IO_NOIONAME                               (ERRID_IO - 3)
00102 #define ERRID_IO_BADINITSTRING                  (ERRID_IO - 4)
00103 #define ERRID_IO_INITERROR                              (ERRID_IO - 5)
00104 #define ERRID_IO_ISINITIALIZED                  (ERRID_IO - 6)
00105 #define ERRID_IO_NOTINITIALIZED                 (ERRID_IO - 7)
00106 #define ERRID_IO_WRONGIOID                              (ERRID_IO - 8)
00107 #define ERRID_IO_WRONGCHANNELTYPEID             (ERRID_IO - 9)
00108 #define ERRID_IO_WRONGCHANNELID                 (ERRID_IO - 10)
00109 #define ERRID_IO_WRONGCHANNELTYPE               (ERRID_IO - 11)
00110 #define ERRID_IO_WRITEERROR                             (ERRID_IO - 12)
00111 #define ERRID_IO_READERROR                              (ERRID_IO - 13)
00112 #define ERRID_IO_WRONGCREATETHREAD              (ERRID_IO - 14)
00113 #define ERRID_IO_NOLIBRARY                              (ERRID_IO - 15)
00114 #define ERRID_IO_CONNECTIONNOTINIT              (ERRID_IO - 16)
00115 #define ERRID_IO_PARSERERROR                    (ERRID_IO - 17)
00116 
00117 #endif


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Thu Aug 27 2015 15:06:52