summaryrefslogtreecommitdiffstats
path: root/kernel/code/radiator.h
blob: a16edb88cba20d5f650c662111390f29d7030386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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_ */