skel-user.c
Go to the documentation of this file.
00001 /*
00002         Aseba - an event-based framework for distributed robot control
00003         Copyright (C) 2007--2010:
00004                 Stephane Magnenat <stephane at magnenat dot net>
00005                 (http://stephane.magnenat.net)
00006                 and other contributors, see authors.txt for details
00007         
00008         This program is free software: you can redistribute it and/or modify
00009         it under the terms of the GNU Lesser General Public License as published
00010         by the Free Software Foundation, version 3 of the License.
00011         
00012         This program is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015         GNU Lesser General Public License for more details.
00016         
00017         You should have received a copy of the GNU Lesser General Public License
00018         along with this program. If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 
00022 /* Descriptors */
00023 
00024 const AsebaVMDescription vmDescription = {
00025         "myasebaname",  // Name of the microcontroller
00026         {
00027                 { 1, "_id" },   // Do not touch it
00028                 { 1, "event.source" }, // nor this one
00029                 { VM_VARIABLES_ARG_SIZE, "event.args" },        // neither this one
00030                 
00031                 
00032                  /******
00033           ---> PUT YOUR VARIABLES DESCRIPTIONS HERE <---
00034          first value is the number of element in the array (1 if not an array)
00035          second value is the name of the variable which will be displayed in aseba studio
00036          ******/
00037 
00038 
00039                 { 0, NULL }     // null terminated
00040         }
00041 };
00042 
00043 
00044 static const AsebaLocalEventDescription localEvents[] = { 
00045         /*******
00046         ---> PUT YOUR EVENT DESCRIPTIONS HERE <---
00047         First value is event "name" (will be used as "onvent name" in asebastudio
00048         second value is the event description)
00049         *******/
00050         { NULL, NULL }
00051 };
00052 
00053 static const AsebaNativeFunctionDescription* nativeFunctionsDescription[] = {
00054         &AsebaNativeDescription__system_reboot,
00055         &AsebaNativeDescription__system_settings_read,
00056         &AsebaNativeDescription__system_settings_write,
00057         &AsebaNativeDescription__system_settings_flash,
00058         
00059         ASEBA_NATIVES_STD_DESCRIPTIONS,
00060         0       // null terminated
00061 };
00062 
00063 static AsebaNativeFunctionPointer nativeFunctions[] = {
00064         AsebaResetIntoBootloader,
00065         AsebaNative__system_settings_read,
00066         AsebaNative__system_settings_write,
00067         AsebaNative__system_settings_flash,
00068 
00069         ASEBA_NATIVES_STD_FUNCTIONS,
00070 };
00071 
00072 
00073 


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17