ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
solenoid.h File Reference

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.
 

Detailed Description

Enumeration Type Documentation

◆ StatusSolenoid

States of the solenoid

Enumerator
SOLENOID_OFF 
SOLENOID_ON 

Definition at line 25 of file solenoid.h.

Function Documentation

◆ SolenoidClose()

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.

See also
SensorsPrototypeMeasure

Definition at line 43 of file solenoid.c.

Referenced by ControllerIrrigationCheck().

◆ SolenoidInit()

void SolenoidInit ( void  )

Wrapper function for the Solenoid initilization.

Parameters
void
Returns
HAL_StatusTypeDef

Definition at line 15 of file solenoid.c.

◆ SolenoidOpen()

void SolenoidOpen ( void  )

Returns both the raw voltage value and a calibrated measurement from a water Flow sensor.

Parameters
void
Returns
measurements

Definition at line 35 of file solenoid.c.

Referenced by ControllerIrrigationCheck().