hw_thermo.h File Reference
thermo hardware-specific control functions. More...
#include "thermo_map.h"#include "ntc_map.h"#include <drv/phase.h>#include <drv/ntc.h>#include <cfg/debug.h>#include <cfg/compiler.h>Go to the source code of this file.
Functions | |
| deg_t | thermo_hw_tolerance (ThermoDev dev) |
| ticks_t | thermo_hw_timeout (ThermoDev dev) |
| deg_t | thermo_hw_read (ThermoDev dev) |
| void | thermo_hw_off (ThermoDev dev) |
| void | thermo_hw_set (ThermoDev dev, deg_t target, deg_t cur_temp) |
| void | _thermo_hw_init (void) |
Detailed Description
thermo hardware-specific control functions.
- Version:
- Id
- hw_thermo.h 1440 2008-06-10 17:59:13Z asterix
Definition in file hw_thermo.h.
Function Documentation
| void _thermo_hw_init | ( | void | ) | [inline] |
Init hw associated with thermo-control.
Definition at line 172 of file hw_thermo.h.
| void thermo_hw_off | ( | ThermoDev | dev | ) | [inline] |
Turns off a specific device. This function is usefull to handle errors.
Definition at line 115 of file hw_thermo.h.
| deg_t thermo_hw_read | ( | ThermoDev | dev | ) | [inline] |
Read the temperature of the hw device dev.
Definition at line 105 of file hw_thermo.h.
| void thermo_hw_set | ( | ThermoDev | dev, | |
| deg_t | target, | |||
| deg_t | cur_temp | |||
| ) | [inline] |
Based on the current temperature cur_temp and the target temperature target, this function turns on and off specific triac channel and handles the freezer alarm. It may use also PID control for thermo-regolations.
Definition at line 139 of file hw_thermo.h.
| ticks_t thermo_hw_timeout | ( | ThermoDev | dev | ) | [inline] |
This function should return the timeout for reaching the target temperature.
Definition at line 81 of file hw_thermo.h.
| deg_t thermo_hw_tolerance | ( | ThermoDev | dev | ) | [inline] |
This function should return the temperature set tolerance.
Definition at line 57 of file hw_thermo.h.
