Suga koubou
/
MyRPC_Serial
http://mbed.org/users/okini3939/notebook/RPC_jp/
Embed:
(wiki syntax)
Show/hide line numbers
MyRPC.h
00001 /* 00002 * sample from http://mbed.org/forum/mbed/topic/234/?page=1#comment-1067 00003 */ 00004 00005 #ifndef MYRPC_H 00006 #define MYRPC_H 00007 00008 #include "mbed.h" 00009 00010 namespace mbed { 00011 00012 class MyRPC : public Base { 00013 public: 00014 MyRPC(PinName pin, const char* name = NULL); 00015 void blink(int n); 00016 int number(); 00017 #ifdef MBED_RPC 00018 virtual const struct rpc_method *get_rpc_methods(); 00019 static struct rpc_class *get_rpc_class(); 00020 #endif // MBED_RPC 00021 00022 protected: 00023 DigitalOut _pin; 00024 }; 00025 00026 } // namespace mbed 00027 #endif // MYRPC_H
Generated on Fri Jul 15 2022 07:42:47 by 1.7.2