X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fthermo.h;h=02b1ccbcad4f4ff034d4b3c1e916a28405dab5c5;hb=e8b0472be10fba4ca6baa62d8d483db90e28c06e;hp=9fc20e0dd7b19dfce7898c4949e2133e1426980e;hpb=3fb609d60480eefd5e43d48d13cb9f387c38cb0f;p=bertos.git diff --git a/bertos/drv/thermo.h b/bertos/drv/thermo.h index 9fc20e0d..02b1ccbc 100644 --- a/bertos/drv/thermo.h +++ b/bertos/drv/thermo.h @@ -26,16 +26,11 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * - * Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/) + * Copyright 2004, 2005, 2009 Develer S.r.l. (http://www.develer.com/) * * --> * - * \brief Thermo-control driver - * - * \version $Id$ - * - * \author Giovanni Bajo - * \author Francesco Sacchi + * \brief Thermo-control driver. * * 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 @@ -47,6 +42,15 @@ * 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. * + * + * \author Giovanni Bajo + * \author Francesco Sacchi + * \author Daniele Basile + * + * $WIZ$ module_name = "thermo" + * $WIZ$ module_depends = "timer", "ntc" + * $WIZ$ module_configuration = "bertos/cfg/cfg_thermo.h" + * $WIZ$ module_hw = "bertos/hw/hw_thermo.h", "bertos/hw/thermo_map.h" */ #ifndef DRV_THERMO_H @@ -55,8 +59,9 @@ #include "hw/thermo_map.h" #include +#include -void thermo_init(void); +typedef uint8_t thermostatus_t; /** @@ -67,6 +72,12 @@ void thermo_init(void); */ void thermo_setTarget(ThermoDev dev, deg_t temperature); +/** + * Start thermo control for a certain device \a dev and stop it after + * \a on_time msec. + */ +void thermo_timer(ThermoDev dev, mtime_t on_time); + /** Start thermo control for a certain device \a dev */ void thermo_start(ThermoDev dev); @@ -88,5 +99,7 @@ thermostatus_t thermo_status(ThermoDev dev); */ deg_t thermo_readTemperature(ThermoDev dev); +void thermo_init(void); + #endif /* DRV_THERMO_H */