X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fthermo.h;h=9fc20e0dd7b19dfce7898c4949e2133e1426980e;hb=HEAD;hp=8f749a39c7f6507fdd0b401e57929a8fe31cd727;hpb=bee5b90739b848c275160512171a3114532babb4;p=bertos.git diff --git a/drv/thermo.h b/drv/thermo.h deleted file mode 100755 index 8f749a39..00000000 --- a/drv/thermo.h +++ /dev/null @@ -1,97 +0,0 @@ -/** - * \file - * - * - * \brief Thermo-control driver - * - * \version $Id$ - * - * \author Giovanni Bajo - * \author Francesco Sacchi - * - * This module implements multiple thermo controls, which is the logic needed to try - * keeping the temperature of a device constant. For this module, a "device" is a black box - * whose temperature can be measured, and which has a mean to make it hotter or colder. - * For instance, a device could be the combination of a NTC (analog temperature reader) and - * a Peltier connected to the same physic block. - * - * This module relies on a low-level driver to communicate with the device (implementation - * of the black box). This low-level driver also controls the units in which the temperature - * is expressed: thermo control treats it just as a number. - * - */ - -/*#* - *#* $Log$ - *#* Revision 1.3 2006/09/20 20:12:41 marco - *#* Names convention, MOD_* macros. - *#* - *#* Revision 1.2 2006/07/19 12:56:26 bernie - *#* Convert to new Doxygen style. - *#* - *#* Revision 1.1 2005/11/04 17:59:47 bernie - *#* Import into DevLib. - *#* - *#* Revision 1.2 2005/06/14 10:13:36 batt - *#* Better thermo errors handling. - *#* - *#* Revision 1.1 2005/05/24 09:17:58 batt - *#* Move drivers to top-level. - *#* - *#* Revision 1.4 2005/05/10 16:55:10 batt - *#* Add timeout to thermo-regulator; better thermo control handling; change thermo_getStatus() to thermo_status(). - *#* - *#* Revision 1.3 2005/05/10 09:26:54 batt - *#* Add thermo_getStatus for getting status/errors of thermo control. - *#* - *#* Revision 1.2 2005/05/09 19:18:40 batt - *#* Remove old logs. - *#* - *#* Revision 1.1 2005/05/09 16:40:44 batt - *#* Add thermo-control driver - *#*/ - - -#ifndef DRV_THERMO_H -#define DRV_THERMO_H - -#include -#include - -void thermo_init(void); - - -/** - * Set the target temperature at which a given device should be kept. - * - * \param dev Device - * \param temperature Target temperature - */ -void thermo_setTarget(ThermoDev dev, deg_t temperature); - -/** Start thermo control for a certain device \a dev */ -void thermo_start(ThermoDev dev); - -/** Stop thermo control for a certain device \a dev */ -void thermo_stop(ThermoDev dev); - -/** Clear errors for channel \a dev */ -void thermo_clearErrors(ThermoDev dev); - -/** Return the status of the specific \a dev thermo-device. */ -thermostatus_t thermo_status(ThermoDev dev); - -/** - * Return the current temperature of a device currently under thermo - * control. - * - * \param dev Device - * \return Current temperature (Celsius degrees * 10) - */ -deg_t thermo_readTemperature(ThermoDev dev); - - -#endif /* DRV_THERMO_H */