summaryrefslogtreecommitdiffstats
path: root/kernel/code/radiator.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/code/radiator.h')
-rw-r--r--kernel/code/radiator.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/code/radiator.h b/kernel/code/radiator.h
new file mode 100644
index 0000000..a16edb8
--- /dev/null
+++ b/kernel/code/radiator.h
@@ -0,0 +1,19 @@
+#ifndef _RADIATOR_H_
+#define _RADIATOR_H_
+
+typedef struct
+{
+ int fd;
+ int pos;
+ int half;
+ int overshoot;
+ int max;
+} Radiator;
+
+int radiator_set_pos (Radiator * r, int wanted);
+int radiator_calibrate (Radiator * r);
+int radiator_program (Radiator * r);
+Radiator *radiator_open (char *s, int quiet);
+void radiator_close (Radiator * r);
+
+#endif /* _RADIATOR_H_ */