diff 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
line wrap: on
line diff
--- a/1wire.h	Fri Jul 16 23:39:58 2004 +0930
+++ b/1wire.h	Wed Sep 01 17:45:24 2004 +0930
@@ -28,15 +28,15 @@
  * SUCH DAMAGE.
  */
 
-int		OWTouchReset(void);
-void		OWWriteBit(int bit);
-int		OWReadBit(void);
+uint8_t		OWTouchReset(void);
+void		OWWriteBit(uint8_t bit);
+uint8_t		OWReadBit(void);
 void		OWWriteByte(uint8_t data);
-int		OWReadByte(void);
-int		OWTouchByte(uint8_t data);
+uint8_t		OWReadByte(void);
+uint8_t		OWTouchByte(uint8_t data);
 void		OWBlock(uint8_t *data, int len);
-int		OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
-int		OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
+uint8_t		OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
+uint8_t		OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
 void		OWCRC(uint8_t x, uint8_t *crc);
 void		OWSendCmd(uint8_t *ROM, uint8_t cmd);