FSM thermostat
fsm_thermostat_t Struct Reference

Structure to define the thermostat FSM. More...

#include <fsm_thermostat.h>

Data Fields

fsm_t f
 
port_led_hw_tp_led_heat
 
port_led_hw_tp_led_comfort
 
port_temp_hw_tp_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
 

Detailed Description

Structure to define the thermostat FSM.

Definition at line 53 of file fsm_thermostat.h.

Field Documentation

◆ event_idx

uint8_t fsm_thermostat_t::event_idx

Index of the last event

Definition at line 61 of file fsm_thermostat.h.

◆ f

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.

◆ last_events

bool fsm_thermostat_t::last_events[THERMOSTAT_HISTORY]

Statuses of the thermostat

Definition at line 59 of file fsm_thermostat.h.

◆ last_time_events

uint32_t fsm_thermostat_t::last_time_events[THERMOSTAT_HISTORY]

Last times of events detected

Definition at line 60 of file fsm_thermostat.h.

◆ p_led_comfort

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.

◆ p_led_heat

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.

◆ p_temp_sensor

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.

◆ threshold_temp_celsius

double fsm_thermostat_t::threshold_temp_celsius

Threshold temperature to activate the thermostat Celsius

Definition at line 62 of file fsm_thermostat.h.

◆ timer_period_sec

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.


The documentation for this struct was generated from the following file: