
#define LM95245_ADDR1				0x4c //LM81: 0x2c //e6xxx: 0x4c //max1617: 0x18
#define LM95245_ADDR_START			0x4c //LM81: 0x2c //e6xxx: 0x4c

//Register Addresses
//signed
#define LM95245_LCL_TEMP_MSB_REG		0x00
#define LM95245_LCL_TEMP_LSB_REG		0x30
#define LM95245_REM_TEMP_MSB_REG		0x01
#define LM95245_REM_TEMP_LSB_REG		0x10
//unsigned
#define LM95245_REM_TEMP_MSB_UREG		0x31
#define LM95245_REM_TEMP_LSB_UREG		0x32

//status register
#define LM95245_STS_REG1_REG			0x02
#define LM95245_STS_REG2_REG			0x33

//Configuration register
#define LM95245_CFG_REG2_REG			0xBF

//Temp limit register
#define LM95245_REM_TCRIT_LIMIT_REG		0x19
#define LM95245_LCL_TCRIT_LIMIT_REG		0x20

#define LM95245_TCRIT_STS_MASK			0x03

//Filter handling
#define LM95245_REM_FILT_ENBL_MASK		0x03
#define LM95245_REM_FILTER_ENBL			0x06		// temp filter mask
#define LM95245_REM_FILTER_DISBL		0x00		// disable remote temp filter



/* definitions to select temperature measurement */
#define NUM_OF_TEMP_SENSORS 2		// number of temperature sensors

/* definitions for temperature handling */
#define LM95245_TEMP_MAX		127
#define LM95245_TEMP_MIN		(-55)
#define LM95245_RMT_TCRIT_MAX	255		//max remote TCrit setting
#define LM95245_INT_TCRIT_MAX	127		//max internal TCrit setting



//select choices
#define SEL_TEMP_INT		0		// select internal temperature measurement 
#define SEL_TEMP_RMT		1		// select remote temperature measurement 
#define SEL_LIMIT_RMT_TCRIT 2		// select Remote T_Crit Limit
#define SEL_LIMIT_LCL_TCRIT 3		// select Remote T_Crit Limit
