Main Page | Modules | Data Structures | File List | Data Fields | Globals

led.h

Go to the documentation of this file.
00001 /*
00002  * $Id: led.h,v 1.3 2002/12/02 03:58:02 dwalters Exp $
00003  * Useful routines for driving the MRM LEDs
00004  *
00005  * Copyright (C) 2001 Martin Calsyn
00006  *
00007  * This library is distributed under the terms of the GNU Lesser General
00008  * Public License (LGPL).  You should have received a copy of the
00009  * license along with this library (LGPL.txt); if not, write to
00010  * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00011  * Boston, MA  02111-1307  USA
00012  */
00013 
00033 #ifndef __LED_H__
00034 #define __LED_H__
00035 
00039 typedef enum {
00040   RedLED = 0,
00041   GreenLED = 1,
00042 } LED_COLOR_T;
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00049 void led_init(void);
00050 
00052 void led_on(LED_COLOR_T color);
00053 
00055 void led_off(LED_COLOR_T color);
00056 
00058 void led_toggle(LED_COLOR_T color);
00059 
00060 #ifdef __cplusplus
00061 }
00062 #endif
00063 
00064 #endif  /* #ifndef __LED_H__ */
00065 

Generated on Wed Sep 6 03:02:21 2006 for MotoRobots by doxygen 1.3.6