www.pudn.com > TMP112.zip > Tmp112.h, change:2016-07-27,size:531b


#ifndef __TMP112_H 
#define __TMP112_H 
 
#include "pbdata.h" 
/*************指针寄存器类型******************/ 
//  P7 P6 P5 P4 P3 P2 P1 P0 
//  P1 P0 = 00 : 
 
 
 
#define Accuracy 100 //0.01精度设置:100   
										 // 0.1精度设置:10 
										 //   1精度设置:1 
 
 
 
 
union u_d{ 
	struct u_b{ 
		unsigned char l1; 
		unsigned char h1; 
	} bt; 
	int i1; 
}; 
 
void Init_Tmp(void); 
void WriteWord_Tmp(uint8_t nAddr,uint16_t nData); 
uint16_t ReadWord_Tmp(uint8_t nAddr); 
uint16_t DispTmp(uint16_t nData); 
 
#endif