1 /* 2 OW -- One-Wire filesystem 3 version 0.4 7/2/2003 4 5 Function naming scheme: 6 OW -- Generic call to interaface 7 LI -- LINK commands 8 L1 -- 2480B commands 9 FS -- filesystem commands 10 UT -- utility functions 11 12 LICENSE (As of version 2.5p4 2-Oct-2006) 13 owlib: GPL v2 14 owfs, owhttpd, owftpd, owserver: GPL v2 15 owshell(owdir owread owwrite owpresent): GPL v2 16 owcapi (libowcapi): GPL v2 17 owperl: GPL v2 18 owtcl: LGPL v2 19 owphp: GPL v2 20 owpython: GPL v2 21 owsim.tcl: GPL v2 22 where GPL v2 is the "Gnu General License version 2" 23 and "LGPL v2" is the "Lesser Gnu General License version 2" 24 25 26 Written 2003 Paul H Alfille 27 Fuse code based on "fusexmp" {GPL} by Miklos Szeredi, mszeredi@inf.bme.hu 28 Serial code based on "xt" {GPL} by David Querbach, www.realtime.bc.ca 29 in turn based on "miniterm" by Sven Goldt, goldt@math.tu.berlin.de 30 GPL license 31 This program is free software; you can redistribute it and/or 32 modify it under the terms of the GNU General Public License 33 as published by the Free Software Foundation; either version 2 34 of the License, or (at your option) any later version. 35 36 This program is distributed in the hope that it will be useful, 37 but WITHOUT ANY WARRANTY; without even the implied warranty of 38 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39 GNU General Public License for more details. 40 41 Other portions based on Dallas Semiconductor Public Domain Kit, 42 --------------------------------------------------------------------------- 43 Copyright (C) 2000 Dallas Semiconductor Corporation, All Rights Reserved. 44 Permission is hereby granted, free of charge, to any person obtaining a 45 copy of this software and associated documentation files (the "Software"), 46 to deal in the Software without restriction, including without limitation 47 the rights to use, copy, modify, merge, publish, distribute, sublicense, 48 and/or sell copies of the Software, and to permit persons to whom the 49 Software is furnished to do so, subject to the following conditions: 50 The above copyright notice and this permission notice shall be included 51 in all copies or substantial portions of the Software. 52 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 53 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 54 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 55 IN NO EVENT SHALL DALLAS SEMICONDUCTOR BE LIABLE FOR ANY CLAIM, DAMAGES 56 OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 57 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 58 OTHER DEALINGS IN THE SOFTWARE. 59 Except as contained in this notice, the name of Dallas Semiconductor 60 shall not be used except as stated in the Dallas Semiconductor 61 Branding Policy. 62 --------------------------------------------------------------------------- 63 Implementation: 64 25-05-2003 iButtonLink device 65 */ 66 67 #ifndef OW_RESET_H /* tedious wrapper */ 68 #define OW_RESET_H 69 70 typedef int RESET_TYPE ; 71 72 #define BUS_RESET_OK 0 73 #define BUS_RESET_SHORT 1 74 #define BUS_RESET_ERROR -EINVAL 75 76 #define gbRESET( r ) ( ( (r) < BUS_RESET_OK ) ? gbBAD : gbGOOD ) 77 78 79 #endif /* OW_RESET_H */ 80