ttt2/my_src/hmi.h

42 lines
761 B
C
Raw Normal View History

/*
2017-06-07 22:15:54 +02:00
* hmi.h
*
* Created on: May 31, 2017
* Author: wn
*/
2017-06-07 22:15:54 +02:00
#ifndef HMI_H_
#define HMI_H_
#include "timer.h"
#include "stm32f1xx_hal.h"
2017-06-13 13:26:29 +02:00
typedef enum { TE_IDLE, TE_HOT, TE_COLD, TE_UNCONFIRMED, TE_CONFIRMED } tThermometerEngineState;
typedef struct {
2017-06-11 22:02:07 +02:00
uint32_t toggle;
uint32_t setModeTemperature;
uint32_t setModeTime;
tTimerState timerState;
2017-06-13 13:26:29 +02:00
tThermometerEngineState thermometerEngineState;
uint8_t coldCount;
2017-06-11 22:02:07 +02:00
uint32_t toggleModeState;
uint32_t targetTemperature;
uint32_t currentTemperature;
uint32_t targetTime;
uint32_t currentTime;
uint32_t overrunTime;
} tDisplay;
2017-06-07 22:15:54 +02:00
void hmiInit(void);
void updateDisplay(void *handle);
void displayToggleSetMode();
void displayDecValue();
void displayIncValue();
2017-06-07 22:15:54 +02:00
#endif /* HMI_H_ */