GrowNode
gn_hydroboard2_watering_control.c File Reference

Data Structures

struct  gn_hb2_watering_control_data_t
 

Macros

#define TAG   "gn_leaf_hb2_watering_control"
 

Enumerations

enum  gn_hcc_status {
  HCC_HEATING , HCC_COOLING , HCC_OFF , HCC_HEATING ,
  HCC_COOLING , HCC_OFF
}
 
enum  gn_wat_status {
  WAT_WAIT , WAT_ON , WAT_OFF , WAT_WAIT ,
  WAT_ON , WAT_OFF
}
 

Functions

void gn_hb2_watering_control_task (gn_leaf_handle_t leaf_config)
 
gn_leaf_param_validator_result_t _gn_hb2_watering_interval_validator (gn_leaf_param_handle_t param, void **param_value)
 
gn_leaf_param_validator_result_t _gn_hb2_watering_time_validator (gn_leaf_param_handle_t param, void **param_value)
 
gn_leaf_param_validator_result_t _gn_hb2_watering_target_temp_validator (gn_leaf_param_handle_t param, void **param_value)
 
static void _gn_hb2_watering_control_stop_watering (gn_hb2_watering_control_data_t *data)
 
static void _gn_hb2_watering_control_start_watering (gn_hb2_watering_control_data_t *data)
 
static void _gn_hb2_watering_control_stop_hcc (gn_hb2_watering_control_data_t *data)
 
static void _gn_hb2_watering_control_start_hcc_heating (gn_hb2_watering_control_data_t *data)
 
static void _gn_hb2_watering_control_start_hcc_cooling (gn_hb2_watering_control_data_t *data)
 
static bool _gn_hb2_watering_control_hcc_temp_low (double p_wat_temp, double p_wat_t_temp)
 
static bool _gn_hb2_watering_control_hcc_temp_high (double p_wat_temp, double p_wat_t_temp)
 
static bool _gn_hb2_watering_control_hcc_temp_ok (double p_wat_temp, double p_wat_t_temp)
 
void _gn_hb2_watering_callback_intl (gn_leaf_handle_t leaf_config)
 
gn_leaf_descriptor_handle_t gn_hb2_watering_control_config (gn_leaf_handle_t leaf_config)
 

Variables

static char * PLT_FAN = "plt_fan"
 
static char * PLT_PUMP = "plt_pump"
 
static char * WAT_PUMP = "wat_pump"
 
static char * PLT_COOL = "plt_b"
 
static char * PLT_HOT = "plt_a"
 
static char * ENV_FAN = "env_fan"
 
static char * BME280 = "env_thp"
 
static char * DS18B20 = "temps"
 
static char * WAT_LEV = "wat_lev"
 
static char * LIGHT_1 = "lig_1"
 
static char * LIGHT_2 = "lig_2"
 

Macro Definition Documentation

◆ TAG

#define TAG   "gn_leaf_hb2_watering_control"

Enumeration Type Documentation

◆ gn_hcc_status

Enumerator
HCC_HEATING 
HCC_COOLING 
HCC_OFF 
HCC_HEATING 
HCC_COOLING 
HCC_OFF 

◆ gn_wat_status

Enumerator
WAT_WAIT 
WAT_ON 
WAT_OFF 
WAT_WAIT 
WAT_ON 
WAT_OFF 

Function Documentation

◆ _gn_hb2_watering_callback_intl()

void _gn_hb2_watering_callback_intl ( gn_leaf_handle_t  leaf_config)

◆ _gn_hb2_watering_control_hcc_temp_high()

static bool _gn_hb2_watering_control_hcc_temp_high ( double  p_wat_temp,
double  p_wat_t_temp 
)
inlinestatic

◆ _gn_hb2_watering_control_hcc_temp_low()

static bool _gn_hb2_watering_control_hcc_temp_low ( double  p_wat_temp,
double  p_wat_t_temp 
)
inlinestatic

◆ _gn_hb2_watering_control_hcc_temp_ok()

static bool _gn_hb2_watering_control_hcc_temp_ok ( double  p_wat_temp,
double  p_wat_t_temp 
)
inlinestatic

◆ _gn_hb2_watering_control_start_hcc_cooling()

static void _gn_hb2_watering_control_start_hcc_cooling ( gn_hb2_watering_control_data_t data)
inlinestatic

◆ _gn_hb2_watering_control_start_hcc_heating()

static void _gn_hb2_watering_control_start_hcc_heating ( gn_hb2_watering_control_data_t data)
inlinestatic

◆ _gn_hb2_watering_control_start_watering()

static void _gn_hb2_watering_control_start_watering ( gn_hb2_watering_control_data_t data)
inlinestatic

◆ _gn_hb2_watering_control_stop_hcc()

static void _gn_hb2_watering_control_stop_hcc ( gn_hb2_watering_control_data_t data)
inlinestatic

◆ _gn_hb2_watering_control_stop_watering()

static void _gn_hb2_watering_control_stop_watering ( gn_hb2_watering_control_data_t data)
inlinestatic

◆ _gn_hb2_watering_interval_validator()

gn_leaf_param_validator_result_t _gn_hb2_watering_interval_validator ( gn_leaf_param_handle_t  param,
void **  param_value 
)

◆ _gn_hb2_watering_target_temp_validator()

gn_leaf_param_validator_result_t _gn_hb2_watering_target_temp_validator ( gn_leaf_param_handle_t  param,
void **  param_value 
)

◆ _gn_hb2_watering_time_validator()

gn_leaf_param_validator_result_t _gn_hb2_watering_time_validator ( gn_leaf_param_handle_t  param,
void **  param_value 
)

◆ gn_hb2_watering_control_config()

gn_leaf_descriptor_handle_t gn_hb2_watering_control_config ( gn_leaf_handle_t  leaf_config)

◆ gn_hb2_watering_control_task()

void gn_hb2_watering_control_task ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ BME280

char* BME280 = "env_thp"
static

◆ DS18B20

char* DS18B20 = "temps"
static

◆ ENV_FAN

char* ENV_FAN = "env_fan"
static

◆ LIGHT_1

char* LIGHT_1 = "lig_1"
static

◆ LIGHT_2

char* LIGHT_2 = "lig_2"
static

◆ PLT_COOL

char* PLT_COOL = "plt_b"
static

◆ PLT_FAN

char* PLT_FAN = "plt_fan"
static

◆ PLT_HOT

char* PLT_HOT = "plt_a"
static

◆ PLT_PUMP

char* PLT_PUMP = "plt_pump"
static

◆ WAT_LEV

char* WAT_LEV = "wat_lev"
static

◆ WAT_PUMP

char* WAT_PUMP = "wat_pump"
static