Functions |
thermostatus_t | thermo_status (ThermoDev dev) |
| Return the status of the specific dev thermo-device.
|
static void | thermo_do (ThermoDev index) |
| Do a single thermo control for device dev.
|
static void | thermo_softint (void) |
| Thermo soft interrupt.
|
void | thermo_timer (ThermoDev dev, mtime_t on_time) |
| Starts a thermo-regulation for channel dev, and turn off timer when on_time was elapsed.
|
void | thermo_setTarget (ThermoDev dev, deg_t temperature) |
| Set the target temperature temperature for a specific dev thermo-device.
|
void | thermo_start (ThermoDev dev) |
| Starts a thermo-regulation for channel dev.
|
void | thermo_stop (ThermoDev dev) |
| Stops a thermo-regulation for channel dev.
|
void | thermo_clearErrors (ThermoDev dev) |
| Clear errors for channel dev.
|
deg_t | thermo_readTemperature (ThermoDev dev) |
| Read the temperature of the thermo-device dev using mobile mean.
|
void | thermo_init (void) |
| Init thermo-control and associated hw.
|
Variables |
static Timer | thermo_timer |
| Timer for thermo-regulation.
|
ThermoControlDev | devs [THERMO_CNT] |
| Array of thermo-devices.
|
Thermo-control driver.
The Thermo controll can works both with kernel or without it. In the case we use kernel, the thermo controll is done by one process that poll every CONFIG_THERMO_INTERVAL_MS the temperature sensor and make all operation to follow the target temperature. While we not use the kernel the module works with one timer interrupt in the same way of the kenel case.
- Author:
- Giovanni Bajo <rasky@develer.com>
-
Francesco Sacchi <batt@develer.com>
-
Daniele Basile <asterix@develer.com>
Definition in file thermo.c.