Go to the documentation of this file.
9 #ifndef FSM_THERMOSTAT_H
10 #define FSM_THERMOSTAT_H
23 #define THERMOSTAT_TIMEOUT_SEC 1
24 #define THERMOSTAT_HISTORY 10
25 #define THERMOSTAT_DEFAULT_THRESHOLD 25
THERMOSTAT_EVENTS
Enumerates the events of the thermostat FSM.
FSM_THERMOSTAT_STATES
Enumerates the states of the thermostat FSM.
fsm_t * fsm_thermostat_new(port_led_hw_t *p_led_heat, port_led_hw_t *p_led_comfort, port_temp_hw_t *p_temp)
Creates a new thermostat FSM.
port_temp_hw_t * p_temp_sensor
Structure to define the HW dependencies of a LED.
Structure to define the thermostat FSM.
double threshold_temp_celsius
Header file for the temperature sensor port layer.
Header file for the LED port layer.
uint32_t timer_period_sec
Structure to define the HW dependencies of a temperature sensor.
port_led_hw_t * p_led_comfort
#define THERMOSTAT_HISTORY
uint8_t fsm_thermostat_get_status(fsm_t *p_this)
Gets the thermostat status.
port_led_hw_t * p_led_heat
uint32_t fsm_thermostat_get_last_time_event(fsm_t *p_this, uint8_t event)
Gets the last time there was an event in the thermostat. If the event is not found,...