blob: e7a5e746281e436197fffa10af53e3260b1849f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef VALVES_H_
#define VALVES_H_
#include <stdint.h>
/* Global valves state */
enum valves_global_state {
VALVES_IDLE,
VALVES_FLOW_IN,
VALVES_FLOW_OUT,
};
/* State for one valve. */
enum valve_state {
VALVE_STATE_12,
VALVE_STATE_14,
};
void valves_init(void);
void valves_global_switch(uint8_t global_state);
void valve0_switch(uint8_t state);
void valve1_switch(uint8_t state);
#endif /* VALVES_H_ */
|