Files
Smart-granary-code/components/ui/vars.h
2026-04-20 23:15:12 +08:00

54 lines
1.5 KiB
C

#ifndef EEZ_LVGL_UI_VARS_H
#define EEZ_LVGL_UI_VARS_H
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
// enum declarations
// Flow global variables
enum FlowGlobalVariables {
FLOW_GLOBAL_VARIABLE_NONE
};
// Native global variables
extern float get_var_temp();
extern void set_var_temp(float value);
extern float get_var_light_val();
extern void set_var_light_val(float value);
extern float get_var_humity_val();
extern void set_var_humity_val(float value);
extern const char *get_var_door_status();
extern void set_var_door_status(const char *value);
extern float get_var_ice_weight();
extern void set_var_ice_weight(float value);
extern const char *get_var_food_status();
extern void set_var_food_status(const char *value);
extern float get_var_air_quity();
extern void set_var_air_quity(float value);
extern const char *get_var_hot_status();
extern void set_var_hot_status(const char *value);
extern const char *get_var_cool_status();
extern void set_var_cool_status(const char *value);
extern const char *get_var_fan_status();
extern void set_var_fan_status(const char *value);
extern const char *get_var_light_status();
extern void set_var_light_status(const char *value);
extern const char *get_var_hum_status();
extern void set_var_hum_status(const char *value);
extern const char *get_var_local_time();
extern void set_var_local_time(const char *value);
extern const char *get_var_system_ip();
extern void set_var_system_ip(const char *value);
#ifdef __cplusplus
}
#endif
#endif /*EEZ_LVGL_UI_VARS_H*/