recall_e2.c
来自「Source code for driving RFM01 fm radio r」· C语言 代码 · 共 18 行
C
18 行
#include "../ds18x20.h"
uint8_t DS18X20_recall_E2( uint8_t id[] )
{
OW_reset(); //**
if( OW_input_pin_state() ) { // only send if bus is "idle" = high
OW_command( DS18X20_RECALL_E2, id );
// TODO: wait until status is "1" (then eeprom values
// have been copied). here simple delay to avoid timeout
// handling
delayms(DS18X20_COPYSP_DELAY);
return DS18X20_OK;
}
else {
return DS18X20_ERROR;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?