ttt2/my_src/hmi.h
Wolfgang Hottgenroth cb6acce7bb works so far
2017-06-13 13:26:29 +02:00

42 lines
761 B
C

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