thermo.h File Reference
Thermo-control driver. More...
#include "hw/thermo_map.h"
#include <drv/ntc.h>
Go to the source code of this file.
Functions | |
| void | thermo_init (void) |
| Init thermo-control and associated hw. | |
| void | thermo_setTarget (ThermoDev dev, deg_t temperature) |
| Set the target temperature at which a given device should be kept. | |
| void | thermo_start (ThermoDev dev) |
| Start thermo control for a certain device dev. | |
| void | thermo_stop (ThermoDev dev) |
| Stop thermo control for a certain device dev. | |
| void | thermo_clearErrors (ThermoDev dev) |
| Clear errors for channel dev. | |
| thermostatus_t | thermo_status (ThermoDev dev) |
| Return the status of the specific dev thermo-device. | |
| deg_t | thermo_readTemperature (ThermoDev dev) |
| Return the current temperature of a device currently under thermo control. | |
Detailed Description
Thermo-control driver.
- Version:
- Id
- thermo.h 1401 2008-05-27 17:20:07Z asterix
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.
Definition in file thermo.h.
Function Documentation
| deg_t thermo_readTemperature | ( | ThermoDev | dev | ) |
| void thermo_setTarget | ( | ThermoDev | dev, | |
| deg_t | temperature | |||
| ) |
| thermostatus_t thermo_status | ( | ThermoDev | dev | ) |
