00001 /*************************************************************************** 00002 * Copyright (C) 2005-2011 LpzRobots development team * 00003 * Georg Martius <georg dot martius at web dot de> * 00004 * Frank Guettler <guettler at informatik dot uni-leipzig dot de * 00005 * Frank Hesse <frank at nld dot ds dot mpg dot de> * 00006 * Ralf Der <ralfder at mis dot mpg dot de> * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This program is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU General Public License * 00019 * along with this program; if not, write to the * 00020 * Free Software Foundation, Inc., * 00021 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00022 * * 00023 ***************************************************************************/ 00024 #ifndef __AVRTYPES_H 00025 #define __AVRTYPES_H 00026 00027 #ifndef AVR 00028 00029 // USED IN CONFIGURABLE 00030 const uint8_t maxNumberEntries = 5; 00031 const uint8_t charLength = 8; 00032 00033 typedef char charArray[maxNumberEntries]; 00034 00035 // CONFIGURABLE 00036 typedef charArray paramkey; 00037 typedef double paramval; 00038 00039 struct parampair { 00040 paramkey key; 00041 paramval* val; 00042 }; 00043 00044 typedef parampair plist[maxNumberEntries]; 00045 00046 /// INSPECTABLE 00047 typedef paramkey iparamkey; 00048 typedef paramval iparamval; 00049 00050 struct iparampair { 00051 iparamkey key; 00052 iparamval* val; 00053 }; 00054 00055 typedef iparampair iplist[maxNumberEntries]; 00056 00057 00058 typedef iparamkey iparamkeylist[maxNumberEntries]; 00059 typedef iparamval* iparamvallisttrue[maxNumberEntries]; 00060 00061 00062 00063 00064 00065 #endif 00066 00067 #endif