comparison 1wire.h @ 33:0aa6bf4b98ae

- Don't wrap individual debug statements in ifdef, use a conditionally defined macro instead. - Add OWProgROM routine, can't remember if I actually tested it tho :)
author darius
date Tue, 23 Oct 2007 10:51:35 +0930
parents b0cb873c0206
children 5898fba6593c
comparison
equal deleted inserted replaced
32:b0cb873c0206 33:0aa6bf4b98ae
38 void OWBlock(uint8_t *data, int len); 38 void OWBlock(uint8_t *data, int len);
39 uint8_t OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only); 39 uint8_t OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
40 uint8_t OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only); 40 uint8_t OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
41 void OWCRC(uint8_t x, uint8_t *crc); 41 void OWCRC(uint8_t x, uint8_t *crc);
42 void OWSendCmd(uint8_t *ROM, uint8_t cmd); 42 void OWSendCmd(uint8_t *ROM, uint8_t cmd);
43 uint8_t OWProgROM(uint8_t *ROM, uint8_t start, uint8_t len, uint8_t *data, uint8_t exact, uint8_t status);
43 44
44 /* Return codes for OWFirst()/OWNext() */ 45 /* Return codes for OWFirst()/OWNext() */
45 #define OW_BADWIRE -3 46 #define OW_BADWIRE -3
46 #define OW_BADCRC -2 47 #define OW_BADCRC -2
47 #define OW_NOPRESENCE -1 48 #define OW_NOPRESENCE -1