comparison 1wire.h @ 12:4b141cc7cbd4

- Reduce type widths where possible. - Add URL for Dallas OWPD kit. - Hide more stuff behind OW_DEBUG.
author darius
date Wed, 01 Sep 2004 17:45:24 +0930
parents eb1faf51968e
children 2b0ed085b95b
comparison
equal deleted inserted replaced
11:ccc39c9f320b 12:4b141cc7cbd4
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE. 28 * SUCH DAMAGE.
29 */ 29 */
30 30
31 int OWTouchReset(void); 31 uint8_t OWTouchReset(void);
32 void OWWriteBit(int bit); 32 void OWWriteBit(uint8_t bit);
33 int OWReadBit(void); 33 uint8_t OWReadBit(void);
34 void OWWriteByte(uint8_t data); 34 void OWWriteByte(uint8_t data);
35 int OWReadByte(void); 35 uint8_t OWReadByte(void);
36 int OWTouchByte(uint8_t data); 36 uint8_t OWTouchByte(uint8_t data);
37 void OWBlock(uint8_t *data, int len); 37 void OWBlock(uint8_t *data, int len);
38 int OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only); 38 uint8_t OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
39 int OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only); 39 uint8_t OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
40 void OWCRC(uint8_t x, uint8_t *crc); 40 void OWCRC(uint8_t x, uint8_t *crc);
41 void OWSendCmd(uint8_t *ROM, uint8_t cmd); 41 void OWSendCmd(uint8_t *ROM, uint8_t cmd);
42 42
43 #define OWIREOUTPORT PORTC 43 #define OWIREOUTPORT PORTC
44 #define OWIREOUTPIN 0 44 #define OWIREOUTPIN 0