www.pudn.com > DDS485.rar > datasave.c


#include  
#include  
#include  
#include  
 
//-----***-根据命令保存数据到制定地址-***-----// 
//-----***-DeviceAdd===>IIC的器件地址(数据存储器=0xa0,RTC=0x60,Lm75=0x90) 
//-----***-ByteAdd=====>IIC的字节地址 
//-----***-*value======>数组的指针 
//-----***-DataLend====>数据长度 
void CmdSave(unsigned char DeviceAdd,unsigned char ByteAdd,unsigned char DataInNo,unsigned char DataLend) 
{ 
    unsigned char i; 
	SnCheck(); 
	if(PrgSn|AdBit) 
	{ 
		if(DeviceAdd==0xa0) 
        { 
       	    for(i=0;i