单总线加密芯片ds2401驱动源码ds2401软件C源码,可以直接用于你的产品设计。
//*----------------------------------------------------------------------------
//* Header files
//*----------------------------------------------------------------------------
#include
#include
#include "../incl/Ds2401.h"
///////////////////////////////////////////////////
void delay_us(unsigned short iDelay){
unsigned short i;
for(i=0;i1500){///reset fail
return 0;
}else{
goto ReadIoStatus;//wait rest ack
}
}
}
//send read rom command on 1-wire/////////////////////
void API_Ds2401_SendCommand(unsigned char uCommand)
{
unsigned char i,j,s,k;
, 相关下载链接:
https://download.csdn.net/download/SKCQTGZX/68757898?utm_source=bbsseo