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.
myrpc.h
- Committer:
- iva2k
- Date:
- 2010-01-03
- Revision:
- 0:886e4b3119ad
- Child:
- 2:360fda42fefd
File content as of revision 0:886e4b3119ad:
// myrpc.h
//
// Based on:
// http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.h
// http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.cpp
#ifndef MYRPC_H
#define MYRPC_H
#include "mbed.h"
namespace mbed {
class myrpc : public Base {
public:
myrpc(PinName pin, const char* name = NULL);
void debug(int val);
void blink(int n);
void settime(const char *t);
char *gettime(const char *fmt);
#ifdef MBED_RPC
virtual const struct rpc_method *get_rpc_methods();
static struct rpc_class *get_rpc_class();
#endif // MBED_RPC
protected:
DigitalOut _pin;
char _buffer[64]; // String buffer
};
} // namespace mbed
#endif // MYRPC_H