BeRTOS
|
00001 00056 #ifndef DRV_THERMO_H 00057 #define DRV_THERMO_H 00058 00059 #include "hw/thermo_map.h" 00060 00061 #include <drv/ntc.h> 00062 #include <drv/timer.h> 00063 00064 typedef uint8_t thermostatus_t; 00065 00066 00073 void thermo_setTarget(ThermoDev dev, deg_t temperature); 00074 00079 void thermo_timer(ThermoDev dev, mtime_t on_time); 00080 00082 void thermo_start(ThermoDev dev); 00083 00085 void thermo_stop(ThermoDev dev); 00086 00088 void thermo_clearErrors(ThermoDev dev); 00089 00091 thermostatus_t thermo_status(ThermoDev dev); 00092 00100 deg_t thermo_readTemperature(ThermoDev dev); 00101 00102 void thermo_init(void); 00103 00104 00105 #endif /* DRV_THERMO_H */