Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RPCFunction.cpp
00001 #include "RPCFunction.h" 00002 00003 namespace physcom { 00004 00005 RPCFunction::RPCFunction(void (*f)(char*, char*), const char* name) : RPC(name) { 00006 function_ptr = f; 00007 } 00008 00009 /* 00010 * Just run the attached function using the string thats in private memory 00011 * - or just using null values 00012 */ 00013 void RPCFunction::run(char* input, char* output) { 00014 (*function_ptr)(input, output); 00015 } 00016 00017 } // Namespace physcom
Generated on Sun Jul 17 2022 07:37:17 by
1.7.2