Mitesh Patel / Mbed 2 deprecated camera_online_server

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers myrpc.h Source File

myrpc.h

00001 // myrpc.h
00002 //
00003 // Based on:
00004 // http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.h
00005 // http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.cpp
00006 
00007 #ifndef MYRPC_H
00008 #define MYRPC_H
00009 
00010 #include "mbed.h"
00011 
00012 namespace mbed {
00013 
00014 class myrpc : public Base {
00015 public:
00016   myrpc(PinName pin, const char* name = NULL);
00017   void debug(int val);
00018   void blink(int n);
00019   char * echo(const char *);
00020   void settime(const char *t);
00021   char *gettime(const char *fmt);
00022   
00023 #ifdef MBED_RPC
00024   virtual const struct rpc_method *get_rpc_methods();
00025   static struct rpc_class *get_rpc_class();
00026 #endif    // MBED_RPC
00027 
00028 protected:
00029     DigitalOut _pin;
00030     char _buffer[256];     // String buffer
00031 };
00032 
00033 }    // namespace mbed
00034 #endif    // MYRPC_H