Types.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00026 
00030 
00031 
00035 
00037 /* @{ */
00038 
00039 
00040 
00041 #ifndef __TYPES_
00042 #define __TYPES_
00043 
00044 typedef float FloatNumber;
00045 typedef double DoubleNumber;
00046 
00047 #ifdef MIP_PLATFORM_ARM
00048 typedef FloatNumber Decimal;
00049 #else
00050  #ifdef MIP_DECIMAL_FLOAT
00051   typedef FloatNumber Decimal;
00052  #else
00053   typedef DoubleNumber Decimal;
00054  #endif 
00055 #endif
00056 
00057 typedef short int ShortInteger;
00058 typedef unsigned short int UnsignedShortInteger;
00059 typedef ShortInteger Coordmm;
00060 typedef UnsignedShortInteger UCoordmm;
00061 
00065 enum PrintTypes {
00066  PRINT_TYPE_PLAIN,
00067  PRINT_TYPE_WITH_UNITS,
00068  PRINT_TYPE_NUM
00069 };
00070 
00073 static const char* PrintTypesNames[PRINT_TYPE_NUM] = {
00074  "Print type plain",
00075  "Print type with units"
00076 };
00077 
00081 enum HapticModes{
00082  HAP_MODE_OFF,
00083  HAP_MODE_POSITION,
00084  HAP_MODE_VELOCITY,
00085  HAP_MODE_NUM
00086 };
00087 
00090 static const char* HapticModeNames[HAP_MODE_NUM] = {
00091  "Haptic mode switched off",
00092  "Haptic mode position",
00093  "Haptic mode velocity",
00094 };
00095 
00096 
00097 #endif
00098 
00099 /* @} */
00100 

Generated on Mon Feb 20 07:01:07 2017 for MIP by  doxygen 1.5.6