|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
This file contains all the function prototypes for the solenoid.c file. More...
#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Enumerations | |
| enum | StatusSolenoid { SOLENOID_OFF , SOLENOID_ON } |
Functions | |
| void | SolenoidInit (void) |
| Wrapper function for the Solenoid initilization. | |
| void | SolenoidOpen (void) |
| Returns both the raw voltage value and a calibrated measurement from a water Flow sensor. | |
| void | SolenoidClose (void) |
| Read water Flow sensor and serialize measurement. | |
This file contains all the function prototypes for the solenoid.c file.
This library is designed to integrate a solenoid used for irrigation. https://www.orbitonline.com/products/solenoids?variant=45109892612264&country=US¤cy=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic&utm_source=paid+search&utm_medium=google+ads&utm_campaign=core+shopping&gad_source=1&gad_campaignid=19652308266&gbraid=0AAAAACw56Spsna6BxGUmTXQEtBiAdD4xG&gclid=CjwKCAjw-svEBhB6EiwAEzSdrsAHw1dSYI86-bRo6kxv42twG7OPn3huLm-9Bx99XAEWvaCfzjyhmxoCmnAQAvD_BwE
Definition in file solenoid.h.
| enum StatusSolenoid |
| void SolenoidClose | ( | void | ) |
Read water Flow sensor and serialize measurement.
The voltage output of the water Flow is measured. A calibration is applied to convert voltage into a leaf wetness measurement.
Current voltage and Flow are the same value, until a calibration is obtained.
Definition at line 43 of file solenoid.c.
Referenced by ControllerIrrigationCheck().
| void SolenoidInit | ( | void | ) |
Wrapper function for the Solenoid initilization.
| void |
Definition at line 15 of file solenoid.c.
| void SolenoidOpen | ( | void | ) |
Returns both the raw voltage value and a calibrated measurement from a water Flow sensor.
| void |
Definition at line 35 of file solenoid.c.
Referenced by ControllerIrrigationCheck().