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

adc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: adc.h,v 1.1 2003/10/30 03:18:31 dasmith Exp $
00003  *
00004  * adc.h - This file contains the definitions of the low level
00005  * functions used to access the analog-to-digital converter.
00006  *
00007  * Copyright (C) 2003 David Smith
00008  *
00009  * This library is distributed under the terms of the GNU Lesser General
00010  * Public License (LGPL).  You should have received a copy of the
00011  * license along with this library (LGPL.txt); if not, write to
00012  * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00013  * Boston, MA  02111-1307  USA
00014  */
00015 
00041 #ifndef __ADC_H
00042 #define __ADC_H
00043 
00044 #include <68332/types.h>
00045 
00049 typedef enum
00050 {
00051   ADC_CHANNEL0 = 0,
00052   ADC_CHANNEL1,
00053   ADC_CHANNEL2,
00054   ADC_CHANNEL3,
00055   ADC_CHANNEL4,
00056   ADC_CHANNEL5,
00057   ADC_CHANNEL6,
00058   ADC_CHANNEL7
00059 } adc_channel_t;
00060 
00061 /* Start of C function declarations */
00062 #ifdef __cplusplus
00063 extern "C" {
00064 #endif
00065 
00077 int adc_all(uint8 adc[]);
00078 
00087 uint8 adc_channel(adc_channel_t channel_num);
00088 
00089 
00090 #ifdef __cplusplus
00091 }
00092 #endif
00093 
00094 #endif  /* __ADC_H */

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