• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

adc.h

Go to the documentation of this file.
00001 /* ADC functions */
00002 /* Copyright (C) 2009,2010 Holger Dietze, Thomas Klosa
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as published by
00006  *   the Free Software Foundation; either version 2 of the License, or
00007  *   (at your option) version 3.
00008  *
00009  *   This program 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
00012  *   GNU General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU General Public License along
00015  *   with this program; if not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef HLOG_ADC_H
00019 #define HLOG_ADC_H
00020 
00026 #ifdef HAVE_STDINT_H
00027 #include <stdint.h>
00028 #endif
00029 
00034 typedef enum {
00037   adc_chan0,
00039   adc_ref,
00040 } hl_adc_channel;
00041 
00048 void hl_adc_init (void);
00049 
00050 
00055 void hl_adc_off (void);
00056 
00057 
00060 void hl_adc_select (hl_adc_channel chan);
00063 void hl_adc_start (void);
00066 uint8_t hl_adc_isready (void);
00071 void hl_adc_StartNwait4conversion (void);
00074 uint16_t hl_adc_result (void);
00075 
00076 #endif

Generated by  doxygen 1.7.1