ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
solenoid.h
Go to the documentation of this file.
1
15#pragma once
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <stdio.h>
22#include <stdlib.h>
23
29
36void SolenoidInit(void);
37
45void SolenoidOpen(void);
46
59void SolenoidClose(void);
60
61#ifdef __cplusplus
62}
63#endif
void SolenoidInit(void)
Wrapper function for the Solenoid initilization.
Definition solenoid.c:15
void SolenoidOpen(void)
Returns both the raw voltage value and a calibrated measurement from a water Flow sensor.
Definition solenoid.c:35
StatusSolenoid
Definition solenoid.h:25
@ SOLENOID_OFF
Definition solenoid.h:26
@ SOLENOID_ON
Definition solenoid.h:27
void SolenoidClose(void)
Read water Flow sensor and serialize measurement.
Definition solenoid.c:43