Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

bled.h

00001 /* 
00002 Object Oriented Mobile Robot Model (OOMRM) C++  Library Copyright (C) 2002-2007  Derek Jones
00003 
00004 This library is free software; you can redistribute it  and/or
00005 modify it under the terms of the GNU Lesser General Public
00006 License  as published by the Free Software Foundation; either
00007 version 2.1 of the  License, or (at your option) any later version.
00008 
00009 This library is  distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY;  without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A  PARTICULAR PURPOSE.  See the GNU
00012 Lesser General Public License for more  details.
00013 
00014 You should have received a copy of the GNU Lesser General  Public
00015 License along with this library; if not, write to the Free  Software
00016 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA   02111-1307  USA
00017 
00018  $Id: bled.h,v 1.3 2007/06/10 22:41:29 derek Exp $ 
00019 
00020    Class : LED
00021    A class implementing the two built-in LEDs on the MRM board.  No fancy stuff (KISS!).
00022    NOTE: seems seperate classes for RED/GREEN is actually smaller than one class implemting tests for color,
00023          even when you use both (of course, using only 1 is much smaller).
00024 
00025 NOTE: Although all this subclassing seems like overkill, this class served as the 
00026 testbed for the Object class architecture.
00027 
00028 */
00029 #ifndef _H_LED
00030 #define _H_LED
00031 #include <hardware/oomrm.h>
00032 #include <object.h>
00034 
00043 class bRedLED :  public virtual OOMRM
00044 {
00045 public:
00046   bRedLED(void);                         
00047   static void on(void);             
00048   static void off(void);            
00049   static bool toggle(void);         
00050   static foo2 callback(void);
00051 };
00053 class bGreenLED :  public virtual OOMRM
00054 {
00055 public:
00056   bGreenLED(void);                              
00057   static void on(void);                 
00058   static void off(void);                
00059   static bool toggle(void);             
00060   static foo2 callback(void);
00061 };
00062 #endif

Generated on Mon Oct 8 19:32:43 2007 for OOMRM Hardware API by doxygen1.3