Suga koubou
/
MyRPC_Serial
http://mbed.org/users/okini3939/notebook/RPC_jp/
Diff: MyRPC.h
- Revision:
- 0:9b9a9bfadf9b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MyRPC.h Tue Jun 05 02:20:50 2012 +0000 @@ -0,0 +1,27 @@ +/* + * sample from http://mbed.org/forum/mbed/topic/234/?page=1#comment-1067 + */ + +#ifndef MYRPC_H +#define MYRPC_H + +#include "mbed.h" + +namespace mbed { + +class MyRPC : public Base { +public: + MyRPC(PinName pin, const char* name = NULL); + void blink(int n); + int number(); +#ifdef MBED_RPC + virtual const struct rpc_method *get_rpc_methods(); + static struct rpc_class *get_rpc_class(); +#endif // MBED_RPC + +protected: + DigitalOut _pin; +}; + +} // namespace mbed +#endif // MYRPC_H \ No newline at end of file