
#ifndef __PROCESS2_H
#define __PROCESS2_H

	#include "main.h"
	#include "lab.h"
	#include "RC5_IR_Emul_Receiver.h"
	#include "img.h"
	
	#define NUM_ARR 				20
	
	typedef struct Mode_proc_lcd{
		char* name;
	}Mode_proc_lcd; 

	typedef struct menu{
			void *var;
			void *var_host;
			uint8_t type; 
			uint16_t x; 
			uint16_t y; 
			const char pref[NUM_ARR]; 
			uint8_t edit; 
			float multiplicity; 
			float MIN; 
			float MAX; 
			uint8_t *show; 
			uint32_t background;
			uint32_t foreground;
	}Menu;
	
	typedef struct web_struct{
		char str[NUM_ARR];
		uint16_t x; 
		uint16_t y;
		char background[12];
		char foreground[12];
		uint8_t edit;
	}WEB_struct; 
	
	extern WEB_struct WEB_Arr[50];
			
	extern uint8_t TIMER_200; 
	
	extern uint8_t Hour;
	extern uint8_t Min;
	extern uint8_t Sec;
	extern uint8_t hour_delta ;
	extern uint8_t min_delta;
	extern uint8_t sec_delta;
	extern uint32_t sec_start; 
	extern uint8_t stop_start;

	extern uint8_t Timer_flag;
	extern uint16_t ADC_Press;
	extern uint16_t ADC_Conc_spirt;
	
	extern uint8_t LCD_Update, WEB_Update, First_WEB;
	extern uint32_t var_cache_WEB[100];
	
  extern Menu const *MenuTime;
	
	void Get_Buffer_Telnet(uint8_t Header, char *Buffer_Telnet);
	float Get_Alcohol_Par(float Temperature);//!!!!!
	void PrintToLCD(uint8_t full_update, uint8_t WEB);
	
	void main2(void);

#endif /* __PROCESS2_H */


