/****************************************************************************
 Title	:	TERMINAL FOR VISUALIZATION AND CONTROL CONDITIONS IN HOUSE
 Author	:	Patrik Szalay <xszala01@stud.feec.vutbr.cz>
 File	:	temp_meas.h
 Software:	CodeWarrior Development Studio Version: 10.6 Build Id:140329
 Target	:	MC9S08LH64
*****************************************************************************/

#ifndef TEMP_MEAS_H_
#define TEMP_MEAS_H_

#include <hidef.h>
#include "derivative.h"
#include "IO.h"
#include "mcp9808.h"
#include "lm75.h"
#include "htu21d.h"
#define MEAS_TIMEOUTCOUNT 2
#define IIC_INVALID_DATA	999999
#define CRC_ERR	999998
#define MEAS_ERROR 	999997


#define LM75_1_ADDR 0b01001000
#define LM75_2_ADDR 0b01001001
#define MCP9808_1_ADDR 0b00011010
#define MCP9808_2_ADDR 0b00011000
#define MCP9808_3_ADDR 0b00011001
#define HTU21D_ADDR 0b01000000

decimal measure(SCIRegAddress device);


#endif /* TEMP_MEAS_H_ */
