/********************************************************************* * * Analog library for Fraise pic18f device * * ********************************************************************* * Author Date Comment ********************************************************************* * Antoine Rousseau march 2013 Original. ********************************************************************/ /* # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. */ #ifndef _ANALOG__H_ #define _ANALOG__H_ /** @file */ /** @defgroup analog Analog module * Automates the use of analog input pins. * Example : * \include analog/examples/example1/main.c * @{ */ #include /** \name Settings to put in config.h These parameters can be overloaded in the config.h of your firmware. */ //@{ #ifndef ANALOG_MAX_CHANNELS #define ANALOG_MAX_CHANNELS 16 /**< @brief default 16.*/ #endif #ifndef ANALOG_FILTER #define ANALOG_FILTER 3 /**< @brief default 3 ; analog values are filtered and multiplied by 1<