📄 onewire.h
字号:
/* myTemp is used to connect PalmOS PDAs to Dallas Microlan(tm) Devices It currently supports DS1820/DS18S20 Digital Thermometers Copyright (C) 2000 Christof Klaiber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Christof Klaiber <christof.klaiber@gmx.de> Lachnerstr. 22 76131 Karlsruhe Germany*/#ifdef DEBUG#define kRecTimeoutScale 7#else#define kRecTimeoutScale 500#endif/* Name: TouchReset Purpose: Reset the 1-wire Bus Input: UInt16 serialRefNum reference to the serial library UInt8 <->devicePresent 0 if not present, 1 if present Result: Err error serErrNontOpen serErrTimeOut serErrLineErr Name: Christof Klaiber <christof.klaiber@gmx.de> Versions: 25.01.2001 First working Release 06.12.2003 Adaption for version 4 11.12.2003 error handling This function is taken from digitemp-1.3/onewire.c by Brian C. Lane <bcl@brianlane.com>*/Err OWTouchReset(UInt16, UInt8*);/* Name: TouchByte Purpose: Send/Receive one Byte to/from 1-wire Devices Input: UInt16 serialRefNum reference to the serial library UInt8* <->character character to send, returns character received Result: err error serErrTimeOut serErrLineErr Name: Christof Klaiber <christof.klaiber@gmx.de> Versions: 25.01.2001 First working Release 06.12.2003 adaption for version 4 11.12.2003 error handling This function is taken from digitemp-1.3/onewire.c by Brian C. Lane <bcl@brianlane.com>*/Err OWTouchByte(UInt16, UInt8*);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -