|
FSM thermostat
|
Structure to define the thermostat FSM. More...
#include <fsm_thermostat.h>
Data Fields | |
| fsm_t | f |
| port_led_hw_t * | p_led_heat |
| port_led_hw_t * | p_led_comfort |
| port_temp_hw_t * | p_temp_sensor |
| bool | last_events [THERMOSTAT_HISTORY] |
| uint32_t | last_time_events [THERMOSTAT_HISTORY] |
| uint8_t | event_idx |
| double | threshold_temp_celsius |
| uint32_t | timer_period_sec |
Structure to define the thermostat FSM.
Definition at line 53 of file fsm_thermostat.h.
| uint8_t fsm_thermostat_t::event_idx |
Index of the last event
Definition at line 61 of file fsm_thermostat.h.
| fsm_t fsm_thermostat_t::f |
FSM structure. Important to be the first element of the structure
Definition at line 55 of file fsm_thermostat.h.
| bool fsm_thermostat_t::last_events[THERMOSTAT_HISTORY] |
Statuses of the thermostat
Definition at line 59 of file fsm_thermostat.h.
| uint32_t fsm_thermostat_t::last_time_events[THERMOSTAT_HISTORY] |
Last times of events detected
Definition at line 60 of file fsm_thermostat.h.
| port_led_hw_t* fsm_thermostat_t::p_led_comfort |
Pointer to the cool LED structure
Definition at line 57 of file fsm_thermostat.h.
| port_led_hw_t* fsm_thermostat_t::p_led_heat |
Pointer to the heat LED structure
Definition at line 56 of file fsm_thermostat.h.
| port_temp_hw_t* fsm_thermostat_t::p_temp_sensor |
Pointer to the temperature sensor structure
Definition at line 58 of file fsm_thermostat.h.
| double fsm_thermostat_t::threshold_temp_celsius |
Threshold temperature to activate the thermostat Celsius
Definition at line 62 of file fsm_thermostat.h.
| uint32_t fsm_thermostat_t::timer_period_sec |
Period of the timer to measure the temperature
Definition at line 63 of file fsm_thermostat.h.