summaryrefslogtreecommitdiffstats
path: root/userland/radiator.h
blob: da912c02c6830f001e8f4d9af6f1a4226e5496b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _RADIATOR_H_
#define _RADIATOR_H_

#include "cp210x.h"

typedef struct
{
  CP210X *cp210x;
  int pos;
  int half;
  int overshoot;
  int max;
} Radiator;

int radiator_set_pos (Radiator * r, int wanted);
void radiator_calibrate (Radiator * r);
int radiator_program (Radiator * r);
Radiator *radiator_open (char *s, int quiet);
void radiator_close (Radiator * r);

#endif /* _RADIATOR_H_ */