http://mbed.org/users/okini3939/notebook/RPC_jp/

Dependencies:   mbed

MyRPC.h

Committer:
okini3939
Date:
2012-06-05
Revision:
0:9b9a9bfadf9b

File content as of revision 0:9b9a9bfadf9b:

/*
 * 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