Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Revision:
4:5d1359a283bc
Parent:
1:6b7f447ca868
Child:
5:62573be585e9
--- a/BusOut.h	Fri Nov 14 15:25:20 2008 +0000
+++ b/BusOut.h	Thu Nov 27 16:23:24 2008 +0000
@@ -29,10 +29,11 @@
      *  It is only required to specify as many pin variables as is required
      *  for the bus; the rest will default to NOT_CONNECTED
    	 */ 
-	BusOut(int p0, int p1 = NOT_CONNECTED, int p2 = NOT_CONNECTED, int p3 = NOT_CONNECTED,
-		  int p4 = NOT_CONNECTED, int p5 = NOT_CONNECTED, int p6 = NOT_CONNECTED, int p7 = NOT_CONNECTED,
-		  int p8 = NOT_CONNECTED, int p9 = NOT_CONNECTED, int p10 = NOT_CONNECTED, int p11 = NOT_CONNECTED,
-		  int p12 = NOT_CONNECTED, int p13 = NOT_CONNECTED, int p14 = NOT_CONNECTED, int p15 = NOT_CONNECTED);
+    BusOut(int p0, int p1 = NOT_CONNECTED, int p2 = NOT_CONNECTED, int p3 = NOT_CONNECTED,
+           int p4 = NOT_CONNECTED, int p5 = NOT_CONNECTED, int p6 = NOT_CONNECTED, int p7 = NOT_CONNECTED,
+           int p8 = NOT_CONNECTED, int p9 = NOT_CONNECTED, int p10 = NOT_CONNECTED, int p11 = NOT_CONNECTED,
+           int p12 = NOT_CONNECTED, int p13 = NOT_CONNECTED, int p14 = NOT_CONNECTED, int p15 = NOT_CONNECTED, 
+           const char *name = NULL);
 
 	virtual ~BusOut();
 
@@ -68,6 +69,8 @@
 	 */
 	operator int();
 
+    virtual const struct rpc_method *rpc_methods();
+
 protected:
 
 	DigitalOut* _pin[16];